CN109992361A - Using freezing method, device, terminal and computer readable storage medium - Google Patents

Using freezing method, device, terminal and computer readable storage medium Download PDF

Info

Publication number
CN109992361A
CN109992361A CN201711480509.0A CN201711480509A CN109992361A CN 109992361 A CN109992361 A CN 109992361A CN 201711480509 A CN201711480509 A CN 201711480509A CN 109992361 A CN109992361 A CN 109992361A
Authority
CN
China
Prior art keywords
ins
background application
plug
freeze
application
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
CN201711480509.0A
Other languages
Chinese (zh)
Other versions
CN109992361B (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 CN201711480509.0A priority Critical patent/CN109992361B/en
Publication of CN109992361A publication Critical patent/CN109992361A/en
Application granted granted Critical
Publication of CN109992361B publication Critical patent/CN109992361B/en
Active 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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution

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)
  • User Interface Of Digital Computer (AREA)

Abstract

This application involves a kind of application freezing method, device, terminal and computer readable storage mediums.This method comprises: obtaining the background application run in the terminal, the background application is detected with the presence or absence of desktop plug-ins;If the background application there are desktop plug-ins, judges whether to freeze the corresponding background application of the desktop plug-ins according to the type of the desktop plug-ins;When needing to freeze the background application, freezes strategy according to default and freeze the background application.By the above method, it can judge whether to freeze corresponding background application according to the job category of desktop plug-ins, error rate is freezed in reduction, and it is more reasonable to make to freeze application.

Description

Using freezing method, device, terminal and computer readable storage medium
Technical field
This application involves data processing fields, can more particularly to a kind of application freezing method, device, terminal and computer Read storage medium.
Background technique
With the development of mobile communication technology, the function of intelligent terminal is more and more stronger, and application program is also more and more.In order to Avoid it is unwanted apply in running background or not applying in front stage operation by user's reasonable employment, occupy Installed System Memory, disappear The electricity for consuming terminal device, can generally freeze not needing or not by the application of user's reasonable employment.Usually freeze the mode of application Mainly according to application operating status, to be the methods of foreground application or background application determine whether an application should be frozen Knot.Freeze to apply only by the operating status of application, may cause the application that should be operated normally it is frozen and cannot be just Often work, cannot freeze background application according to some particular features of application, and it is not high to freeze accuracy rate, influence user Experience.
Summary of the invention
The embodiment of the present application provides a kind of application freezing method, device, terminal and computer readable storage medium, Neng Gougen Judge whether to freeze corresponding background application according to the type of desktop plug-ins, it is more reasonable to make to freeze application.
It is a kind of to apply freezing method, for freezing the application program run in terminal, which comprises
The background application run in the terminal is obtained, detects the background application with the presence or absence of desktop socket Part;
If there are desktop plug-ins for the background application, judge whether to freeze according to the type of the desktop plug-ins described The corresponding background application of the desktop plug-ins;
When needing to freeze the background application, freezes strategy according to default and freeze the background application.
It is a kind of to apply freezing plant, comprising:
Module is obtained, for obtaining the background application run in the terminal, detecting the background application is It is no that there are desktop plug-ins;
Judgment module is sentenced if there are desktop plug-ins for the background application according to the type of the desktop plug-ins It is disconnected whether to freeze the corresponding background application of the desktop plug-ins;
Freeze module, for when needing to freeze the background application, according to it is default freeze strategy freeze it is described after Platform application program.
A kind of terminal, including memory and processor store computer-readable instruction, described instruction in the memory When being executed by the processor, so that the step of processor executes the method.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor The step of method is realized when row.
Above-mentioned application freezing method, device, terminal and computer readable storage medium are run in the terminal by obtaining Background application, detect the background application with the presence or absence of desktop plug-ins, if there are desktop sockets for the background application Part judges whether to freeze the corresponding background application of the desktop plug-ins according to the type of the desktop plug-ins, when need When freezing the background application, freezes strategy according to default and freeze the background application, it can be according to desktop socket The job category of part judges whether to freeze corresponding background application, and error rate is freezed in reduction, and it is more reasonable to make to freeze application.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is the schematic diagram of internal structure of terminal in one embodiment;
Fig. 2 is the part frame schematic diagram of the system in one embodiment in terminal;
Fig. 3 is the flow diagram that freezing method is applied in one embodiment;
Fig. 4 is the flow diagram that freezing method is applied in another embodiment;
Fig. 5 is the flow diagram that freezing method is applied in another embodiment;
Fig. 6 is the flow diagram that freezing method is applied in another embodiment;
Fig. 7 is the flow diagram that freezing method is applied in another embodiment;
Fig. 8 is the structural block diagram that freezing plant is applied in one embodiment;
Fig. 9 is the block diagram of the part-structure of mobile phone relevant to terminal provided by the embodiments of the present application.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, and It is not used in restriction the application.
Unless otherwise defined, all technical and scientific terms used herein and the technical field for belonging to the application The normally understood meaning of technical staff is identical.The term used in the description of the present application is intended merely to description tool herein The purpose of the embodiment of body, it is not intended that limitation the application.
In one embodiment, as shown in Figure 1, providing a kind of schematic diagram of internal structure of terminal.The terminal includes logical Cross processor, memory and the display screen of system bus connection.Wherein, the processor is for providing calculating and control ability, branch Support the operation of entire terminal.Memory for storing data, program, and/or instruction code etc., store at least one on memory Computer program, the computer program can be executed by processor, to realize that is provided in the embodiment of the present application is suitable for terminal Using freezing method.Memory may include that magnetic disk, CD, read-only memory (Read-Only Memory, ROM) etc. are non-easily The property lost storage medium or random access memory (Random-Access-Memory, RAM) etc..For example, in one embodiment In, memory includes non-volatile memory medium and built-in storage.Non-volatile memory medium is stored with operating system, database And computer program.It is stored in the database for realizing a kind of application freezing method phase provided by above each embodiment The data of pass, for example the information such as title, committed memory size of each application or process can be stored with.The computer program can quilt Performed by processor, to apply freezing method for realizing a kind of provided by each embodiment of the application.Built-in storage is non- Operating system, database and computer program in volatile storage medium provide the running environment of cache.Display screen can It to be touch screen, for example is capacitance plate or electrical screen, it, can also quilt for showing the interface information of the corresponding application of the first process For detecting the touch operation for acting on the display screen, corresponding instruction is generated, for example carry out the switching command of front and back application Deng.
It will be understood by those skilled in the art that structure shown in Fig. 1, only part relevant to application scheme is tied The block diagram of structure, does not constitute the restriction for the terminal being applied thereon to application scheme, and specific terminal may include than figure Shown in more or fewer components, perhaps combine certain components or with different component layouts.Such as the terminal further includes The network interface connected by system bus, network interface can be Ethernet card or wireless network card etc., for the end with outside End is communicated, for example be can be used for same server and communicated.
In one embodiment, as shown in Fig. 2, providing a kind of part architecture diagram of terminal.Wherein, the framework of the terminal It include JAVA space layer 210, local ccf layer 220 and kernel (Kernel) space layer 230 in system.JAVA space layer 210 On may include freezing and thawing using 212, terminal can be freezed and thaw to apply 212 to freeze each application to realize by this Strategy does freeze operation to the related application of backstage power consumption.It include resource prioritization and limitation management mould in local ccf layer 220 Block 222 and platform freezing pipe manage module 224.Terminal can be different with 222 real-time servicing of limitation management module by resource prioritization Application in the tissue of different priorities and different resource, and adjust according to the demand on upper layer the resource group of application program Not to reach optimization performance, the effect of power consumption is saved.Terminal can freeze management module 224 by platform can freeze on backstage Task according to the length for entering freeze-off time, be assigned to the frozen crust of corresponding preset different levels, optionally, the frozen crust May include three, be respectively: CPU limitation sleep pattern, CPU freeze sleep pattern, process deep freezing mode.Wherein, CPU is limited Sleep pattern processed, which refers to, limits the occupied cpu resource of associated process, and associated process is made to occupy less cpu resource, By vacant cpu resource to other not frozen processes inclinations, limit the occupancy to cpu resource, also accordingly limit into Occupancy of the journey to Internet resources and I/O interface resource;CPU freezes sleep pattern and refers to forbid associated process using CPU, and protects The occupancy to memory is stayed, when being forbidden to use cpu resource, corresponding Internet resources and I/O interface resource are also prohibited from using; Process deep freezing mode refers in addition to being forbidden to use cpu resource, further to the occupied memory source of associated process into Row recycling, the memory of recycling use for other processes.It include UID management module 231, Cgroup mould in kernel spacing layer 230 Block 232, Binder, which manage module 233, proceeding internal memory recycling module 234 and freeze time-out, exits module 235.Wherein, UID is managed Module 231 is managed for realizing User Identity (User Identifier, UID) Lai Guanli third-party application based on application Resource or freezed.It is compared to and (Process Identifier, PID) Lai Jinhang process pipe is identified based on process identity Control is more convenient for being managed collectively the resource of the application of a user by UID.Cgroup module 232 is a set of perfect for providing Central processing unit (Central Processing Unit, CPU), CPUSET, memory (memory), input/output (input/ Output, I/O) and the relevant resource constraint mechanism of Net.Binder control module 233 communicates for realizing backstage binder The control of priority.Wherein, the interface module of local ccf layer 220 includes binder interface of the exploitation to upper layer, the frame on upper layer Frame or the instruction for sending resource constraint using the binder interface by offer or freezing are to resource prioritization and limitation Management module 222 and platform freezing pipe manage module 224.Proceeding internal memory recycling module 234 for realizing process deep freezing mode, The file area of process can be mainly discharged when some third-party application is chronically at frozen state in this way, to reach To the module for saving memory, also accelerates this and apply the speed in starting next time.Freeze time-out and exit module 235 to have decided for solution Now freeze the exception that overtime scene generates.By above-mentioned framework, it can be achieved that in each embodiment of the application application the side of freezing Method.
In one embodiment, as shown in figure 3, provide it is a kind of using freezing method, for freeze to run in terminal Application program.The present embodiment is applied to be illustrated for terminal as shown in Figure 1 in this way.This applies freezing method, packet It includes:
Step 302: obtaining the background application run in the terminal, detecting the background application whether there is Desktop plug-ins.
Wherein, application program (Application, APP) refers to complete the computer program of a certain or multinomial particular job, It operates in user mode, can interact with user, has visual user interface.Background application work is on backstage Operating status, an application work show that the application program is located at the window stack of operating system in background operation state The corresponding position of the window object of non-stack top.Determine whether destination application is background application, acquisition is answered with target With the corresponding window object of program, and judge whether the window object is located at the stack top of the window stack of operating system, if it is not, then saying The bright application program is background application, if so, illustrating that the application program is foreground application in front stage operation.
Desktop plug-ins in order to facilitate user under conditions of not entering application program, are quickly made in Mobile operating system With the technology of certain application functions.Application program provides the respective services for enabling plug-in unit to apply, including offer load side Formula is loaded into plug-in unit in application program and the network transmission protocol, to carry out data exchange with plug-in unit.Plug-in unit must be according to Rely in itself function of application program competence exertion, is only unable to operate normally by plug-in unit.During using desktop plug-ins, Application program still be will lead in running background.Freeze if will directly be applied after application enters backstage, influences whether that this is answered With the function of desktop plug-ins.
Step 304: if there are desktop plug-ins for the background application, judging whether to freeze according to the type of the desktop plug-ins The corresponding background application of the desktop plug-ins.
If there are corresponding desktop plug-ins for the background application being currently running, then it represents that exist and the background application The relevant data of program are shown on terminal desktop.Wherein, desktop plug-ins are broadly divided into imported plug-in unit and output type plug-in unit.It is defeated Entering type plug-in unit includes the desktop plug-ins that output result is shown according to input data, that is, needs to detect the data of user's input, Journey can be applied according to the desktop plug-ins, such as " drop oozes row, Jingdone district, microblogging " etc. for the data display output result that user inputs The desktop plug-ins of sequence.Output type plug-in unit includes the desktop plug-ins of real-time update, i.e., this kind of plug-in unit usually requires to insert in background update The desktop plug-ins of the application programs such as the display state of part, such as " weather, clock, traffic management ".It, can be with for imported plug-in unit Freeze corresponding background application;For output type plug-in unit, these plug-in units need real-time update to show state, freeze this kind of answer With will affect user experience, it is therefore desirable to keep the operating status of output type plug-in unit.
Step 306: when needing to freeze the background application, freezing strategy according to default and freeze the background application Program.
When the background application run in terminal is there are when desktop plug-ins, terminal can be sentenced according to the type of desktop plug-ins It is disconnected whether to need to freeze the background application, for imported plug-in unit, the corresponding background application of the desktop plug-ins can be freezed Program;For output type plug-in unit, the operating status that needs that the corresponding background application of the desktop plug-ins is kept to change program.According to default Freeze the background application that strategy freezes needs to freeze, for example, can be set according to the operation information listened to Freeze strategy accordingly to realize the freeze operation to foreground application.For example, frequency can be used according to the desktop plug-ins of acquisition Rate set it is different freeze grade, foreground application is freezed to realize according to grade is freezed.
It is above-mentioned to apply freezing method, by obtaining the background application run in the terminal, detects the backstage and answer It whether there is desktop plug-ins with program, if there are desktop plug-ins for the background application, judged according to the type of the desktop plug-ins Whether the desktop plug-ins corresponding background application is freezed, when needing to freeze the background application, according to It is default to freeze strategy and freeze the background application, it can be judged whether to freeze according to the job category of desktop plug-ins corresponding Error rate is freezed in background application, reduction, and it is more reasonable to make to freeze application.
In one embodiment, as shown in figure 4, the type according to the desktop plug-ins judges whether to freeze the institute State the corresponding background application of desktop plug-ins, comprising:
Step 402: obtaining the corresponding desktop plug-ins of the background application, detect work belonging to the desktop plug-ins Type.
Wherein, when detecting the background application run in terminal, there are when desktop plug-ins, obtain the background application journey The corresponding desktop plug-ins of sequence, and detect job category belonging to the desktop plug-ins, wherein desktop plug-ins are broadly divided into imported insert Part and output type plug-in unit.Imported plug-in unit includes the desktop plug-ins that output result is shown according to input data, that is, needs to detect User input data, can according to user input data display output result desktop plug-ins, such as " drop ooze row, The desktop plug-ins of the application programs such as Jingdone district, microblogging ".Output type plug-in unit includes the desktop plug-ins of real-time update, i.e., this kind of plug-in unit is logical Often need the desktop plug-ins in application programs such as the display states, such as " weather, clock, traffic management " of background update plug-in unit.
For example, terminal can detect desktop according to preset frequency or according to the user operation instruction detected The process of plug-in unit, the process status by detecting desktop plug-ins obtain the current job type of the desktop plug-ins.One is applied journey The operation of sequence is usually to be embodied by the operation of relevant multiple processes, therefore the operation of desktop plug-ins is also related with process. Optionally, the process identification (PID) of desktop plug-ins can be obtained, process identification (PID) is used for the corresponding process of unique identification, can be by presetting digit capacity The combination of one or more of number, letter or other characters is constituted.For example, can be indicated with process identification (PID) " 0001 " Process A indicates process B etc. with " 1234 ", detects operating status locating for the process of different process identification (PID)s, so as to know table The job category of face plug-in unit.
Step 404: when the desktop plug-ins belong to imported plug-in unit, freezing the corresponding backstage of the imported plug-in unit and answer Use program.
The job category for detecting the desktop plug-ins, when the desktop plug-ins belong to imported plug-in unit, such plug-in unit is often needed The data display output to be inputted according to user shows that user is currently right as a result, if not detecting the data of user's input The use demand of the desktop plug-ins is not high, then can freeze the corresponding background application of imported plug-in unit.
Step 406: when the desktop plug-ins belong to output type plug-in unit, the corresponding backstage of the output type plug-in unit being kept to answer With the operating status of program.
The job category for detecting the desktop plug-ins, when the desktop plug-ins belong to output type plug-in unit, such plug-in unit is usually needed To freeze the corresponding application program of this kind of plug-in unit and will lead to desktop plug-ins normally to transport in the display state of background update plug-in unit Row, influences user experience, it is therefore desirable to keep the operating status of the corresponding background application of output type plug-in unit.
In one embodiment, it as shown in figure 5, the basis is default freezes strategy and freeze the background application, wraps It includes:
Step 502: obtaining the frequency of use for needing the corresponding desktop plug-ins of the background application freezed;
Since the corresponding desktop plug-ins of background application for needing to freeze are imported plug-in unit, terminal can obtain each table The operation information of received user input when the plug-in component operation of face, and it is defeated in reception user each time to count each desktop plug-ins The historical operation record entered.Wherein, historical operation record includes historical operation mode, and corresponding with the mode of operation is made Use frequency.Historical operation mode includes at least the modes of operation such as key, voice, touch, fingerprint, scanning, corresponding to mode of operation Frequency of use be every kind of mode of operation frequency of use.
For example, terminal will record when the application (APP) of desktop plug-ins operation " OPPO video player " this kind of player It is opened from desktop plug-ins the starting time point of operation " OPPO video player ", and terminates or switch to the end time on backstage Point, the when a length of history run duration between starting time point to the end time point, such as 120 minutes.In the history run In length, the input mode of operation for receiving user includes touch input, the modes of operation such as slidably inputs.According to the operation side of input Formula, the frequency of use of available every kind of mode of operation, wherein the frequency of use of touch input operation mode is 2 times/60 points Clock, slidably inputing mode of operation is 6 times/60 minutes.
Step 504: grade is freezed with the mapping relations division for freezing degree according to the frequency of use;It is described to freeze grade It is used to indicate and configures the maximum allowable resource that the background application can use.
According to the frequency of use of the desktop plug-ins of acquisition, freeze grade to divide.Wherein, freeze grade and be used to indicate configuration The maximum allowable resource that foreground application can use.Wherein, the resource representation process that can be used is at each moment being performed Under, the resource that can use.The maximum resource that maximum allowable resource representation process allows to be used down at various moments.Use frequency Rate is lower, freezes that higher grade, and the maximum allowable resource that corresponding background application can use is also fewer;Phase Anti-, frequency of use is higher, freezes the maximum allowable resource that lower grade, and corresponding background application can use It is relatively more.
There are multiple processes in operating status in terminal, in an operating system, the interaction mechanism between process mainly divides For synchronization mechanism and communication mechanism.Wherein, communication mechanism includes socket, binder, shared drive etc..Two journeys on network Sequence realizes the exchange of data by a two-way communication connection, and one end of this connection is known as a socket.Binder is A kind of inter-process communication mechanisms provide remote procedure call function.
Terminal can obtain background process according to preset frequency or according to the user operation instruction detected.It is optional Ground can obtain the process identification (PID) of the background process, and process identification (PID) is used for the corresponding process of unique identification, can be by the number of presetting digit capacity The combination of one or more of word, letter or other characters is constituted.For example, can be indicated with process identification (PID) " 0001 " into Journey A indicates process B etc. with " 1234 ".
It should be noted that freezing the division mode of grade can set according to the demand of user, it can be in conjunction with backstage The history run duration of application program, background application application type set.Wherein, each application program is freezed The division rule of grade may be the same or different, and the number of degrees of division may be the same or different.
Step 506: freezing grade according to described the background application corresponding freeze.
Freeze grade corresponding to the frequency of use for determining current desktop plug-in unit according to the frequency of use of desktop plug-ins.If working as 40Mb is saved as in background application is required when executing, if freezing grade is level-one (lowermost level), is freezed according to level-one Grade is allocated resource to background application, and the maximum allowable resource that background application can use is 30Mb;If freezing Grade is level Four (superlative degree), then freezes grade according to level-one and distribute resource, background application institute energy to background application The maximum allowable resource used is 0Mb.Wherein, the grade of freezing of highest level is fully charge state.
Wherein, above-mentioned resource may include CPU, I/O file resource etc..Come using resource as memory for example, when interval Between it is longer, it is also higher to freeze grade;Freeze that higher grade, the maximum allowable resource that background application can use is also It is fewer.
In the above method, being set according to the frequency of use of desktop plug-ins and freeze grade, frequency of use is lower, freeze etc. Grade is higher, and still, the maximum allowable resource that background application can use but decreases, until making background application be in complete Frozen state.Regular hour process is needed from fully charge is partially frozen into, gives user one buffer time section, at this Between in section, user can quickly and effectively thaw the background application, improve the Experience Degree of user.Meanwhile root root freezes grade limit The maximum allowable resource that background application processed can use, also can reasonable distribution resource, reduce power consumption.
In one embodiment, it as shown in fig. 6, the basis is default freezes strategy and freeze the background application, wraps It includes:
Step 602: obtain background application the desktop plug-ins of functional and presently described background application make The function of using.
The function of background application is varied, and when meeting freezing condition, it is corresponding to obtain current background application program The function that uses of desktop plug-ins.One or more functions may be corresponded to the input operation of imported desktop plug-ins, for example, Voice operating likely corresponds to the functions such as voice communication, voice control, phonetic search, and scan operation likely corresponds to scanning and knows Not, the functions such as payment, scanning certification are scanned.By obtaining the mode of operation monitored, the operation side for obtaining and listening to can be corresponded to Function corresponding to formula.
It should be noted that the feature capability that desktop plug-ins use can also include but is not limited to: recording, take pictures, even Connect network, using bluetooth, obtain geographical location, make a phone call and send short message.
Step 604: not used function is obtained according to the function that the desktop plug-ins of the background application use.
User can generally have user and be not frequently used in desktop plug-ins corresponding using current background application program Function.Not used function, refer to desktop plug-ins institute it is functional in, in addition to what is listened to carries out operation institute to desktop plug-ins Other function other than corresponding function.
Step 606: freezing the not used function corresponding process in systems.
Each apply is corresponding with process group in system framework, and when running application, system can be corresponding to its Process group distributes resource;And each functional module in applying also corresponds to the process in process group, therefore by each function of application Correspondence process be identified, facilitate the subsequent system resource allocation management to corresponding process.Mark is corresponding for unique identification Process, can be made of the combination of one or more of the number of presetting digit capacity, letter or other characters.For example, can To indicate process A with process identification (PID) " 0001 ", process B etc. is indicated with " 1234 ".
By the above method, terminal can corresponding process be freezed in systems by not used function, reaches Economize on resources and improve the purpose of operational efficiency.But the other function of the background application still can be used, therefore this Shen It please not need to freeze entirely to apply, but freeze the partial function of application, and guarantee other parts function normal use, to reach To the effect for reducing power consumption.
In one embodiment, freezed after strategy freezes the background application according to default, further includes: work as presence When the background applications of desktop plug-ins is frozen, if detecting, current display interface is desktop, and thawing, described there are desktops The background application of plug-in unit.
Specifically, it when detecting terminal current display interface is desktop, generates to there are the background applications of desktop plug-ins The defrosting of program instructs.Real-time detection terminal display interface information, after detecting terminal display interface is desktop, for desktop The use demand of plug-in unit improves, it is therefore desirable to thaw to the application program relevant to desktop plug-ins and process freezed Operation.Further, when detecting terminal current display interface is desktop, terminal automatically generates corresponding instruction of thawing, and uses It thaws in application program relevant to desktop plug-ins and process.Optionally, when background application and background process quilt After freezing, when needing to carry out corresponding application program and process defrosting processing, the defrosting for obtaining user's input can also be passed through Instruction.Thawing includes biological information in instructing, wherein biological information can be finger print information, iris information, vocal print Information, facial information etc..It should be noted that different applications can set different biological informations, can also set Fixed identical biological information, can carry out customized setting according to the demand of user.
In one embodiment, as shown in fig. 7, being freezed after strategy freezes the background application according to default, also Include:
Step 702: obtaining and the defrosting thawed instruction is carried out to frozen background application;
Step 704: whether the biological information in the detection instruction of thawing matches with preset biological characteristic;
Step 706: when the biological information in instruction of thawing matches with preset biological characteristic, to the backstage Application program carries out defrosting operation.
That is, when needing to carry out background application defrosting processing, needing to obtain after background application is frozen The defrosting instruction of user's input.Thawing includes biological information in instructing, wherein biological information can be believed for fingerprint Breath, iris information, voiceprint, facial information etc..
It should be noted that different applications can set different biological informations, identical life can also be set Object characteristic information can carry out customized setting according to the demand of user.
When thaw instruction in biological information and preset biological information match when, then to foreground application into Row, which thaws, to be operated.When defrosting operation, it can also realize according to corresponding defrosting strategy is set with strategy is freezed to background application The defrosting of program operates.
In one embodiment, as shown in figure 8, providing a kind of using freezing plant, which includes:
It obtains module 810 and detects the background application for obtaining the background application run in the terminal With the presence or absence of desktop plug-ins.
Judgment module 820, if there are desktop plug-ins for the background application, according to the type of the desktop plug-ins Judge whether to freeze the corresponding background application of the desktop plug-ins.
Freeze module 830, for when needing to freeze the background application, according to it is default freeze strategy freeze it is described Background application.
In one embodiment, judgment module 820 is also used to obtain the corresponding desktop plug-ins of the background application, inspection Survey job category belonging to the desktop plug-ins;When the desktop plug-ins belong to imported plug-in unit, freeze described imported slotting The corresponding background application of part;Wherein, the imported plug-in unit includes the desktop socket that output result is shown according to input data Part.
In one embodiment, judgment module 820 is also used to when the desktop plug-ins belong to output type plug-in unit, keeps institute State the operating status of the corresponding background application of output type plug-in unit;Wherein, the output type plug-in unit includes the table of real-time update Face plug-in unit.
In one embodiment, freeze module 830 and be also used to obtain to need the background application that freezes corresponding The frequency of use of desktop plug-ins;Freeze grade with the mapping relations division for freezing degree according to the frequency of use;It is described to freeze Grade, which is used to indicate, configures the maximum allowable resource that the background application can use;According to the grade of freezing to described Background application carries out corresponding freeze.
In one embodiment, freeze module 830 be also used to obtain background application institute it is functional and presently described The function that the desktop plug-ins of background application use;The function of being used according to the desktop plug-ins of the background application Obtain not used function;Freeze the not used function corresponding process in systems.
It in one embodiment, further include defrosting module, for when there are the background applications of desktop plug-ins to be frozen When, if detecting, current display interface is desktop, and thawing, described there are the background applications of desktop plug-ins.
In one embodiment, defrosting module is also used to obtain the solution thaw to frozen background application Freeze instruction;Whether the biological information detected in the instruction of thawing matches with preset biological characteristic;It is instructed when thawing In biological information and preset biological characteristic when matching, defrosting operation is carried out to the background application.
It is above-mentioned to apply freezing plant, the background application run in the terminal is obtained by obtaining module 810, is detected The background application whether there is desktop plug-ins, if there are desktop plug-ins for the background application, judgment module 820 is according to institute The type for stating desktop plug-ins judges whether to freeze the corresponding background application of the desktop plug-ins, described when needing to freeze When background application, freezes module 830 and freeze strategy according to default and freeze the background application, it can be according to desktop socket The job category of part judges whether to freeze corresponding background application, and error rate is freezed in reduction, and it is more reasonable to make to freeze application.
The above-mentioned division using modules in freezing plant is only used for for example, in other embodiments, can will answer It is divided into different modules, as required with freezing plant to complete above-mentioned all or part of function using freezing plant.
The embodiment of the present application also provides a kind of computer readable storage mediums.One or more is executable comprising computer The non-volatile computer readable storage medium storing program for executing of instruction, when the computer executable instructions are executed by one or more processors When, so that the processor is executed applies freezing method as described in the various embodiments described above.
The embodiment of the present application also provides a kind of computer program products.A kind of computer program product comprising instruction, When run on a computer, so that computer, which executes, applies freezing method described in the various embodiments described above.
The embodiment of the present application also provides a kind of terminals.As shown in figure 9, for ease of description, illustrate only and the application The relevant part of embodiment, it is disclosed by specific technical details, please refer to the embodiment of the present application method part.The terminal can be Including mobile phone, tablet computer, PDA (Personal Digital Assistant, personal digital assistant), POS (Point of Sales, point-of-sale terminal), vehicle-mounted computer, any terminal device such as wearable device, taking the terminal as an example:
Fig. 9 is the block diagram of the part-structure of mobile phone relevant to terminal provided by the embodiments of the present application.With reference to Fig. 9, mobile phone It include: radio frequency (Radio Frequency, RF) circuit 910, memory 920, input unit 930, display unit 940, sensor 950, voicefrequency circuit 960, Wireless Fidelity (wireless fidelity, WiFi) module 970, processor 980 and power supply 990 Equal components.It will be understood by those skilled in the art that handset structure shown in Fig. 9 does not constitute the restriction to mobile phone, may include Than illustrating more or fewer components, certain components or different component layouts are perhaps combined.
Wherein, RF circuit 910 can be used for receiving and sending messages or communication process in, signal sends and receivees, can be by base station After downlink information receives, handled to processor 980;The data of uplink can also be sent to base station.In general, RF circuit include but Be not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..In addition, RF circuit 910 can also be communicated with network and other equipment by wireless communication.Above-mentioned channel radio Any communication standard or agreement, including but not limited to global system for mobile communications (Global System of can be used in letter Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), CDMA (Code Division Multiple Access, CDMA), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), long term evolution (Long Term Evolution, LTE)), Email, Short message service (Short Messaging Service, SMS) etc..
Memory 920 can be used for storing software program and module, and processor 980 is stored in memory 920 by operation Software program and module, thereby executing the various function application and data processing of mobile phone.Memory 920 can mainly include Program storage area and data storage area, wherein program storage area can application journey needed for storage program area, at least one function Sequence (such as application program, application program of image player function of sound-playing function etc.) etc.;Data storage area can store root Created data (such as audio data, address list etc.) etc. are used according to mobile phone.In addition, memory 920 may include high speed Random access memory, can also include nonvolatile memory, a for example, at least disk memory, flush memory device or Other volatile solid-state parts.
Input unit 930 can be used for receiving the number or character information of input, and generate the user setting with mobile phone 900 And the related key signals input of function control.Specifically, input unit 930 may include touch panel 931 and other inputs Equipment 932.Touch panel 931, alternatively referred to as touch screen collect touch operation (such as the user of user on it or nearby Use the operation of any suitable object or attachment such as finger, stylus on touch panel 931 or near touch panel 931), And corresponding attachment device is driven according to preset formula.In one embodiment, touch panel 931 may include touching inspection Survey two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation Bring signal, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and will It is converted into contact coordinate, then gives processor 980, and can receive order that processor 980 is sent and be executed.In addition, Touch panel 931 can be realized using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch surface Plate 931, input unit 930 can also include other input equipments 932.Specifically, other input equipments 932 may include but not It is limited to one of physical keyboard, function key (such as volume control button, switch key etc.) etc. or a variety of.
Display unit 940 can be used for showing information input by user or be supplied to user information and mobile phone it is various Menu.Display unit 940 may include display panel 941.In one embodiment, liquid crystal display (Liquid can be used Crystal Display, LCD), the forms such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) To configure display panel 941.In one embodiment, touch panel 931 can cover display panel 941, when touch panel 931 is examined After measuring touch operation on it or nearby, processor 980 is sent to determine the type of touch event, is followed by subsequent processing device 980 provide corresponding visual output according to the type of touch event on display panel 941.Although in Fig. 9, touch panel 931 and display panel 941 are the input and input function for realizing mobile phone as two independent components, but in certain implementations In example, can be integrated by touch panel 931 and display panel 941 and that realizes mobile phone output and input function.
Mobile phone 900 may also include at least one sensor 950, such as optical sensor, motion sensor and other sensings Device.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 941, and proximity sensor can close display panel when mobile phone is moved in one's ear 941 and/or backlight.Motion sensor may include acceleration transducer, can detect by acceleration transducer and adds in all directions The size of speed can detect that size and the direction of gravity when static, can be used to identify application (such as the horizontal/vertical screen of mobile phone posture Switching), Vibration identification correlation function (such as pedometer, tap) etc.;In addition, mobile phone can also configure gyroscope, barometer, humidity Other sensors such as meter, thermometer, infrared sensor etc..
Voicefrequency circuit 960, loudspeaker 961 and microphone 962 can provide the audio interface between user and mobile phone.Audio-frequency electric Electric signal after the audio data received conversion can be transferred to loudspeaker 961, be converted to sound by loudspeaker 961 by road 960 Signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 962, is turned after being received by voicefrequency circuit 960 It is changed to audio data, then by after the processing of audio data output processor 980, another mobile phone can be sent to through RF circuit 910, or Person exports audio data to memory 920 so as to subsequent processing.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronics postal by WiFi module 970 Part, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 9 is shown WiFi module 970, but it is understood that, and it is not belonging to must be configured into for mobile phone 900, it can according to need and omit.
Processor 980 is the control centre of mobile phone, using the various pieces of various interfaces and connection whole mobile phone, is led to It crosses operation or executes the software program and/or module being stored in memory 920, and call and be stored in memory 920 Data execute the various functions and processing data of mobile phone, to carry out integral monitoring to mobile phone.In one embodiment, it handles Device 980 may include one or more processing units.In one embodiment, processor 980 can integrate application processor and modulation Demodulator, wherein the main processing operation system of application processor, User Page and application program etc.;Modem is mainly located Reason wireless communication.It is understood that above-mentioned modem can not also be integrated into processor 980.For example, the processor 980 can integrate application processor and baseband processor, baseband processor with and the composable modem such as other peripheral chips. Mobile phone 900 further includes the power supply 990 (such as battery) powered to all parts, it is preferred that power supply can pass through power management system It unites logically contiguous with processor 980, to realize the function such as management charging, electric discharge and power managed by power-supply management system Energy.
In one embodiment, mobile phone 900 can also include camera, bluetooth module etc..
In the embodiment of the present application, when processor included by the mobile phone executes the computer program of storage on a memory It realizes and applies freezing method described in the various embodiments described above.
When the execution of the computer program run on a processor, it can be judged whether according to the job category of desktop plug-ins Freeze corresponding background application, error rate is freezed in reduction, and it is more reasonable to make to freeze application.
Any reference to memory, storage, database or other media used in this application may include non-volatile And/or volatile memory.Suitable nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), Electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include arbitrary access Memory (RAM), it is used as external cache.By way of illustration and not limitation, RAM is available in many forms, such as It is static RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM).
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously The limitation to the application the scope of the patents therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art For, without departing from the concept of this application, various modifications and improvements can be made, these belong to the guarantor of the application Protect range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.

Claims (10)

1. a kind of apply freezing method, for freezing the application program run in terminal, which comprises
The background application run in the terminal is obtained, detects the background application with the presence or absence of desktop plug-ins;
If there are desktop plug-ins for the background application, judge whether to freeze according to the type of the desktop plug-ins described The corresponding background application of desktop plug-ins;
When needing to freeze the background application, freezes strategy according to default and freeze the background application.
2. the method according to claim 1, wherein the type according to the desktop plug-ins judges whether to freeze Tie the corresponding background application of the desktop plug-ins, comprising:
The corresponding desktop plug-ins of the background application are obtained, job category belonging to the desktop plug-ins is detected;
When the desktop plug-ins belong to imported plug-in unit, freeze the corresponding background application of the imported plug-in unit;Wherein, The imported plug-in unit includes the desktop plug-ins that output result is shown according to input data.
3. according to the method described in claim 2, it is characterized in that, the type according to the desktop plug-ins judges whether to freeze Tie the corresponding background application of the desktop plug-ins, further includes:
When the desktop plug-ins belong to output type plug-in unit, the operation of the corresponding background application of the output type plug-in unit is kept State;Wherein, the output type plug-in unit includes the desktop plug-ins of real-time update.
4. freezing strategy the method according to claim 1, wherein the basis is default and freezing the background application Program, comprising:
Obtain the frequency of use for needing the corresponding desktop plug-ins of the background application freezed;
Freeze grade with the mapping relations division for freezing degree according to the frequency of use;The grade of freezing is used to indicate configuration The maximum allowable resource that the background application can use;
Freeze grade according to described the background application corresponding freeze.
5. freezing strategy the method according to claim 1, wherein the basis is default and freezing the background application Program, comprising:
Obtain background application functional and presently described background application the function that uses of desktop plug-ins;
Not used function is obtained according to the function that the desktop plug-ins of the background application use;
Freeze the not used function corresponding process in systems.
6. the method according to claim 1, wherein freezing strategy according to default and freezing the background application Later, further includes:
When frozen there are the background application of desktop plug-ins, if detecting, current display interface is desktop, institute of thawing State the background application there are desktop plug-ins.
7. the method according to claim 1, wherein freezing strategy according to default and freezing the background application Later, further includes:
It obtains and the defrosting thawed instruction is carried out to frozen background application;
Whether the biological information detected in the instruction of thawing matches with preset biological characteristic;
When the biological information in instruction of thawing matches with preset biological characteristic, the background application is carried out It thaws and operates.
8. a kind of apply freezing plant characterized by comprising
It obtains module and detects whether the background application is deposited for obtaining the background application run in the terminal In desktop plug-ins;
Judgment module, if being according to the judgement of the type of the desktop plug-ins for the background application there are desktop plug-ins It is no to freeze the corresponding background application of the desktop plug-ins;
Freeze module, for when needing to freeze the background application, freezes strategy and freeze the backstage to answer according to default Use program.
9. a kind of terminal, including memory and processor, computer-readable instruction, described instruction quilt are stored in the memory When the processor executes, so that the step of processor executes the method as described in any one of claims 1 to 7.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of method as described in any one of claims 1 to 7 is realized when being executed by processor.
CN201711480509.0A 2017-12-29 2017-12-29 Application freezing method and device, terminal and computer readable storage medium Active CN109992361B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711480509.0A CN109992361B (en) 2017-12-29 2017-12-29 Application freezing method and device, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711480509.0A CN109992361B (en) 2017-12-29 2017-12-29 Application freezing method and device, terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109992361A true CN109992361A (en) 2019-07-09
CN109992361B CN109992361B (en) 2021-08-31

Family

ID=67109843

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711480509.0A Active CN109992361B (en) 2017-12-29 2017-12-29 Application freezing method and device, terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109992361B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023124801A1 (en) * 2021-12-31 2023-07-06 中兴通讯股份有限公司 Freeze management method and apparatus for application, electronic device, and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8117555B2 (en) * 2006-12-07 2012-02-14 Sap Ag Cooperating widgets
CN106095482A (en) * 2016-05-31 2016-11-09 宇龙计算机通信科技(深圳)有限公司 The freezing method of application program and device
CN106125882A (en) * 2016-06-15 2016-11-16 深圳市万普拉斯科技有限公司 The management method of a kind of application program and electronic equipment
CN106201596A (en) * 2016-06-29 2016-12-07 宇龙计算机通信科技(深圳)有限公司 A kind of method, device and terminal forbidding that third-party application automatically updates
CN106250185A (en) * 2016-07-29 2016-12-21 宇龙计算机通信科技(深圳)有限公司 The control method of application program, control device and terminal
CN106959857A (en) * 2017-03-29 2017-07-18 联想(北京)有限公司 The application control method and apparatus of a kind of electronic equipment
CN107220076A (en) * 2016-09-27 2017-09-29 华为技术有限公司 A kind of method for recovering internal storage and device
CN107315612A (en) * 2017-06-27 2017-11-03 珠海市魅族科技有限公司 Terminal control method, device, computer installation and storage medium
CN107329777A (en) * 2017-06-01 2017-11-07 深圳市金立通信设备有限公司 Using startup method and terminal device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8117555B2 (en) * 2006-12-07 2012-02-14 Sap Ag Cooperating widgets
CN106095482A (en) * 2016-05-31 2016-11-09 宇龙计算机通信科技(深圳)有限公司 The freezing method of application program and device
CN106125882A (en) * 2016-06-15 2016-11-16 深圳市万普拉斯科技有限公司 The management method of a kind of application program and electronic equipment
CN106201596A (en) * 2016-06-29 2016-12-07 宇龙计算机通信科技(深圳)有限公司 A kind of method, device and terminal forbidding that third-party application automatically updates
CN106250185A (en) * 2016-07-29 2016-12-21 宇龙计算机通信科技(深圳)有限公司 The control method of application program, control device and terminal
CN107220076A (en) * 2016-09-27 2017-09-29 华为技术有限公司 A kind of method for recovering internal storage and device
CN106959857A (en) * 2017-03-29 2017-07-18 联想(北京)有限公司 The application control method and apparatus of a kind of electronic equipment
CN107329777A (en) * 2017-06-01 2017-11-07 深圳市金立通信设备有限公司 Using startup method and terminal device
CN107315612A (en) * 2017-06-27 2017-11-03 珠海市魅族科技有限公司 Terminal control method, device, computer installation and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023124801A1 (en) * 2021-12-31 2023-07-06 中兴通讯股份有限公司 Freeze management method and apparatus for application, electronic device, and storage medium

Also Published As

Publication number Publication date
CN109992361B (en) 2021-08-31

Similar Documents

Publication Publication Date Title
CN109992378A (en) Using freezing method, device, terminal and computer readable storage medium
CN109992370A (en) Applied program processing method and device, electronic equipment, computer readable storage medium
CN110008008A (en) Applied program processing method and device, electronic equipment, computer readable storage medium
CN109992398A (en) Method for managing resource, device, mobile terminal and computer readable storage medium
CN110018904A (en) Information processing method, device, computer equipment and computer readable storage medium
CN109992438A (en) Information processing method, device, computer equipment and computer readable storage medium
CN110032266B (en) Information processing method, information processing device, computer equipment and computer readable storage medium
CN109144232A (en) Process handling method and device, electronic equipment, computer readable storage medium
CN110018901A (en) Method for recovering internal storage, device, computer equipment and computer readable storage medium
CN110018902A (en) Internal memory processing method and device, electronic equipment, computer readable storage medium
CN109445917A (en) Application processing method and device, electronic equipment, computer readable storage medium
CN109992397A (en) Process handling method and device, electronic equipment, computer readable storage medium
CN109992364A (en) Using freezing method, device, computer equipment and computer readable storage medium
CN110046032A (en) Applied program processing method and device, electronic equipment, computer readable storage medium
CN109992380A (en) Applied program processing method and device, electronic equipment, computer readable storage medium
CN110018905A (en) Information processing method, device, computer equipment and computer readable storage medium
CN109992375A (en) Information processing method, device, computer equipment and computer readable storage medium
CN110018886B (en) Application state switching method and device, electronic equipment and readable storage medium
CN109992360A (en) Process handling method and device, electronic equipment, computer readable storage medium
CN109992309A (en) Applied program processing method and device, electronic equipment, computer readable storage medium
CN110032397A (en) Application processing method and device, electronic equipment, computer readable storage medium
CN110018885A (en) Application program freezing method, device, storage medium and terminal
CN109992323A (en) Process handling method and device, electronic equipment, computer readable storage medium
CN109992363A (en) Applied program processing method and device, electronic equipment, computer readable storage medium
CN110046033A (en) Applied program processing method and device, electronic equipment, computer readable storage medium

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
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: OPPO Guangdong Mobile Communications Co.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant