CN108595292A - A kind of optimization method of system, mobile terminal and computer storage media - Google Patents

A kind of optimization method of system, mobile terminal and computer storage media Download PDF

Info

Publication number
CN108595292A
CN108595292A CN201810383563.1A CN201810383563A CN108595292A CN 108595292 A CN108595292 A CN 108595292A CN 201810383563 A CN201810383563 A CN 201810383563A CN 108595292 A CN108595292 A CN 108595292A
Authority
CN
China
Prior art keywords
uid
application
data directory
directory
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810383563.1A
Other languages
Chinese (zh)
Other versions
CN108595292B (en
Inventor
莫斯挺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810383563.1A priority Critical patent/CN108595292B/en
Publication of CN108595292A publication Critical patent/CN108595292A/en
Application granted granted Critical
Publication of CN108595292B publication Critical patent/CN108595292B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1479Generic software techniques for error detection or fault masking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)
  • Telephone Function (AREA)

Abstract

This application discloses a kind of optimization method of system, mobile terminal and computer storage medias, wherein the method includes:After the system starts, the unique identifier UID using data directory is obtained;Judge whether the UID using data directory is abnormal;If the UID using data directory is abnormal, obtain with the UID using the associated application of data directory, and the UID using data directory is replaced with to the UID of the application.It can be repaired the UID of automatic application data catalogue in each booting by the application, abnormal probability occur when reducing user starts application, enhance the stability of system.

Description

A kind of optimization method of system, mobile terminal and computer storage media
Technical field
The application belongs to a kind of technical field of mobile terminals more particularly to optimization method of system, mobile terminal and calculating Machine storage medium.
Background technology
Android (Android) operating system is widely used operating system on current mobile terminal.Using Android When the mobile phone of system, it is frequently encountered following problem:When installation is using app, if mobile phone accident power-off can cause to answer With being abnormal, for example, when application is again started up, can prompt can not find this applies data directory using corresponding.If Once this occurs, using will be unable to operate the data of oneself, lead to dysfunction.
Invention content
In view of this, this application provides a kind of optimization method of system, mobile terminal and computer storage media, with solution The problem of application caused by power-off can not be operated using data is certainly encountered in application installation process.
The first aspect of the application provides a method that the above method includes:
After the system starts, the unique identifier UID using data directory is obtained;
Judge whether the UID using data directory is abnormal;
If the UID using data directory is abnormal, acquisition and the UID using the associated application of data directory, And the UID using data directory is replaced with to the UID of the application.
The second aspect of the application provides a kind of device, and above-mentioned apparatus includes:
UID acquiring units, for after the system starts, obtaining the unique identifier UID using data directory;
UID detection units, for judging whether the UID using data directory is abnormal;
UID repairs unit, if abnormal for the UID using data directory, obtain and applies data directory with described The UID of associated application, and the UID using data directory is replaced with to the UID of the application.
The third aspect of the application provides a kind of mobile terminal, above-mentioned mobile terminal include memory, processor and It is stored in the computer program that can be run in above-mentioned memory and on above-mentioned processor, above-mentioned processor executes above computer The step of method of first aspect as above is realized when program.
The fourth aspect of the application provides a kind of computer readable storage medium, and above computer readable storage medium storing program for executing is deposited Computer program is contained, above computer program realizes the method for first aspect as above when being executed by processor the step of.
The 5th aspect of the application provides a kind of computer program product, and above computer program product includes computer Program, when above computer program is executed by one or more processors the step of the realization such as method of above-mentioned first aspect.
Therefore in application scheme first after the system starts, the unique identifier using data directory is obtained Then UID judges whether the UID using data directory is abnormal, if the UID using data directory is abnormal, obtains With the UID using the associated application of data directory, and the UID using data directory is replaced with into the application UID.By the scheme of the application, in each booting, the UID of automatic application data catalogue is detected reparation, reduces use There is abnormal probability when starting application in family, enhances the stability of system.
Description of the drawings
It in order to more clearly explain the technical solutions in the embodiments of the present application, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only some of the application Embodiment for those of ordinary skill in the art without having to pay creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is a kind of implementation process schematic diagram of the optimization method of system provided by the embodiments of the present application;
Fig. 2 is a kind of another implementation process schematic diagram of the optimization method of system provided by the embodiments of the present application;
Fig. 3 is a kind of another implementation process schematic diagram of the optimization of system provided by the embodiments of the present application;
Fig. 4 is a kind of structure diagram of the optimization device of system provided by the embodiments of the present application;
Fig. 5 is the schematic diagram of mobile terminal provided by the embodiments of the present application.
Specific implementation mode
In being described below, for illustration and not for limitation, it is proposed that such as tool of particular system structure, technology etc Body details, so as to provide a thorough understanding of the present application embodiment.However, it will be clear to one skilled in the art that there is no these specific The application can also be realized in the other embodiments of details.In other situations, it omits to well-known system, device, electricity The detailed description of road and method, so as not to obscure the description of the present application with unnecessary details.
In order to illustrate the above-mentioned technical solution of the application, illustrated below by specific embodiment.
Embodiment one
A kind of optimization method method of system provided by the embodiments of the present application is described below, referring to Fig. 1, this Shen Method that please be in embodiment includes:
In a step 101, after the system starts, the unique identifier UID using data directory is obtained.
In the embodiment of the present application, above system can be Android (Android) operating system, or and Android The similar operating system of operating system, the operating system may operate in smart mobile phone, tablet computer, smart television, router Or in other-end equipment.The system startup refers to that terminal device carries out power on operation when receiving power-on instruction, so Operating system is loaded into memory afterwards and is run, the power-on instruction can pass through the power button in operating terminal equipment by user It sends out.
In Android operation system, a user UID uniquely one application of mark.Using when mounted be assigned only One UID was applied in the duration in equipment, and UID is remained unchanged.Wherein, data mesh is applied in corresponding one of each application Record, described using data directory is typically file directory/data/data/ in system<Packet name>, using data directory for depositing Put the data etc. that the setting file, database file and application of application generate in operation.Such as the wechat on terminal device Using the application program is installed in/data/app/<The corresponding packet name of wechat>Under file directory, wechat, which is applied, to be run The data (including ephemeral data and permanent data) generated in journey are saved in/data/data/<The corresponding packet name of wechat>File Catalogue.Registration is usually determined by application provider, such as the packet of wechat is entitled " com.tencent.mm ".Since packet name can have The different forms of expression is not defined the specific manifestation form of packet name herein.In installation in application, system can create application Data directory, system can be to these using the identical UID of data directory distribution application associated with it.Apply the process in operation In, the application data directory for storing the application operation data can be identified by way of identifying UID.Using data directory For preserving using the data generated at runtime.Using be frequently necessary in the process of running from application data directory in read number The data generated when according to this and by application operation are stored in using in data directory.Such as in use wechat chat during institute The chat record of generation is just stored under the data directory of wechat application, and user checks chat record being sent out to wechat application When instruction, wechat is applied by reading the related data associated with it using data directory, and includes supplying by the data On the interfaces UI that user checks.
In a step 102, judge whether the UID using data directory is abnormal.
In step 103, if the UID using data directory is abnormal, acquisition is associated with the application data directory Application UID, and the UID using data directory is replaced with to the UID of the application.
In the embodiment of the present application, if the UID using data directory is abnormal, for example, the UID using data directory is not It is same as the UID of its associated application.Since application is to be used as oneself using data directory with identical UID with oneself by identifying Apply data directory.When the UID of application data directory is different from the UID of its associated application, which will be unable to find Oneself apply data directory, to can not operate the association using the data in data directory, think to apply at this time The UID of data directory is abnormal.And the UID of the associated application of data directory is applied with this by obtaining, this is then applied into data The mode application data catalogue that the UID of catalogue replaces with the UID of the application is repaired.
Since the embodiment of the present application is after system starts every time, before application program launching, number is applied by detection Whether there is exception according to the UID of catalogue, acquisition and the UID using the associated application of data directory if there is exception, and The UID that the UID using data directory is replaced with to the application, so as in each booting, repair abnormal answer With the UID of data directory, there is abnormal probability when reducing user starts application, avoid the UID in application data directory Abnormal be not repaired starts the problem of associated application causes application operation to be collapsed before, to enhance the stability of system.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present application constitutes any limit It is fixed.
Embodiment two
Fig. 2 is the flow diagram of the optimization method of another system provided by the embodiments of the present application, the party as shown in the figure Method may comprise steps of:
In step 201, after the system starts, the UID using data directory is obtained by installd processes.
In the embodiment of the present application, installd is the finger daemon (daemon) of a native, and installd has Root authority can directly manage the thing of packet installation affairs.Such as installd can support peace loading, unloading application, delete Apk, it creates using data directory, title of the change using data directory and the UID using data directory.Installd passes through prison Local socket is listened to execute related command, and the socket in init.rc documents by way of determining Service Properties It creates.If there is socket connections are come in, then by socket reading order character strings, order is then executed.
In step 202, judge whether the UID using data directory is identical as the UID of installd processes;
In step 203, if the UID using data directory is identical as the UID of installd processes, it is determined that The UID exceptions stated using data directory.
In the embodiment of the present application, installd can will created first when being created using data directory for application The UID using data directory be set as the UID of installd processes, created in application data directory and complete and then will answer The UID of application is revised as with the UID of data directory.And in practice, it has been found that the mistake that installd processes operate application Cheng Zhong, such as installation application.When installd processes are being operated using data directory, (for example, application, which creates, applies data Catalogue).In case of the event of unexpected power down.Since the operation of installd process application data catalogues is not completed, At this time apply data directory UID be actually installd processes UID, rather than with apply the associated application of data directory UID.After starting up's system again, user starts should be in application, the application can search corresponding application number by UID According to catalogue, since the UID using data directory with the association is the UID of installd processes, this application due to Oneself can not be operated using the data in data directory, so as to cause application operation less than associated using data directory by searching It is abnormal.
In step 204, if the UID using data directory is abnormal, acquisition is associated with the application data directory Application UID, and the UID using data directory is replaced with to the UID of the application.
In the embodiment of the present application, after the system starts, by being in installd process detection application data directories It is no there are UID it is identical with the UID of installd processes apply data directory, if there is the UID of UID and installd processes It is identical to apply data directory, then it is assumed that this applies the UID of data directory abnormal, and application program will be unable to operate this using data Catalogue.In the present embodiment, the UID of the associated application of data directory can be applied with this by obtaining, and this is applied into data The UID of catalogue replaces with the UID of the application, to repair the problem of the UID exceptions using data directory.
Therefore in the present embodiment, in terminal electrifying startup operating system, start finger daemon installd simultaneously It is detected using the UID of data directory by all in isntalld demand for system, if detecting the presence of using data mesh The UID of UID and installd process of record is identical, then is replaced with the UID using the associated application of data directory by obtaining It changes and carries out UID reparations using the mode of the UID of data directory.Installd process application datas are all used due to being switched on every time The UID of catalogue is detected, the problem of can not operating oneself data directory so as to avoid application caused by accident power-off, is increased The strong stability of system.
Optionally, the acquisition and the UID using the associated application of data directory, including:
Obtain the packet name using in data directory;
It is obtained and the UID using the associated application of data directory based on the packet name.
It in the embodiment of the present application, can be by this after installd detects UID abnormal application data directories The packet name that application is obtained using the routing information of data directory, for example, the path using data directory is:/data/data/<Packet Name>, character is assigned to by intercepting the most title of next stage catalogue in the path, and by the title of the most next stage catalogue of interception String variable, you can obtain the packet name using data directory.
The peace loading, unloading of various APK packets, optimization are responsible in PackageMangerSerivce services in android system It is inquired with UID, optionally, the embodiment of the present application can inquire the packet name by packet name information to PackageMangerSerivce The UID of the application referred to.After PackageMangerSerivce inquires the UID of application, the UID is passed to Installd processes, the UID replacement UID exceptions for the application that then execution of installd processes will inquire apply data directory UID operation, to complete UID repairs.
The embodiment of the present application obtains the packet name using data directory of UID exceptions by installd, and is based on the packet Name obtains the UID of the application to PackageMangerSerivce, is assisted by installd and PackageMangerSerivce Same mode completes the repair of UID exceptions after booting, and above-mentioned repair mode has occupying system resources few, repairs speed Soon, the advantages that not influencing starting up's efficiency.And UID is repaired extremely in booting, avoid user from encountering using nothing When method operation is using data directory, it is not known that how to solve the problems, such as, improve the experience of user.
Optionally, obtain with the UID using the associated application of data directory, and by described using data directory The UID that UID replaces with the application includes:
It is corresponding using installation directory to search the application data directory;
If finding, the application data directory is corresponding to apply installation directory, acquisition and institute under the installation directory The UID using the associated application of data directory is stated, and the UID using data directory is replaced with to the UID of the application.
Wherein, installd processes can pacify after the packet name using data directory for getting UID exceptions in application (i.e./paths data/app) searches the packet name under dress catalogue, if finding the packet name, shows that the application is Application on the terminal device by searching the UID information of application in application installation directory, and is answered what is found UID passes to installd processes, and the UID of the application inquired is replaced answering for UID exceptions by isntalld processes With the operation of the UID of data directory, to complete UID repairs.
Optionally, if not finding, the application data directory is corresponding to apply installation directory, does not obtain and is answered with described With the UID of the associated application of data directory, and deletes and described apply data directory.
In the embodiment of the present application, installd processes are after the packet name using data directory for getting UID exceptions, The packet name is searched under application installation directory, applies installation directory using data directory is corresponding if finding, then Show that the application may be unloaded, since the application has been unloaded, that is to say, that be not in the thing for starting the application Part, therefore also just without repairing necessity using data directory UID, therefore applying the corresponding application of data directory to find In the case of installation directory, do not obtain and the UID using the associated application of data directory.
Optionally, show that the application may be due to not finding the corresponding application installation directory of the application data directory Through being unloaded, this using data directory may be unload apply during accident power-off without unloading complete part. Therefore it when searching application installation directory corresponding less than application data directory, deletes this and applies data directory, to save end The memory space at end.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present application constitutes any limit It is fixed.
Embodiment three
The present embodiment is based on embodiment one or embodiment two, and Fig. 3 is another germline provided by the embodiments of the present application The UID using data directory is being replaced with described answer by the flow diagram of the optimization method of system, this method as shown in the figure It may comprise steps of after UID:
Step 301, start the application;
Step 302, judge whether the startup of the application is abnormal;
Step 303, it if the startup of the application is abnormal, issues the user with described in prompt message or restarting System.
In the present embodiment, it after the application data directory abnormal to UID executes UID change operations, can hold automatically Row starts the operation of application, for example, will be replaced using the UID of data directory when system detectio to installd performs Operation, the then enabled instruction of the automatic trigger application, the Starting mode can be that foreground initiation or backstage start, and preferably adopt The mode started with backstage judges whether to be abnormal after starting application, and the exception for example can be to receive application Error information, or application automatically exit from.When detecting that application startup is abnormal, prompt message is issued the user with.It can Selection of land can oneself if starting after the UID that the UID using data directory is replaced with to the application and applying to be abnormal Dynamic or prompt user restarts system, and after restarting system, and step 101-103 or reality in embodiment one are executed at this Apply the step 201-204 in example two.It re-executes after restarting in step 101-103 or the embodiment two in embodiment one Step 201-204 after, if start application still remain exception, issue the user with prompt message, it is proposed that user takes Other solutions, such as reset the application or updating operation is carried out to the application.
Institute is detected by way of starting application automatically after performing UID and repairing operation by the embodiment of the present application It states whether reparation succeeds, if detecting the repairing failure, reparation operation is re-executed after restarting system.It further improves The success rate that UID is repaired.
Example IV
The embodiment of the present application also provides a kind of optimization device of system, as shown in figure 3, the optimization dress in the embodiment of the present application Setting 400 includes:
UID acquiring units 401, for after the system starts, obtaining the unique identifier UID using data directory;
UID detection units 402, for judging whether the UID using data directory is abnormal;
UID repairs unit 403, if abnormal for the UID using data directory, obtains and the application data mesh The UID of associated application is recorded, and the UID using data directory is replaced with to the UID of the application.
Optionally, described obtain includes using the UID of data directory:
The UID using data directory is obtained by installd processes.
Optionally, it is described judge the UID using data directory whether include extremely:
Judge whether the UID using data directory is identical as the UID of installd processes;
If the UID using data directory is identical as the UID of installd processes, it is determined that described to state using number It is abnormal according to the UID of catalogue.
Optionally, the UID repairs unit 403, including:
Subelement is searched, the application data directory is corresponding to apply installation directory for searching;
Subelement is replaced, if corresponding using installation directory for finding the application data directory, from the peace Acquisition and the UID using the associated application of data directory under catalogue are filled, and is replaced with described using the UID of data directory The UID of the application.
Optionally, the UID reparations unit 403 further includes:
Subelement is deleted, if corresponding using installation directory for not finding the application data directory, is not obtained With the UID using the associated application of data directory, and delete it is described apply data directory.
Optionally, the optimization device 400 further includes:
Detection unit, for starting the application;
Judge whether the startup of the application is abnormal;
If the startup of the application is abnormal, prompt message or the restarting system are issued the user with.
Using the optimization device of the system in the embodiment of the present application, since the embodiment of the present application starts it every time in system Afterwards, before application program launching, whether there is exception using the UID of data directory by detection, obtained if there is exception With the UID using the associated application of data directory, and the UID using data directory is replaced with into the application UID avoids so as in each booting, repair the abnormal UID using data directory in application data directory UID starts the problem of associated application causes application operation to be collapsed before not being repaired extremely, when reducing user starts application There is abnormal probability, enhances the stability of system.
Embodiment five
The embodiment of the present application provides a kind of mobile terminal, referring to Fig. 5, the mobile terminal in the embodiment of the present application includes: Memory 501, one or more processors 502 (one is only shown in Fig. 5) and is stored on memory 501 and can be in processor The computer program of upper operation.Wherein:Memory 501 is deposited for storing software program and module, processor 502 by operation The software program and unit in memory 401 are stored up, it is above-mentioned pre- to obtain to perform various functions application and data processing If the corresponding resource of event.Specifically, processor 502 is stored real in the above computer program of memory 501 by operation Existing following steps:
After the system starts, the unique identifier UID using data directory is obtained;
Judge whether the UID using data directory is abnormal;
If the UID using data directory is abnormal, acquisition and the UID using the associated application of data directory, And the UID using data directory is replaced with to the UID of the application.
Assuming that above-mentioned is the first possible embodiment, then provided based on the first possible embodiment Second of possible embodiment in,
Described obtain include using the UID of data directory:
The UID using data directory is obtained by installd processes.
In the third the possible embodiment provided based on above-mentioned second of possible embodiment,
It is described judge the UID using data directory whether include extremely:
Judge whether the UID using data directory is identical as the UID of installd processes;
If the UID using data directory is identical as the UID of installd processes, it is determined that described to state using number It is abnormal according to the UID of catalogue.
In the 4th kind of possible embodiment provided based on the first above-mentioned possible embodiment,
The acquisition and the UID using the associated application of data directory, including:
Obtain the packet name using in data directory;
It is obtained and the UID using the associated application of data directory based on the packet name.
In the 5th kind of possible embodiment provided based on the first above-mentioned possible embodiment,
Acquisition and the UID using the associated application of data directory, and replaced with described using the UID of data directory The UID of the application includes:
It is corresponding using installation directory to search the application data directory;
If finding, the application data directory is corresponding to apply installation directory, acquisition and institute under the installation directory The UID using the associated application of data directory is stated, and the UID using data directory is replaced with to the UID of the application;
If not finding, the application data directory is corresponding to apply installation directory, does not obtain and the application data mesh The UID of associated application is recorded, and is deleted described using data directory.
In the 7th kind of possible embodiment provided based on the first above-mentioned possible embodiment,
After the UID using data directory is replaced with the UID of the application, further include:
Start the application;
Judge whether the startup of the application is abnormal;
If the startup of the application is abnormal, prompt message or the restarting system are issued the user with.
Further, as shown in figure 5, above-mentioned mobile terminal 5 may also include:One or more input equipments 503 are (in Fig. 5 only Show one) and one or more output equipments 504 (one is only shown in Fig. 5).Memory 501, processor 502, input are set It is connected by bus 405 for 503 and output equipment 404.
It should be appreciated that above-mentioned mobile terminal 5 can be the computing devices such as smart mobile phone, tablet computer.Alleged processor 502 Can be central processing unit (Central Processing Unit, CPU), which can also be other general procedures Device, digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware components etc..It is logical With processor can be microprocessor or the processor can also be any conventional processor etc..
Input equipment 503 may include keyboard, Trackpad, fingerprint adopt sensor (finger print information for acquiring user and The directional information of fingerprint), microphone etc., output equipment 504 may include screen, loud speaker etc..
Memory 501 may include read-only memory and random access memory, and provide instruction sum number to processor 502 According to.Part or all of memory 501 can also include nonvolatile RAM.For example, memory 501 may be used also With the information of storage device type.
Therefore in the embodiment of the present application, before application program launching, by detection using data directory Whether UID there is exception, acquisition and the UID using the associated application of data directory if there is exception, and is answered by described in The UID that the application is replaced with the UID of data directory, so as in each booting, repair abnormal application data mesh The UID of record is avoided and is started associated application before the UID of application data directory is not repaired extremely application operation is caused to collapse Routed problem, to enhance the stability of system.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each work( Can unit, module division progress for example, in practical application, can be as needed and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of above-mentioned apparatus are divided into different functional units or module, more than completion The all or part of function of description.Each functional unit, module in embodiment can be integrated in a processing unit, also may be used It, can also be above-mentioned integrated during two or more units are integrated in one unit to be that each unit physically exists alone The form that hardware had both may be used in unit is realized, can also be realized in the form of SFU software functional unit.In addition, each function list Member, the specific name of module are also only to facilitate mutually distinguish, the protection domain being not intended to limit this application.Above system The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may realize that lists described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, depends on the specific application and design constraint of technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed Scope of the present application.
In embodiment provided herein, it should be understood that disclosed device and method can pass through others Mode is realized.For example, system embodiment described above is only schematical, for example, the division of above-mentioned module or unit, Only a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component can be with In conjunction with or be desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed Mutual coupling or direct-coupling or communication connection can be by some interfaces, the INDIRECT COUPLING of device or unit or Communication connection can be electrical, machinery or other forms.
The above-mentioned unit illustrated as separating component may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
If above-mentioned integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can be stored in a computer read/write memory medium.Based on this understanding, the application realizes above-described embodiment side All or part of flow in method can also instruct relevant hardware to complete, above-mentioned computer by computer program Program can be stored in a computer readable storage medium, and the computer program is when being executed by processor, it can be achieved that above-mentioned each The step of a embodiment of the method.Wherein, above computer program includes computer program code, and above computer program code can Think source code form, object identification code form, executable file or certain intermediate forms etc..Above computer readable medium can be with Including:Any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic disc, light of above computer program code can be carried Disk, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that above computer The content that readable medium includes can carry out increase and decrease appropriate according to legislation in jurisdiction and the requirement of patent practice, such as In certain jurisdictions, according to legislation and patent practice, computer-readable medium is including being electric carrier signal and telecommunications letter Number.
Above above-described embodiment is only to illustrate the technical solution of the application, rather than its limitations;Although with reference to aforementioned reality Example is applied the application is described in detail, it will be understood by those of ordinary skill in the art that:It still can be to aforementioned each Technical solution recorded in embodiment is modified or equivalent replacement of some of the technical features;And these are changed Or replace, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution should all Within the protection domain of the application.

Claims (10)

1. a kind of optimization method of system, which is characterized in that
After the system starts, the unique identifier UID using data directory is obtained;
Judge whether the UID using data directory is abnormal;
If the UID using data directory is abnormal, acquisition and the UID using the associated application of data directory, and will The UID using data directory replaces with the UID of the application.
2. the optimization method of the system as claimed in claim 1, which is characterized in that the UID packets obtained using data directory It includes:
The UID using data directory is obtained by installd processes.
3. the optimization method of system as claimed in claim 2, which is characterized in that it is described judge it is described using data directory UID whether include extremely:
Judge whether the UID using data directory is identical as the UID of installd processes;
If the UID using data directory is identical as the UID of installd processes, it is determined that described to state using data mesh The UID of record is abnormal.
4. the optimization method of the system as claimed in claim 1, which is characterized in that the acquisition is closed with the application data directory The UID of the application of connection, including:
Obtain the packet name using in data directory;
It is obtained and the UID using the associated application of data directory based on the packet name.
5. the optimization method of the system as claimed in claim 1, which is characterized in that obtain associated with the application data directory The UID of application, and include by the UID using the data directory UID for replacing with the application:
It is corresponding using installation directory to search the application data directory;
If finding, the application data directory is corresponding to apply installation directory, obtains under the installation directory and is answered with described With the UID of the associated application of data directory, and the UID using data directory is replaced with to the UID of the application.
6. the optimization method of system as claimed in claim 5, which is characterized in that further include:
If not finding, the application data directory is corresponding to apply installation directory, does not obtain and is closed with the application data directory The UID of the application of connection, and delete described using data directory.
7. such as the optimization method of claim 1 to 6 any one of them system, which is characterized in that by the application data mesh After the UID of record replaces with the UID of the application, further include:
Start the application;
Judge whether the startup of the application is abnormal;
If the startup of the application is abnormal, prompt message or the restarting system are issued the user with.
8. a kind of optimization device of system, which is characterized in that including:
UID acquiring units, for after the system starts, obtaining the unique identifier UID using data directory;
UID detection units, for judging whether the UID using data directory is abnormal;
UID repairs unit, if abnormal for the UID using data directory, acquisition is associated with the application data directory Application UID, and the UID using data directory is replaced with to the UID of the application.
9. a kind of mobile terminal, including memory, processor and it is stored in the memory and can be on the processor The computer program of operation, which is characterized in that the processor realizes such as claim 1 to 7 when executing the computer program The step of any one the method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, feature to exist In when the computer program is executed by processor the step of any one of such as claim 1 to 7 of realization the method.
CN201810383563.1A 2018-04-26 2018-04-26 System optimization method, mobile terminal and computer storage medium Active CN108595292B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810383563.1A CN108595292B (en) 2018-04-26 2018-04-26 System optimization method, mobile terminal and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810383563.1A CN108595292B (en) 2018-04-26 2018-04-26 System optimization method, mobile terminal and computer storage medium

Publications (2)

Publication Number Publication Date
CN108595292A true CN108595292A (en) 2018-09-28
CN108595292B CN108595292B (en) 2021-03-26

Family

ID=63609536

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810383563.1A Active CN108595292B (en) 2018-04-26 2018-04-26 System optimization method, mobile terminal and computer storage medium

Country Status (1)

Country Link
CN (1) CN108595292B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111062032A (en) * 2019-12-13 2020-04-24 上海钧正网络科技有限公司 Anomaly detection method and system and computer-readable storage medium
CN112286712A (en) * 2020-12-25 2021-01-29 成都数联铭品科技有限公司 Fault-tolerant repair method based on unique ID

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8848576B2 (en) * 2012-07-26 2014-09-30 Oracle International Corporation Dynamic node configuration in directory-based symmetric multiprocessing systems
CN106775876A (en) * 2016-12-21 2017-05-31 海马云(天津)信息技术有限公司 The method that Android system quickly starts application

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8848576B2 (en) * 2012-07-26 2014-09-30 Oracle International Corporation Dynamic node configuration in directory-based symmetric multiprocessing systems
CN106775876A (en) * 2016-12-21 2017-05-31 海马云(天津)信息技术有限公司 The method that Android system quickly starts application

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
佚名: "APK安装流程详解8——PackageManagerService的启动流程(下)", 《HTTPS://WWW.JIANSHU.COM/P/B9B2B0F650E9》 *
洪双喜: "Android平台隐私保护方法研究", 《中国优秀博士论文全文数据库》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111062032A (en) * 2019-12-13 2020-04-24 上海钧正网络科技有限公司 Anomaly detection method and system and computer-readable storage medium
CN112286712A (en) * 2020-12-25 2021-01-29 成都数联铭品科技有限公司 Fault-tolerant repair method based on unique ID

Also Published As

Publication number Publication date
CN108595292B (en) 2021-03-26

Similar Documents

Publication Publication Date Title
CN109669709B (en) Data migration method and data migration system for block chain upgrading
US9367403B2 (en) Terminal and application restoring method
CN110795399B (en) Method, device and system for generating machine ID for application
WO2015078294A1 (en) Kernel module loading method and apparatus
CN106648685A (en) Processing method and device of intelligent terminal system and intelligent terminal
US10067753B2 (en) Application program uninstallation method and apparatus
CN106873970B (en) Installation method and device of operating system
CN105373595A (en) Data automatic sorting storage method and terminal
CN109195157B (en) Application management method and device and terminal
CN110333876A (en) A kind of data clearing method and control equipment
CN105867962A (en) System upgrading method and device
CN108595292A (en) A kind of optimization method of system, mobile terminal and computer storage media
CN113760306A (en) Method and device for installing software, electronic equipment and storage medium
CN103927252A (en) Cross-component log recording method, device and system
CN109408471B (en) Compressed packet decompression method and device based on matching tree and storage medium
CN112559346A (en) Service testing method and device
JP2021002326A (en) Refinement of repair patterns for static analysis violations in software programs
US10761940B2 (en) Method, device and program product for reducing data recovery time of storage system
CN109933355B (en) Application program upgrading method and device
CN111309389A (en) Multi-user management method and system based on BIOS
CN107172610B (en) GSM network self-adaption method and device and electronic equipment
CN110244986A (en) Browser configuration method and device
CN113132241B (en) ACL template dynamic configuration method and device
CN108563578A (en) SDK compatibility detection method, device, equipment and readable storage medium
CN108363614B (en) Application service module management method and device and server

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant