Specific embodiment
In order to make the invention's purpose, features and advantages of the invention more obvious and easy to understand, below in conjunction with the present inventionAttached drawing in embodiment, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described realityApplying example is only a part of the embodiment of the present invention, and not all embodiments.Based on the embodiments of the present invention, those skilled in the artMember's every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Fig. 1 shows a kind of structural block diagram of mobile terminal.Mobile terminal provided in an embodiment of the present invention, which is nullified, applies journeyThe method of sequence can be applied in mobile terminal 10 as shown in Figure 1, and mobile terminal 10 can be, but not limited to include: to be equipped withAndroid (Android) or smart phone, tablet computer, the intelligent wearable device of similar operations system etc..
As shown in Figure 1, mobile terminal 10 includes memory 101, storage control 102, one or more (is only shown in figureOne) processor 103, Peripheral Interface 104, radio-frequency module 105, key module 106, audio-frequency module 107 and Touch Screen108.These components are mutually communicated by one or more communication bus/signal wire 109.
It is appreciated that structure shown in FIG. 1 is only to illustrate, the structure of mobile terminal is not caused to limit.It is mobile wholeEnd 10 may also include than shown in Fig. 1 more perhaps less component or with the configuration different from shown in Fig. 1.It is shown in FIG. 1Each component can be realized using hardware, software, or its combination.
Memory 101 can be used for storing software program and module, as the raising mobile terminal in the embodiment of the present invention is firstCorresponding program instruction/the module of the method and device of secondary starting up speed, processor 103 are stored in memory 101 by operationSoftware program and module realize above-mentioned raising mobile terminal thereby executing various function application and data processingThe method for first powering on speed.
Memory 101 may include high speed random access memory, may also include nonvolatile memory, such as one or more magneticProperty storage device, flash memory or other non-volatile solid state memories.In some instances, memory 101 can further compriseThe memory remotely located relative to processor 103, these remote memories can pass through network connection to mobile terminal 10.OnThe example for stating network includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.Processor 103And other possible components can carry out the access of memory 101 under the control of storage control 102.
Various input/output devices are couple CPU and memory 101 by Peripheral Interface 104.The operation of processor 103 is depositedVarious softwares, instruction in reservoir 101 are to execute the various functions of mobile terminal 10 and carry out data processing.
In some embodiments, Peripheral Interface 104, processor 103 and storage control 102 can be in one single chipsIt realizes.In some other example, they can be realized by independent chip respectively.
Radio-frequency module 105 is used to receive and transmit electromagnetic wave, realizes the mutual conversion of electromagnetic wave and electric signal, thus withCommunication network or other equipment are communicated.Radio-frequency module 105 may include various existing for executing the electricity of these functionsCircuit component, for example, antenna, RF transceiver, digital signal processor, encryption/deciphering chip, subscriber identity module (SIM) card,Memory etc..Radio-frequency module 105 can be with the wireless network progress of various networks such as internet, intranet, preset typeCommunication is communicated by the wireless network of preset type with other equipment.The wireless network of above-mentioned preset type can wrapInclude cellular telephone networks, WLAN or Metropolitan Area Network (MAN).Various communications can be used in the wireless network of above-mentioned preset typeStandard, agreement and technology, including but not limited to global system for mobile communications (Global System for MobileCommunication, GSM), enhanced mobile communication technology (Enhanced Data GSM Environment, EDGE) is wideBand Code Division Multiple Access (Wideband Code Division Multiple Access, W-CDMA), Code Division Multiple Access(Code Division Access, CDMA), time division multiple access technology (Time Division Multiple Access, TDMA),Bluetooth, adopting wireless fidelity technology (Wireless-Fidelity, WiFi) (such as American Institute of Electrical and Electronics Engineers's standard IEEE802.11a, IEEE 802.11b, IEEE802.11g and/or IEEE 802.11n), the networking telephone (Voice overInternet Protocal, VoIP), worldwide interoperability for microwave accesses (Worldwide Interoperability forMicrowave Access, Wi-Max), other for mail, instant messaging and short message agreement and any other is suitableCommunications protocol.
Key module 106 provides the interface that is inputted to mobile terminal of user, user can by press it is different byKey is so that mobile terminal 10 executes different functions.
Audio-frequency module 107 provides a user audio interface, may include one or more microphones, one or more raisesSound device and voicefrequency circuit.Voicefrequency circuit receives voice data from Peripheral Interface 104, and voice data is converted to power information,Power information is transmitted to loudspeaker.Power information is converted to the sound wave that human ear can be heard by loudspeaker.Voicefrequency circuit is also from microphonePlace receive power information, convert electrical signals to voice data, and by data transmission in network telephony into Peripheral Interface 104 to carry out into oneThe processing of step.Audio data can obtain from memory 101 or through radio-frequency module 105.In addition, audio data can also be withIt stores into memory 101 or is sent by radio-frequency module 105.In some instances, audio-frequency module 107 may also includeOne earphone broadcasts hole, for providing audio interface to earphone or other equipment.
Touch Screen 108 provides an output and input interface simultaneously between mobile terminal and user.Specifically, touch-controlScreen 108 shows video output to user, and the content of these videos output may include text, figure, video and its any groupIt closes.Some outputs are the result is that correspond to some user interface objects.Touch Screen 108 also receives the input of user, such as userThe gesture operations such as click, sliding, so that user interface object responds the input of these users.Detect user's inputTechnology can be based on resistance-type, condenser type or any other possible touch control detection technology.108 display unit of Touch ScreenSpecific example include but is not limited to liquid crystal display or light emitting polymer displays.
Referring to Fig. 2, Fig. 2 is the method that the raising mobile terminal that first embodiment of the invention provides first powers on speedImplementation process schematic diagram.This method can be applied in mobile terminal 10 as shown in Figure 1, mainly comprise the steps that
S201, triggering brush machine task obtain brush machine packet, include system image file and user data mirror image in brush machine packetFile;
Mobile terminal receives the brush machine instruction of user's triggering, or receives the brush machine instruction that computer is sent, and triggers brush machineTask receives the data file in the brush machine packet that computer is sent, or downloads brush machine packet from server and be stored in RAM card.Brush machine refers to for mobile terminal repacking operation system.Specifically, the operating system of refitting can be, but not limited to include: various versionsAndroid system or similar operations system.Brush machine packet is the compressing file packet for brush machine, wherein can be, but not limited to encapsulate: system image file (system.img file) and user data image file (userdata.img file).WhereinSystem.img file includes the files such as main packet related with operating system, library.Userdata.img file includes userData file, such as installation kit of the application program of prepackage.
S202, the first subregion that the system data in system image file is written to mobile terminal, by user data mirror imageSecond subregion of the installation kit write-in mobile terminal for the application program pre-installed in file;
After obtaining brush machine packet, automatically into brush machine mode, such as recovery mode or fastfoot mode, using presetBrush machine tool is according to the brush machine configuration file in brush machine packet, by first of the system data write-in mobile terminal in system.imgSubregion, such as system data partition, by the installation kit write-in mobile terminal for the application program pre-installed in user data image fileSecond subregion, such as userdata user data subregion.
Wherein, for different types of operating system, the format of the installation kit of corresponding application program is not also identical, withFor android system, the format of the application program installation kit of android system is APK (AndroidPackage, AndroidInstallation kit) format, APK file is actually the ZIP file of a compression, is after the engineering of Android SDK compiling is packagedThe installation procedure file formed, including resource file, program global configuration file and DEX file etc..DEX textPart is the full name of Dalvik VM executes (Dalvik virtual machine executable) file, i.e. Android Dalvik virtual machineExecutable program.
S203, restart mobile terminal, the virtual machine executable program file in the installation kit of application program extracted after booting,Virtual machine executable program file is converted to the target program file of specified format, and is stored in the second subregion;
With the development of virtual machine technique, more and more different types of virtual machines are developed, the Android of different editionsThe virtual machine that system uses also is changed therewith.The format phase not to the utmost for the executable program that different virtual machines can parseTogether, default to use ART (Android runtime) virtual machine such as since Android 5.0, but ART is virtualMachine can only parse OAT file.OAT file is a kind of ELF file format that Android is privately owned, it not only includes from DEX fileThe local machine instruction of translation, also includes original DEX file content, this allows for original without recompilatingAPK can allow it normally to run inside ART, that is, have no need to change original APK programming interface.And AndroidVersion before 5.0 uses Dalvik virtual machine, and Dalvik virtual machine can only parse DEX file.But at present mostWhat is encapsulated in number APK file is still DEX file.Therefore, under the android system environment of highest version, journey is applied in installationIt needs to format the DEX file in APK file before sequence.Even if it is to be appreciated that the void that mobile terminal is currently installed onQuasi- machine can parse DEX file, but due to extract DEX file be also required to the regular hour and the DEX file volume that extracts compared withGreatly, the time that extraction document is saved when therefore executing program installation task to first power on after factory, space hold is reduced,Operational efficiency is improved, also can extract DEX file and is optimized.
Mobile terminal restarts after brush machine operates, and is extracted in the installation kit of each application program after poweringVirtual machine executable program file, and according to preset transformation rule, virtual machine executable program file is converted to specifiedOptimize the target program file of format, or is converted to the mesh of the analysable corresponding format of the currently used virtual machine of mobile terminalMark program file.Target program file is storable in the second subregion, as user data userdata subregion /data/Dalvick-cache catalogue.
S204, into Disk Mode, the image file of the second subregion is generated, by user data image file in brush machine packetReplace with the image file of the second subregion;
Into Disk Mode, using brush machine tool, reads the data of entire second subregion and generate the mirror image of the second subregionFile userdata_bak.img deletes the former userdata.img in brush machine packet, userdata_bak.img is renamed asBrush machine packet is written after userdata.img.
S205, the brush machine packet replaced according to the preset way of output, output by file, so that mobile terminal is using warpThe brush machine packet for crossing file replacement, after carrying out brush machine operation, when restarting booting, operational objective program file, to install application program.
To be wrapped by the brush machine of file replacement and reach server or be sent to computer, so as to mobile terminal or otherIt is used when mobile terminal brush machine.Mobile terminal is instructed according to the brush machine of computer, in the brush machine packet for passing through file replacement using thisAfter carrying out brush machine operation, when restarting booting, this can be passed through in brush machine packet of file replacement when due to brush machineMobile terminal is written in the target program file that userdata.img includes, so mobile terminal can directly run target program textPart, to remove the operation of Program transformation from, improves starting up speed to install application program.
It should be noted that the operation of export mirror image and file replacement can be realized using firstboot.txt, andFirstboot.txt is only used once, and specifically, in compiling, copied files firstboot.txt is brushed to data data subregionRestarted after mobile terminal-opening enters the desktop of mobile terminal after machine, judges that data/firstboot.txt whether there is, ifIn the presence of, then data/firstboot.txt is deleted, and automatically into Disk Mode, execute image file generation and replacement operation,To update brush machine packet.Due to deleting data/firstboot.txt, updates after brush machine packet restarts again, will not enter back intoDisk Mode.
The method provided in this embodiment for improving mobile terminal and first powering on speed, will when by restarting booting after brush machineVirtual machine executable program file in the installation kit of application program is converted to the target program file of specified format, generates storageThere is the image file of the second subregion of the target program file, and uses the user data mirror in image file replacement brush machine packetAs file, so that mobile terminal is after a test, or restarted out after carrying out brush machine operation using the brush machine packet by file replacementWhen machine, it is able to direct operational objective program file, to install application program, eliminates the operation of Program transformation, therefore compared toThe prior art, the present invention can accelerate mobile terminal and first power on speed, improve booting efficiency.
Referring to Fig. 3, Fig. 3 is the method that the raising mobile terminal that second embodiment of the invention provides first powers on speedImplementation process schematic diagram.This method can be applied in mobile terminal 10 shown in FIG. 1, mainly comprise the steps that
S301, triggering brush machine task obtain brush machine packet, include system image file and user data mirror image in brush machine packetFile;
S302, the first subregion that the system data in system image file is written to mobile terminal, by user data mirror imageSecond subregion of the installation kit write-in mobile terminal for the application program pre-installed in file;
Step S301 and S302 is identical as step S201 and S202, specifically refers to the corresponding contents in first embodiment,Details are not described herein again.
S303, restart mobile terminal, the virtual machine executable program file in the installation kit of application program is extracted after booting;
Whether S304, the virtual machine for judging that system uses after brush machine can parse virtual machine executable program file;
With the development of virtual machine technique, the virtual machine of more and more types is developed, the android system of different editionsThe virtual machine technique used therewith is also changed.The format for the executable program that different virtual machines can parse is also not to the utmostIt is identical, such as since Android 5.0, it is default to use ART (Android runtime) virtual machine, but ART is emptyQuasi- machine can only parse OAT file, and the version before Android5.0 uses Dalvik virtual machine, and Dalvik virtual machine is onlyDEX file can be parsed.It is according to the virtual machine that the format of the virtual machine executable program file extracted can determine whether that system usesNo support parses the virtual machine executable program file.
If S305, can not parse, virtual machine executable program file is converted into the correspondence that virtual machine can parseThe target program file of format is simultaneously stored in the second subregion;
If the virtual machine executable program file that the virtual machine that system uses does not support parsing to extract, by the virtual machineExecutable program file is converted to the program file for the format that virtual machine can parse, and DEX file is such as converted to OAT file,Be then stored in user data userdata subregion /data/dalvick-cache catalogue.
If S306, can parse, virtual machine executable program file is converted to the target program file of optimization formatAnd it is stored in the second subregion;
If the virtual machine executable program file that the virtual machine that system uses supports parsing to extract, can by the virtual machineExecution is converted to the program file of optimization format, and DEX file is such as converted to ODEX file, is then stored in userData userdata subregion /data/dalvick-cache catalogue.ODEX file be extracted in APK run textClasses.DEX file in APK is optimized one .DEX file of generation by DEX optimization process and is individually stored by part.
As one embodiment of the invention, DEX file directly can also be converted into OAT file, and store without judgementIn the second subregion.
S307, into Disk Mode, the image file of the second subregion is generated, by user data image file in brush machine packetReplace with the image file of the second subregion;
Step S307 is identical as step S204, specifically refers to the corresponding contents in first embodiment, details are not described herein again.
S308, the brush machine that will pass through file replacement, which be wrapped, reaches server.
The above-mentioned brush machine packet by file replacement can be returned to the calculating of connection after executing step S307 by mobile terminalThen machine is uploaded to server by computer, or when restarting booting after executing step S307, access internet,The above-mentioned brush machine by file replacement is wrapped and reaches server, so that other mobile terminals download the brush for passing through file replacementMachine packet, and brush machine operation is carried out using the brush machine packet by file replacement, when restarting booting after brush machine, due in the brush machine packetOAT file or ODEX file comprising application program, so other mobile terminals can directly be run according to brush machine packet write-inThe OAT file or ODEX file of application program, carry out the installation of application program, thus the step of removing Program transformation from, raising is openedMachine speed.
S309, reception brush machine instruction carry out brush machine operation using the brush machine packet by file replacement;
S310, when detect brush machine operation at the end of, restart mobile terminal, operational objective program file after booting, with peaceFill application program.
The brush machine instruction for receiving user's triggering, the brush machine packet replaced from server downloading by file, and utilize the processThe brush machine packet of file replacement carries out brush machine operation, and the system data write-in in the system image file in the brush machine packet is mobile eventuallyFirst subregion at end, the APK file for the application program pre-installed in user data image file and the APK file is correspondingSecond subregion of OAT file or ODEX file write-in mobile terminal.Mobile terminal is after terminating the operation of brush machine, restarting, andIt directly runs OAT file after powering or ODEX file will be in APK file due to no longer needing to be implemented to install application programDEX file be converted to the operation of OAT file or ODEX file, so the speed first powered on after mobile terminal brush machine can be improvedDegree improves user experience, enhancing product viscosity.
The method provided in this embodiment for improving mobile terminal and first powering on speed, will when by restarting booting after brush machineVirtual machine executable program file in the installation kit of application program is converted to the target program file of specified format, generates storageThere is the image file of the second subregion of the target program file, and uses the user data mirror in image file replacement brush machine packetAs file, so that mobile terminal is after a test, or restarted out after carrying out brush machine operation using the brush machine packet by file replacementWhen machine, it is able to direct operational objective program file, to install application program, eliminates the operation of Program transformation, therefore compared toThe prior art, the present invention can accelerate mobile terminal and first power on speed, improve booting efficiency.
Referring to Fig. 4, Fig. 4 is the device that the raising mobile terminal that third embodiment of the invention provides first powers on speedStructural schematic diagram, for ease of description, only parts related to embodiments of the present invention are shown.The exemplary raising of Fig. 4 is mobile eventuallyThe raising mobile terminal that the device that end first powers on speed can be previous embodiment offer first powers on holding for the method for speedRow main body, can be with a functional module in mobile terminal or mobile terminal.The exemplary raising mobile terminal of Fig. 4 is opened for the first timeThe device of machine speed specifically includes that and obtains module 401, brush machine module 402, file conversion module 403, brush machine packet update module404 and output module 405.Detailed description are as follows for each functional module:
Obtain module 401, for triggering brush machine task, obtain brush machine packet, in the brush machine packet comprising system image file withAnd user data image file;
Brush machine module 402 will for the system data in the system image file to be written to the first subregion of mobile terminalThe second subregion of the mobile terminal is written in the installation kit for the application program pre-installed in the user data image file;
File conversion module 403 extracts the void in the installation kit of the application program for restarting the mobile terminal after bootingQuasi- machine executable program file, is converted to the target program file of specified format for the virtual machine executable program file, and depositStorage is in second subregion;
Brush machine packet update module 404 generates the image file of second subregion, in the brush machine for entering Disk ModeThe user data image file is replaced with to the image file of second subregion in packet;
Output module 405, for according to the preset way of output, the brush machine packet of output by file replacement, so that shouldMobile terminal when restarting booting, runs the target journey after carrying out brush machine operation using the brush machine packet by file replacementPreface part, to install the application program.
Specifically, it obtains module 401 and receives the brush machine instruction of user's triggering, or receive the brush machine that computer is sent and refer toIt enables, triggers brush machine task, receive the data file in the brush machine packet that computer is sent, or download brush machine packet from server and storeIn RAM card.Brush machine module 402 enters brush machine mode and utilizes preset brush such as recovery mode or fastfoot modeMachine tool is mobile eventually by the system data write-in in the system.img in brush machine packet according to the brush machine configuration file in brush machine packetFirst subregion at end, such as system data partition are mobile eventually by the installation kit write-in for the application program pre-installed in userdata.imgSecond subregion at end, such as userdata user data subregion.File conversion module 403 brushes out operation in the end of brush machine module 402Afterwards, restart mobile terminal, the virtual machine executable program file in the installation kit of application program is extracted after booting, it can by virtual machineExecution is converted to the target program file of specified format, and is stored in the second subregion, such as file conversion module 403Virtual machine executable program DEX file can be converted to OAT file or be converted to the ODEX file of optimization format.Brush machine packetUpdate module 404 enters Disk Mode after file conversion module 403 completes file conversion operation, reads entire second subregionData and the image file userdata_bak.img for generating the second subregion delete the former userdata.img in brush machine packet, willBrush machine packet is written after being renamed as userdata.img in userdata_bak.img, to update the brush machine packet.Output module 405 will moreThe brush machine packet by file replacement after new is exported according to the preset way of output, so that mobile terminal is using by textThe brush machine packet of part replacement, after carrying out brush machine operation, when restarting booting, operational objective program file, to install application program.
It should be noted that the operation of export mirror image and file replacement can be realized using firstboot.txt, andFirstboot.txt is only used once, and specifically, in compiling, copied files firstboot.txt is brushed to data data subregionMachine packet update module 404 restarts the desktop that mobile terminal-opening enters mobile terminal after brush machine module 402 completes the operation of brush machineAfterwards, judge that data/firstboot.txt whether there is, if it is present deleting data/firstboot.txt, and in fileAutomatically into Disk Mode after the completion file conversion operation of conversion module 403, image file generation and replacement operation are executed, with moreNew brush machine packet.Due to deleting data/firstboot.txt, updates after brush machine packet restarts again, disk will not be entered back intoMode.
It should be noted that in the exemplary embodiment for improving the device that mobile terminal first powers on speed of above-mentioned Fig. 4,The division of each functional module is merely illustrative of, and can according to need in practical application, for example, corresponding hardware configuration requirement orThe convenient of the realization of person's software considers, and above-mentioned function distribution is completed by different functional modules, i.e., by the download apparatusInternal structure is divided into different functional modules, to complete all or part of the functions described above.Moreover, practical applicationIn, the corresponding functional module in the present embodiment can be by corresponding hardware realization, can also execute phase by corresponding hardwareThe software answered completes (each embodiment that this specification provides can all repeat no more below using foregoing description principle).
The device provided in an embodiment of the present invention for improving mobile terminal and first powering on speed, by restarting booting after brush machineWhen the virtual machine executable program file in the installation kit of application program is converted to the target program file of specified format, generateIt is stored with the image file of the second subregion of the target program file, and uses the number of users in image file replacement brush machine packetAccording to image file, so that mobile terminal is after a test, or using the brush machine packet by file replacement, after carrying out brush machine operation, weightWhen breakdown machine, it is able to direct operational objective program file, to install application program, eliminates the operation of Program transformation, therefore phaseCompared with the prior art, the present invention can accelerate mobile terminal and first power on speed, improve booting efficiency.
Referring to Fig. 5, Fig. 5 is the device that the raising mobile terminal that fourth embodiment of the invention provides first powers on speedStructural schematic diagram, for ease of description, only parts related to embodiments of the present invention are shown.The exemplary raising of Fig. 5 is mobile eventuallyThe raising mobile terminal that the device that end first powers on speed can be previous embodiment offer first powers on holding for the method for speedRow main body can be a functional module in mobile terminal or mobile terminal.Third embodiment of the invention shown in Fig. 4It on the basis of the raising mobile terminal of offer first powers on the device of speed, is different from the third embodiment, implements the 4thIn example, device as shown in Figure 5 further comprises: command reception module 501 restarts module 502, installation module 503, firstTransform subblock 4031, judging submodule 4032, the second transform subblock 4033 and third transform subblock 4034.Each functionDetailed description are as follows for module:
Further, the device further include:
Command reception module 501, for receiving the instruction of brush machine;
Brush machine module 402 is also used to pass through file using this according to the received brush machine instruction of command reception module 501The brush machine packet of replacement, carries out brush machine operation;
Module 502 is restarted, for restarting the mobile terminal at the end of detecting brush machine operation;
Module 503 is installed, for running the target program file after being switched on, to install the application program.
Further, which is DEX file, then file conversion module 403 includes: first turnSubmodule 4031 is changed, for the DEX file to be converted OAT file.
Further, file conversion module 403 further include:
Judging submodule 4032 can be held for judging whether system uses after brush machine virtual machine can parse the virtual machineLine program file;
Second transform subblock 4033, if being that can not parse for 4032 judging result of judging submodule, by the voidQuasi- machine executable program file is converted to the target program file for the correspondence format that the virtual machine can parse;
Third transform subblock 4034, it is if being that can parse for 4032 judging result of judging submodule, this is virtualMachine executable program file is converted to the target program file of optimization format.
Further, output module 405, the brush machine for being also used to pass through this file replacement, which is wrapped, reaches server.
Specifically, it obtains module 401 and receives the brush machine instruction of user's triggering, or receive the brush machine that computer is sent and refer toIt enables, triggers brush machine task, receive the data file in the brush machine packet that computer is sent, or download brush machine packet from server and storeIn RAM card.Brush machine module 402 enters brush machine mode and utilizes preset brush such as recovery mode or fastfoot modeMachine tool is mobile eventually by the system data write-in in the system.img in brush machine packet according to the brush machine configuration file in brush machine packetFirst subregion at end, such as system data partition are mobile eventually by the installation kit write-in for the application program pre-installed in userdata.imgSecond subregion at end, such as userdata user data subregion.File conversion module 403 brushes out operation in the end of brush machine module 402Afterwards, restart mobile terminal, the virtual machine executable program file in the installation kit of application program is extracted after booting, pass through judgementWhether module 4032, the virtual machine for judging that system uses after brush machine can parse the virtual machine executable program file, if judgement4032 judging result of submodule is that can not parse, then the second transform subblock 4033 turns the virtual machine executable program fileIt is changed to the target program file for the correspondence format that the virtual machine can parse, DEX file is such as converted into OAT file and stores theTwo subregions, if 4032 judging result of judging submodule is that can parse, third transform subblock 4034 can hold the virtual machineLine program file is converted to the target program file of optimization format, and DEX file is such as converted to ODEX file and stores second pointArea.Brush machine packet update module 404 enters Disk Mode after file conversion module 403 completes file conversion operation, reads entireThe data of second subregion and the image file userdata_bak.img for generating the second subregion delete the original in brush machine packetBrush machine packet is written after userdata_bak.img is renamed as userdata.img, to update the brush machine packet in userdata.img.The updated brush machine by file replacement is wrapped and reaches server by output module 405, so that mobile terminal can be by from clothesBusiness device is downloaded and this is used to pass through the brush machine packet of file replacement, after carrying out brush machine operation, when restarting booting, and operational objective program textPart, to install application program.Further, which is DEX file, and file conversion module 403 canWithout judgement, but directly by the first transform subblock 4031, which is converted into OAT file.
Further, when mobile terminal needs brush machine again, command reception module 501 is received that user triggers or is calculatedThe brush machine instruction that machine is sent, brush machine module 402 is instructed according to the received brush machine of command reception module 501, using this by textThe brush machine packet of part replacement, carries out brush machine operation, at the end of detecting brush machine operation, restarts module 502 and restarts the movementTerminal, installation module 503 runs the target program file after powering, to install the application program.It is answered due to being installed after bootingWhen with program, it is no longer necessary to the operation that the DEX file in APK file is converted to OAT file or ODEX file is executed, so canThe speed first powered on after mobile terminal brush machine is improved, user experience, enhancing product viscosity are improved.
The device provided in an embodiment of the present invention for improving mobile terminal and first powering on speed, by restarting booting after brush machineWhen the virtual machine executable program file in the installation kit of application program is converted to the target program file of specified format, generateIt is stored with the image file of the second subregion of the target program file, and uses the number of users in image file replacement brush machine packetAccording to image file, so that mobile terminal is after a test, or using the brush machine packet by file replacement, after carrying out brush machine operation, weightWhen breakdown machine, it is able to direct operational objective program file, to install application program, eliminates the operation of Program transformation, therefore phaseCompared with the prior art, the present invention can accelerate mobile terminal and first power on speed, improve booting efficiency.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through itIts mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the module, onlyOnly a kind of logical function partition, there may be another division manner in actual implementation, such as multiple module or components can be tiedAnother system is closed or is desirably integrated into, or some features can be ignored or not executed.Another point, it is shown or discussedMutual coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or logical of device or moduleLetter connection can be electrical property, mechanical or other forms.
The module as illustrated by the separation member may or may not be physically separated, aobvious as moduleThe component shown may or may not be physical module, it can and it is in one place, or may be distributed over multipleOn network module.Some or all of the modules therein can be selected to realize the mesh of this embodiment scheme according to the actual needs's.
It, can also be in addition, each functional module in each embodiment of the present invention can integrate in a processing moduleIt is that modules physically exist alone, can also be integrated in two or more modules in a module.Above-mentioned integrated mouldBlock both can take the form of hardware realization, can also be realized in the form of software function module.
If the integrated module is realized in the form of software function module and sells or use as independent productWhen, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantiallyThe all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other wordsIt embodies, which is stored in a storage medium, including some instructions are used so that a computerEquipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the present inventionPortion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-OnlyMemory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journeyThe medium of sequence code.
It should be noted that for the various method embodiments described above, describing for simplicity, therefore, it is stated as a series ofCombination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described becauseAccording to the present invention, certain steps can use other sequences or carry out simultaneously.Secondly, those skilled in the art should also knowIt knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules might not all be this hairNecessary to bright.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodimentPoint, it may refer to the associated description of other embodiments.
The above are to it is provided by the present invention it is a kind of improve mobile terminal first power on speed method and device description,For those skilled in the art, thought according to an embodiment of the present invention, has in specific embodiments and applicationsChange place, to sum up, the contents of this specification are not to be construed as limiting the invention.