CN107844342A - Management-control method, device and the storage medium and mobile terminal of application program keep-alive - Google Patents
Management-control method, device and the storage medium and mobile terminal of application program keep-alive Download PDFInfo
- Publication number
- CN107844342A CN107844342A CN201711168305.3A CN201711168305A CN107844342A CN 107844342 A CN107844342 A CN 107844342A CN 201711168305 A CN201711168305 A CN 201711168305A CN 107844342 A CN107844342 A CN 107844342A
- Authority
- CN
- China
- Prior art keywords
- application program
- service
- foreground
- application
- program
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44594—Unloading
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/329—Power saving characterised by the action undertaken by task scheduling
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5027—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
Abstract
The embodiment of the present application, which discloses management-control method, device and the storage medium of a kind of application program keep-alive and mobile terminal, methods described, to be included:Obtain the application message for the application program that request sets foreground to service;The application message is based on according to default foreground service Provisioning Policy, judges whether the application program can set foreground to service;If it is not, the application program is then forbidden to set foreground to service, to forbid the application program by setting foreground service to carry out keep-alive.The technical scheme that the embodiment of the present application provides; can reasonably management and control application program keep-alive operation; rogue application is prevented by setting foreground service to carry out keep-alive, and wastes the operation resource and electricity of mobile terminal, also improves the fluency of running of mobile terminal.
Description
Technical field
The invention relates to apply management and control technical field, more particularly to a kind of management-control method of application program keep-alive,
Device and storage medium and mobile terminal.
Background technology
The species of application program and achievable function are more and more in the mobile terminals such as mobile phone, are life and the work of people
Provide convenience, people can take phone using mobile phone, can also listen music, viewing video, play game etc..But some flow
Common people's application program by some keep-alive mode self-startings or remains on state to keep oneself to run always.
In correlation technique, for application program keep-alive management-control method existing defects, it is necessary to improve.
The content of the invention
The embodiment of the present application provides a kind of management-control method, device and the storage medium and mobile terminal of application program keep-alive,
Can rational management and control application program keep-alive.
In a first aspect, the embodiment of the present application provides a kind of management-control method of application program keep-alive, including:
Obtain the application message for the application program that request sets foreground to service;
The application message is based on according to default foreground service Provisioning Policy, judges whether the application program can be set
Foreground services;
If it is not, the application program is then forbidden to set foreground to service, to forbid the application program by setting foreground to take
It is engaged in carry out keep-alive.
In second aspect, the embodiment of the present application provides a kind of control device of application program keep-alive, including:
Application message acquisition module, for obtaining the application message for the application program for asking to set foreground to service;
Foreground service sets judge module, for being based on the application message according to default foreground service Provisioning Policy, sentences
Whether the application program of breaking can set foreground to service;
Whether foreground service sets disabled module, if foreground cannot be set to service for the application program, forbid
The application program sets foreground to service, to forbid the application program by setting foreground service come self-starting.
The third aspect, the embodiment of the present application provide a kind of computer-readable recording medium, are stored thereon with computer journey
Sequence, the management-control method of the application program keep-alive provided such as first aspect is realized when the program is executed by processor.
In fourth aspect, the embodiment of the present application provides a kind of mobile terminal, including memory, processor and is stored in
Realized on reservoir and the computer program that can run on a processor, during the computing device as what first aspect was provided answers
With the management-control method of program keep-alive.
The application message for the application program that the embodiment of the present application sets foreground to service by obtaining request, according to default foreground
Service Provisioning Policy is based on the application message, judges whether the application program can set foreground to service, if judged result
For cannot, then forbid the application to set foreground to service, to prevent the application program by setting foreground service to carry out
Keep-alive, can rational management and control application program keep-alive operation, avoid because some rogues apply keep-alive oneself, and waste and move
The operation resource and electricity of terminal, also improve the fluency of running of mobile terminal.
Brief description of the drawings
Fig. 1 is a kind of flow chart of the management-control method for application program keep-alive that the embodiment of the present application provides;
Fig. 2 is the flow chart of the management-control method for another application program keep-alive that the embodiment of the present application provides;
Fig. 3 is the flow chart of the management-control method for another application program keep-alive that the embodiment of the present application provides;
Fig. 4 is a kind of structural representation of the control device for application program keep-alive that the embodiment of the present application provides;
Fig. 5 is a kind of structural representation for mobile terminal that the embodiment of the present application provides;
Fig. 6 is the structural representation for another mobile terminal that the embodiment of the present application provides.
Embodiment
In order that the purpose, technical scheme and advantage of the application are clearer, below in conjunction with the accompanying drawings to the specific reality of the application
Example is applied to be described in further detail.It is understood that specific embodiment described herein is used only for explaining the application,
Rather than the restriction to the application.It also should be noted that for the ease of describing, illustrate only in accompanying drawing related to the application
Part rather than full content.It should be mentioned that some exemplary realities before exemplary embodiment is discussed in greater detail
Apply processing or method that example is described as describing as flow chart.Although operations (or step) are described as order by flow chart
Processing, but many of which operation can be implemented concurrently, concomitantly or simultaneously.In addition, the order of operations
It can be rearranged.The processing can be terminated when its operations are completed, it is also possible to being not included in accompanying drawing
Additional step.The processing can correspond to method, function, code, subroutine, subprogram etc..
Fig. 1 gives a kind of flow chart of the management-control method of application program keep-alive of the embodiment of the present application offer, this implementation
The method of example can be performed by the control device of application program keep-alive, and the device can be real by way of hardware and/or software
Existing, described device can be arranged on the inside of the mobile terminal as a mobile terminal part.Shifting described in the application implementation
Dynamic terminal includes the equipment such as mobile phone, tablet personal computer or notebook.
As shown in figure 1, the management-control method for the application program keep-alive that the present embodiment provides comprises the following steps:
Step 101, the application message for obtaining the application program that request sets foreground to service.
Service is a kind of non-visual running background logic, for providing running background service for application, can be claimed
Service is played for service, such as Background music.Service is nearly all that it is all dumbly all the time in running background
Do arduous work.But service system priority is still than relatively low, when there is low memory situation in system,
It is possible to recycle just in the service of running background.If it is desired to service can be always maintained at running status, and
It will not cause to be recovered due to Installed System Memory deficiency, it is possible to which consideration uses foreground service, then system will be considered that
The service be it is visible to user, can't be before in low memory, kill falls application program corresponding to the service or the service
Difference maximum platform Service and common Service is that it can have shape of the icon being currently running in system always
State column is shown, it can be seen that more detailed information, is very similar to the effect notified behind pull-down state column.This set foreground
The mode of service keep-alive application program can also be utilized by some rogue applications, by setting notice by the application program
After some service is arranged to foreground service, oneself actively goes to remove notice, user can not perceive, but system is again because be foreground
Service, will not go to clear up it, cause the process of the application program to keep resident, so as to realize the keep-alive of the application program.Wherein,
The keep-alive of the application program can be closing application program afterwards by setting foreground service come self-starting, or application
Some service is arranged to foreground service during operation and keeps resident operation by program, the embodiment of the present application to this simultaneously
It is not limited.
The technical scheme that the present embodiment provides is applicable to application program by setting foreground service come the applied field of keep-alive
Scape.When the event for detecting that application requests set foreground to service is triggered, the application that request sets foreground to service is obtained
The application message of program.
Wherein, the event for detecting that application requests set foreground to service is triggered and can included:Detect tune
With for setting the event of the setting function of foreground service to be triggered, the setting function can be startForeground letters
Number.
The application message can include application attribute information and/or application configuration information and/or the application operation of application
Information etc..The application attribute information can include:User identifies (User Identifier, UID), using bag name and process
Identify information such as (Process Identifier, PID).The application configuration information can include:Whether the application is arranged to
The member in white list is set, the self-starting switch of the either application whether is set on or whether the application is arranged to
Conventional application of user etc..The application operation information can include:Frequency of use, running priority level or the application of the application
The running situation information such as type, either the application in the process of running the feedback information of user or this apply in running
In number etc. for whether having corresponding foreground interface and/or setting foreground to service in the process of running.The feedback letter of the user
Breath can be including user's manual-lock application program.
Step 102, according to default foreground service Provisioning Policy be based on the application message, whether judge the application program
Foreground can be set to service, if so, step 103 is then performed, if otherwise performing step 104.
The application attribute information and/or application configuration information are based on according to default foreground service Provisioning Policy and/or are answered
With operation information, judge whether the application program can set foreground to service.If judged result is that the application program can be with
Foreground is set to service, then it is normal application to illustrate the application program, then it is the application program that can control execution
The operation for setting foreground to service, foreground cannot be set to service if judged result is the application program, then to illustrate described answer
It is that rogue applies with program, then forbids the application program to set foreground to service.
Step 103, the application program is forbidden to set foreground to service, to forbid the application program by setting foreground to take
It is engaged in carry out keep-alive.
Wherein, the implementation for forbidding the application program to set foreground to service can be to forbid calling above-mentioned set
Function is determined to set foreground to service, or forbids performing the operation for eliminating notice, has let the user know that so application program
There is provided foreground service, can be chosen whether to close the application program by user.Judging application program according to above-mentioned steps 102
For rogue apply after, by forbid using set foreground service, it is possible to achieve forbid application program by set foreground service come
Carry out keep-alive.
Step 104, control the operation for performing and setting foreground to service for the application program.
In some embodiments, can also comprise the following steps:The application program is preserved using bag name,
Record as intercepting, and recorded to described intercept of user's displaying.
In some embodiments, can also comprise the following steps:If the application program is system built-in application, permit
Perhaps described application program sets foreground to service.
In some embodiments, can also comprise the following steps:From described in server or mobile terminal locally acquisition
Default foregrounding strategy.
In some embodiments, the application message is being based on according to default foreground service Provisioning Policy, described in judgement
Before whether application program can set foreground service, it can also comprise the following steps:Judge that the application requests are set
Whether the destination service for foreground service meets that second imposes a condition, if, it is determined that the application program can be by the mesh
Mark service is arranged to foreground service;If it is not, then the application message is based on according to default foreground service Provisioning Policy, described in judgement
Before whether application program can set foreground to service or determine that the destination service cannot be arranged to by the application program
Platform service.Described second impose a condition can be the destination service service name it is default service white list in, or
The service type of the destination service is to set service type, such as payment services type etc..
The method that the present embodiment provides, by obtaining the application message for the application program for asking to set foreground to service, according to
Default foreground service Provisioning Policy is based on the application message, judges whether the application program can set foreground to service, if
Judged result for cannot, then forbid the application to set foreground to service, to prevent the application program by setting foreground to take
Business carries out keep-alive, can the keep-alive of rational management and control application program operate, avoid because some rogues apply keep-alive oneself, and
The operation resource and electricity and flow of mobile terminal are wasted, also improves the fluency of running of mobile terminal.
Fig. 2 gives the flow chart of the management-control method of another application program keep-alive of the embodiment of the present application offer, such as Fig. 2
Shown, the method that the present embodiment provides comprises the following steps:
Step 201, the application message for obtaining the application program that request sets foreground to service.
Step 202, according to the first default foreground service Provisioning Policy, the application configuration information based on the application program,
Judge whether the application program can set foreground to service.If so, step 203 is then performed, if otherwise performing step 204.
In some embodiments, the step 202 can include:If the application program is in white list is set, really
The fixed application program can set foreground to service, otherwise, it determines the application program cannot set foreground to service;Or
If the self-starting switch of the application program is opened, it is determined that the application program can set foreground to service, otherwise, it determines institute
Stating application program cannot set foreground to service.If the application program in white list is set, illustrates the application program for just
Often application, then can determine that the application program can set foreground to service, and otherwise, illustrate that the application program is applied for rogue, then really
The fixed application cannot set foreground to service;If the self-starting switch of the application program is opened, illustrate the application program for can
With the normal use of self-starting and the in good time keep-alive of progress, then it can determine that the application program can set foreground to service, otherwise, explanation
The application program is applied for rogue, it is determined that the application cannot set foreground to service.Wherein it is possible to user is commonly used or compared
More basic application program is arranged in white list, for example, wechat application is arranged in white list, and game application is not set
Put in white list.
Optionally, it is further comprising the steps of:The default white list is locally obtained from server or mobile terminal.Enter one
Step, the default white list, for example, when receiving the more new command of user, can be updated described default white with real-time update
List, or when detecting the destination application for meeting update condition, destination application is added to default white list
In, the update condition can include white added to presetting when the number that intended application is started by user reaches the setting number of starts
List, or self-starting number be more than setting the number of starts when, deleted from default white list.
Optionally, it is determined that the application program can set foreground service after, can also include:Judge the application
For program after setting foreground to service, whether system sends corresponding notice;If it is not, the application program is then included in blacklist,
It is follow-up not allow the application program to set foreground to service.Typically, can be in state if application program is after setting foreground to service
Corresponding notice is shown in column, if system is not given notice, then explanation is that rogue is applied to not let the user know that it stealthily
Notice is removed in operation, then the application program can be added in blacklist.
Step 203, the application program is forbidden to set foreground to service, to forbid the application program by setting foreground to take
It is engaged in carry out keep-alive.
Step 204, control the operation for performing and setting foreground to service for the application program.
The method that the present embodiment provides, by obtaining the application message for the application program for asking to set foreground to service, according to
First default foreground service application configuration information of the Provisioning Policy based on the application program, judges that the application program whether may be used
To set foreground to service, if judged result for cannot, forbid the application to set foreground to service, to prevent from described applying journey
Sequence carries out keep-alive by setting foreground service, can reasonably management and control application program keep-alive operation, avoid due to some flow
The common people apply keep-alive oneself, and waste the operation resource and electricity and flow of mobile terminal, also improve running of mobile terminal
Fluency.
Fig. 3 gives the flow chart of the management-control method of another application program keep-alive of the embodiment of the present application offer, such as Fig. 3
Shown, the method that the present embodiment provides comprises the following steps:
Step 301, the application message for obtaining the application program that request sets foreground to service.
Step 302, service Provisioning Policy in foreground is preset according to second, operation information is applied based on the application program,
Judge whether the application program can set foreground to service, if so, step 303 is then performed, if otherwise performing step 304.
In some embodiments, the step 302 can include:If the setting attribute of the application program meets that first sets
Fixed condition, it is determined that the application program can set foreground to service, otherwise, it determines the application program cannot set foreground
Service, the setting attribute is including the use of at least one in frequency, running priority level and type;Or if described apply journey
The number that sequence is the application program without foreground interface and sets foreground to service is more than setting number, it is determined that the application program is not
Foreground can be set to service, otherwise, it determines the application program can set foreground to service.Wherein, described first impose a condition
Setpoint frequency can be more than including the use of frequency, running priority level is more than setting priority, and application type is in setting type
At least one of.When frequency of use is more than setpoint frequency, it is the application that user is commonly used to illustrate the application program, normally should be
With.Exemplary, the setting type can be calendar, shot type etc..
Optionally, it is determined that the application program can set foreground service after, in addition to:Judge the application program
After setting foreground to service, whether system gives notice;If it is not, the application program then is included in into blacklist, do not permit subsequently
Perhaps described application program sets foreground to service.
Step 303, the application program is forbidden to set foreground to service, to forbid the application program by setting foreground to take
It is engaged in carry out keep-alive.
Step 304, control the operation for performing and setting foreground to service for the application program.
The method that the present embodiment provides, by obtaining the application message for the application program for asking to set foreground to service, according to
Second default foreground service Provisioning Policy applies operation information based on the application program, judges that the application program whether may be used
To set foreground to service, if judged result for cannot, forbid the application to set foreground to service, to prevent from described applying journey
Sequence carries out keep-alive by setting foreground service, can reasonably management and control application program keep-alive operation, avoid due to some flow
The common people apply keep-alive oneself, and waste the operation resource and electricity and flow of mobile terminal, also improve running of mobile terminal
Fluency.
A kind of structural representation of the control device for application program keep-alive that Fig. 4 provides for the embodiment of the present application, the device
It can be realized, be integrated in the terminal by software and/or hardware.As shown in figure 4, the device includes application message acquisition module
41st, foreground service sets judge module 42 and foreground service to set disabled module 43.
The application message acquisition module 41, for obtaining the application message for the application program for asking to set foreground to service;
The foreground service sets judge module 42, is believed for servicing Provisioning Policy according to default foreground based on the application
Breath, judges whether the application program can set foreground to service;
The foreground service sets disabled module 43, if whether foreground cannot be set to service for the application program,
The application program is then forbidden to set foreground to service, to forbid the application program by setting foreground service come self-starting.
The control device for the application program keep-alive that the present embodiment provides, by obtaining the application journey for asking to set foreground to service
The application message of sequence, the application message is based on according to default foreground service Provisioning Policy, judges that the application program whether may be used
To set foreground to service, if judged result for cannot, forbid the application to set foreground to service, to prevent from described applying journey
Sequence carries out keep-alive by setting foreground service, can reasonably management and control application program keep-alive operation, avoid due to some flow
The common people apply keep-alive oneself, and waste the operation resource and electricity of mobile terminal, also improve the fluency of running of mobile terminal.
Optionally, the foreground service sets judge module to include:
The service of first foreground sets judging unit, for according to the first default foreground service Provisioning Policy, being answered based on described
With the application configuration information of program, judge whether the application program can set foreground to service.
Optionally, the foreground service sets judge module to include:
The service of second foreground sets judging unit, for according to the second default foreground service Provisioning Policy, being answered based on described
Operation information is applied with program, judges whether the application program can set foreground to service.
Optionally, the first foreground service sets judging unit to be specifically used for:
If the application program is in white list is set, it is determined that the application program can set foreground to service, otherwise,
Determine that the application program cannot set foreground to service;Or
If the self-starting switch of the application program is opened, it is determined that the application program can set foreground to service, no
Then, determine that the application program cannot set foreground to service.
Optionally, the second foreground service sets judging unit to be specifically used for:
If the setting attribute of the application program meets that first imposes a condition, it is determined that before the application program can be set
Platform service, otherwise, it determines the application program cannot set foreground to service, the setting attribute is including the use of frequency, operation
At least one of in priority and type;Or
If the number that the application program is the application program without foreground interface and sets foreground to service is more than setting number,
Then determine that the application program cannot set foreground to service, otherwise, it determines the application program can set foreground to service.
Optionally, described device can also include:
Default foregrounding strategy acquisition module, for locally obtaining the default foreground from server or mobile terminal
Provisioning Policy;And/or
Default white list acquisition module, for locally obtaining the default white list from server or mobile terminal.
Optionally, described device can also include:
Notice send judge module, for it is determined that the application program can set foreground service after, described in judgement
Whether application program after setting foreground to service, give notice by system;
Blacklist add module, if for not giving notice, the application program is included in blacklist, not allowed subsequently
The application program sets foreground to service.
Optionally, described device also includes:
Foreground service setup module, for judge the application requests be arranged to foreground service destination service whether
Meet that second imposes a condition, if, it is determined that the destination service can be arranged to foreground service by the application program.
The embodiment of the present application also provides a kind of storage medium for including computer executable instructions, and the computer can perform
When being performed by computer processor for performing a kind of management-control method of application program keep-alive, this method includes for instruction:
Obtain the application message for the application program that request sets foreground to service;
The application message is based on according to default foreground service Provisioning Policy, judges whether the application program can be set
Foreground services;
If it is not, the application program is then forbidden to set foreground to service, to forbid the application program by setting foreground to take
It is engaged in carry out keep-alive.
Storage medium --- any various types of memory devices or storage device.Term " storage medium " is intended to wrap
Include: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, magnetizing mediums
(such as hard disk or optical storage);Memory component of register or other similar types etc..Storage medium can also include other
The memory of type or its combination.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 programmed instruction and be used to perform to the first computer." storage is situated between term
Matter " can include may reside within diverse location two of (such as in different computer systems by network connection) or
More storage mediums.Storage medium can store the programmed instruction that can be performed by one or more processors and (such as implement
For computer program).
Certainly, a kind of storage medium for including computer executable instructions that the embodiment of the present application is provided, its computer
The management and control operation for the application program keep-alive that executable instruction is not limited to the described above, can also carry out the application any embodiment institute
Associative operation in the management-control method of the application program keep-alive of offer.
The embodiment of the present application provides a kind of mobile terminal, and answering for the embodiment of the present application offer can be integrated in the mobile terminal
With the control device of program keep-alive.Fig. 5 is a kind of structural representation for mobile terminal that the embodiment of the present application provides.Mobile terminal
500 can include:Memory 501, processor 502 and the computer that is stored on memory 501 and can be run in processor 502
Program, the processor 502 realizes the application program keep-alive as described in the embodiment of the present application when performing the computer program
Management-control method.
The embodiment of the present application provide mobile terminal, can reasonably management and control application program keep-alive operate, prevent rogue
Application program carries out keep-alive by setting foreground service, and wastes the operation resource and electricity of mobile terminal, also improves shifting
The fluency of dynamic terminal operating.
Fig. 6 is the structural representation for another mobile terminal that the embodiment of the present application provides, as shown in fig. 6, the movement is whole
End can include:Memory 601, central processing unit (Central Processing Unit, CPU) 602 (also known as processor, with
Lower abbreviation CPU), the memory 601, for storing executable program code;The processor 602 is by reading the storage
The executable program code stored in device 601 runs program corresponding with the executable program code, for performing:Obtain
Take request that the application message of the application program of foreground service is set;Believed according to default foreground service Provisioning Policy based on the application
Breath, judges whether the application program can set foreground to service;If it is not, then forbid the application program to set foreground to service,
To forbid the application program by setting foreground service to carry out keep-alive.
The mobile terminal also includes:Peripheral Interface 603, RF (Radio Frequency, radio frequency) circuit 605, audio-frequency electric
Road 606, loudspeaker 611, power management chip 608, input/output (I/O) subsystem 609, touch-screen 612, other input/controls
Control equipment 610 and outside port 604, these parts are communicated by one or more communication bus or signal wire 607.
It should be understood that diagram mobile terminal 600 is only an example of mobile terminal, and mobile terminal 600
Can have than more or less parts shown in figure, can combine two or more parts, or can be with
Configured with different parts.Various parts shown in figure can be including one or more signal transactings and/or special
Hardware, software including integrated circuit are realized in the combination of hardware and software.
The mobile terminal for management and control application program keep-alive provided below with regard to the present embodiment is described in detail, the shifting
Dynamic terminal is by taking mobile phone as an example.
Memory 601, the memory 601 can be accessed by CPU602, Peripheral Interface 603 etc., and the memory 601 can
Including high-speed random access memory, can also include nonvolatile memory, such as one or more disk memories,
Flush memory device or other volatile solid-state parts.
The input of equipment and output peripheral hardware can be connected to CPU502 and deposited by Peripheral Interface 603, the Peripheral Interface 603
Reservoir 601.
I/O subsystems 609, the I/O subsystems 609 can be by the input/output peripherals in equipment, such as touch-screen 612
With other input/control devicess 610, Peripheral Interface 603 is connected to.I/O subsystems 609 can include the He of display controller 6091
For controlling one or more input controllers 6092 of other input/control devicess 610.Wherein, one or more input controls
Device 6092 processed receives electric signal from other input/control devicess 610 or sends electric signal to other input/control devicess 610,
Other input/control devicess 610 can include physical button (pressing button, rocker buttons etc.), dial, slide switch, behaviour
Vertical pole, click on roller.What deserves to be explained is input controller 6092 can with it is following any one be connected:Keyboard, infrared port,
The instruction equipment of USB interface and such as mouse.
Touch-screen 612, the touch-screen 612 are the input interface and output interface between user terminal and user, can
It can include figure, text, icon, video etc. to user, visual output depending on output display.
Display controller 6091 in I/O subsystems 609 receives electric signal from touch-screen 612 or sent out to touch-screen 612
Electric signals.Touch-screen 612 detects the contact on touch-screen, and the contact detected is converted to and shown by display controller 6091
The interaction of user interface object on touch-screen 612, that is, realize man-machine interaction, the user interface being shown on touch-screen 612
Icon that object can be the icon of running game, be networked to corresponding network etc..What deserves to be explained is equipment can also include light
Mouse, light mouse is not show the touch sensitive surface visually exported, or the extension of the touch sensitive surface formed by touch-screen.
RF circuits 605, it is mainly used in establishing the communication of mobile phone and wireless network (i.e. network side), realizes mobile phone and wireless network
The data receiver of network and transmission.Such as transmitting-receiving short message, Email etc..Specifically, RF circuits 605 receive and send RF letters
Number, RF signals are also referred to as electromagnetic signal, and RF circuits 605 convert electrical signals to electromagnetic signal or electromagnetic signal is converted into telecommunications
Number, and communicated by the electromagnetic signal with communication network and other equipment.RF circuits 605 can include being used to perform
The known circuit of these functions, it includes but is not limited to antenna system, RF transceivers, one or more amplifiers, tuner, one
Individual or multiple oscillators, digital signal processor, CODEC (COder-DECoder, coder) chipset, user identify mould
Block (Subscriber Identity Module, SIM) etc..
Voicefrequency circuit 606, it is mainly used in receiving voice data from Peripheral Interface 603, the voice data is converted into telecommunications
Number, and the electric signal is sent to loudspeaker 611.
Loudspeaker 611, for the voice signal for receiving mobile phone from wireless network by RF circuits 605, it is reduced to sound
And play the sound to user.
Power management chip 608, the hardware for being connected by CPU602, I/O subsystem and Peripheral Interface 603 are supplied
Electricity and power management.
Control device, storage medium and the mobile terminal of the application program keep-alive provided in above-described embodiment can perform this Shen
Please the management-control method of application program keep-alive that is provided of any embodiment, possess and perform the corresponding functional module of this method and beneficial
Effect.Not ins and outs of detailed description in the above-described embodiments, reference can be made to the application journey that the application any embodiment is provided
The management-control method of sequence keep-alive.
The technical principle that above are only the preferred embodiment of the application and used.The application is not limited to spy described here
Determine embodiment, the various significant changes that can carry out for a person skilled in the art, readjust and substitute all without departing from
The protection domain of the application.Therefore, although being described in further detail by above example to the application, this Shen
Above example please be not limited only to, in the case where not departing from the application design, other more equivalence enforcements can also be included
Example, and scope of the present application is determined by the scope of claim.
Claims (11)
- A kind of 1. management-control method of application program keep-alive, it is characterised in that including:Obtain the application message for the application program that request sets foreground to service;The application message is based on according to default foreground service Provisioning Policy, judges whether the application program can set foreground Service;If it is not, then forbid the application program to set foreground to service, with forbid the application program by set foreground service come Carry out keep-alive.
- 2. according to the method for claim 1, it is characterised in that described to service Provisioning Policy based on described according to default foreground Application message, judges whether the application program can set foreground service to include:According to the first default foreground service Provisioning Policy, the application configuration information based on the application program, the application is judged Whether program can set foreground to service.
- 3. according to the method for claim 1, it is characterised in that described to service Provisioning Policy based on described according to default foreground Application message, judges whether the application program can set foreground service to include:According to the second default foreground service Provisioning Policy, operation information is applied based on the application program, judges the application Whether program can set foreground to service.
- 4. according to the method for claim 2, it is characterised in that described according to the first default foreground service Provisioning Policy, base In the application configuration information of the application program, judge whether the application program can set foreground service to include:If the application program is in white list is set, it is determined that the application program can set foreground to service, otherwise, it determines The application program cannot set foreground to service;OrIf the self-starting switch of the application program is opened, it is determined that the application program can set foreground to service, otherwise, really The fixed application program cannot set foreground to service.
- 5. according to the method for claim 3, it is characterised in that described according to the second default foreground service Provisioning Policy, base Operation information is applied in the application program, judges whether the application program can set foreground service to include:If the setting attribute of the application program meets that first imposes a condition, it is determined that the application program can set foreground to take Business, otherwise, it determines the application program cannot set foreground to service, the setting attribute is including the use of frequency, running priority At least one of in level and type;OrIf the number that the application program is the application program without foreground interface and sets foreground to service is more than setting number, really The fixed application program cannot set foreground to service, otherwise, it determines the application program can set foreground to service.
- 6. according to the method for claim 4, it is characterised in that also include:The default foregrounding strategy is locally obtained from server or mobile terminal;And/orThe default white list is locally obtained from server or mobile terminal.
- 7. the method according to claim 4 or 5, it is characterised in that it is determined that the application program can set foreground to take After business, in addition to:The application program is judged after setting foreground to service, and whether system sends corresponding notice;If it is not, the application program then is included in into blacklist, the application program is not allowed subsequently to set foreground to service.
- 8. according to the method for claim 1, it is characterised in that also include:Judge that the application requests are arranged to whether the destination service that foreground services meets that second imposes a condition, if so, then Determine that the destination service can be arranged to foreground service by the application program.
- A kind of 9. control device of application program keep-alive, it is characterised in that including:Application message acquisition module, for obtaining the application message for the application program for asking to set foreground to service;Foreground service sets judge module, for being based on the application message according to default foreground service Provisioning Policy, judges institute State whether application program can set foreground to service;Whether foreground service sets disabled module, if foreground cannot be set to service for the application program, forbid described Application program sets foreground to service, to forbid the application program by setting foreground service come self-starting.
- 10. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the program is by processor The management-control method of the application program self-starting as described in any in claim 1-8 is realized during execution.
- 11. a kind of mobile terminal, including memory, processor and storage are on a memory and the calculating that can run on a processor Machine program, it is characterised in that realized described in the computing device during computer program as described in any in claim 1-8 The management-control method of application program self-starting.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711168305.3A CN107844342B (en) | 2017-11-21 | 2017-11-21 | Control method and device for keeping application program alive, storage medium and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711168305.3A CN107844342B (en) | 2017-11-21 | 2017-11-21 | Control method and device for keeping application program alive, storage medium and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107844342A true CN107844342A (en) | 2018-03-27 |
CN107844342B CN107844342B (en) | 2021-07-09 |
Family
ID=61679930
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711168305.3A Active CN107844342B (en) | 2017-11-21 | 2017-11-21 | Control method and device for keeping application program alive, storage medium and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107844342B (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109756888A (en) * | 2019-01-03 | 2019-05-14 | 中国—东盟信息港股份有限公司 | A kind of eSIM service keep-alive system of different brands terminal |
CN111782347A (en) * | 2019-04-03 | 2020-10-16 | 安克创新科技股份有限公司 | Mobile phone application keep-alive method, device and system and storage medium |
CN112307465A (en) * | 2020-10-30 | 2021-02-02 | 上海中通吉网络技术有限公司 | Keep-alive pull-alive method, storage medium and equipment for coping with application program being checked and killed |
CN112416380A (en) * | 2019-08-21 | 2021-02-26 | 成都鼎桥通信技术有限公司 | Method and device for preventing killing and preventing freezing by applying |
CN112445539A (en) * | 2019-09-02 | 2021-03-05 | 珠海市魅族科技有限公司 | Method, device, electronic equipment and storage medium for identifying disguised music playing |
CN112835656A (en) * | 2019-11-01 | 2021-05-25 | 科美诊断技术股份有限公司 | Client starting method and device |
CN112988282A (en) * | 2021-04-27 | 2021-06-18 | 荣耀终端有限公司 | Application keep-alive method and terminal equipment |
CN113407348A (en) * | 2021-07-07 | 2021-09-17 | Tcl通讯(宁波)有限公司 | Application process management method, device, equipment and storage medium |
CN114168212A (en) * | 2020-09-09 | 2022-03-11 | 成都鼎桥通信技术有限公司 | Application processing method, device, equipment and computer readable storage medium |
CN117076089A (en) * | 2023-10-07 | 2023-11-17 | 荣耀终端有限公司 | Application management method, terminal device and storage medium |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6189047B1 (en) * | 1997-03-20 | 2001-02-13 | Sun Microsystems, Inc. | Apparatus and method for monitoring event queue operations with pluggable event queues |
WO2010095868A2 (en) * | 2009-02-20 | 2010-08-26 | Dreamer | Method for managing java applications and computer-readable medium having thereon program performing function embodying the same |
CN104021019A (en) * | 2014-06-18 | 2014-09-03 | 腾讯科技(深圳)有限公司 | Application self-staring control method, terminal and server |
CN105653934A (en) * | 2015-12-25 | 2016-06-08 | 惠州Tcl移动通信有限公司 | Mobile terminal and application protection method thereof |
CN105701025A (en) * | 2015-12-31 | 2016-06-22 | 华为技术有限公司 | Memory recovery method and device |
CN106648861A (en) * | 2016-12-05 | 2017-05-10 | 广州优视网络科技有限公司 | Method and device for keeping background service process activated |
CN106648855A (en) * | 2016-11-21 | 2017-05-10 | 武汉斗鱼网络科技有限公司 | Method and device for controlling application program of terminal |
CN106874713A (en) * | 2017-01-09 | 2017-06-20 | 广东小天才科技有限公司 | A kind of application program runs right management method and device, user equipment |
CN106874086A (en) * | 2017-01-25 | 2017-06-20 | 北京奇虎科技有限公司 | A kind of processing method of application program self-starting, device and mobile terminal |
CN106933660A (en) * | 2017-02-17 | 2017-07-07 | 广州启生信息技术有限公司 | The implementation method of application process keep-alive under a kind of Android platform |
CN107291549A (en) * | 2016-03-31 | 2017-10-24 | 阿里巴巴集团控股有限公司 | A kind of method and device for managing application program |
-
2017
- 2017-11-21 CN CN201711168305.3A patent/CN107844342B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6189047B1 (en) * | 1997-03-20 | 2001-02-13 | Sun Microsystems, Inc. | Apparatus and method for monitoring event queue operations with pluggable event queues |
WO2010095868A2 (en) * | 2009-02-20 | 2010-08-26 | Dreamer | Method for managing java applications and computer-readable medium having thereon program performing function embodying the same |
CN104021019A (en) * | 2014-06-18 | 2014-09-03 | 腾讯科技(深圳)有限公司 | Application self-staring control method, terminal and server |
CN105653934A (en) * | 2015-12-25 | 2016-06-08 | 惠州Tcl移动通信有限公司 | Mobile terminal and application protection method thereof |
CN105701025A (en) * | 2015-12-31 | 2016-06-22 | 华为技术有限公司 | Memory recovery method and device |
CN107291549A (en) * | 2016-03-31 | 2017-10-24 | 阿里巴巴集团控股有限公司 | A kind of method and device for managing application program |
CN106648855A (en) * | 2016-11-21 | 2017-05-10 | 武汉斗鱼网络科技有限公司 | Method and device for controlling application program of terminal |
CN106648861A (en) * | 2016-12-05 | 2017-05-10 | 广州优视网络科技有限公司 | Method and device for keeping background service process activated |
CN106874713A (en) * | 2017-01-09 | 2017-06-20 | 广东小天才科技有限公司 | A kind of application program runs right management method and device, user equipment |
CN106874086A (en) * | 2017-01-25 | 2017-06-20 | 北京奇虎科技有限公司 | A kind of processing method of application program self-starting, device and mobile terminal |
CN106933660A (en) * | 2017-02-17 | 2017-07-07 | 广州启生信息技术有限公司 | The implementation method of application process keep-alive under a kind of Android platform |
Non-Patent Citations (1)
Title |
---|
ZHICHU_2025: "Android进程保活", 《HTTPS://BLOG.CSDN.NET/ZHICHU_2025/ARTICLE/DETAILS/52434525》 * |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109756888A (en) * | 2019-01-03 | 2019-05-14 | 中国—东盟信息港股份有限公司 | A kind of eSIM service keep-alive system of different brands terminal |
CN109756888B (en) * | 2019-01-03 | 2021-07-06 | 中国—东盟信息港股份有限公司 | eSIM service keep-alive system for terminals of different brands |
CN111782347A (en) * | 2019-04-03 | 2020-10-16 | 安克创新科技股份有限公司 | Mobile phone application keep-alive method, device and system and storage medium |
CN112416380A (en) * | 2019-08-21 | 2021-02-26 | 成都鼎桥通信技术有限公司 | Method and device for preventing killing and preventing freezing by applying |
CN112416380B (en) * | 2019-08-21 | 2024-03-29 | 成都鼎桥通信技术有限公司 | Method and device for killing and freezing prevention by application |
CN112445539A (en) * | 2019-09-02 | 2021-03-05 | 珠海市魅族科技有限公司 | Method, device, electronic equipment and storage medium for identifying disguised music playing |
CN112835656A (en) * | 2019-11-01 | 2021-05-25 | 科美诊断技术股份有限公司 | Client starting method and device |
CN114168212A (en) * | 2020-09-09 | 2022-03-11 | 成都鼎桥通信技术有限公司 | Application processing method, device, equipment and computer readable storage medium |
CN112307465A (en) * | 2020-10-30 | 2021-02-02 | 上海中通吉网络技术有限公司 | Keep-alive pull-alive method, storage medium and equipment for coping with application program being checked and killed |
CN112988282A (en) * | 2021-04-27 | 2021-06-18 | 荣耀终端有限公司 | Application keep-alive method and terminal equipment |
CN112988282B (en) * | 2021-04-27 | 2021-08-20 | 荣耀终端有限公司 | Application keep-alive method and terminal equipment |
CN113407348A (en) * | 2021-07-07 | 2021-09-17 | Tcl通讯(宁波)有限公司 | Application process management method, device, equipment and storage medium |
CN113407348B (en) * | 2021-07-07 | 2024-04-09 | Tcl通讯(宁波)有限公司 | Application process management method, device, equipment and storage medium |
CN117076089A (en) * | 2023-10-07 | 2023-11-17 | 荣耀终端有限公司 | Application management method, terminal device and storage medium |
CN117076089B (en) * | 2023-10-07 | 2024-03-26 | 荣耀终端有限公司 | Application management method, terminal device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN107844342B (en) | 2021-07-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107844342A (en) | Management-control method, device and the storage medium and mobile terminal of application program keep-alive | |
CN107861816B (en) | Resource allocation method and device | |
CN107944258A (en) | Start control method, device, storage medium and the terminal of application with method of service | |
CN107861773A (en) | Associate management-control method, device, storage medium and the mobile terminal started | |
CN107944259A (en) | Using the management-control method of startup, device and storage medium and mobile terminal | |
CN108270786A (en) | Right management method, device, storage medium and the intelligent terminal of application program | |
CN107944257A (en) | Start control method, device, storage medium and the terminal of application with method of service | |
CN107635078B (en) | Game control method and device | |
CN107844341B (en) | Process starting control method and device, storage medium and mobile terminal | |
CN107957913A (en) | Associate management-control method, device, storage medium and the mobile terminal started | |
CN106817753B (en) | Method and device for saving electricity by switching background gray scales and mobile terminal | |
EP3486770B1 (en) | Processing method, device and storage medium for implementing automatic startup | |
CN109840418A (en) | Jump control method, device, storage medium and the terminal of application program | |
CN107748698A (en) | Start control method, device, storage medium and the terminal of application with broadcast mode | |
CN107943270B (en) | Application service control method and device, storage medium and mobile terminal | |
CN107861759A (en) | Window control method, apparatus, terminal device and storage medium | |
CN107729764A (en) | Guard method, device, storage medium and the electronic equipment of sensitive information | |
US20230125288A1 (en) | Font adjustment method and apparatus, storage medium, and electronic device | |
CN107831886A (en) | Association starts management-control method, device, storage medium and the intelligent terminal of application | |
CN107957905A (en) | Method, apparatus, storage medium and the intelligent terminal of self-starting are applied in limitation | |
CN109271211A (en) | Method, apparatus of attending to anything else, equipment and the medium of application program | |
CN107423064A (en) | Message treatment method, device, terminal device and storage medium | |
CN107885588A (en) | Control method, device and the storage medium and mobile terminal of application service | |
CN106815534A (en) | A kind of method for protecting privacy of user, device and mobile terminal | |
CN107862203A (en) | Control method, device, storage medium and the terminal of application program |
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 | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |