CN108536488A - Using starting guide method, apparatus, storage medium and terminal device - Google Patents

Using starting guide method, apparatus, storage medium and terminal device Download PDF

Info

Publication number
CN108536488A
CN108536488A CN201810343946.6A CN201810343946A CN108536488A CN 108536488 A CN108536488 A CN 108536488A CN 201810343946 A CN201810343946 A CN 201810343946A CN 108536488 A CN108536488 A CN 108536488A
Authority
CN
China
Prior art keywords
application
optimized
terminal device
application program
processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810343946.6A
Other languages
Chinese (zh)
Other versions
CN108536488B (en
Inventor
贾利敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810343946.6A priority Critical patent/CN108536488B/en
Publication of CN108536488A publication Critical patent/CN108536488A/en
Application granted granted Critical
Publication of CN108536488B publication Critical patent/CN108536488B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44568Immediately runnable code
    • G06F9/44578Preparing or optimising for loading

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

A kind of application starting guide method, apparatus, storage medium and the terminal device provided in the embodiment of the present application, this method by the application program by after the completion of monitoring application program installation or update, being determined as application to be optimized;Monitor the working condition of terminal device;Processing is optimized to the virtual machine execution file of the application to be optimized according to the working condition.By using above-mentioned technical proposal, the virtual machine execution file of application program can be optimized on accurate opportunity, improve response speed of the updated application program when using for the first time.

Description

Using starting guide method, apparatus, storage medium and terminal device
Technical field
The invention relates to computer applied algorithm technical field more particularly to a kind of application starting guide method, Device, storage medium and terminal device.
Background technology
With the development of the application program (Application) of terminal device, the application program on terminal device is increasingly It is more.And for successive optimization user experience, the system of terminal device can be updated upgrading, the application program run in system It is also required to carry out updating upgrading accordingly, can just meet the running environment of system, it otherwise may be in the operational process of application program In can malfunction.However application program will appear interim card and slack problem when first used after being updated upgrading, to use The use at family is made troubles.
Invention content
A kind of application starting guide method, apparatus, storage medium and terminal device provided by the embodiments of the present application, Ke Yiti The response speed of application program after Gao Gengxin upgrading.
In a first aspect, the embodiment of the present application provides a kind of application starting guide method, including:
After the completion of monitoring application program installation or update, the application program is determined as application to be optimized;
Monitor the working condition of terminal device;
Processing is optimized to the virtual machine execution file of the application to be optimized according to the working condition.
Second aspect, the embodiment of the present application provide a kind of application starting guide device, including:
Determining module to be optimized, for monitor application program installation or update after the completion of, the application program is true It is set to application to be optimized;
Working condition determining module, the working condition for monitoring terminal device;
Optimization processing module, for being carried out to the virtual machine execution file of the application to be optimized according to the working condition Optimization processing.
The third aspect, the embodiment of the present application provide a kind of computer readable storage medium, are stored thereon with computer journey Sequence is realized when the program is executed by processor and applies starting guide method as described in the embodiment of the present application.
Fourth aspect, the embodiment of the present application provide a kind of terminal device, including memory, processor and are stored in storage It can realize on device and when the computer program of processor operation, the processor execute the computer program as the application is real It applies and applies starting guide method described in example.
A kind of application starting guide scheme provided in the embodiment of the present application, by monitor application program installation or more After the completion of new, the application program is determined as application to be optimized;Monitor the working condition of terminal device;According to the work shape State optimizes processing to the virtual machine execution file of the application to be optimized.It, can be in standard by using above-mentioned technical proposal True opportunity optimizes the virtual machine execution file of application program, improve updated application program for the first time use when Response speed.
Description of the drawings
Fig. 1 is a kind of flow diagram using starting guide method provided by the embodiments of the present application;
Fig. 2 is another flow diagram for applying starting guide method provided by the embodiments of the present application;
Fig. 3 is another flow diagram for applying starting guide method provided by the embodiments of the present application;
Fig. 4 is another flow diagram for applying starting guide method provided by the embodiments of the present application;
Fig. 5 is another flow diagram for applying starting guide method provided by the embodiments of the present application;
Fig. 6 is another flow diagram for applying starting guide method provided by the embodiments of the present application;
Fig. 7 is a kind of structure diagram using starting guide device provided by the embodiments of the present application;
Fig. 8 is a kind of structural schematic diagram of terminal device provided by the embodiments of the present application;
Fig. 9 is the structural schematic diagram of another terminal device provided by the embodiments of the present application.
Specific implementation mode
Further illustrate the technical solution of the application below with reference to the accompanying drawings and specific embodiments.It is appreciated that It is that specific embodiment described herein is used only for explaining the application, rather than the restriction to the application.It further needs exist for illustrating , illustrate only for ease of description, in attached drawing and the relevant part of the application rather than entire infrastructure.
It should be mentioned that some exemplary embodiments are described as before exemplary embodiment is discussed in greater detail The processing described as flow chart or method.Although each step is described as the processing of sequence, many of which by flow chart Step can be implemented concurrently, concomitantly or simultaneously.In addition, the sequence of each step can be rearranged.When its operation The processing can be terminated when completion, it is also possible to the additional step being not included in attached drawing.The processing can be with Corresponding to method, function, regulation, subroutine, subprogram etc..
Terminal device may include mobile phone, tablet computer and other equipment with operating system.Equipped with use in terminal device In the application program for realizing different function, application program, can be to application program when using for the first time after being updated or installing Execution file carry out certain optimization operation, to promote the speed of service of application program.So user is for the first time using application When program, it may appear that the interim card of application program and slack problem.
Fig. 1 is a kind of flow diagram using starting guide method provided by the embodiments of the present application, and this method can be by It is executed using starting guide device, wherein the device can generally be integrated in terminal device by software and or hardware realization In, other can also be integrated in and be equipped in the equipment of operating system.As shown in Figure 1, this method includes:
S110, monitor application program installation or update after the completion of, the application program is determined as application to be optimized.
Wherein, after the completion of installation or update, system can be announced application program in the form of sending and broadcasting;It can lead to It crosses Monitoring and Update installation broadcast and installs or update completion to have monitored whether application program, when monitoring that update installation is broadcasted, The packet name for the application program for completing update or installation is determined again, and then corresponding application program can be determined as to be optimized answer With.
Illustratively, by taking Android (Andriod) system as an example, after the completion of installation or update, system can be sent out application program It send android.intent.action.PACKAGE_ADDED to broadcast, function can be passed through when monitoring the broadcast Intent.getDataString () obtains the packet name of installation or newer application program, and installation or update are completed with determination Application program, and then the application program can be determined as application to be optimized.
S111, the working condition for monitoring terminal device.
Wherein, the working condition of the terminal device includes operating status, standby mode and closed state etc.;Terminal device Different working condition, the operational mode of system is different.Illustratively, when the working condition of terminal device is operation shape The system of state, i.e. terminal device is currently running, and system can directly be reacted according to operation input by user.When terminal is set Standby working condition is standby mode, i.e. the system of terminal device has been run with lower power consumption and wanted for maintaining system to run substantially The task process asked, so that operating status can be rapidly entered in the wake operation for receiving user;When the work of terminal device It is in off state as state, i.e. the system of terminal device is closed, and any task process is not run, until receiving The booting trigger action of user, system ability starting up enter operating status compared to standby mode with slower speed.
S112, processing is optimized to the virtual machine execution file of the application to be optimized according to the working condition.
Wherein, by taking Android system as an example, after being updated or installing, the installation kit of application program includes application program Execution file dex (Dalvik executable) file with executable code.As its name suggests, dex files are in Dalvik The file executed in virtual machine.
Dalvik virtual machine is the virtual machine for Android system of Google's research and development.Virtual machine is an imaginary meter Calculation machine, by analogue simulation various functions on the terminal device, virtual machine has oneself perfect hardware structure, and corresponding Instruction system.Dalvik virtual machine is the virtual machine of Android, is the operation basis of the java programs in Android system, in Dalvik The executable file run in virtual machine i.e. dex files, although the structure of dex files is compact, in order to further carry The speed of service of high program, general application program need further excellent to the dex files in installation kit after installation or update Change, dex files are optimised for odex (optimized dalvik executable) file, that is, optimize executable file.Optimization Executable file can save explain bytecode when being executed compared to virtual machine execution file, bytecode more compact structure Process, committed memory also accordingly reduce, so the speed of service in the application program Jing Guo optimization processing can be more happy.
However, when for the first time operation of the application program in the prior art after update or installation, can just execute to dex files Optimization operation, so user when using application program for the first time, because application program is carrying out optimization operation, and leads The operation at family of applying becomes very interim card and not smooth, and big inconvenience is brought to user.
Due to the working condition of different terminal devices, the operational mode of system is different, correspondingly, user and terminal The interactive relation of equipment is also different.Terminal device in operating status, user at this time may to terminal device into Row operation;The terminal device being in standby, user do not carry out operating but may be carried out at any time to terminal device Operation;And the terminal device being closed, user do not operate and will not be grasped to terminal device in the short period Make.So processing is optimized to the virtual machine execution file of the application to be optimized according to working condition, it can be accurate Opportunity optimizes the virtual machine execution file of application program, improves response of the updated application program when using for the first time Speed
It is alternatively possible to when terminal device is in standby, to the virtual machine execution file of the application to be optimized Optimize processing.Since in standby mode, user does not operate terminal device, but the system of terminal device In operating status, application to be optimized can optimize processing at this moment, so will not be to user to the behaviour of terminal device It impacts, and user is being initiated through the to be optimized of optimization processing in application, will not occur again because optimization operation causes Interim card and slack problem, virtual machine execution file is optimised, and the speed of service of application program is than very fast.So logical The working condition according to terminal device is crossed, it, can be with to optimize processing to the virtual machine execution file of the application to be optimized Optimization processing is executed in correct time.
Optionally, if terminal device is in standby and meets setting condition, to the void of the application to be optimized Quasi- machine executes file and optimizes processing.
The setting condition can execute the optimization processing to impact the operating parameter of terminal device Condition.When setting condition can be that the battery of terminal device is in charged state, illustratively, if terminal device is not in If charged state, executing the optimization processing from the background, is likely to result in terminal device when terminal device is standby mode Power consumption is bigger than normal, for example, the charge value in standby preceding terminal device is 70%, performs optimization processing in standby, causes Standby charge value after ten minutes becomes 65%, excessive compared with the power consumption of conventional standby mode, may use eventually user End equipment impacts.In charged state, since terminal device continues charging, then there is no concern that battery drain excessively gives use Family causes influence.
The standby mode duration that the setting condition may also include terminal device reaches setting duration;I.e. at the end End equipment is in standby, the duration of standby mode reaches setting duration and the battery of terminal device is in charging When state, processing is optimized to the virtual machine execution file of the application to be optimized;At this point, user fills terminal device The operation of electricity, and user's long period non-operating terminal equipment indicate the attention of user temporarily not on the terminal device, Can then processing be optimized to the virtual machine execution file of the application to be optimized.It so can be just complete in user's incognizance The optimization processing of the virtual machine execution file of pairs of application program to be optimized so that the application program after user uses optimization When, the speed of service of application program can be improved, interim card and slack problem are avoided.
Fig. 2 is another flow diagram for applying starting guide method provided by the embodiments of the present application, in above-mentioned implementation On the basis of the technical solution that example is provided, optionally, as shown in Fig. 2, this method includes:
S120, monitor application program installation or update after the completion of, the application program is determined as application to be optimized.
S121, the working condition for monitoring terminal device.
The specific implementation mode of aforesaid operations can refer to associated description above, and details are not described herein.
S122, judge whether the operating status of the application to be optimized is to be currently running.
S123, if it is not, then being carried out to the virtual machine execution file of the application to be optimized according to the working condition excellent Change is handled.
Wherein, the operating status of the application to be optimized be may include that the application to be optimized is in when being currently running Running background or the application to be optimized are in front stage operation.
It should be noted that the update or installation of the application program include not only update or the peace of entire application program Dress, can also be that the update or installation of the component included by the application program also have phase so when application program is currently running The installation or update operation answered.
And processing is optimized to the virtual machine execution file of application program if executed at this time, it may be to user to institute The use for stating application to be optimized impacts.So the operating status by judging application to be optimized, to decide whether execution pair The virtual machine execution file of the application to be optimized optimizes the operation of processing, can prevent the virtual machine to application to be optimized The optimization processing for executing file is impacted to the currently used operation of user, is made troubles to user.
Fig. 3 is another flow diagram for applying starting guide method provided by the embodiments of the present application, above-mentioned arbitrary On the basis of the technical solution that embodiment is provided, the operation to the application program to be determined as to application to be optimized has carried out excellent Change, optionally, as shown in figure 3, this method includes:
S130, after the completion of monitoring application program installation or update, list to be optimized is added in the application program.
The application program of at least one pending optimization processing is had recorded in the list to be optimized, that is, is monitoring to answer After the completion of being installed or updated with program, list to be optimized can be added in the application program.
S131, the application program in the list to be optimized is ranked up according to preset rules.
At least one application program that the list to be optimized includes, demand of the user to different application programs It is different.For example, belonging to the application program of the systemic hierarchial automatically updated, user can't directly operate it. So needing to be ranked up the application program in the list to be optimized, to determine the void at least one application program Quasi- machine executes the sequence that file optimizes processing.
Optionally, the application program in the list to be optimized is arranged according to the history frequency of use of application program Sequence.The history frequency of use may include in setting historical time section, and user is to the application journey in the list to be optimized Frequency of use or the history number of starts of sequence etc. are ranked up the application program in list according to the history frequency of use, The sequence of the application program in list can be made to meet the use habit of user.
S132, first application program in the list to be optimized is determined as application to be optimized.
First application program in list to be optimized is determined as application to be optimized, the use of user can be met as much as possible Processing habitually is optimized to the virtual machine execution file of corresponding application program, so as to further increase user to phase The operating efficiency for the application program answered.
S133, the working condition for monitoring terminal device.
S134, processing is optimized to the virtual machine execution file of the application to be optimized according to the working condition.
The specific implementation mode of aforesaid operations can refer to associated description above, and details are not described herein.
Optionally, before optimizing processing to the virtual machine execution file of the application to be optimized, further include:
Judge whether the operating status of the application to be optimized is to be currently running.
Specific implementation mode can refer to associated description above, and details are not described herein.
If it is, first application program in current list to be optimized is determined as application to be optimized, by the operation shape State is that list to be optimized is retracted in the application to be optimized being currently running, and returns to the operating status for executing and judging the application to be optimized Whether it is the operation being currently running.
Wherein, the first application program in the current list to be optimized is in the list to be optimized when executing operation S132 Sequence second application program, i.e., the described operating status is the latter application program for the application to be optimized being currently running.By It is currently running in application program, according to associated description above, the application program being currently running to virtual machine without executing text The operation of the optimization processing of part, and the application program being currently running can be retracted to list to be optimized at this time, and will sort second Application program as application to be optimized, rejudge the operating status of the application to be optimized, can improve to row to be optimized The efficiency of the optimization processing of the virtual machine execution file of application to be optimized in table.
Fig. 4 is another flow diagram for applying starting guide method provided by the embodiments of the present application, above-mentioned arbitrary On the basis of the technical solution that embodiment is provided, optionally, as shown in figure 4, this method includes:
S140, monitor application program installation or update after the completion of, the application program is determined as application to be optimized.
S141, the working condition for monitoring terminal device.
S142, processing is optimized to the virtual machine execution file of the application to be optimized according to the working condition.
The specific implementation mode of aforesaid operations can refer to associated description above, and details are not described herein.
S143, the extraneous of the monitoring terminal device trigger whether interface is called.
Wherein, it during the virtual machine execution file to the application to be optimized optimizes processing, continues to monitor Whether the extraneous triggering interface of the terminal device is called.The extraneous triggering interface includes terminal device for externally defeated The interface for going out signal to cause user to pay attention to, illustratively, external world's triggering interface include that audio triggers interface, vibration triggering connects Mouth, screen triggering interface and flash lamp triggering interface etc..And if extraneous triggering interface is called, terminal device outputs accordingly Signal, it is likely that can cause user's note that user will operate terminal device.
S144, when the extraneous triggering interface is called, determine whether to terminate the optimization processing according to end is called.
Wherein, the calling end is the executive agent for calling the extraneous triggering interface, and the executive agent can be eventually Application program in end equipment.If it is to remind the higher application program of priority in terminal device to call end, user must Specifically the application program calls the signal that extraneous triggering interface is exported.Illustratively, if the application program is Phone application in terminal device, due to there is incoming call, so the audio for having invoked terminal device triggers interface and screen triggering connects Mouthful etc., user if not terminating the optimization processing, uses it will be noted that terminal device and execute corresponding operation to terminal device Family will be noted that the optimization is operated when being operated to terminal device, it is also possible to user to the operation band of terminal device To influence.So when the extraneous triggering interface is called, determines whether to terminate the optimization processing according to end is called, keep away The use at calling end can be impacted by exempting from optimization processing, and be impacted to the use of terminal device to user.
Optionally, if it is the application to be optimized to call end, the optimization processing is continued to execute, and forbid the tune With operation;If it is not the application to be optimized to call end, the optimization processing is terminated.
Wherein, if it is the application to be optimized to call end, then it represents that be optimized apply is optimizing processing When, have invoked extraneous triggering interface, and extraneous triggering interface is by application to be optimized using internal automatic trigger.Show Example property, certain application programs upon actuation, have corresponding music, due to can perform the virtual machine of application to be optimized It when file optimizes processing, needs to start application to be optimized, may can cause audio triggering interface called at this time, and this When can cause the attention of user.Since user is ignorant to the operation of internal system, user may think that terminal device occurs The problems such as failure, in order to avoid causing the query of user, and avoids further influencing use of the user to terminal device, need The trigger action of the application to be optimized is forbidden, and continues to execute the optimization processing.
And if calling the not described application to be optimized in end, other applications may be then because of other application Program has message informing to need to remind user, so at this time terminating the optimization processing, avoids optimization processing right When calling the use at end to impact, or user being avoided to operate terminal device, the use of terminal device is made to user At influence.
Fig. 5 is another flow diagram for applying starting guide method provided by the embodiments of the present application, above-mentioned arbitrary On the basis of the technical solution that embodiment is provided, optionally, as shown in figure 5, this method includes:
S150, monitor application program installation or update after the completion of, the application program is determined as application to be optimized.
S151, the working condition for monitoring terminal device.
S152, processing is optimized to the virtual machine execution file of the application to be optimized according to the working condition.
The specific implementation mode of aforesaid operations can refer to associated description above, and details are not described herein.
S153, when monitoring system problem event, determine whether to terminate according to the initiation end of the system problem event The optimization processing.
Wherein, it during the virtual machine execution file to the application to be optimized optimizes processing, continues to monitor Whether system problem event is had, and the initiation end can be application program.When the system problem event is that application program is run Time the problem of systemic hierarchial occurred, it may include Crash events or anr (application not responding) thing Part.The Crash events are the crash event of application program, generally be will appear when the exception not captured occurs in application program Crash events.Anr events be application program without response events, usually system operation process occur block or operation in It will appear anr events when depositing deficiency.
Since system problem event has occurred, normal operation can not be continued by causing end, and system can correspondingly export one Problem dialogue box is reminded, and user can be appreciated that and ask when terminal device is switched to operating status by active by standby mode Topic dialog box and the initiation end interface blocked.It is being optimized in the virtual machine execution file of application to be optimized so needing to monitor When processing, system problem event is monitored, and determine whether to terminate the optimization processing according to end is caused, to avoid user The operation of terminal device is impacted, the operating efficiency of user is improved.
Optionally, if the initiation end of the system problem event is the application to be optimized, then it represents that described to be optimized Using the task process that can not also continue to complete optimization processing, it is possible to terminate the optimization processing;If the system is asked The initiation end of topic event is not the application to be optimized, then continues to execute the optimization processing.
Wherein, if the initiation end of system problem event is not the application to be optimized, may include system application or its He applies.The system application or the application program that other application is the spontaneous startup of meeting, if the initiation end of system problem event It is system application or other application, then can continues to execute the optimization processing, and the fortune that the corresponding application program in end will be caused Row terminates.
Fig. 6 is another flow diagram for applying starting guide method provided by the embodiments of the present application, above-mentioned arbitrary On the basis of the technical solution that embodiment is provided, optionally, as shown in fig. 6, this method includes:
S160, judge whether starting guide selecting switch opens.
Wherein, the starting guide selecting switch can be provided at the sub- option in the system setup option of terminal device, User can be corresponded to by being turned on and off starting guide selecting switch to control whether the working condition according to terminal device Processing is optimized with the virtual machine execution file of program.
If starting guide selection is not turned on, any application program in terminal device is not executed according to the work Make the operation that state optimizes the virtual machine execution file of the application to be optimized processing.And if starting guide selection is opened It closes and opens, then the condition for meeting the optimization processing is may further determine whether, to execute the operation of the optimization processing.
S161, if it is, judge it is described installation or update complete application program whether belong to default white list.
Wherein, the default white list can be for store without according to the working condition of terminal device come to application The virtual machine execution file of program optimizes the application program of processing, and user can pre-set default white list, presets white Application program in list is without the optimization processing.
The embodiment of the present application, can be to the application of terminal device by the way that starting guide selecting switch and default white list is arranged The optimization processing of program carries out more flexible management, and processing can be optimized according to the setting of user, improves user to terminal The operating efficiency of equipment.
S162, if it is not, then monitor application program installation or update after the completion of, the application program is determined as Application to be optimized.
S163, the working condition for monitoring terminal device.
S164, processing is optimized to the virtual machine execution file of the application to be optimized according to the working condition.
The specific implementation mode of aforesaid operations can refer to associated description above, and details are not described herein.
Fig. 7 is a kind of structure diagram using starting guide device provided by the embodiments of the present application, which can execute Using starting guide method, as shown in fig. 7, the device includes:
Determining module 210 to be optimized, for monitor application program installation or update after the completion of, by the application program It is determined as application to be optimized;
Working condition determining module 211, the working condition for monitoring terminal device;
Optimization processing module 212 is used for according to the working condition to the virtual machine execution file of the application to be optimized Optimize processing.
A kind of application starting guide device provided in the embodiment of the present application, by monitor application program installation or more After the completion of new, the application program is determined as application to be optimized;Monitor the working condition of terminal device;According to the work shape State optimizes processing to the virtual machine execution file of the application to be optimized.It, can be in standard by using above-mentioned technical proposal True opportunity optimizes the virtual machine execution file of application program, improve updated application program for the first time use when Response speed.
Optionally, further include:
First operation judgment module, for optimizing processing in the virtual machine execution file to the application to be optimized Before, judge whether the operating status of the application to be optimized is to be currently running;
Processing is optimized to the virtual machine execution file in the installation kit of the application to be optimized if it is not, then executing Operation.
Optionally, determining module to be optimized specifically includes:
Module is added in list, for list to be optimized to be added in the application program;
Sorting module, for being ranked up to the application program in the list to be optimized according to preset rules;
Using determining module, for first application program in the list to be optimized to be determined as application to be optimized.
Optionally, sorting module is specifically used for:
The application program in the list to be optimized is ranked up according to the history frequency of use of application program.
Optionally, further include:
Second operation judgment module, for optimizing processing in the virtual machine execution file to the application to be optimized Before, judge whether the operating status of the application to be optimized is to be currently running;
If it is, first application program in current list to be optimized is determined as application to be optimized, by the operation shape State is that list to be optimized is retracted in the application to be optimized being currently running, and returns to the operating status for executing and judging the application to be optimized Whether it is the operation being currently running.
Optionally, further include:
Interface calls monitoring modular, is carried out for the virtual machine execution file in the installation kit to the application to be optimized When optimization processing, whether the extraneous triggering interface for monitoring the terminal device is called;
First optimization terminates module, for when external world's triggering interface is called, determining whether end according to end is called The only optimization processing.
Optionally, optimization terminates module and is specifically used for:
If it is the application to be optimized to call end, the optimization processing is continued to execute, and forbid the call operation;
If it is not the application to be optimized to call end, the optimization processing is terminated.
Optionally, further include:
Problem incident monitoring modular is carried out for the virtual machine execution file in the installation kit to the application to be optimized When optimization processing, when monitoring system problem event, determined whether to terminate institute according to the initiation end of the system problem event State optimization processing.
Optionally, problem incident monitoring modular is specifically used for:
If the initiation end of the system problem event is the application to be optimized, the optimization processing is terminated;
If the initiation end of the system problem event is not the application to be optimized, continue to execute at the optimization Reason.
Optionally, optimization processing module is specifically used for:
If terminal device is in standby and meets setting condition, the virtual machine of the application to be optimized is executed File optimizes processing.
Optionally, optimization processing module is specifically used for:
If the terminal device is in standby, the duration of standby mode reaches setting duration and terminal The battery of equipment is in charged state.
Optionally, further include:
Judgment module is opened, for before the application program is determined as application to be optimized, judging that starting guide selects Select whether switch is opened;
If it is, judging whether the application program that the installation or update are completed belongs to default white list;
If it is not, then executing the operation that the application program is determined as to application to be optimized.
A kind of storage medium including computer executable instructions that the embodiment of the present application is provided, computer are executable It instructs the application starting guide being not limited to the described above to operate, the application that the application any embodiment is provided can also be performed and open Relevant operation in dynamic optimization method.
The embodiment of the present application also provides a kind of storage medium including computer executable instructions, and the computer is executable When being executed by computer processor for executing using starting guide method, this method includes for instruction:
After the completion of monitoring application program installation or update, the application program is determined as application to be optimized;
Monitor the working condition of terminal device;
Processing is optimized to the virtual machine execution file of the application to be optimized according to the working condition.
Storage medium --- any various types of memory devices or storage device.Term " storage medium " is intended to wrap It includes:Install medium, such as CD-ROM, floppy disk or magnetic tape equipment;Computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, blue Bath (Rambus) RAM etc.;Nonvolatile memory, such as flash memory, magnetic medium (such as hard disk or optical storage);The memory component etc. of register or other similar types.Storage medium can further include other Memory of type or combinations thereof.In addition, storage medium can be located at program in the first computer system being wherein performed, Or can be located in different second computer systems, second computer system is connected to the by network (such as internet) One computer system.Second computer system can provide program instruction to the first computer for executing." storage is situated between term Matter " may include may reside in different location two of (such as in different computer systems by network connection) or More storage mediums.Storage medium can store the program instruction that can be executed by one or more processors and (such as implement For computer program).
The embodiment of the present application provides a kind of terminal device, and provided by the embodiments of the present application answer can be integrated in the terminal device With starting guide device.
Fig. 8 is a kind of structural schematic diagram of terminal device provided by the embodiments of the present application, and the embodiment of the present application provides one Kind of terminal device 30, including memory 31, processor 32 and are stored in the computer that can be run on memory 31 and in processor Program, the processor is realized when executing the computer program applies starting guide method described in above-described embodiment.This Shen Please embodiment provide terminal device, the virtual machine execution file of application program can be optimized on accurate opportunity, be carried Response speed of the application program when using for the first time after Gao Gengxin.
Fig. 9 is a kind of structural schematic diagram of terminal device provided by the embodiments of the present application.As shown in figure 9, the terminal device May include:Shell (not shown), touch screen (not shown), touch key-press (not shown), memory 301, Central processing unit (Central Processing Unit, CPU) 302 (also known as processor, hereinafter referred to as CPU), circuit board (figure In be not shown) and power circuit (not shown).The circuit board is placed in the space interior that the shell surrounds;It is described CPU302 and the memory 301 are arranged on the circuit board;The power circuit, for being each of the terminal device Circuit or device power supply;The memory 301, for storing executable program code;The CPU302 described in reading by depositing The executable program code stored in reservoir 301 runs computer program corresponding with the executable program code, with reality Existing following steps:
After the completion of monitoring application program installation or update, the application program is determined as application to be optimized;
Monitor the working condition of terminal device;
Processing is optimized to the virtual machine execution file of the application to be optimized according to the working condition.
The terminal device further includes:Peripheral Interface 303, RF (Radio Frequency, radio frequency) circuit 305, audio-frequency electric Road 306, loud speaker 311, power management chip 308, input/output (I/O) subsystem 309, touch screen 312, other input/controls Control equipment 310 and outside port 304, these components are communicated by one or more communication bus or signal wire 307.
It should be understood that graphic terminal 300 is only an example of terminal device, and terminal device 300 Can have than shown in the drawings more or less component, can combine two or more components, or can be with It is configured with different components.Various parts shown in the drawings can be including one or more signal processings and/or special It is realized in the combination of hardware, software or hardware and software including integrated circuit.
Just the terminal device provided in this embodiment for realizing application starting guide is described in detail below, the end End equipment is by taking mobile phone as an example.
Memory 301, the memory 301 can be by access such as CPU302, Peripheral Interfaces 303, and the memory 301 can Can also include nonvolatile memory to include high-speed random access memory, such as one or more disk memory, Flush memory device or other volatile solid-state parts.
The peripheral hardware that outputs and inputs of equipment can be connected to CPU302 and deposited by Peripheral Interface 303, the Peripheral Interface 303 Reservoir 301.
I/O subsystems 309, the I/O subsystems 309 can be by the input/output peripherals in equipment, such as touch screen 312 With other input/control devicess 310, it is connected to Peripheral Interface 303.I/O subsystems 309 may include 3091 He of display controller One or more input controllers 3092 for controlling other input/control devicess 310.Wherein, one or more input controls Device 3092 processed receives electric signal from other input/control devicess 310 or sends electric signal to other input/control devicess 310, Other input/control devicess 310 may include physical button (pressing button, rocker buttons etc.), dial, slide switch, behaviour Vertical pole clicks idler wheel.It is worth noting that input controller 3092 can with it is following any one connect:Keyboard, infrared port, The indicating equipment of USB interface and such as mouse.
Touch screen 312, the touch screen 312 are the input interface and output interface between subscriber terminal equipment and user, Visual output is shown to user, visual output may include figure, text, icon, video etc..
Display controller 3091 in I/O subsystems 309 receives electric signal from touch screen 312 or is sent out to touch screen 312 Electric signals.Touch screen 312 detects the contact on touch screen, and the contact detected is converted to and is shown by display controller 3091 The interaction of user interface object on touch screen 312, that is, realize human-computer interaction, the user interface being shown on touch screen 312 Object can be the icon of running game, be networked to the icon etc. of corresponding network.It is worth noting that equipment can also include light Mouse, light mouse are the extensions for the touch sensitive surface for not showing the touch sensitive surface visually exported, or formed by touch screen.
RF circuits 305 are mainly used for establishing the communication of mobile phone and wireless network (i.e. network side), realize mobile phone and wireless network The data receiver of network and transmission.Such as transmitting-receiving short message, Email etc..Specifically, RF circuits 305 receive and send RF letters Number, RF signals are also referred to as electromagnetic signal, and RF circuits 305 convert electrical signals to electromagnetic signal or electromagnetic signal is converted to telecommunications Number, and communicated with communication network and other equipment by the electromagnetic signal.RF circuits 305 may include for executing The known circuit of these functions comprising but it is not limited to antenna system, RF transceivers, one or more amplifiers, tuner, one A or multiple oscillators, digital signal processor, CODEC (COder-DECoder, coder) chipset, user identifier mould Block (Subscriber Identity Module, SIM) etc..
Voicefrequency circuit 306 is mainly used for receiving audio data from Peripheral Interface 303, which is converted to telecommunications Number, and the electric signal is sent to loud speaker 311.
Loud speaker 311, the voice signal for receiving mobile phone from wireless network by RF circuits 305, is reduced to sound And play the sound to user.
Power management chip 308, the hardware for being connected by CPU302, I/O subsystem and Peripheral Interface are powered And power management.
Terminal device provided by the embodiments of the present application, can be on accurate opportunity to the virtual machine execution file of application program It optimizes, improves response speed of the updated application program when using for the first time.
It is arbitrary that application starting guide device, storage medium and the terminal device provided in above-described embodiment can perform the application What embodiment was provided applies starting guide method, has and executes the corresponding function module of this method and advantageous effect.Not upper The technical detail of detailed description in embodiment is stated, reference can be made to the application starting guide method that the application any embodiment is provided.
Note that above are only preferred embodiment and the institute's application technology principle of the application.It will be appreciated by those skilled in the art that The application is not limited to specific embodiment described here, can carry out for a person skilled in the art it is various it is apparent variation, The protection domain readjusted and substituted without departing from the application.Therefore, although being carried out to the application by above example It is described in further detail, but the application is not limited only to above example, in the case where not departing from the application design, also May include other more equivalent embodiments, and scope of the present application is determined by scope of the appended claims.

Claims (13)

1. a kind of application starting guide method, which is characterized in that including:
After the completion of monitoring application program installation or update, the application program is determined as application to be optimized;
Monitor the working condition of terminal device;
Processing is optimized to the virtual machine execution file of the application to be optimized according to the working condition.
2. the method as described in claim 1, which is characterized in that carried out to the virtual machine execution file of the application to be optimized excellent Before change processing, further include:
Judge whether the operating status of the application to be optimized is to be currently running;
If it is not, then executing the behaviour for optimizing processing to the virtual machine execution file in the installation kit of the application to be optimized Make.
3. the method as described in claim 1, which is characterized in that the application program, which is determined as application to be optimized, includes:
List to be optimized is added in the application program;
The application program in the list to be optimized is ranked up according to preset rules;
First application program in the list to be optimized is determined as application to be optimized.
4. method as claimed in claim 3, which is characterized in that carried out to the virtual machine execution file of the application to be optimized excellent Before change processing, further include:
Judge whether the operating status of the application to be optimized is to be currently running;
If it is, first application program in current list to be optimized is determined as application to be optimized, it is by the operating status List to be optimized is retracted in the application to be optimized being currently running, and is returned and whether executed the operating status for judging the application to be optimized For the operation being currently running.
5. the method as described in claim 1, which is characterized in that executed to the virtual machine in the installation kit of the application to be optimized When file optimizes processing, further include:
Whether the extraneous triggering interface for monitoring the terminal device is called;
When the extraneous triggering interface is called, determine whether to terminate the optimization processing according to end is called.
6. method as claimed in claim 5, which is characterized in that determine whether to terminate the optimization processing packet according to end is called It includes:
If it is the application to be optimized to call end, the optimization processing is continued to execute, and forbid the call operation;
If it is not the application to be optimized to call end, the optimization processing is terminated.
7. the method as described in claim 1, which is characterized in that executed to the virtual machine in the installation kit of the application to be optimized When file optimizes processing, further include:
When monitoring system problem event, determine whether to terminate at the optimization according to the initiation end of the system problem event Reason.
8. the method for claim 7, which is characterized in that determine whether end according to the initiation end of the system problem event Only the optimization processing includes:
If the initiation end of the system problem event is the application to be optimized, the optimization processing is terminated;
If the initiation end of the system problem event is not the application to be optimized, the optimization processing is continued to execute.
9. such as claim 1 any one of them method, which is characterized in that according to the working condition of terminal device to it is described wait for it is excellent The virtual machine execution file of change application optimizes processing and includes:
If terminal device is in standby and meets setting condition, to the virtual machine execution file of the application to be optimized Optimize processing.
10. such as claim 9 any one of them method, which is characterized in that if the terminal device be in standby and Meet to impose a condition and includes:
If the terminal device is in standby, the duration of standby mode reaches setting duration and terminal device Battery be in charged state.
11. a kind of application starting guide device, which is characterized in that including:
Determining module to be optimized, for after the completion of monitoring application program installation or update, the application program to be determined as Application to be optimized;
Working condition determining module, the working condition for monitoring terminal device;
Optimization processing module, for being optimized to the virtual machine execution file of the application to be optimized according to the working condition Processing.
12. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor It is realized when execution and applies starting guide method as described in any one of claim 1-10.
13. a kind of terminal device, which is characterized in that including memory, processor and storage are on a memory and can be in processor The computer program of operation, which is characterized in that the processor realizes such as claim 1-10 when executing the computer program Any one of them application starting guide method.
CN201810343946.6A 2018-04-17 2018-04-17 Application starting optimization method and device, storage medium and terminal equipment Expired - Fee Related CN108536488B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810343946.6A CN108536488B (en) 2018-04-17 2018-04-17 Application starting optimization method and device, storage medium and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810343946.6A CN108536488B (en) 2018-04-17 2018-04-17 Application starting optimization method and device, storage medium and terminal equipment

Publications (2)

Publication Number Publication Date
CN108536488A true CN108536488A (en) 2018-09-14
CN108536488B CN108536488B (en) 2021-12-07

Family

ID=63480428

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810343946.6A Expired - Fee Related CN108536488B (en) 2018-04-17 2018-04-17 Application starting optimization method and device, storage medium and terminal equipment

Country Status (1)

Country Link
CN (1) CN108536488B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109522034A (en) * 2018-09-27 2019-03-26 努比亚技术有限公司 A kind of optimizing application method, terminal and computer readable storage medium
CN111492345A (en) * 2018-10-15 2020-08-04 华为技术有限公司 Method for optimizing and running android application program and related device
CN112035172A (en) * 2020-09-03 2020-12-04 腾讯科技(深圳)有限公司 Operating system starting method, device, server and storage medium
CN112328316A (en) * 2019-08-02 2021-02-05 Tcl集团股份有限公司 APP optimization method, mobile terminal and storage medium
US20220300328A1 (en) * 2019-12-11 2022-09-22 Huizhou Tcl Mobile Communication Co., Ltd. Application optimization method and device, storage medium, and electronic equipment
CN115185652A (en) * 2021-06-15 2022-10-14 荣耀终端有限公司 Application optimization method and device and electronic equipment
US20230030132A1 (en) * 2021-08-02 2023-02-02 Samsung Electronics Co., Ltd. Application optimization method and apparatus supporting the same

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150154407A1 (en) * 2013-09-27 2015-06-04 Soongsil University Research Consortium Techno-Park Apparatus for tamper protection of application code based on self modification and method thereof
CN105677335A (en) * 2015-12-29 2016-06-15 广东欧珀移动通信有限公司 Method and device for increasing first starting speed of mobile terminal
CN106201714A (en) * 2016-06-30 2016-12-07 宇龙计算机通信科技(深圳)有限公司 A kind of ODEX optimization method and system
CN106250180A (en) * 2016-07-27 2016-12-21 宇龙计算机通信科技(深圳)有限公司 A kind of ODEX optimal control method and mobile terminal
US20170220335A1 (en) * 2016-02-02 2017-08-03 ZeroTurnaround AS System and Method for Fast Initial and Incremental Deployment of Apps
US20180025153A1 (en) * 2013-12-30 2018-01-25 Beijing Qihoo Technology Company Limited Method and device for detecting malicious code in an intelligent terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150154407A1 (en) * 2013-09-27 2015-06-04 Soongsil University Research Consortium Techno-Park Apparatus for tamper protection of application code based on self modification and method thereof
US20180025153A1 (en) * 2013-12-30 2018-01-25 Beijing Qihoo Technology Company Limited Method and device for detecting malicious code in an intelligent terminal
CN105677335A (en) * 2015-12-29 2016-06-15 广东欧珀移动通信有限公司 Method and device for increasing first starting speed of mobile terminal
US20170220335A1 (en) * 2016-02-02 2017-08-03 ZeroTurnaround AS System and Method for Fast Initial and Incremental Deployment of Apps
CN106201714A (en) * 2016-06-30 2016-12-07 宇龙计算机通信科技(深圳)有限公司 A kind of ODEX optimization method and system
CN106250180A (en) * 2016-07-27 2016-12-21 宇龙计算机通信科技(深圳)有限公司 A kind of ODEX optimal control method and mobile terminal

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109522034A (en) * 2018-09-27 2019-03-26 努比亚技术有限公司 A kind of optimizing application method, terminal and computer readable storage medium
CN111492345A (en) * 2018-10-15 2020-08-04 华为技术有限公司 Method for optimizing and running android application program and related device
CN112328316A (en) * 2019-08-02 2021-02-05 Tcl集团股份有限公司 APP optimization method, mobile terminal and storage medium
US20220300328A1 (en) * 2019-12-11 2022-09-22 Huizhou Tcl Mobile Communication Co., Ltd. Application optimization method and device, storage medium, and electronic equipment
CN112035172A (en) * 2020-09-03 2020-12-04 腾讯科技(深圳)有限公司 Operating system starting method, device, server and storage medium
CN112035172B (en) * 2020-09-03 2022-05-17 腾讯科技(深圳)有限公司 Operating system starting method, device, server and storage medium
CN115185652A (en) * 2021-06-15 2022-10-14 荣耀终端有限公司 Application optimization method and device and electronic equipment
US20230030132A1 (en) * 2021-08-02 2023-02-02 Samsung Electronics Co., Ltd. Application optimization method and apparatus supporting the same

Also Published As

Publication number Publication date
CN108536488B (en) 2021-12-07

Similar Documents

Publication Publication Date Title
CN108536488A (en) Using starting guide method, apparatus, storage medium and terminal device
CN107734616B (en) Application program closing method and device, storage medium and electronic equipment
CN108388431A (en) The newer control method of application program heat, device, storage medium and mobile terminal
CN107329559B (en) Application program control method, device, terminal and storage medium
CN107783803B (en) System optimization method and device of intelligent terminal, storage medium and intelligent terminal
CN106776036A (en) A kind of resource allocation methods and device
CN107844341B (en) Process starting control method and device, storage medium and mobile terminal
CN107566609B (en) Download task processing method, device, terminal and storage medium
CN107943270B (en) Application service control method and device, storage medium and mobile terminal
CN110225167B (en) Terminal and processing method
CN106055408A (en) Application control method and mobile terminal
CN106937258B (en) A kind of control method of broadcast, device and mobile terminal
CN109445994A (en) Starting processing method, device, terminal device and storage medium
CN111290926A (en) Terminal prompting method and device, storage medium and terminal
CN108804138A (en) application operating optimization method, device, storage medium and terminal device
CN107885588B (en) Application service control method and device, storage medium and mobile terminal
CN107870792B (en) Starting method of mobile terminal, mobile terminal and medium product
CN108196664A (en) screen display method, device, storage medium and terminal
CN108287605A (en) charge control method, device, terminal device and storage medium
US10863521B1 (en) Broadcast receiver control method and apparatus, and mobile terminal
CN107277906B (en) Mode selecting method, device, terminal and computer readable storage medium
CN107832131B (en) Application program closing method and device, storage medium and electronic equipment
CN107291213B (en) Mode selection method, device, terminal and computer readable storage medium
CN107766218A (en) system optimization method, device, storage medium and terminal device
CN106937370A (en) A kind of broadcast message sending method, device and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20211207