CN105930151A - Application compilation method and apparatus as well as terminal - Google Patents

Application compilation method and apparatus as well as terminal Download PDF

Info

Publication number
CN105930151A
CN105930151A CN201610237391.8A CN201610237391A CN105930151A CN 105930151 A CN105930151 A CN 105930151A CN 201610237391 A CN201610237391 A CN 201610237391A CN 105930151 A CN105930151 A CN 105930151A
Authority
CN
China
Prior art keywords
described
compiled
compiling
application
party application
Prior art date
Application number
CN201610237391.8A
Other languages
Chinese (zh)
Inventor
王智勇
刘惠云
乜聚科
Original Assignee
北京小米移动软件有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京小米移动软件有限公司 filed Critical 北京小米移动软件有限公司
Priority to CN201610237391.8A priority Critical patent/CN105930151A/en
Publication of CN105930151A publication Critical patent/CN105930151A/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The invention provides an application compilation method and apparatus as well as a terminal. The method is applied to an operation system using an AOT compiler. An embodiment of the method comprises the steps of in a system startup process after system upgrading, searching out a system application; compiling the system application; after the startup is finished, searching out a third-party application; and compiling the third-party application. According to the embodiment, the duration of the system startup process after the system upgrading can be shortened, so that the use efficiency of the terminal is improved.

Description

The Compilation Method of application program, device and terminal

Technical field

It relates to computer software technical field, particularly to a kind of application program Compilation Method, Device and terminal.

Background technology

Along with the development of technology, intelligent terminal is more and more applied in the live and work of people, Android (Android) system being mainly used in intelligent terminal have also been obtained quickly popularization.Android system Quickly update and make its function the most perfect.Before Android 4.4, Android system typically uses JIT Application program is compiled by compiler (Just in Time, instant compiler), each run application journey During sequence, program will be compiled dynamically.Therefore, have impact on the speed of service.

After Android 4.4, Android system has carried out new improvement, begins with AOT compiler Application program is compiled by (Ahead of Time, compiler in advance).Send out in system environments for general After changing (such as system upgrade), the application program of each installation is once compiled, answering later Need not when running by program be compiled again.Therefore, use the operating system of AOT compiler, Speed of service aspect relatively before operating system be greatly improved.

But in the related, typically in the system starting process after system upgrade, answer each one by one It is compiled by program, so the system starting process duration after system upgrade is long, there may come a time when Reach five to ten minutes, have impact on the service efficiency of terminal.

Summary of the invention

The disclosure provides the Compilation Method of a kind of application program, device and terminal, to solve in correlation technique The problem that the service efficiency of terminal is low.

First aspect according to disclosure embodiment, it is provided that the Compilation Method of a kind of application program, described side Method is applied to apply the operating system of compiler AOT in advance, including:

In system starting process after system upgrade, find out system application;

Described system application is compiled;

After described startup completes, find out third party application;

Described third party application is compiled.

Optionally, described described third party application is compiled, including:

Detection user opens the operation of third party application;

If described operation being detected, it is judged that the third party application that user opens is the most through compiling;

If not yet through compiling, the third party application opening described user is compiled.

Optionally, described described third party application is compiled, also includes:

If being not detected by described operation, it is judged that currently whether be in use state;

If being not presently within use state, one by one the third party application not yet passing through compiling is compiled Translate;

If being currently at use state, suspending the third party application to not yet passing through compiling and being compiled.

Optionally, described method also includes:

When described startup completes, exported through the mark and still of application program of compiling by desktop Mark without the application program of compiling.

Optionally, described method also includes:

When being compiled described third party application, exporting information, described information is used Currently application program is compiled in reminding user.

Second aspect according to disclosure embodiment, it is provided that the compilation device of a kind of application program, described dress Put the operating system being applied to apply AOT compiler, including:

First searches module, is configured in the system starting process after system upgrade, finds out system Application program;

First collector, the system application being configured to described first lookup module searches enters Row compiling;

Second searches module, is configured to, after described startup completes, find out third party application;

Second collector, is configured to search, to described second, the third party application that module searches goes out It is compiled.

Optionally, described second collector includes:

Detection sub-module, is configured to detect user and opens the operation of third party application;

First judges submodule, is configured to when described detection sub-module detects described operation, it is judged that The third party application that user opens is the most through compiling;

First compiling submodule, is configured to judge that submodule determines the 3rd that user opens described first Side's application program is not yet when compiling, and the third party application opening described user is compiled.

Optionally, described second collector also includes:

Second judges submodule, if being configured to described detection sub-module to be not detected by described operation, it is judged that Currently whether it is in use state;

Second compiling submodule, is configured to judge that submodule determines described second and is not presently within use During state, one by one the third party application not yet passing through compiling is compiled;

Suspend submodule, be configured to described second judge submodule determine be currently at use state time, Suspend the third party application to not yet passing through compiling to be compiled.

Optionally, described device also includes:

First output module, is configured to when described startup completes, and is exported through compiling by desktop Application program mark and not yet through the mark of application program of compiling.

Optionally, described device also includes:

Second output module, is configured to enter described third party application in described second collector During row compiling, exporting information, described information is used for reminding user current to application program It is compiled.

The third aspect according to disclosure embodiment, it is provided that a kind of terminal, described terminal applies is in application The operating system of AOT compiler, including:

Processor;

For storing the memory of processor executable;

Wherein, described processor is configured to:

In system starting process after system upgrade, find out system application;

Described system application is compiled;

After described startup completes, find out third party application;

Described third party application is compiled.

Embodiment of the disclosure that the technical scheme of offer can include following beneficial effect:

The Compilation Method of the application program that above-described embodiment of the disclosure provides, the system after system upgrade In start-up course, the system application only carried system is compiled.After above-mentioned startup completes, Again remaining a large amount of third party applications are compiled.Held it is thus possible to shorten above-mentioned start-up course The continuous time, improve the service efficiency of terminal.

The Compilation Method of the application program that above-described embodiment of the disclosure provides, the system after system upgrade In start-up course, the system application only carried system is compiled.After above-mentioned startup completes, Preferential compiling user needs the third party application opened, and under terminal is in non-working condition, The most compiled remaining third party application is compiled one by one.Do not affecting terminal operating speed On the premise of, shorten above-mentioned start-up course duration, further increase the use effect of terminal Rate.

It should be appreciated that it is only exemplary and explanatory that above general description and details hereinafter describe , the disclosure can not be limited.

Accompanying drawing explanation

Accompanying drawing herein is merged in specification and constitutes the part of this specification, it is shown that meet these public affairs The embodiment opened, and for explaining the principle of the disclosure together with specification.

Fig. 1 is the disclosure stream according to the Compilation Method of a kind of application program shown in an exemplary embodiment Cheng Tu;

Fig. 2 is the disclosure Compilation Method according to the another kind of application program shown in an exemplary embodiment Flow chart;

Fig. 3 is the disclosure frame according to the compilation device of a kind of application program shown in an exemplary embodiment Figure;

Fig. 4 is the disclosure compilation device according to the another kind of application program shown in an exemplary embodiment Block diagram;

Fig. 5 is the disclosure compilation device according to the another kind of application program shown in an exemplary embodiment Block diagram;

Fig. 6 is the disclosure compilation device according to the another kind of application program shown in an exemplary embodiment Block diagram;

Fig. 7 is the disclosure compilation device according to the another kind of application program shown in an exemplary embodiment Block diagram;

Fig. 8 is the disclosure according to the one of the compilation device of a kind of application program shown in an exemplary embodiment Structural representation.

Detailed description of the invention

Here will illustrate exemplary embodiment in detail, its example represents in the accompanying drawings.Following When description relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represents same or analogous Key element.Embodiment described in following exemplary embodiment does not represent the institute consistent with the disclosure There is embodiment.On the contrary, they only with as appended claims describes in detail, the one of the disclosure The example of the apparatus and method that a little aspects are consistent.

The term used in the disclosure is only merely for describing the purpose of specific embodiment, and is not intended to be limiting The disclosure." a kind of ", " described " of singulative used in disclosure and the accompanying claims book " it is somebody's turn to do " be also intended to include most form, unless context clearly shows that other implications.It is also understood that Term "and/or" used herein refers to and comprises any of one or more project of listing being associated Or likely combine.

Although should be appreciated that may use term first, second, third, etc. various to describe in the disclosure Information, but these information should not necessarily be limited by these terms.These terms only be used for by same type of information that This distinguishes.Such as, without departing from the scope of this disclosure, the first information can also be referred to as Two information, similarly, the second information can also be referred to as the first information.Depend on linguistic context, as in this institute The word that uses " if " can be construed to " ... time " or " when ... " or " in response to determining ".

As it is shown in figure 1, Fig. 1 is the compiling side according to a kind of application program shown in an exemplary embodiment The flow chart of method, the method can apply in terminal.In the present embodiment, in order to make it easy to understand, tie Conjunction can the terminal device of set up applications illustrate.It will be understood by those skilled in the art that this Terminal device can include but not limited to the mobile terminal device of such as smart mobile phone, Intelligent wearable equipment, Panel computer, personal digital assistant etc..The method is applied to apply the operating system of AOT compiler, Comprise the following steps:

In a step 101, in the system starting process after system upgrade, system application is found out.

In a step 102, system application is compiled.

In step 103, after above-mentioned startup completes, third party application is found out.

At step 104, third party application is compiled.

In general, in the related, the operating system of application AOT compiler, can be at system liter In system starting process after Ji, the most each application program is once compiled.Make upgrading After the process duration that restarts of system long.In the present embodiment, after system upgrade, by Change in system environments, it is also desirable to application program is re-started and once compiles.But at system upgrade After system starting process in, it is not necessary to all of application program is compiled, only system is carried Application program is compiled.And remaining a large amount of third party applications need to complete laggard in above-mentioned startup Row compiling.

Specifically, in the present embodiment, in the system starting process after system upgrade, first look for Go out system application.Then, said system application program is compiled.Wherein, system application journey Sequence is the application program that system carries, such as, Information application program, telephony application, camera applications Program, calendar applications etc..The use frequency of General System application program is higher, and system application The negligible amounts of program, therefore, in the system starting process after system upgrade, preferential compiling system should Use program.

Then, after above-mentioned startup completes, third party application is found out.Then, to the above-mentioned 3rd Side's application program is compiled.Wherein, third party application is the application program that nonsystematic carries, example As, instant messaging application program, game application, news client, the browser that nonsystematic carries Deng.The quantity of general third party application is more, if, the system starting process after system upgrade In, also third party application is compiled, then the above-mentioned start-up course duration can be caused longer, Therefore, in above-mentioned start-up course, third party application can be compiled, to shorten Above-mentioned start-up course duration.

The Compilation Method of the application program that above-described embodiment of the disclosure provides, the system after system upgrade In start-up course, the system application only carried system is compiled.After above-mentioned startup completes, Again remaining a large amount of third party applications are compiled.Held it is thus possible to shorten above-mentioned start-up course The continuous time, improve the service efficiency of terminal.

As in figure 2 it is shown, Fig. 2 is according to the compiling side of the another kind of application program shown in an exemplary embodiment The flow chart of method, this embodiment describes the process being compiled third party application, the party in detail Method can apply in terminal, and is applied to apply the operating system of AOT compiler, comprises the following steps:

In step 201, the system starting process after system upgrade finds out system application.

In step 202., system application is compiled.

In step 203, after above-mentioned startup completes, third party application is found out.

In step 204, it may be judged whether detect that user opens the operation of third party application.

In step 205, if aforesaid operations being detected, it is judged that the third party application that user opens is No through compiling.

In step 206, if not yet through compiling, the third party application opening user is compiled Translate.

In the present embodiment, after above-mentioned startup completes, user just can open use application program. Application program has to pass through compiling and could run, but owing to when system startup just completes, third party should The most it is not compiled by program, needs preferential compiling user to need the application program opened.Therefore, if User clicks not yet through the application program of compiling, then want this application program that first compiling user is clicked on.

Specifically, first, detection user opens the operation of third party application.User opens the 3rd The operation of side's application program triggers, for user, the operation that third party application runs.For example, it may be it is straight Connected the operation that desk interface clicks on the mark (icon) of application program, it is also possible to by predetermined Shortcut opens the operation of application program, it is also possible to be to open certain by other application triggers to answer With program (e.g., when being forwarded the message of certain news client by wechat, be by this news client Trigger and open wechat application program etc.) operation.

Then, when the operation that user opens third party application being detected, it is judged that user open the Tripartite's application program is the most through compiling.If this application program through compiling, then need not again It is compiled.If this application program is not yet through compiling, then want preferentially it to be compiled, with Just after compiling, open this application program.

In step 207, if being not detected by aforesaid operations, it is judged that currently whether be in use state.

In a step 208, if being not presently within use state, one by one to not yet through the third party of compiling Application program is compiled.

In the present embodiment, when being not detected by the operation that user opens third party application, Ke Yijian Survey current state.This state can include use state and non-working condition two kinds, wherein, uses shape State is the state that foreground has application program to run.Non-working condition is the state that foreground is run without application program, As, holding state etc..If being not presently within use state, then explanation present terminal is in idle state, Now terminal be there is no the requirement of the speed of service, therefore can utilize the stage that terminal is idle, one by one to still It is compiled without the third party application of compiling.

In step 209, if being currently at use state, suspending the third party to not yet passing through compiling should It is compiled by program.

In the present embodiment, if the third party application not yet passing through compiling is being compiled one by one During, user's terminal to be used, make terminal enter use state, in order to ensure the speed of service, The third party application to not yet passing through compiling can be suspended be compiled.Thus improve operation speed Degree, when terminal is again introduced into non-working condition, continues one by one to not yet through the third-party application of compiling Program is compiled.

The Compilation Method of the application program that above-described embodiment of the disclosure provides, the system after system upgrade In start-up course, the system application only carried system is compiled.After above-mentioned startup completes, Preferential compiling user needs the third party application opened, and under terminal is in non-working condition, The most compiled remaining third party application is compiled one by one.Do not affecting terminal operating speed On the premise of, shorten above-mentioned start-up course duration, further increase the use effect of terminal Rate.

It should be noted that for the step identical with Fig. 1 embodiment, in above-mentioned Fig. 2 embodiment No longer repeating, related content can be found in Fig. 1 embodiment.

In some optional embodiments, said method also includes: when above-mentioned startup completes, by table Face output is through the mark of the application program of compiling and the mark of the application program not yet passing through compiling.

In general, in the related, the operating system of application AOT compiler, complete correspondence Before the compiling of program, the mark of the application program not yet passing through compiling will not be shown.In the present embodiment, During restarting due to system, substantial amounts of third party application is not compiled, therefore, If not showing the mark of the application program not yet passing through compiling, the use of user can be affected.So, when When above-mentioned startup completes, will pass through the mark of the application program of compiling and not yet through the application of compiling The mark of program is all shown by desktop.

In some optional embodiments, said method also includes: compiling third party application When translating, exporting information, this information is used for reminding user currently to compile application program Translate.

In general, when application program is compiled, the speed of service of terminal on the one hand can be affected, On the other hand, power consumption rate can also be increased, therefore, in the present embodiment, to third party application When being compiled, can export an information, this information is used for reminding user the most right Application program is compiled.

This information is specifically as follows predetermined pattern, audio-frequency information, text message etc., and the present embodiment is not Limit.Such as, predetermined pattern is specifically as follows a slide block with preset shape, as round slider, Square sliders etc., the shape of this slide block arbitrarily can be set by designer;Audio-frequency information is specifically as follows language Sound information;Text message carries out prompting etc. as ejected text prompt frame.

Although it should be noted that, describe the operation of the inventive method in the accompanying drawings with particular order, but, This does not requires that or implies and must according to this particular order to perform these operations, or have to carry out complete Operation shown in portion could realize desired result.On the contrary, the step described in flow chart can change to be held Row order.Additionally or alternatively, it is convenient to omit some step, multiple steps are merged into a step Perform, and/or a step is decomposed into the execution of multiple step.

Corresponding with the Compilation Method embodiment of aforementioned applications program, the disclosure additionally provides application program Compilation device and the embodiment of terminal applied thereof.

As it is shown on figure 3, Fig. 3 is that the disclosure is according to a kind of application program shown in an exemplary embodiment Compilation device block diagram, this device is applied to apply the operating system of AOT compiler, including: first looks into Looking for module 301, the first collector 302, second searches module 303 and the second collector 304.

Wherein, first searches module 301, is configured in the system starting process after system upgrade, Find out system application.

First collector 302, is configured to search, to first, the system application journey that module 301 finds out Sequence is compiled.

Second searches module 303, is configured to, after above-mentioned startup completes, find out third-party application journey Sequence.

Second collector 304, is configured to search, to second, the third-party application that module 303 finds out Program is compiled.

As shown in Figure 4, Fig. 4 is that the disclosure is according to the another kind of application program shown in an exemplary embodiment Compilation device block diagram, this embodiment on the basis of aforementioned embodiment illustrated in fig. 3, the second collector 304 may include that detection sub-module 401, and first judges submodule 402 and the first compiling submodule 403.

Wherein, detection sub-module 401, it is configured to detect user and opens the operation of third party application.

First judges submodule 402, is configured to when detection sub-module 401 detects aforesaid operations, Judge that the third party application that user opens has passed through compiling the most.

First compiling submodule 403, is configured to judge that submodule 402 determines what user opened first Third party application is not yet when compiling, and the third party application opening user is compiled.

As it is shown in figure 5, Fig. 5 is that the disclosure is according to the another kind of application program shown in an exemplary embodiment Compilation device block diagram, this embodiment on the basis of aforementioned embodiment illustrated in fig. 4, the second collector 304 can further include: second judges submodule 404, the second compiling submodule 405 and time-out Module 406.

Wherein, second judges submodule 404, is not detected by above-mentioned if being configured to detection sub-module 401 Time operation, it is judged that currently whether be in use state.

Second compiling submodule 405, is configured to judge that submodule 404 determines second and is not presently within During use state, one by one the third party application not yet passing through compiling is compiled.

Suspend submodule 406, be configured to judge that submodule 404 determines second and be currently at use shape During state, suspend the third party application to not yet passing through compiling and be compiled.

As shown in Figure 6, Fig. 6 is that the disclosure is according to the another kind of application program shown in an exemplary embodiment Compilation device block diagram, this embodiment is on the basis of aforementioned embodiment illustrated in fig. 3, and this device is all right Farther include: the first output module 305.Wherein, the first output module 305, it is configured to above-mentioned opening When having moved, export the mark of the application program passing through compiling and not yet through compiling by desktop The mark of application program.

As it is shown in fig. 7, Fig. 7 is that the disclosure is according to the another kind of application program shown in an exemplary embodiment Compilation device block diagram, this embodiment is on the basis of aforementioned embodiment illustrated in fig. 3, and this device is all right Farther include: the second output module 306.Wherein, the second output module 306, it is configured to described When described third party application is compiled by the second collector, export information, described prompting Information is used for reminding user to be currently compiled application program.

Should be appreciated that said apparatus can pre-set in the terminal, it is also possible to by modes such as downloads It is loaded in terminal.Corresponding units in said apparatus can cooperate to realize with the unit in terminal The scheme of switch contents.

For device embodiment, owing to it corresponds essentially to embodiment of the method, so relevant part ginseng See that the part of embodiment of the method illustrates.Device embodiment described above is only schematically, The wherein said unit illustrated as separating component can be or may not be physically separate, makees The parts shown for unit can be or may not be physical location, i.e. may be located at a place, Or can also be distributed on multiple NE.Can select according to the actual needs part therein or The whole module of person realizes the purpose of disclosure scheme.Those of ordinary skill in the art are not paying creativeness In the case of work, i.e. it is appreciated that and implements.

Accordingly, the disclosure also provides for a kind of terminal, and this terminal applies is in the behaviour of application AOT compiler Make system, include processor;For storing the memory of processor executable;Wherein, at this Reason device is configured to:

In system starting process after system upgrade, find out system application;

Described system application is compiled;

After described startup completes, find out third party application;

Described third party application is compiled.

Fig. 8 is a knot of the compilation device 800 according to a kind of application program shown in an exemplary embodiment Structure schematic diagram.Such as, device 800 can be mobile phone, computer, digital broadcast terminal, message Transceiver, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc..

With reference to Fig. 8, device 800 can include following one or more assembly: processes assembly 802, storage Device 804, power supply module 806, multimedia groupware 808, audio-frequency assembly 810, input/output (I/O) Interface 812, sensor cluster 814, and communications component 816.

Process assembly 802 and generally control the integrated operation of device 800, such as with display, call, The operation that data communication, camera operation and record operation are associated.Treatment element 802 can include one Or multiple processor 820 performs instruction, to complete all or part of step of above-mentioned method.Additionally, Process assembly 802 and can include one or more module, it is simple to process between assembly 802 and other assemblies Mutual.Such as, process assembly 802 and can include multi-media module, to facilitate multimedia groupware 808 And process between assembly 802 mutual.

Memory 804 is configured to store various types of data to support the operation at device 800.This The example of a little data includes any application program for operation on device 800 or the instruction of method, connection It is personal data, telephone book data, message, picture, video etc..Memory 804 can be by any type Volatibility or non-volatile memory device or combinations thereof realize, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), erasable programmable is read-only Memory (EPROM), programmable read only memory (PROM), read-only storage (ROM), Magnetic memory, flash memory, disk or CD.

The various assemblies that power supply module 806 is device 800 provide electric power.Power supply module 806 can include Power-supply management system, one or more power supplys, and other with generate for device 800, manage and distribute electricity The assembly that power is associated.

One output interface of offer that multimedia groupware 808 is included between described device 800 and user Screen.In certain embodiments, screen can include liquid crystal display (LCD) and touch panel (TP). If screen includes that touch panel, screen may be implemented as touch-screen, to receive the input from user Signal.Touch panel includes that one or more touch sensor touches with sensing, slides and on touch panel Gesture.Described touch sensor can not only sense touch or the border of sliding action, but also detects The duration relevant to described touch or slide and pressure.In certain embodiments, multimedia group Part 808 includes a front-facing camera and/or post-positioned pick-up head.When device 800 is in operator scheme, as When screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive the multimedia of outside Data.Each front-facing camera and post-positioned pick-up head can be a fixing optical lens system or have Focal length and optical zoom ability.

Audio-frequency assembly 810 is configured to output and/or input audio signal.Such as, audio-frequency assembly 810 wraps Include a microphone (MIC), when device 800 is in operator scheme, such as call model, logging mode During with speech recognition mode, microphone is configured to receive external audio signal.The audio signal received Can be further stored at memory 804 or send via communications component 816.In certain embodiments, Audio-frequency assembly 810 also includes a loudspeaker, is used for exporting audio signal.

I/O interface 812 provides interface, above-mentioned periphery for processing between assembly 802 and peripheral interface module Interface module can be keyboard, puts striking wheel, button etc..These buttons may include but be not limited to: homepage is pressed Button, volume button, start button and locking press button.

Sensor cluster 814 includes one or more sensor, for providing various aspects for device 800 State estimation.Such as, what sensor cluster 814 can detect device 800 opens/closed mode, The relative positioning of assembly, the most described assembly is display and the keypad of device 800, sensor cluster 814 positions that can also detect device 800 or 800 1 assemblies of device change, user and device 800 The presence or absence of contact, device 800 orientation or acceleration/deceleration and the temperature change of device 800.Pass Sensor assembly 814 can include proximity transducer, is configured to when not having any physical contact examine The existence of object near surveying.Sensor cluster 814 can also include optical sensor, such as CMOS or CCD Imageing sensor, for using in imaging applications.In certain embodiments, this sensor cluster 814 Can also include acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor, microwave passes Sensor or temperature sensor.

Communications component 816 is configured to facilitate wired or wireless mode between device 800 and other equipment Communication.Device 800 can access wireless network based on communication standard, such as WiFi, 2G or 3G, or Combinations thereof.In one exemplary embodiment, communications component 816 via broadcast channel receive from The broadcast singal of external broadcasting management system or broadcast related information.In one exemplary embodiment, institute State communications component 816 and also include near-field communication (NFC) module, to promote junction service.Such as, exist NFC module can be based on RF identification (RFID) technology, Infrared Data Association (IrDA) technology, super Broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.

In the exemplary embodiment, device 800 can be by one or more application specific integrated circuits (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), can compile Journey logical device (PLD), field programmable gate array (FPGA), controller, microcontroller, micro- Processor or other electronic components realize, and are used for performing said method.

In the exemplary embodiment, a kind of non-transitory computer-readable storage including instruction is additionally provided Medium, such as, include the memory 804 of instruction, and above-mentioned instruction can be held by the processor 820 of device 800 Row is to complete said method.Such as, described non-transitory computer-readable recording medium can be ROM, Random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc..

Those skilled in the art, after considering specification and putting into practice invention disclosed herein, will readily occur to this Other embodiment disclosed.The application is intended to any modification, purposes or the adaptability of the disclosure Change, these modification, purposes or adaptations are followed the general principle of the disclosure and include these public affairs Open undocumented common knowledge in the art or conventional techniques means.Description and embodiments only by Being considered as exemplary, the true scope of the disclosure and spirit are pointed out by claim below.

It should be appreciated that the disclosure be not limited to described above and illustrated in the accompanying drawings accurately Structure, and various modifications and changes can carried out without departing from the scope.The scope of the present disclosure is only by institute Attached claim limits.

Claims (11)

1. the Compilation Method of an application program, it is characterised in that described method is applied to apply and compiles in advance Translating the operating system of device AOT, described method includes:
In system starting process after system upgrade, find out system application;
Described system application is compiled;
After described startup completes, find out third party application;
Described third party application is compiled.
Method the most according to claim 1, it is characterised in that described to described third-party application journey Sequence is compiled, including:
Detection user opens the operation of third party application;
If described operation being detected, it is judged that the third party application that user opens is the most through compiling;
If not yet through compiling, the third party application opening described user is compiled.
Method the most according to claim 2, it is characterised in that described to described third-party application journey Sequence is compiled, and also includes:
If being not detected by described operation, it is judged that currently whether be in use state;
If being not presently within use state, one by one the third party application not yet passing through compiling is compiled Translate;
If being currently at use state, suspending the third party application to not yet passing through compiling and being compiled.
Method the most according to claim 1, it is characterised in that described method also includes:
When described startup completes, exported through the mark and still of application program of compiling by desktop Mark without the application program of compiling.
Method the most according to claim 1, it is characterised in that described method also includes:
When being compiled described third party application, exporting information, described information is used Currently application program is compiled in reminding user.
6. the compilation device of an application program, it is characterised in that described device is applied to apply AOT The operating system of compiler, described device includes:
First searches module, is configured in the system starting process after system upgrade, finds out system Application program;
First collector, the system application being configured to described first lookup module searches enters Row compiling;
Second searches module, is configured to, after described startup completes, find out third party application;
Second collector, is configured to search, to described second, the third party application that module searches goes out It is compiled.
Device the most according to claim 6, it is characterised in that described second collector includes:
Detection sub-module, is configured to detect user and opens the operation of third party application;
First judges submodule, is configured to when described detection sub-module detects described operation, it is judged that The third party application that user opens is the most through compiling;
First compiling submodule, is configured to judge that submodule determines the 3rd that user opens described first Side's application program is not yet when compiling, and the third party application opening described user is compiled.
Device the most according to claim 7, it is characterised in that described second collector also includes:
Second judges submodule, if being configured to described detection sub-module to be not detected by described operation, it is judged that Currently whether it is in use state;
Second compiling submodule, is configured to judge that submodule determines described second and is not presently within use During state, one by one the third party application not yet passing through compiling is compiled;
Suspend submodule, be configured to described second judge submodule determine be currently at use state time, Suspend the third party application to not yet passing through compiling to be compiled.
Device the most according to claim 6, it is characterised in that described device also includes:
First output module, is configured to when described startup completes, and is exported through compiling by desktop Application program mark and not yet through the mark of application program of compiling.
Device the most according to claim 6, it is characterised in that described device also includes:
Second output module, is configured to enter described third party application in described second collector During row compiling, exporting information, described information is used for reminding user current to application program It is compiled.
11. 1 kinds of terminals, described terminal applies is in the operating system of application AOT compiler, its feature It is, including:
Processor;
For storing the memory of processor executable;
Wherein, described processor is configured to:
In system starting process after system upgrade, find out system application;
Described system application is compiled;
After described startup completes, find out third party application;
Described third party application is compiled.
CN201610237391.8A 2016-04-15 2016-04-15 Application compilation method and apparatus as well as terminal CN105930151A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610237391.8A CN105930151A (en) 2016-04-15 2016-04-15 Application compilation method and apparatus as well as terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610237391.8A CN105930151A (en) 2016-04-15 2016-04-15 Application compilation method and apparatus as well as terminal

Publications (1)

Publication Number Publication Date
CN105930151A true CN105930151A (en) 2016-09-07

Family

ID=56839220

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610237391.8A CN105930151A (en) 2016-04-15 2016-04-15 Application compilation method and apparatus as well as terminal

Country Status (1)

Country Link
CN (1) CN105930151A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106528113A (en) * 2016-10-25 2017-03-22 北京小米移动软件有限公司 File compiling method and apparatus
CN107612961A (en) * 2017-07-26 2018-01-19 捷开通讯(深圳)有限公司 A kind of method, server and the terminal of system software download/upgrading

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101290571A (en) * 2007-04-16 2008-10-22 阮建辉 Method for creating file being dynamically loaded and performed
US7895597B2 (en) * 2005-09-15 2011-02-22 Nokia Corporation Method, apparatus and computer program product enabling full pre-emptive scheduling of green threads on a virtual machine
CN102279765A (en) * 2010-06-14 2011-12-14 微软公司 Pre-compiling hosted managed code
CN104391743A (en) * 2014-11-26 2015-03-04 北京奇虎科技有限公司 Method and device for optimizing running speed of mobile terminal
CN104951335A (en) * 2015-05-22 2015-09-30 小米科技有限责任公司 Processing method and device for application program installation packages
US9164783B2 (en) * 2007-08-20 2015-10-20 International Business Machines Corporation Load time resolution for dynamic binding languages

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7895597B2 (en) * 2005-09-15 2011-02-22 Nokia Corporation Method, apparatus and computer program product enabling full pre-emptive scheduling of green threads on a virtual machine
CN101290571A (en) * 2007-04-16 2008-10-22 阮建辉 Method for creating file being dynamically loaded and performed
US9164783B2 (en) * 2007-08-20 2015-10-20 International Business Machines Corporation Load time resolution for dynamic binding languages
CN102279765A (en) * 2010-06-14 2011-12-14 微软公司 Pre-compiling hosted managed code
CN104391743A (en) * 2014-11-26 2015-03-04 北京奇虎科技有限公司 Method and device for optimizing running speed of mobile terminal
CN104951335A (en) * 2015-05-22 2015-09-30 小米科技有限责任公司 Processing method and device for application program installation packages

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106528113A (en) * 2016-10-25 2017-03-22 北京小米移动软件有限公司 File compiling method and apparatus
CN107612961A (en) * 2017-07-26 2018-01-19 捷开通讯(深圳)有限公司 A kind of method, server and the terminal of system software download/upgrading

Similar Documents

Publication Publication Date Title
CN104391635B (en) Solve the device and method of lock screen
US9147395B2 (en) Mobile terminal and method for recognizing voice thereof
US9167059B2 (en) Mobile terminal and control method thereof
JP6072362B2 (en) Application program processing method, apparatus, program, and storage medium
CN104684048B (en) WIFI list shows method and apparatus
CN104267977B (en) application program operation method and device
CN104219388B (en) Sound control method and device
CN104991789B (en) Application program open method and device
CN107919123A (en) More voice assistant control method, device and computer-readable recording medium
CN104461725A (en) Application process starting control method and device
CN104793739A (en) Play control method and device
CN105474612A (en) Mobile terminal and control method therefor
KR101777070B1 (en) Method, device and apparatus for application switching
CN105487650A (en) Intelligent alarm clock turn-off method and apparatus
CN104598111A (en) Display mode switching method and display mode switching device
CN105511686A (en) Incoming call processing method and device and electronic terminal equipment
EP3171270A1 (en) Method and device for information push
CN104461304A (en) Application control method and device
CN105677460A (en) Application processing method and apparatus
CN104239094A (en) Method and device for controlling background application programs and terminal equipment
CN105338157A (en) Nuisance call processing method, and device and telephone
CN104808500A (en) Task setting method and device
CN106489126A (en) The method and device that a kind of content is shared
KR20120118819A (en) Mobile terminal and system for managing applications using the same
CN106951884A (en) Gather method, device and the electronic equipment of fingerprint

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into 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: 20160907