CN106528113A - File compiling method and apparatus - Google Patents
File compiling method and apparatus Download PDFInfo
- Publication number
- CN106528113A CN106528113A CN201610941395.4A CN201610941395A CN106528113A CN 106528113 A CN106528113 A CN 106528113A CN 201610941395 A CN201610941395 A CN 201610941395A CN 106528113 A CN106528113 A CN 106528113A
- Authority
- CN
- China
- Prior art keywords
- installation package
- package file
- file
- compiled
- operating system
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/73—Program documentation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
- G06F9/4451—User profiles; Roaming
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Library & Information Science (AREA)
- Stored Programmes (AREA)
Abstract
The invention relates to a file compiling method and apparatus. The method comprises the steps of detecting whether a to-be-compiled target installation package file exists or not when an operation system is upgraded and restarted; if the to-be-compiled target installation package file exists, detecting whether the target installation package file is an installation package file recorded in a preset list, wherein the preset list is used for recording installation package files needed to be compiled when the operation system is upgraded and restarted; and if the target installation package file is not the installation package file recorded in the preset list, adding the target installation package file to a preset queue, wherein the preset queue is used for recording installation package files not needed to be compiled when the operation system is restarted. According to the technical scheme, the situation that the installation package files not recorded in the preset list are compiled when the operation system is restarted can be avoided; the frequency of compiling the target installation package file when the operation system is restarted can be reduced; and the startup efficiency of the operation system can be improved.
Description
Technical field
It relates to field of terminal technology, more particularly to a kind of file compiling method and device.
Background technology
ARIXTRA (Android) system from being upgraded to after 5.0, by using ARIXTRA operational mode (Android
Runtime, referred to as ART patterns) running application program (APP), need APP corresponding ARIXTRA installation kit (Android
Package, referred to as APK) be compiled in advance machine code can operating file, i.e. odex files, cause every time by aerial
After (Over The Air, the referred to as OTA) technology of download is to the core component upgrading in Android system, installed in smart mobile phone
On third party APP need to reinstall in the process of smart mobile phone starting up, during reinstalling, need APK
File is compiled into the odex files of binary code, and as the compilation process takes very much, each APP can at most take rather
Clock, when the quantity of the third party APP installed on electronic equipment is more, whole compilation process will consume dozens of minutes, cause
The available machine time of smart mobile phone is long.
The content of the invention
For overcoming problem present in correlation technique, the embodiment of the present disclosure to provide a kind of file compiling method and device, use
To reduce the start duration of electronic equipment.
According to the first aspect of the embodiment of the present disclosure, there is provided a kind of file compiling method, including:
When operating system update and when the operating system is restarted, detect whether there is target installation kit text to be compiled
Part;
If there is the target installation package file to be compiled, detect whether the target installation package file is the presets list
The installation package file of middle record, described the presets list is used for record in the operating system update and the operating system is restarted
When need compiling installation package file;
If the target installation package file is not the installation package file recorded in described the presets list, the target is installed
APMB package is added in default queue, and the default queue is used for recording the peace that the operating system need not be compiled when restarting
Dress APMB package.
In one embodiment, the file compiling method may also include:
Detect the operating system whether in idle condition;
When the operating system is in idle condition, the installation package file in the default queue is compiled into and can be run
File.
In one embodiment, be compiled into can operating file for the installation package file by the default queue, it may include:
The compiling priority of the installation package file in the default queue is determined according to the corresponding classification of installation package file;
Installation package file in the default queue is compiled into according to the order of the compiling priority can operating file.
In one embodiment, be compiled into can operating file for the installation package file in the default queue, it may include:
Determine that the installation package file in the default queue is added to the time point in the default queue;
Installation package file in the default queue is compiled into according to the order of the time point can operating file.
In one embodiment, the file compiling method may also include:
Count the respective operation duration of whole third party applications that the operating system has been run;
Determine that operation duration sets each self-corresponding mark of third party application of digit before coming;
By each self-corresponding identification record of third party application of the front setting digit in described the presets list.
According to the second aspect of the embodiment of the present disclosure, there is provided a kind of file compilation device, including:
First detection module, is configured as operating system update and when the operating system is restarted, detects whether to deposit
In target installation package file to be compiled;
Second detection module, if being configured to the first detection module detects the presence of target installation kit text to be compiled
Part, detects that whether the target installation package file is the installation package file recorded in the presets list, and described the presets list is used for remembering
Record needs the installation package file of compiling in the operating system update and when the operating system is restarted;
Add module, if it is not described pre- for be configured to second detection module detecting the target installation package file
If the installation package file recorded in list, the target installation package file is added in default queue, the default queue is used
In recording the installation package file that the operating system need not be compiled when restarting.
In one embodiment, the file compilation device may also include:
Whether the 3rd detection module, be configured to detect the operating system in idle condition;
Collector, be configured as the 3rd detection module detect the operating system in idle condition when,
Installation package file in the default queue is compiled into can operating file.
In one embodiment, the collector may include:
First determination sub-module, after being configured to determine that the add module is processed according to the corresponding classification of installation package file
Described default queue in installation package file compiling priority;
First compiling submodule, is configured to for the installation package file in the default queue to determine son according to described first
The order of the compiling priority that module determines is compiled into can operating file.
In one embodiment, the collector may include:
Second determination sub-module, the installation kit being configured to determine that in the described default queue after the add module process
File is added to the time point in the default queue;
Second compiling submodule, is configured to for the installation package file in the default queue to determine son according to described second
The order of the time point that module determines is compiled into can operating file.
In one embodiment, the file compilation device may also include:
Statistical module, is configured to count the respective operation of whole third party applications that the operating system has been run
Duration;
Determining module, be configured to determine that the statistical module counts to the operation duration come before setting digit
The each self-corresponding mark of third party application;
Logging modle, is configured to the described front third party application pair for setting digit for determining the determining module
The installation package file answered is recorded in described the presets list.
According to the third aspect of the embodiment of the present disclosure, there is provided a kind of electronic equipment, including:
Processor;
For storing the memorizer of processor executable;
Wherein, the processor is configured to:
When operating system update and when the operating system is restarted, detect whether there is target installation kit text to be compiled
Part;
If there is the target installation package file to be compiled, detect whether the target installation package file is the presets list
The installation package file of middle record, described the presets list is used for record in the operating system update and the operating system is restarted
When need compiling installation package file;
If the target installation package file is not the installation package file recorded in described the presets list, the target is installed
APMB package is added in default queue, and the default queue is used for recording the peace that the operating system need not be compiled when restarting
Dress APMB package.
The technical scheme that embodiment of the disclosure is provided can include following beneficial effect:
By not being that the installation package file recorded in the presets list is added in default queue, it is to avoid in operating system weight
Installation package file when opening to being not recorded in the presets list is compiled, and reduces operating system and compiles target peace when restarting
The number of times of dress APMB package, improves operating system efficiency on startup.
Additionally, be compiled to presetting the installation package file in queue based on compiling priority, when the free time of operating system
In the case of the installation package file that the duration of state is insufficient to allow in default queue can be compiled, can be excellent based on compiling
First level guarantees that user needs most the application program for using and compiled as early as possible, so as to shorten the application program to be used such as user when
It is long.
Additionally, the order based on time point is compiled to presetting the installation package file in queue, when the sky of operating system
In the case of the installation package file that the duration of not busy state is insufficient to allow in default queue can be compiled, the time can be based on
During the order of point guarantees at first or is most recently recorded in default queue, installation package file is compiled, and improves User Defined and sets
Put the motility of compiling installation file bag.
Additionally, the third party application of setting digit is recorded in the presets list before by operation duration is come, can
So that the longer third party application of operation duration preferentially can be compiled.
Additionally, by the installation package file for needing addition is recorded in the presets list, can be according to the actual need of user
Ask addition arbitrarily to need the installation package file of preferential compiling, improve the motility that user priority processes third party application.
It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary and explanatory, not
The disclosure can be limited.
Description of the drawings
During accompanying drawing herein is merged in description and the part of this specification is constituted, show the enforcement for meeting the present invention
Example, and be used for explaining the principle of the present invention together with description.
Fig. 1 is the flow chart of the file compiling method according to an exemplary embodiment.
Fig. 2 is the flow chart of the file compiling method according to an exemplary embodiment one.
Fig. 3 is the flow chart of the file compiling method according to an exemplary embodiment two.
Fig. 4 is the flow chart of the file compiling method according to an exemplary embodiment three.
Fig. 5 is a kind of block diagram of the file compilation device according to an exemplary embodiment.
Fig. 6 is the block diagram of another kind of file compilation device according to an exemplary embodiment.
Fig. 7 is a kind of block diagram suitable for file compilation device according to an exemplary embodiment.
Specific embodiment
Here in detail exemplary embodiment will be illustrated, its example is illustrated in the accompanying drawings.Explained below is related to
During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment
Described in embodiment do not represent and the consistent all embodiments of the present invention.Conversely, they be only with as appended by
The example of consistent apparatus and method in terms of some described in detail in claims, the present invention.
Fig. 1 is the flow chart of the file compiling method according to an exemplary embodiment;This document Compilation Method can be with
Apply in terminal unit (for example:Smart mobile phone, panel computer) on, as shown in figure 1, this document Compilation Method is comprised the following steps
101-103:
In a step 101, when operating system update and when operating system is restarted, detect whether there is target to be compiled
Installation package file.
In one embodiment, operating system update can be the upgrading of some core components of operating system, can pass through OTA
Realize.In one embodiment, target installation package file can be the installation kit of user installation third party APP on an electronic device
File, the installation package file of the third party APP need to reinstall when operating system is restarted.In one embodiment, if not
There is target installation package file to be compiled, do not perform any operation.
In a step 102, if there is target installation package file to be compiled, whether detection target installation package file is default
The installation package file recorded in list;Wherein, the presets list is used for record in operating system update and when operating system is restarted
Need the installation package file of compiling.
In one embodiment, can be by the filename of target installation file bag and the installation kit text recorded in the presets list
The filename of part is compared, when there is the filename identical installation file bag with target installation package file in the presets list,
Determine target installation package file for the installation package file that records in the presets list, when in the presets list without and target installation file
During the filename identical installation package file of APMB package, determine that target installation package file is not the installation kit recorded in the presets list
File.
In one embodiment, when operating system is Android operation system, target installation package file is APK file, can be transported
Style of writing part is odex files, then APK file can be compiled into the odex files of binary code by calling dex2oat.
In one embodiment, if target installation package file is the installation package file recorded in the presets list, target is installed
APMB package is compiled into can operating file.Wherein, specifically how by target installation package file be compiled into can the correlation of operating file retouch
State and may refer to correlation technique, will not be described in detail herein.
In step 103, if target installation package file is not the installation package file recorded in the presets list, target is installed
APMB package is added in default queue, wherein, and default queue is used for recording the installation that operating system need not be compiled when restarting
APMB package.
In one embodiment, after default queue can be for the operating system of electronic equipment, backstage performs dex2oat behaviour
The queue of the JobService BackgroundDexoptService of work, wherein, default queue can record operating system and exist
The installation package file that need not be compiled when restarting, the installation kit that operating system can be when in idle condition in the default queue of compiling
File.
In an exemplary scenario, 20 third party applications on electronic equipment, are mounted with, wherein, there are 10 (for example,
First 10) installation package file of third party application is recorded in the presets list, another 10 (for example, 10 afterwards) third party
The installation package file of application program is not recorded in the presets list, when operating system update and when operating system is restarted, should
The corresponding installation package file of 20 third party applications is required to be recompilated, due to front 10 third party applications
Installation package file record in the presets list, then need self-corresponding installation kit text each to front 10 third party applications
Part be compiled into can operating file, as the installation package file of rear 10 third party applications is not recorded in the presets list, then
The installation package file of rear 10 third party applications can be added in default queue, idle condition is in etc. operating system
When the installation package file of rear 10 third party applications is compiled.
In the present embodiment, by not being that the installation package file recorded in the presets list is added in default queue, it is to avoid
Installation package file when operating system is restarted to being not recorded in the presets list is compiled, and reduces operating system and is restarting
When compile target installation package file number of times, improve operating system efficiency on startup.
In one embodiment, file compiling method may also include:
Whether detection operating system is in idle condition;
When operating system is in idle condition, the installation package file in default queue is compiled into can operating file.
In one embodiment, the installation package file in default queue is compiled into can operating file, it may include:
The compiling priority of the installation package file in default queue is determined according to the corresponding classification of installation package file;
Installation package file in default queue is compiled into according to the order of compiling priority can operating file.
In one embodiment, can operating file to presetting that the installation package file in queue is compiled into, it may include:
It is determined that the installation package file in default queue is added to the time point in default queue;
Installation package file in default queue is compiled into according to the order of time point can operating file.
In one embodiment, file compiling method may also include:
The respective operation duration of whole third party applications that statistical operation system has been run;
Before operation duration is come, the corresponding installation package file record of the third party application of setting digit is in default row
In table.
In one embodiment, file compiling method may also include:
Add the trigger event of installation package file in detecting whether oriented the presets list;
When adding the trigger event of installation package file in oriented the presets list is detected, it would be desirable to the installation kit text of addition
Part is added in the presets list.
How compiling file, refer to subsequent embodiment.
So far, the said method that the embodiment of the present disclosure is provided, can avoid pre- to being not recorded in when operating system is restarted
If the installation package file in list is compiled, the number of times that operating system compiles target installation package file when restarting is reduced, is carried
High operating system efficiency on startup.
Below with specific embodiment come illustrate the embodiment of the present disclosure provide technical scheme.
Fig. 2 is the flow chart of the file compiling method according to an exemplary embodiment one;The present embodiment utilizes this public affairs
The said method of embodiment offer is opened, how to be compiled into and can carry out as a example by operating file to presetting the installation package file in queue
Exemplary illustration, as shown in Fig. 2 comprise the steps:
In step 201, detect whether operating system is in idle condition, when operating system is in idle condition, hold
Row step 202, when operating system is not in idle condition, continues executing with step 201, to keep detection state.
In one embodiment, by detecting whether operating system currently runs application program determining operating system can be
It is no in idle condition, when any application program of operating system off-duty, determine that operating system in idle condition, works as operation
When system operation has any application, operating system is in running order.
In step 202., when operating system is in idle condition, determined according to the corresponding classification of installation package file default
The compiling priority of the installation package file in queue.
In one embodiment, compile priority to be arranged according to the classification of application program by user, for example, classification is
Immediately the compiling highest priority of the application program of class is linked up, classification is taken second place for the compiling priority of the application program of video class,
Classification is that the compiling priority of the application program of shopping class is minimum.In one embodiment, compiling priority can be by sequence
Embodying, for example, the application program for linking up immediately class comes foremost to mode, and the application program of video class takes second place, class of doing shopping
Application program comes last, etc..
In step 203, the installation package file in default queue is compiled into and can be run according to the order of compiling priority
File.
It is corresponding to above-mentioned steps 202, can preferentially by the installation kit of the application program of the instant communication class in default queue
File be compiled into can operating file, then by the installation package file of the application program of video class be compiled into can operating file, finally will
The installation package file of the application program of shopping class is compiled into can operating file.
In the present embodiment, it is compiled to presetting the installation package file in queue based on compiling priority, works as operating system
The installation package file that is insufficient to allow in default queue of duration of idle condition in the case of can compile, can be based on
Compiling priority guarantees that user needs most the application program for using and compiled as early as possible, so as to shorten the application journey to be used such as user
The duration of sequence.
Fig. 3 is the flow chart of the file compiling method according to an exemplary embodiment two;The present embodiment utilizes this public affairs
The said method of embodiment offer is opened, how to be compiled into and can carry out as a example by operating file to presetting the installation package file in queue
Exemplary illustration, as shown in figure 3, comprise the steps:
In step 301, detect whether operating system is in idle condition;When operating system is in idle condition, hold
Row step 302, when operating system is not in idle condition, continues executing with step 301, to keep detection state.
The description of step 301 may refer to the associated description of above-mentioned Fig. 2 embodiments, will not be described in detail herein.
In step 302, when operating system is in idle condition, it is determined that the installation package file in default queue is added to
Time point in default queue.
In one embodiment, operating system can record time point of the installation package file in default queue is added to, and
By the time point record in default queue.
In step 303, the installation package file in default queue is compiled into according to the order of time point can operating file.
In one embodiment, can by time point earliest installation package file be preferentially compiled into can operating file, another
In embodiment, can preferentially be compiled into time point nearest installation package file can operating file.
In the present embodiment, the order based on time point is compiled to presetting the installation package file in queue, when operation system
In the case of the installation package file that the duration of the idle condition of system is insufficient to allow in default queue can be compiled, can be with base
During order in time point guarantees at first or is most recently recorded in default queue, installation package file is compiled, and improves user certainly
Definition arranges the motility of compiling installation file bag.
Fig. 4 is the flow chart of the file compiling method according to an exemplary embodiment three;The present embodiment utilizes this public affairs
The said method of embodiment offer is provided, is carried out as a example by how obtaining the presets list and the presets list is updated exemplary
Illustrate, as shown in figure 4, comprising the steps:
In step 401, the respective operation duration of whole third party applications that statistical operation system has been run.
In one embodiment, operating system can be counted to the operation duration of each third party application, example
Such as, after any one third party application is installed on an electronic device, as long as the third party application starts and runs,
Then operating system records the operation duration of the third party application, the operation total so as to obtain each third party application
Duration.
In step 402, the corresponding installation package file of third party application of setting digit before come operation duration
Record is in the presets list.
For the custom of user, when the operation duration of some third party applications is longer, show the third party
Application program its significance level for the use of the user is higher, thus before being come with operation duration setting digit the
Tripartite's application records are in the presets list.For example, 20 third party applications, wherein, 20 are mounted with electronic equipment
The operation duration of " rice chat " APP in individual third party application is most long, and " Semen setariae store " APP takes second place, and " Semen setariae is live " APP is again
Take second place, then " rice chat " APP, " Semen setariae store " APP, " Semen setariae is live " APP can be come front three, other application program according to
Operation duration is sequentially arranged.
In one embodiment, setting digit can be according to the quantity of the actually used third party application of user come really
It is fixed, for example, if 20 third party applications of user installation, can be according to operation duration by front 10 third-party application journeys
Sequence is recorded in the presets list, if 10 third party applications of user installation, can be according to operation duration by first 5 the
Tripartite's application records are in the presets list, that is, the disclosure is not limited to the concrete number of presetting digit capacity.
In step 403, detect whether to add the trigger event of installation package file in oriented the presets list, when having detected
When adding the trigger event of installation package file in the presets list, execution step 404 adds in oriented the presets list is not detected by
Plus installation package file trigger event when, continue executing with step 403, to keep detection state.
In step 404, when adding the trigger event of installation package file in oriented the presets list is detected, it would be desirable to add
Plus installation package file record in the presets list.
Third party application on an electronic device is installed, due to time restriction, its total operation for some are newest
Duration generally will not be very long, but the third party application for a user may be critically important, therefore, for this kind of situation,
The disclosure can make user need the installation package file of preferential compiling preferentially to compile according to its real needs, in one embodiment,
Can be arranged by the setting options of electronic equipment needs the installation package file of addition, for example, adds one in setting options
Individual setting button, need the installation package file of addition to be added in the presets list user by the setting button.
For example, it is newest on electronic equipment to be mounted with " Semen setariae is live " APP, when operating system is upgraded and operating system is restarted, such as
Fruit user needs to run " Semen setariae is live " APP at first, can be literary by " Semen setariae is live " APP corresponding installation kit by the present embodiment
Part is added in the presets list, so that the corresponding installation package files of " Semen setariae is live " APP are preferentially compiled.
In the present embodiment, recorded in the presets list by operation duration to be come the third party application of front setting digit
In, the third party application that operation duration can be enable longer is preferentially compiled;By the installation package file by addition is needed
It is added in the presets list, can arbitrarily needs the installation package file of preferential compiling according to the actual demand of user addition, improve
User priority processes the motility of third party application.
Fig. 5 is a kind of block diagram of the file compilation device according to an exemplary embodiment, as shown in figure 5, file is compiled
Translating device includes:
First detection module 51, is configured as operating system update and when operating system is restarted, it is determined whether having needs
Target installation package file to be compiled;
Second detection module 52, if being configured to first detection module 51 detects the presence of target installation kit text to be compiled
Part, detects that whether target installation package file is the installation package file recorded in the presets list, and the presets list is used for record in operation
System upgrade and the installation package file of compiling is needed when operating system is restarted;
Add module 53, if be configured to the second detection module 52 detect during target installation package file is not the presets list
The installation package file of record, target installation package file is added in default queue, wherein, and presetting queue is used for recording operation system
The installation package file that system need not be compiled when restarting.
Fig. 6 is the block diagram of another kind of file compilation device according to an exemplary embodiment, as shown in fig. 6, upper
On the basis of stating embodiment illustrated in fig. 5, in one embodiment, file compilation device may also include:
Whether the 3rd detection module 54, be configured to detect operating system in idle condition;
Collector 55, be configured as the 3rd detection module 54 detect operating system in idle condition when, will add
Plus module 53 process after default queue in installation package file be compiled into can operating file.
In one embodiment, collector 55 may include:
First determination sub-module 551, is configured to determine that add module 53 is processed according to the corresponding classification of installation package file
The compiling priority of the installation package file in default queue afterwards;
First compiling submodule 552, is configured to the installation package file in default queue according to the first determination sub-module
The order of the 551 compiling priority for determining is compiled into can operating file.
In one embodiment, collector 55 may include:
Second determination sub-module 553, the installation kit text being configured to determine that in the default queue after the process of add module 53
Part is added to the time point in default queue;
Second compiling submodule 554, is configured to the installation package file in default queue according to the second determination sub-module
The order of 553 time points for determining is compiled into can operating file.
In one embodiment, file compilation device may also include:
Statistical module 56, when being configured to the respective operation of whole third party applications that statistical operation system run
It is long;
Logging modle 57, before being configured to come the operation duration that statistical module 56 is counted, the third party of setting digit should
Recorded in the presets list with program, so that whether the detection target of the second detection module 52 installation package file is that logging modle 57 is obtained
To the presets list in the installation package file that records.
In one embodiment, file compilation device may also include:
4th detection module 58, adds the triggering thing of installation package file in being configured to detect whether oriented the presets list
Part;
Logging modle 57, is additionally configured to add installation kit text in the 4th detection module 58 detects oriented the presets list
During the trigger event of part, it would be desirable to which the installation package file of addition is recorded in the presets list, so that the second detection module 52 determines
Whether target installation package file is the installation package file recorded in the presets list that logging modle 57 is obtained.
With regard to the device in above-described embodiment, wherein modules perform the concrete mode of operation in relevant the method
Embodiment in be described in detail, explanation will be not set forth in detail herein.
Fig. 7 is a kind of block diagram suitable for file compilation device according to an exemplary embodiment.For example, device
700 can be mobile phone, and computer, digital broadcast terminal, messaging devices, game console, tablet device, medical treatment set
It is standby, body-building equipment, the electronic equipment such as personal digital assistant.
With reference to Fig. 7, device 700 can include following one or more assemblies:Process assembly 702, memorizer 704, power supply
Component 706, multimedia groupware 708, audio-frequency assembly 710, the interface 712 of input/output (I/O), sensor cluster 714, and
Communication component 716.
The integrated operation of 702 usual control device 700 of process assembly, such as with display, call, data communication, phase
Machine operates and records the associated operation of operation.Treatment element 702 can refer to perform including one or more processors 720
Order, to complete all or part of step of above-mentioned method.Additionally, process assembly 702 can include one or more modules, just
Interaction between process assembly 702 and other assemblies.For example, processing component 702 can include multi-media module, many to facilitate
Interaction between media component 708 and process assembly 702.
Memorizer 704 is configured to store various types of data to support the operation in equipment 700.These data are shown
Example includes the instruction of any application program for operating on device 700 or method, and contact data, telephone book data disappear
Breath, picture, video etc..Memorizer 704 can be by any kind of volatibility or non-volatile memory device or their group
Close and realize, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM) is erasable to compile
Journey read only memory (EPROM), programmable read only memory (PROM), read only memory (ROM), magnetic memory, flash
Device, disk or CD.
Electric power assembly 706 provides electric power for the various assemblies of device 700.Electric power assembly 706 can include power management system
System, one or more power supplys, and other generate, manage and distribute the component that electric power is associated with for device 700.
Multimedia groupware 708 is included in the screen of one output interface of offer between described device 700 and user.One
In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen
Curtain may be implemented as touch screen, to receive the input signal from user.Touch panel includes one or more touch sensings
Device is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or sliding action
Border, but also detect and the touch or slide related persistent period and pressure.In certain embodiments, many matchmakers
Body component 708 includes a front-facing camera and/or post-positioned pick-up head.When equipment 700 be in operator scheme, such as screening-mode or
During video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and
Post-positioned pick-up head can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio-frequency assembly 710 is configured to output and/or input audio signal.For example, audio-frequency assembly 710 includes a Mike
Wind (MIC), when device 700 is in operator scheme, such as call model, logging mode and speech recognition mode, mike is matched somebody with somebody
It is set to reception external audio signal.The audio signal for being received can be further stored in memorizer 704 or via communication set
Part 716 sends.In certain embodiments, audio-frequency assembly 710 also includes a speaker, for exports audio signal.
, for providing interface between process assembly 702 and peripheral interface module, above-mentioned peripheral interface module can for I/O interfaces 712
To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock
Determine button.
Sensor cluster 714 includes one or more sensors, and the state for providing various aspects for device 700 is commented
Estimate.For example, sensor cluster 714 can detect the opening/closed mode of equipment 700, and the relative localization of component is for example described
Display and keypad of the component for device 700, sensor cluster 714 can be with 700 1 components of detection means 700 or device
Position change, user is presence or absence of with what device 700 was contacted, 700 orientation of device or acceleration/deceleration and device 700
Temperature change.Sensor cluster 714 can include proximity transducer, be configured to detect when not having any physical contact
The presence of object nearby.Sensor cluster 714 can also include optical sensor, such as CMOS or ccd image sensor, for into
As used in application.In certain embodiments, the sensor cluster 714 can also include acceleration transducer, gyro sensors
Device, Magnetic Sensor, pressure transducer or temperature sensor.
Communication component 716 is configured to facilitate the communication of wired or wireless way between device 700 and other equipment.Device
700 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.In an exemplary enforcement
In example, communication component 716 receives the broadcast singal or broadcast related information from external broadcasting management system via broadcast channel.
In one exemplary embodiment, the communication component 716 also includes near-field communication (NFC) module, to promote junction service.Example
Such as, NFC module can be based on RF identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology,
Bluetooth (BT) technology and other technologies are realizing.
In the exemplary embodiment, device 700 can be by one or more application specific integrated circuits (ASIC), numeral letter
Number processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for performing file compiling method, including such as
Lower step:
When operating system update and when the operating system is restarted, detect whether there is target installation kit text to be compiled
Part;
If there is the target installation package file to be compiled, detect whether the target installation package file is the presets list
The installation package file of middle record, described the presets list is used for record in the operating system update and the operating system is restarted
When need compiling installation package file;
If the target installation package file is not the installation package file recorded in described the presets list, the target is installed
APMB package is added in default queue, and the default queue is used for recording the peace that the operating system need not be compiled when restarting
Dress APMB package.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided
Such as include the memorizer 704 of instruction, for example, the non-transitorycomputer readable storage medium can be that ROM, random access memory are deposited
Reservoir (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc..Above-mentioned instruction can be held by the processor 720 of device 700
Row is comprised the steps with completing said method:
When operating system update and when the operating system is restarted, detect whether there is target installation kit text to be compiled
Part;
If there is the target installation package file to be compiled, detect whether the target installation package file is the presets list
The installation package file of middle record, described the presets list is used for record in the operating system update and the operating system is restarted
When need compiling installation package file;
If the target installation package file is not the installation package file recorded in described the presets list, the target is installed
APMB package is added in default queue, and the default queue is used for recording the peace that the operating system need not be compiled when restarting
Dress APMB package.
Those skilled in the art will readily occur to its of the disclosure after considering description and putting into practice disclosure disclosed herein
Its embodiment.The application is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or
Person's adaptations follow the general principle of the disclosure and including the undocumented common knowledge in the art of the disclosure
Or conventional techniques.Description and embodiments are considered only as exemplary, and the true scope of the disclosure and spirit are by following
Claim is pointed out.
It should be appreciated that the disclosure is not limited to the precision architecture for being described above and being shown in the drawings, and
And various modifications and changes can be being carried out without departing from the scope.The scope of the present disclosure is limited only by appended claim.
Claims (10)
1. a kind of file compiling method, it is characterised in that methods described includes:
When operating system update and when the operating system is restarted, detect whether there is target installation package file to be compiled;
If there is the target installation package file to be compiled, detect whether the target installation package file is note in the presets list
The installation package file of record, needs when described the presets list is used for recording in the operating system update and the operating system is restarted
Installation package file to be compiled;
If the target installation package file is not the installation package file recorded in described the presets list, by target installation kit text
Part is added in default queue, and the default queue is used for recording the installation kit that the operating system need not be compiled when restarting
File.
2. method according to claim 1, it is characterised in that methods described also includes:
Detect the operating system whether in idle condition;
When the operating system is in idle condition, the installation package file in the default queue is compiled into and can run text
Part.
3. method according to claim 2, it is characterised in that the installation package file by the default queue is compiled
Into can operating file, including:
The compiling priority of the installation package file in the default queue is determined according to the corresponding classification of installation package file;
Installation package file in the default queue is compiled into according to the order of the compiling priority can operating file.
4. method according to claim 2, it is characterised in that the installation package file in the default queue is compiled
Into can operating file, including:
Determine that the installation package file in the default queue is added to the time point in the default queue;
Installation package file in the default queue is compiled into according to the order of the time point can operating file.
5. method according to claim 1, it is characterised in that methods described also includes:
Count the respective operation duration of whole third party applications that the operating system has been run;
Before operation duration is come, the corresponding installation package file of third party application of setting digit is recorded in the default row
In table.
6. a kind of file compilation device, it is characterised in that described device includes:
First detection module, is configured as operating system update and when the operating system is restarted, detects whether that presence is treated
The target installation package file of compiling;
Second detection module, if being configured to the first detection module detects the presence of target installation package file to be compiled,
Detect that whether the target installation package file is the installation package file recorded in the presets list, described the presets list is used for record and exists
The operating system update and the installation package file of compiling is needed when the operating system is restarted;
Add module, if be configured to second detection module to detect the target installation package file is not the default row
The installation package file recorded in table, the target installation package file is added in default queue, and the default queue is used for remembering
Record the installation package file that the operating system need not be compiled when restarting.
7. device according to claim 6, it is characterised in that described device also includes:
Whether the 3rd detection module, be configured to detect the operating system in idle condition;
Collector, be configured as the 3rd detection module detect the operating system in idle condition when, by institute
Stating that the installation package file in default queue is compiled into can operating file.
8. device according to claim 7, it is characterised in that the collector includes:
First determination sub-module, is configured to determine the institute after the add module process according to the corresponding classification of installation package file
State the compiling priority of the installation package file in default queue;
First compiling submodule, is configured to the installation package file in the default queue according to first determination sub-module
It is determined that the order of the compiling priority be compiled into can operating file.
9. device according to claim 7, it is characterised in that the collector includes:
Second determination sub-module, the installation package file being configured to determine that in the described default queue after the add module process
The time point being added in the default queue;
Second compiling submodule, is configured to the installation package file in the default queue according to second determination sub-module
It is determined that the order of the time point be compiled into can operating file.
10. device according to claim 6, it is characterised in that described device also includes:
Statistical module, when being configured to count the respective operation of whole third party applications that the operating system run
It is long;
Logging modle, the described front third party application for setting digit for being configured to determine the determining module are corresponding
Installation package file record is recorded in described the presets list in described the presets list.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610941395.4A CN106528113A (en) | 2016-10-25 | 2016-10-25 | File compiling method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610941395.4A CN106528113A (en) | 2016-10-25 | 2016-10-25 | File compiling method and apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106528113A true CN106528113A (en) | 2017-03-22 |
Family
ID=58292502
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610941395.4A Pending CN106528113A (en) | 2016-10-25 | 2016-10-25 | File compiling method and apparatus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106528113A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109857474A (en) * | 2017-11-30 | 2019-06-07 | 华为终端有限公司 | Start the method and apparatus of application program |
CN111552524A (en) * | 2020-05-06 | 2020-08-18 | Oppo(重庆)智能科技有限公司 | Plug-in loading method and device and computer readable storage medium |
CN111708567A (en) * | 2020-05-06 | 2020-09-25 | 北京五八信息技术有限公司 | Application processing method and device |
CN112256274A (en) * | 2020-10-21 | 2021-01-22 | 北京小米移动软件有限公司 | Application program processing method and device and storage medium |
CN112540768A (en) * | 2020-12-29 | 2021-03-23 | Oppo广东移动通信有限公司 | File processing method and device, server, electronic equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102455930A (en) * | 2011-09-19 | 2012-05-16 | 中标软件有限公司 | Method for classifying and installing application programs |
CN104375872A (en) * | 2014-12-08 | 2015-02-25 | 福州瑞芯微电子有限公司 | Quick startup method and device of Android system |
CN104951335A (en) * | 2015-05-22 | 2015-09-30 | 小米科技有限责任公司 | Processing method and device for application program installation packages |
CN105930151A (en) * | 2016-04-15 | 2016-09-07 | 北京小米移动软件有限公司 | Application compilation method and apparatus as well as terminal |
-
2016
- 2016-10-25 CN CN201610941395.4A patent/CN106528113A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102455930A (en) * | 2011-09-19 | 2012-05-16 | 中标软件有限公司 | Method for classifying and installing application programs |
CN104375872A (en) * | 2014-12-08 | 2015-02-25 | 福州瑞芯微电子有限公司 | Quick startup method and device of Android system |
CN104951335A (en) * | 2015-05-22 | 2015-09-30 | 小米科技有限责任公司 | Processing method and device for application program installation packages |
CN105930151A (en) * | 2016-04-15 | 2016-09-07 | 北京小米移动软件有限公司 | Application compilation method and apparatus as well as terminal |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109857474A (en) * | 2017-11-30 | 2019-06-07 | 华为终端有限公司 | Start the method and apparatus of application program |
CN111552524A (en) * | 2020-05-06 | 2020-08-18 | Oppo(重庆)智能科技有限公司 | Plug-in loading method and device and computer readable storage medium |
CN111708567A (en) * | 2020-05-06 | 2020-09-25 | 北京五八信息技术有限公司 | Application processing method and device |
CN111552524B (en) * | 2020-05-06 | 2023-10-13 | Oppo(重庆)智能科技有限公司 | Plug-in loading method and device and computer readable storage medium |
CN112256274A (en) * | 2020-10-21 | 2021-01-22 | 北京小米移动软件有限公司 | Application program processing method and device and storage medium |
CN112540768A (en) * | 2020-12-29 | 2021-03-23 | Oppo广东移动通信有限公司 | File processing method and device, server, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104951335B (en) | The processing method and processing device of application program installation kit | |
CN104484200A (en) | Method and device for updating firmware | |
EP3057048A1 (en) | Transfer method and apparatus | |
CN106528113A (en) | File compiling method and apparatus | |
CN105488112A (en) | Information pushing method and device | |
CN104378441A (en) | Schedule creating method and device | |
CN106066770A (en) | Memory space management and device | |
CN104020990B (en) | Date selects control display methods and device | |
CN106598704A (en) | Application program recovery method and apparatus | |
CN106648730A (en) | Processing method and device of abnormal application | |
CN106547597A (en) | The control method and device of application program update | |
CN107239351A (en) | Method of attaching and device | |
CN106775903A (en) | Java.policy update method and device | |
CN106537288A (en) | Application autostart control method and device | |
CN106650569B (en) | Fingerprint input method and device | |
CN109388423A (en) | Method for upgrading software and device | |
CN107885571A (en) | Show page control method and device | |
CN107436782A (en) | Application program silence installation method and device | |
CN107544818A (en) | The loading method and device of system software | |
CN105607979A (en) | Network interconnection control method and device | |
CN107632835A (en) | Using installation method and device | |
CN107239771A (en) | Fingerprint calibration method and device | |
CN107239236A (en) | Method for writing data and device | |
CN106792636A (en) | terminal control method and device | |
CN106919679A (en) | Method, device and terminal are recurred in the daily record for being applied to distributed file system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170322 |