CN106126377A - The method and device of system start-up - Google Patents

The method and device of system start-up Download PDF

Info

Publication number
CN106126377A
CN106126377A CN201610523371.7A CN201610523371A CN106126377A CN 106126377 A CN106126377 A CN 106126377A CN 201610523371 A CN201610523371 A CN 201610523371A CN 106126377 A CN106126377 A CN 106126377A
Authority
CN
China
Prior art keywords
starting
mobile terminal
preset
booting
value
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
CN201610523371.7A
Other languages
Chinese (zh)
Other versions
CN106126377B (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 CN201610523371.7A priority Critical patent/CN106126377B/en
Publication of CN106126377A publication Critical patent/CN106126377A/en
Application granted granted Critical
Publication of CN106126377B publication Critical patent/CN106126377B/en
Expired - Fee Related 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/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1417Boot up procedures
    • 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)
  • Computer Security & Cryptography (AREA)
  • Quality & Reliability (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses the method and device of a kind of system start-up, wherein the method includes: starting up's mobile terminal;Judge whether the current starting up performed operation is that the starting up that this mobile terminal performs after brush machine or factory reset first operates;If starting up's operation that this performs first, then perform .booting operation;If not this starting up's operation performed first, then skip this .booting operation.The present invention operates by only performing .booting when mobile terminal starting up for the first time, can take into account the stability of starting up of terminal speed and system simultaneously.

Description

The method and device of system start-up
Technical field
The present invention relates to technical field of mobile terminals, particularly relate to the method and device of a kind of system start-up.
Background technology
Along with the development of mobile terminal technology, it is daily that the intelligent mobile terminal such as smart mobile phone, panel computer has become people Instrument indispensable in life.In order to protect the content in virtual machine CACHE DIRECTORY/data/dalvik-cache not in power down Time destroyed, thus avoid result in some process when system start-up, due to the content quilt in/data/dalvik-cache Destroying and exception occurs, and then cause intelligent mobile terminal cannot be started up, existing intelligent mobile based on android system is eventually End system start-up technique, introduces .booting mechanism in ART (android runtime) module, i.e. all can when start every time Performing .booting operation, it is the slowest that this results in speed when user starts shooting every time.If but do not perform .booting operation, Then cannot solve when the start for the first time after terminal brush machine or after factory reset of the content in/data/dalvik-cache When, destroyed because of power down, and the problem that the terminal caused cannot be started up.
Summary of the invention
The present invention provides the method and device of a kind of system start-up, by only holding when mobile terminal starting up for the first time Row .booting operates, and can take into account the stability of starting up of terminal speed and system simultaneously.
First aspect present invention provides a kind of method of system start-up, including: starting up's mobile terminal;Judge currently to hold Whether starting up's operation of row is that the starting up that described mobile terminal performs after brush machine or factory reset first grasps Make;If the described starting up's operation performed first, then perform .booting operation;If not the described start performed first Start operation, then skip .booting operation.
Second aspect present invention provides the device of a kind of system start-up, and described device includes: starts module, opens for start Dynamic mobile terminal;Whether judge module is described mobile terminal for starting up's operation of judging currently to perform at brush machine or The starting up's operation performed first after factory reset;Perform module, if judging current execution for described judge module Starting up operation be the described starting up performed first operation, then perform .booting operation;Described execution module, also If judging that the current starting up performed operation is not the described starting up performed first operation, then for described judge module Skip described .booting operation.
Knowable to the invention described above embodiment, by when each starting up of mobile terminal, it is judged that opening of current execution Machine starts whether operation is that the starting up that mobile terminal performs after brush machine or factory reset first operates, the most then Perform .booting operation, if it is not, then skip .booting operation, directly perform follow-up starting up's operation, compared to Prior art, one aspect of the present invention can be passed through when mobile terminal first powers on startup after brush machine or factory reset Perform .booting operation, it is ensured that mobile terminal is not destroyed because of power down by the content in/data/dalvik-cache Impact, it is possible to normal boot-strap, thus maintain the stability of system, on the other hand non-first power on startup time, skip execution .booting the step operated, thus accelerate starting up speed.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing In having technology to describe, the required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is only this Some embodiments of invention, for those skilled in the art, on the premise of not paying creative work, it is also possible to root Other accompanying drawing is obtained according to these accompanying drawings.
Accompanying drawing 1 shows the structured flowchart of a kind of mobile terminal;
Accompanying drawing 2 be first embodiment of the invention provide system start-up method realize schematic flow sheet;
Accompanying drawing 3 be second embodiment of the invention provide system start-up method realize schematic flow sheet;
Accompanying drawing 4 is the structural representation of the device of the system start-up that third embodiment of the invention provides;
Accompanying drawing 5 is the structural representation of the device of the system start-up that fourth embodiment of the invention provides.
Detailed description of the invention
For making the goal of the invention of the present invention, feature, the advantage can be the most obvious and understandable, below in conjunction with the present invention Accompanying drawing in embodiment, is clearly and completely described the technical scheme in the embodiment of the present invention, it is clear that described reality Executing example is only a part of embodiment of the present invention, and not all embodiments.Based on the embodiment in the present invention, people in the art The every other embodiment that member is obtained under not making creative work premise, broadly falls into the scope of protection of the invention.
Accompanying drawing 1 shows the structured flowchart of a kind of mobile terminal.This mobile terminal can be, but not limited to include: has radio frequency The cell phone of function, panel computer, Intelligent worn device and multimedia player etc..As shown in Figure 1, mobile terminal 20 include memorizer 202, storage control 204, one or more (only illustrating one in figure) processor 206, Peripheral Interface 208, radio-frequency module 210, key-press module 212, audio-frequency module 214 and Touch Screen 216.These assemblies pass through one or more The mutual communication of communication bus/holding wire 222.
Being appreciated that this structure shown in accompanying drawing 1 is only signal, the structure of mobile terminal 20 is not caused restriction by it. Such as, mobile terminal 20 may also include the assembly more or more less than shown in this accompanying drawing 1, or have with shown in this accompanying drawing 1 Different configurations.Each assembly shown in this accompanying drawing 1 can use hardware, software or a combination thereof to realize.
Memorizer 202 can be used for storing software program and module, such as the method for the system start-up in the embodiment of the present invention And programmed instruction/module that device is corresponding, processor 206 is stored in the software program in memorizer 202 and mould by operation Block, thus perform the application of various function and data process, the method i.e. realizing above-mentioned system start-up.
Memorizer 202 can include high speed random access memory, may also include nonvolatile memory, such as one or more magnetic Property storage device, flash memory or other non-volatile solid state memories.In some instances, memorizer 202 can farther include The memorizer remotely located relative to processor 206, these remote memories can be connected to mobile terminal 20 by network.On The example stating network includes but not limited to the Internet, intranet, LAN, mobile radio communication and combinations thereof.Processor 206 And the access of memorizer 202 can be carried out under the control of storage control 204 by other possible assemblies.
Various input/output devices are coupled to processor 206 and memorizer 202 by Peripheral Interface 208.Processor 206 Various softwares in run memory 202, instruction are to perform the various functions of mobile terminal 20 and to carry out data process.
In some instances, Peripheral Interface 208, processor 206 and storage control 204 can be real in one single chip Existing.In some other example, they can be realized by independent chip respectively.
Radio-frequency module 210 is used for receiving and sending electromagnetic wave, it is achieved electromagnetic wave is changed with the mutual of the signal of telecommunication, thus with Communication network or other equipment carry out communication.Radio-frequency module 210 can include the various existing electricity for performing these functions Circuit component, such as, antenna, RF transceiver, digital signal processor, encryption/deciphering chip, subscriber identity module (SIM) card, Memorizer etc..Radio-frequency module 210 can be carried out with various networks such as the Internet, intranet, the wireless network of preset type Communication or carry out communication by the wireless network of preset type and other equipment.The wireless network of above-mentioned preset type can wrap Include cellular telephone networks, WLAN or Metropolitan Area Network (MAN).The wireless network of above-mentioned preset type can use various communication Standard, agreement and technology, include, but are not limited to global system for mobile communications (Global System for Mobile Communication, GSM), enhancement mode mobile communication technology (Enhanced Data GSM Environment, EDGE), wide Band CDMA (Wideband Code Division Multiple Access, W-CDMA), CDMA (Code Division Access, CDMA), tdma (Time Division Multiple Access, TDMA), Bluetooth, adopting wireless fidelity technology (Wireless-Fidelity, WiFi) is (such as IEEE-USA's standard IEEE 802.11a, IEEE 802.11b, IEEE802.11g and/or IEEE 802.11n), the networking telephone (Voice over Internet Protocol, VoIP), worldwide interoperability for microwave accesses (Worldwide Interoperability for Microwave Access, Wi-Max), other are for mail, instant messaging and the agreement of short message, and any other is suitable Communications protocol, even can include those agreements being developed the most not yet.
Key-press module 212 provides user to carry out the interface inputted to mobile terminal 20, and user can be different by pressing Button is so that mobile terminal 20 performs different functions.
Audio-frequency module 214 provides a user with audio interface, and it can include one or more mike, one or more raises Sound device and voicefrequency circuit.Voicefrequency circuit receives voice data at Peripheral Interface 208, and voice data is converted to electrical information, Electrical information is transmitted to speaker.Electrical information is converted to the sound wave that human ear can be heard by speaker.Voicefrequency circuit is also from mike Place receives electrical information, converts electrical signals to voice data, and by data transmission in network telephony to Peripheral Interface 208 to carry out into one The process of step.Voice data can obtain at memorizer 202 or by radio-frequency module 210.Additionally, voice data can also Store to memorizer 202 or be transmitted by radio-frequency module 210.In some instances, audio-frequency module 214 may also include Hole broadcast by one earphone, for providing audio interface to earphone or other equipment.
Touch Screen 216 provides an output and inputting interface between mobile terminal 20 and user simultaneously.Specifically, touch Control screen 216 displays to the user that video frequency output, and the content of these video frequency output can include word, figure, video and any group thereof Close.Some output results correspond to some user interface object.Touch Screen 216 also receives the input of user, such as user Click, the gesture operation such as slip, in order to the input of these users is responded by user interface object.Detection user's input Technology can be based on resistance-type, condenser type or other the most possible touch control detection technology.Touch Screen 216 display unit Instantiation include, but are not limited to liquid crystal display or light emitting polymer displays.
Referring to accompanying drawing 2, the flow process that realizes of the method for the system start-up that accompanying drawing 2 provides for first embodiment of the invention is illustrated Figure.The method of the system start-up that the present embodiment provides can be applicable in mobile terminal 20 as shown in Figure 1, this mobile terminal Operating system is the Android operation system with ART or similar module, or, there are other operations of identical operation principle System.As shown in Figure 2, the method mainly comprises the steps that
S101, starting up's mobile terminal;
When detecting that user carries out preset unlatching startup operation, as pressed preset power key or clicking on for again When starting the shortcut icon of mobile terminal, triggering and perform starting up's operation, power on starting up to mobile terminal.
Whether S102, the current starting up's operation performed of judgement are that mobile terminal is first after brush machine or factory reset Starting up's operation of secondary execution;
Concrete, can by analyzing the change of system property value, or, by whether detecting system exists preset literary composition Part judges whether the starting up currently performed operation is that mobile terminal performs after brush machine or factory reset first Starting up operates.If the current starting up's operation performed, it is that mobile terminal is held after brush machine or factory reset first Starting up's operation of row, then perform step S103;If the current starting up's operation performed, be not mobile terminal at brush machine or The starting up's operation performed first after factory reset, then perform step S104.
S103, execution .booting operation;
Concrete, if the current starting up's operation performed, be mobile terminal after brush machine or factory reset first The starting up's operation performed, then judge whether/data/dalvik-cache/<isa>/.booting file.If existing This document, the then file under removing/data/dalvik-cache/<isa>catalogue;Generation/data/dalvik-cache/ < isa >/.booting file;Perform AMS finishBooting () operation;Perform Installd and delete the behaviour of ./booting file Make.If there is not this document, then generation/data/dalvik-cache/<isa>/.booting file;Perform AMS FinishBooting () operates;Perform Installd and delete the operation of ./booting file.Then .booting is being performed Follow-up remaining normal boot-strap Booting sequence is carried out after operation.
S104, skip .booting operation.
If the current starting up's operation performed, it not that mobile terminal performs after brush machine or factory reset first Starting up operates, then skip above-mentioned .booting operation, directly perform follow-up remaining normal boot-strap Booting sequence.
The method of the system start-up that the embodiment of the present invention provides, by when each starting up of mobile terminal, it is judged that when Whether starting up's operation of front execution is that the starting up that mobile terminal performs after brush machine or factory reset first grasps Make, the most then perform .booting operation, if it is not, then skip .booting operation, directly perform follow-up starting up behaviour Making, compared to prior art, one aspect of the present invention can first power on after brush machine or factory reset at mobile terminal and open Time dynamic, operate by performing .booting, it is ensured that mobile terminal not by the content in/data/dalvik-cache because of power down The impact destroyed, it is possible to normal boot-strap, thus maintain the stability of system, on the other hand first power on startup non- Time, skip the step performing .booting operation, thus accelerate starting up speed.
Referring to accompanying drawing 3, the flow process that realizes of the method for the system start-up that accompanying drawing 3 provides for second embodiment of the invention is illustrated Figure.The method of the system start-up that the present embodiment provides can be applicable in mobile terminal 20 as shown in Figure 1, this mobile terminal Operating system is the Android operation system with ART or similar module, or, there are other operations of identical operation principle System.As shown in Figure 3, the method mainly comprises the steps that
S201, starting up's mobile terminal;
When detecting that user carries out preset unlatching startup operation, as pressed preset power key or clicking on for again When starting the shortcut icon of mobile terminal, triggering and perform starting up's operation, power on starting up to mobile terminal.
S202, judge whether preset system property value is preset value;
It should be understood that one or more system property value can be pre-set in systems, it is used for judging mobile terminal Whether the current starting up's operation performed is that the start that this mobile terminal performs after brush machine or factory reset first is opened Dynamic operation.Wherein, preset system property value can be the value of system property primary in system or the system property newly increased Value, after first time starting up, preset system property value can change.According to this principle, can determine whether mobile terminal Whether the current starting up's operation performed is that the start that this mobile terminal performs after brush machine or factory reset first is opened Dynamic operation, i.e. if preset system property value is preset value, it is determined that the current starting up's operation performed is mobile terminal The starting up's operation performed first after brush machine or factory reset, performs step S203: judge the current process run Whether it is preset finger daemon;If preset system property value is not preset value, it is determined that the current starting up performed Operation is not starting up's operation that mobile terminal performs after brush machine or factory reset first, performs step S205: jump Cross .booting operation.Wherein, preset value is optionally initial value.
Optionally, preset system property value is persist property value, then judge whether preset system property value is pre- The value put is specially and judges whether persist property value is null value, if null value, then first powers on, if not null value, the most not It is to first power on.
In other embodiments of the invention, it is judged that the current starting up's operation performed be whether mobile terminal at brush machine or The starting up performed first after factory reset, is specifically carried out also by following steps: judge whether exist in system Preset file;If there is preset file, it is determined that the current starting up's operation performed is that mobile terminal is at brush machine or extensive The starting up's operation performed first after multiple Default Value;If there is not preset file, it is determined that the current start performed is opened Dynamic operation is not starting up's operation that mobile terminal performs after brush machine or factory reset first.
Whether S203, the current process run of judgement are preset finger daemon;
Finger daemon (daemon) refers to the computer journey performed in UNIX or other multiple task operating systems on backstage Sequence, be typically independent of control terminal and periodically carry out certain task or etc. some event pending.Preset Finger daemon refers to through ART module, and can generate the finger daemon of the boot.oat file of 32 and 64, can but do not limit In including: zygote process or zygote64 process.
If judging, the current process run is preset finger daemon, then perform step S204: perform .booting operation; If the current process run is not preset finger daemon, then perform step S205: skip .booting operation.
Like this, whether it is preset finger daemon by judging the current process run, and only ought currently run Process is preset finger daemon, just performs .booting operation, can improve when first powering on, and non-required runs preset keeping Protect the starting up speed of terminal in the case of process.
S204, execution .booting operation;
Concrete, if the current process run is preset finger daemon, then judge whether/data/dalvik- Cache/<isa>/.booting file.If there is this document, then under removing/data/dalvik-cache/<isa>catalogue File;Generation/data/dalvik-cache/<isa>/.booting file;Perform AMS finishBooting () operation;Hold Row Installd deletes the operation of ./booting file.If there is not this document, then generation/data/dalvik-cache/ < Isa >/.booting file;Perform AMS finishBooting () operation;Perform Installd and delete ./booting file Operation.Then, after having performed .booting operation, follow-up remaining normal boot-strap Booting sequence is carried out.
S205, skip .booting operation.
Concrete, if starting up's operation that mobile terminal currently performs, it not that this mobile terminal at brush machine or recovers Starting up's operation that factory performs after arranging first, or, although it is the starting up's operation performed first, but current operation Process is not preset finger daemon, then skip above-mentioned .booting operation, directly performs follow-up remaining normal boot-strap and starts Flow process.
The method of the system start-up that the embodiment of the present invention provides, by when each starting up of mobile terminal, it is judged that when Whether starting up's operation of front execution is that the starting up that mobile terminal performs after brush machine or factory reset first grasps Make, the most then perform .booting operation, if it is not, then skip .booting operation, directly perform follow-up starting up behaviour Making, compared to prior art, one aspect of the present invention can first power on after brush machine or factory reset at mobile terminal and open Time dynamic, operate by performing .booting, it is ensured that mobile terminal not by the content in/data/dalvik-cache because of power down The impact destroyed, it is possible to normal boot-strap, thus maintain the stability of system, on the other hand first power on startup non- Time, skip the step performing .booting operation, thus accelerate starting up speed.
Referring to accompanying drawing 4, accompanying drawing 4 is the structural representation of the device of the system start-up that third embodiment of the invention provides, For convenience of description, illustrate only the part relevant to the embodiment of the present invention.The device of the system start-up of accompanying drawing 4 example can be The executive agent of the method for the system start-up that previous embodiment provides, it can be a merit of mobile terminal or mobile terminal Can module.The device of the system start-up of accompanying drawing 4 example, specifically includes that startup module 301, judge module 302 and performs module 303。
Each functional module describes in detail as follows:
Start module 301, for starting up's mobile terminal.
When detecting that user carries out preset unlatching startup operation, as pressed preset power key or clicking on for again When starting the shortcut icon of mobile terminal, triggering and perform starting up's operation, power on starting up to mobile terminal.
Whether judge module 302, be that this mobile terminal is at brush machine or extensive for judging the starting up currently performed operation The starting up's operation performed first after multiple Default Value.
Perform module 303, if judging that the current starting up performed operation is that this performs first for this judge module Starting up operates, then perform .booting operation.
Concrete, if the current starting up's operation performed, be mobile terminal after brush machine or factory reset first The starting up's operation performed, then judge whether/data/dalvik-cache/<isa>/.booting file.If existing This document, the then file under removing/data/dalvik-cache/<isa>catalogue;Generation/data/dalvik-cache/ < isa >/.booting file;Perform AMS finishBooting () operation;Perform Installd and delete the behaviour of ./booting file Make.If there is not this document, then generation/data/dalvik-cache/<isa>/.booting file;Perform AMS FinishBooting () operates;Perform Installd and delete the operation of ./booting file.Then .booting is being performed Follow-up remaining normal boot-strap Booting sequence is carried out after operation.
Perform module 303, if being additionally operable to this judge module to judge that the current starting up performed operation is not that this is held first Starting up's operation of row, then skip this .booting operation.
In the present embodiment, each module realizes the process of respective function, refers to the description of aforementioned figures 2 illustrated embodiment, herein Repeat no more.
It should be noted that in the embodiment of the device of the system start-up of the figures above 4 example, drawing of each functional module Point be merely illustrative of, in actual application can as required, the configuration requirement of such as corresponding hardware or the realization of software Convenient consider, and above-mentioned functions distribution is completed by different functional modules, will the internal structure of device of system start-up draw It is divided into different functional modules, to complete all or part of function described above.And, in actual application, the present embodiment In corresponding functional module can be to be realized by corresponding hardware, it is also possible to by corresponding hardware perform corresponding software complete Becoming, each embodiment that this specification provides all can apply foregoing description principle.
Knowable to the device of the system start-up of above-mentioned accompanying drawing 4 example, by when each starting up of mobile terminal, it is judged that Whether the current starting up's operation performed is the starting up that mobile terminal performs after brush machine or factory reset first Operation, the most then perform .booting operation, if it is not, then skip .booting operation, directly performs follow-up starting up Operation, compared to prior art, one aspect of the present invention can first power on after brush machine or factory reset at mobile terminal During startup, operate by performing .booting, it is ensured that mobile terminal not by the content in/data/dalvik-cache because of power down And the impact destroyed, it is possible to normal boot-strap, thus maintain the stability of system, on the other hand first power on startup non- Time, skip the step performing .booting operation, thus accelerate starting up speed.
Referring to accompanying drawing 5, accompanying drawing 5 is the structural representation of the device of the system start-up that fourth embodiment of the invention provides, For convenience of description, illustrate only the part relevant to the embodiment of the present invention.The device of the system start-up of accompanying drawing 5 example can be The executive agent of the method for the system start-up that previous embodiment provides, it can be one in mobile terminal or mobile terminal Functional module.The device of the system start-up of accompanying drawing 5 example, is with the difference of accompanying drawing 4:
Wherein, it is judged that if starting up's operation that module 302 is additionally operable to current execution is this starting up performed first Operation, then judge whether the current process run is preset finger daemon.
Finger daemon (daemon) refers to the computer journey performed in UNIX or other multiple task operating systems on backstage Sequence, be typically independent of control terminal and periodically carry out certain task or etc. some event pending.Preset Finger daemon refers to through ART module, and can generate the finger daemon of the boot.oat file of 32 and 64.Wherein, this is pre- The finger daemon put includes: zygote process or zygote64 process.
Performing module 303, if being additionally operable to this preset finger daemon, then performing this .booting operation;If not should Preset finger daemon, then skip this .booting operation.
Further, it is judged that module 302 comprises the steps that the first judgement submodule 3021, and second judges submodule 3022;
Wherein, first judges submodule 3021, for judging whether preset system property value is preset value;If should Preset value, it is determined that the current starting up's operation performed is that this mobile terminal is held after brush machine or factory reset first Starting up's operation of row;If not this preset value, it is determined that the current starting up's operation performed is not this mobile terminal The starting up's operation performed first after brush machine or factory reset.
Wherein, this preset system property value is persist property value, then first judges submodule 3021, specifically for Judge whether this persist property value is null value.
One or more system property value can be pre-set in systems, for judging that what mobile terminal currently performed opens Machine starts whether operation is that the starting up that this mobile terminal performs after brush machine or factory reset first operates.Wherein, Preset system property value can be the value of system property primary in system or the value of system property newly increased, for the first time After starting up, preset system property value can change.According to this principle, can determine whether the start that mobile terminal currently performs Start whether operation is that the starting up that this mobile terminal performs after brush machine or factory reset first operates, i.e. if pre- The system property value put is preset value, it is determined that the current starting up's operation performed is that mobile terminal at brush machine or recovers Starting up's operation that factory performs after arranging first, triggers and judges whether the current process run is preset finger daemon.
If preset system property value is not preset value, it is determined that the current starting up's operation performed is not mobile whole Starting up's operation that end performs after brush machine or factory reset first, then skip .booting operation.Wherein, preset Value is optionally initial value.
Second judges submodule 3022, for judging whether to exist in system preset file;If there is preset file, Then determine that the current starting up performed operation is the start that this mobile terminal performs after brush machine or factory reset first Start operation;If there is not preset file, it is determined that the current starting up's operation performed is not that this mobile terminal is at brush machine Or the starting up's operation performed first after factory reset.
Knowable to the device of the system start-up of above-mentioned accompanying drawing 5 example, by when each starting up of mobile terminal, it is judged that Whether the current starting up's operation performed is the starting up that mobile terminal performs after brush machine or factory reset first Operation, the most then perform .booting operation, if it is not, then skip .booting operation, directly performs follow-up starting up Operation, compared to prior art, one aspect of the present invention can first power on after brush machine or factory reset at mobile terminal During startup, operate by performing .booting, it is ensured that mobile terminal not by the content in/data/dalvik-cache because of power down And the impact destroyed, it is possible to normal boot-strap, thus maintain the stability of system, on the other hand first power on startup non- Time, skip the step performing .booting operation, thus accelerate starting up speed.
In several embodiments provided herein, it should be understood that disclosed apparatus and method, can be passed through it Its mode realizes.Such as, device embodiment described above is only schematically, such as, and the division of this module, only Dividing for a kind of logic function, actual can have when realizing other dividing mode, the most multiple modules or the assembly can be in conjunction with Or it is desirably integrated into another system, or some features can be ignored, or do not perform.Another point, shown or discussed phase Coupling between Hu or direct-coupling or communication connection can be the INDIRECT COUPLING by some interfaces, device or module or communication Connect, can be electrical, machinery or other form.
This as the module that separating component illustrates can be or may not be physically separate, shows as module Parts can be or may not be physical module, i.e. may be located at a place, or multiple net can also be distributed to In network module.Some or all of module therein can be selected according to the actual needs to realize the mesh of the present embodiment scheme 's.
It addition, each functional module in each embodiment of the present invention can be integrated in a processing module, it is also possible to It is that modules is individually physically present, it is also possible to two or more modules are integrated in a module.Above-mentioned integrated mould Block both can realize to use the form of hardware, it would however also be possible to employ the form of software function module realizes.
If this integrated module is using the form realization of software function module and as independent production marketing or use, Can be stored in a computer read/write memory medium.Based on such understanding, technical scheme substantially or What person said the part contributing prior art or this technical scheme completely or partially can be with the form body of software product Revealing to come, this computer software product is stored in a storage medium, including some instructions with so that a computer sets Standby (can be personal computer, server, or the network equipment etc.) perform the whole of each embodiment the method for the present invention or Part steps.And aforesaid storage medium includes: USB flash disk, portable hard drive, read only memory (ROM, Read-Only Memory), Random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store program code Medium.
It should be noted that for aforesaid each method embodiment, in order to simplicity describes, therefore it is all expressed as a series of Combination of actions, but those skilled in the art should know, the present invention is not limited by described sequence of movement because According to the present invention, some step can use other order or carry out simultaneously.Secondly, those skilled in the art also should know Knowing, it might not be all this that embodiment described in this description belongs to preferred embodiment, involved action and module Bright necessary.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not has the portion described in detail in certain embodiment Point, may refer to the associated description of other embodiments.
It is more than the description of method and device to system start-up provided by the present invention, for those skilled in the art Member, according to the thought of the embodiment of the present invention, the most all will change, to sum up, and this theory Bright book content should not be construed as limitation of the present invention.

Claims (10)

1. the method for a system start-up, it is characterised in that described method includes:
Starting up's mobile terminal;
Judge whether the current starting up performed operation is that described mobile terminal is held after brush machine or factory reset first Starting up's operation of row;
If the described starting up's operation performed first, then perform .booting operation;
If not the described starting up's operation performed first, then skip described .booting operation.
Method the most according to claim 1, it is characterised in that if the described starting up's operation performed first, Then perform .booting operation to specifically include:
If the described starting up's operation performed first, then judge whether the current process run is preset finger daemon;
If described preset finger daemon, then perform described .booting operation;
If not described preset finger daemon, then skip described .booting operation.
Method the most according to claim 2, it is characterised in that described preset finger daemon includes: zygote process or Zygote64 process.
4. according to the method described in any one of claims 1 to 3, it is characterised in that the starting up that described judgement currently performs Whether operation is that starting up's operation that described mobile terminal performs after brush machine or factory reset first specifically includes:
Judge whether preset system property value is preset value;
If described preset value, it is determined that the current starting up's operation performed is that described mobile terminal at brush machine or recovers Starting up's operation that factory performs after arranging first;
If not described preset value, it is determined that the current starting up's operation performed is not that described mobile terminal is at brush machine or extensive The starting up's operation performed first after multiple Default Value.
Method the most according to claim 4, it is characterised in that if described preset system property value is persist attribute Value, the most described value judging whether preset system property value is preset specifically includes:
Judge whether described persist property value is null value.
6. according to the method described in any one of claims 1 to 3, it is characterised in that the starting up that described judgement currently performs Whether operation is that starting up's operation that described mobile terminal performs after brush machine or factory reset first specifically includes:
Judge whether system exists preset file;
If there is preset file, it is determined that the current starting up's operation performed is that described mobile terminal at brush machine or recovers Starting up's operation that factory performs after arranging first;
If there is not preset file, it is determined that the current starting up's operation performed is not that described mobile terminal is at brush machine or extensive The starting up's operation performed first after multiple Default Value.
7. the device of a system start-up, it is characterised in that described device includes:
Start module, for starting up's mobile terminal;
Whether judge module, be that described mobile terminal dispatches from the factory at brush machine or recovery for judging the starting up currently performed operation The starting up's operation performed first after arranging;
Perform module, if judging that the current starting up performed operation is the described start performed first for described judge module Start operation, then perform .booting operation;
Described execution module, if being additionally operable to described judge module to judge that the current starting up performed operation is not described to hold first Starting up's operation of row, then skip described .booting operation.
Device the most according to claim 7, it is characterised in that
Described judge module, if the starting up's operation being additionally operable to current execution is the described starting up performed first operation, Then judge whether the current process run is preset finger daemon, and wherein, described preset finger daemon includes: zygote enters Journey or zygote64 process;
Described execution module, if being additionally operable to described preset finger daemon, then performs described .booting operation;If not institute State preset finger daemon, then skip described .booting operation.
Device the most according to claim 7, it is characterised in that described judge module includes:
First judges submodule, for judging whether preset system property value is preset value;If described preset value, then Determine that the current starting up performed operation is the start that described mobile terminal performs after brush machine or factory reset first Start operation;If not described preset value, it is determined that the current starting up's operation performed is not that described mobile terminal is at brush The starting up's operation performed first after machine or factory reset;
Wherein, described preset system property value is persist property value, and the most described first judges submodule, specifically for sentencing Whether disconnected described persist property value is null value.
Device the most according to claim 9, it is characterised in that described judge module also includes:
Second judges submodule, for judging whether to exist in system preset file;If there is preset file, it is determined that when Starting up's operation of front execution is the starting up behaviour that described mobile terminal performs after brush machine or factory reset first Make;If there is not preset file, it is determined that the current starting up's operation performed is not that described mobile terminal is at brush machine or extensive The starting up's operation performed first after multiple Default Value.
CN201610523371.7A 2016-07-04 2016-07-04 The method and device of system starting Expired - Fee Related CN106126377B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610523371.7A CN106126377B (en) 2016-07-04 2016-07-04 The method and device of system starting

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610523371.7A CN106126377B (en) 2016-07-04 2016-07-04 The method and device of system starting

Publications (2)

Publication Number Publication Date
CN106126377A true CN106126377A (en) 2016-11-16
CN106126377B CN106126377B (en) 2019-07-02

Family

ID=57469381

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610523371.7A Expired - Fee Related CN106126377B (en) 2016-07-04 2016-07-04 The method and device of system starting

Country Status (1)

Country Link
CN (1) CN106126377B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108491229A (en) * 2018-02-01 2018-09-04 烽火通信科技股份有限公司 A kind of method that Femtocell equipment safeties start
CN108595212A (en) * 2018-03-30 2018-09-28 上海康斐信息技术有限公司 A kind of method and wireless router of quick startup wireless router
CN109151809A (en) * 2018-07-12 2019-01-04 维沃移动通信有限公司 A kind of mobile terminal detection method and mobile terminal
CN109445994A (en) * 2018-11-12 2019-03-08 Oppo广东移动通信有限公司 Starting processing method, device, terminal device and storage medium
CN112463231A (en) * 2020-11-25 2021-03-09 深圳小辣椒科技有限责任公司 Method, device and system for skipping Android boot guide and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06168047A (en) * 1992-02-27 1994-06-14 Tandy Corp Method and apparatus for setting of timing reference of computer apparatus
US5548713A (en) * 1991-10-15 1996-08-20 Bull Hn Information Systems Inc. On-board diagnostic testing
CN102375753A (en) * 2011-10-08 2012-03-14 宇龙计算机通信科技(深圳)有限公司 Mobile terminal application presetting method and mobile terminal
CN105138382A (en) * 2015-09-24 2015-12-09 广东欧珀移动通信有限公司 Method for upgrading Android system and terminal
CN105549958A (en) * 2015-12-02 2016-05-04 海信集团有限公司 Embedded system starting method and intelligent terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5548713A (en) * 1991-10-15 1996-08-20 Bull Hn Information Systems Inc. On-board diagnostic testing
JPH06168047A (en) * 1992-02-27 1994-06-14 Tandy Corp Method and apparatus for setting of timing reference of computer apparatus
CN102375753A (en) * 2011-10-08 2012-03-14 宇龙计算机通信科技(深圳)有限公司 Mobile terminal application presetting method and mobile terminal
CN105138382A (en) * 2015-09-24 2015-12-09 广东欧珀移动通信有限公司 Method for upgrading Android system and terminal
CN105549958A (en) * 2015-12-02 2016-05-04 海信集团有限公司 Embedded system starting method and intelligent terminal

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108491229A (en) * 2018-02-01 2018-09-04 烽火通信科技股份有限公司 A kind of method that Femtocell equipment safeties start
CN108595212A (en) * 2018-03-30 2018-09-28 上海康斐信息技术有限公司 A kind of method and wireless router of quick startup wireless router
CN109151809A (en) * 2018-07-12 2019-01-04 维沃移动通信有限公司 A kind of mobile terminal detection method and mobile terminal
CN109151809B (en) * 2018-07-12 2021-12-03 维沃移动通信有限公司 Mobile terminal detection method and mobile terminal
CN109445994A (en) * 2018-11-12 2019-03-08 Oppo广东移动通信有限公司 Starting processing method, device, terminal device and storage medium
CN112463231A (en) * 2020-11-25 2021-03-09 深圳小辣椒科技有限责任公司 Method, device and system for skipping Android boot guide and storage medium

Also Published As

Publication number Publication date
CN106126377B (en) 2019-07-02

Similar Documents

Publication Publication Date Title
CN106126377A (en) The method and device of system start-up
CN105528229B (en) Improve the method and device that mobile terminal first powers on speed
CN105045639A (en) Mobile terminal downloading method and device and mobile terminal
CN105354093A (en) Memory management method and mobile terminal
CN104935744A (en) Verification code display method, verification code display device and mobile terminal
CN106062763A (en) Method and apparatus for displaying application and picture, and electronic device
CN105677335A (en) Method and device for increasing first starting speed of mobile terminal
CN106341259A (en) Fault information report method and device
CN106406675A (en) Fast method for running application programs and terminal equipment
CN106445609A (en) Automatic updating method of application program and mobile terminal
CN106406940A (en) System upgrading method, system upgrading apparatus, and terminal
CN105554752A (en) Hotspot sharing method and related equipment
CN111523095A (en) Cross-device interaction method and terminal device
CN106254791A (en) The startup method of photographic head and mobile terminal
CN106406947B (en) The method and device that prevents system service process from restarting, mobile terminal
CN105262878A (en) Processing method of automatic call recording and mobile terminal
CN106294707A (en) A kind of countdown information output intent and device
CN106331258A (en) Call methods, call apparatus and call system
CN105653195B (en) Screenshotss method and mobile terminal
CN106105168A (en) A kind of method, terminal and portable electric appts calling transfer
CN103812996A (en) Information prompting method and apparatus, and terminal
CN105933492A (en) Phone number obtaining method and device
CN105872980A (en) Method and device for scanning wireless network signal
CN108363628A (en) Message treatment method, device, terminal and computer readable storage medium
CN105808061A (en) Desktop arranging method and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190702