WO2019128570A1 - Method and apparatus for freezing application, and storage medium and terminal - Google Patents

Method and apparatus for freezing application, and storage medium and terminal Download PDF

Info

Publication number
WO2019128570A1
WO2019128570A1 PCT/CN2018/116934 CN2018116934W WO2019128570A1 WO 2019128570 A1 WO2019128570 A1 WO 2019128570A1 CN 2018116934 W CN2018116934 W CN 2018116934W WO 2019128570 A1 WO2019128570 A1 WO 2019128570A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
freeze
preset
coefficient
freezing
Prior art date
Application number
PCT/CN2018/116934
Other languages
French (fr)
Chinese (zh)
Inventor
陈岩
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2019128570A1 publication Critical patent/WO2019128570A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/329Power saving characterised by the action undertaken by task scheduling
    • 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
    • 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
    • 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/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • 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/50Allocation of resources, e.g. of the central processing unit [CPU]
    • 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/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5022Mechanisms to release resources
    • 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/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/48Indexing scheme relating to G06F9/48
    • G06F2209/482Application
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5021Priority
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/504Resource capping
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Definitions

  • the present application relates to the field of terminal technologies, and in particular, to an application freezing method, apparatus, storage medium, and terminal.
  • terminal devices enter the era of intelligence
  • terminal devices of large screens especially touch screens
  • applications applications, referred to as app
  • the operating system of the terminal provides an alarm alarm wake-up mechanism to wake up the application.
  • the application is frequently woken up by the system alarm, greatly increasing the operating power consumption of the terminal.
  • the embodiment of the present application provides an application freezing method, device, storage medium, and terminal, which can save power consumption and improve user experience.
  • An application freezing method including:
  • the application is frozen when the real-time freeze coefficient is greater than a preset threshold.
  • An application freezing device comprising:
  • the query module is configured to obtain an wake-up frequency of the application response alarm clock within a preset time period
  • An obtaining module configured to acquire a preset freezing coefficient of the application
  • an adjusting module configured to adjust the preset freezing coefficient according to the wake-up frequency to obtain a real-time freezing coefficient
  • a freezing module configured to freeze the application when the real-time freezing coefficient is greater than a preset threshold.
  • a computer readable storage medium having stored thereon a computer program, the computer program being executed by a processor to implement the steps of the application freezing method in various embodiments of the present application.
  • a terminal comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, the processor executing the computer program to implement the step of freezing the application in various embodiments of the present application.
  • An application freezing method and device, a storage medium, and a terminal provided by the embodiment of the present application, the method includes: acquiring, in a preset time period, a wake-up frequency of an application response alarm clock; acquiring a preset freezing coefficient of the application; The wake-up frequency adjusts the preset freeze coefficient to obtain a real-time freeze coefficient; when the real-time freeze coefficient is greater than a preset threshold, freezing the application may be adjusted according to an application program responding to an alarm wake-up frequency within a preset time period The preset freezing coefficient is obtained to obtain the real-time freezing coefficient. When the real-time freezing coefficient is greater than the preset threshold, the application is frozen, so that it cannot be woken up, saving power consumption and releasing system resources.
  • FIG. 1 is a schematic diagram showing the internal structure of a terminal in an embodiment
  • FIG. 2 is a partial schematic diagram of a system in a terminal in an embodiment
  • FIG. 3 is a flow chart of an application freezing method in an embodiment
  • FIG. 5 is a flowchart of adjusting the preset freeze coefficient according to the wake-up frequency to obtain a real-time freeze coefficient according to an embodiment
  • FIG. 6 is a flow chart of an application freezing method in still another embodiment
  • FIG. 7 is a flow chart for inquiring whether a user needs to freeze an application in a frozen list in one embodiment
  • Figure 8 is a flow chart of freezing the application in one embodiment
  • FIG. 9 is a structural block diagram of an application freezing device in an embodiment
  • Figure 10 is a block diagram showing a portion of the structure of a handset in an embodiment.
  • first, second and the like may be used to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another.
  • a first dependent process may be referred to as a second dependent process without departing from the scope of the invention, and similarly, a second dependent process may be referred to as a first dependent process. Both the first dependent process and the second dependent process are dependent processes, but they are not the same dependent process.
  • FIG. 1 a schematic diagram of an internal structure of a terminal is provided.
  • the terminal includes a processor, memory, and display connected via a system bus.
  • the processor is used to provide computing and control capabilities to support the operation of the entire terminal.
  • the memory is used to store data, programs, and/or instruction codes, etc., and the memory stores at least one computer program, which can be executed by the processor to implement the process processing method applicable to the terminal provided in the embodiments of the present application.
  • the memory may include a non-volatile storage medium such as a magnetic disk, an optical disk, a read-only memory (ROM), or a random storage memory (Random-Access-Memory, RAM).
  • the memory includes a non-volatile storage medium and an internal memory.
  • Non-volatile storage media stores operating systems, databases, and computer programs.
  • the database stores data related to a process processing method provided by the above various embodiments, such as information such as the name of each process or application.
  • the computer program can be executed by a processor for implementing a process processing method provided by various embodiments of the present application.
  • the internal memory provides a cached operating environment for operating systems, databases, and computer programs in non-volatile storage media.
  • the display screen can be a touch screen, such as a capacitive screen or an electronic screen, for displaying interface information of an application corresponding to the foreground process, and can also be used for detecting a touch operation acting on the display screen, and generating corresponding instructions, such as pre-application. Program switching instructions, etc.
  • FIG. 1 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the terminal to which the solution of the present application is applied.
  • the specific terminal may include a ratio. More or fewer components are shown in the figures, or some components are combined, or have different component arrangements.
  • the terminal further includes a network interface connected through a system bus, and the network interface may be an Ethernet card or a wireless network card, etc., for communicating with an external terminal, for example, for communicating with a server.
  • a partial architectural diagram of a terminal is provided.
  • the architecture system of the terminal includes a JAVA spatial layer 210, a local framework layer 220, and a kernel (Kernel) spatial layer 230.
  • the freeze and thaw application 210 can be included in the JAVA spatial layer.
  • the freeze and thaw application 210 can be used by the terminal to implement a freeze policy for each application, and freeze the related application of the background power consumption.
  • the resource priority and restriction management module 222 and the platform freeze management module 224 are included in the local framework layer 220.
  • the terminal can maintain different applications in different priorities and different resource organizations through the resource priority and limit management module 222, and adjust the resource group of the application according to the requirements of the upper layer to achieve optimized performance and save power. .
  • the terminal freezes the task that can be frozen in the background by the platform freeze management module 224, and allocates the freeze layer to the preset different levels according to the length of the entry freeze time.
  • the freeze layer may include three, respectively: CPU limit Sleep mode, CPU freeze sleep mode, process deep freeze mode.
  • the CPU restricts the sleep mode to limit the CPU resources occupied by the related processes, so that the related processes occupy less CPU resources, and the free CPU resources are tilted to other unfrozen processes, thereby limiting the occupation of CPU resources.
  • the kernel space layer 230 includes a UID management module 231, a Cgroup module 232, a Binder management module 233, a process memory collection module 234, and a timeout freeze exit module 235.
  • the UID management module 231 is configured to implement an application-based User Identifier (UID) to manage resources of a third-party application or freeze. Compared with the Process Identifier (PID) for process management and control, it is easier to uniformly manage the resources of a user's application through UID.
  • the Cgroup module 232 is used to provide a complete set of Central Processing Unit (CPU), CPUSET, memory, input/output (I/O), and Net related resource restriction mechanisms.
  • the Binder management module 233 is used to implement the priority control of the background binder communication.
  • the interface module of the local framework layer 220 includes a binder interface developed to the upper layer, and the upper layer framework or application sends a resource restriction or frozen instruction to the resource priority and restriction management module 222 and the platform freeze management module 224 through the provided binder interface.
  • the process memory recovery module 234 is configured to implement the process deep freeze mode, so that when a third-party application is in a frozen state for a long time, the file area of the process is mainly released, thereby saving the memory module and speeding up the application next time. The speed at startup.
  • the timeout freeze exit module 235 is configured to solve the abnormality generated by the freeze timeout scenario.
  • an application freeze method is provided. This embodiment is described by applying the method to the terminal shown in FIG. 1 as an example.
  • the application freeze method includes:
  • Step 302 Acquire a wake-up frequency of the application response alarm clock within a preset time period.
  • the application corresponding to the operation page of the application displayed by the current display interface of the terminal is the foreground application currently running by the terminal, and the application running in the background is the application.
  • the alarm waking mechanism is generally adopted to wake up related application processes at specific moments.
  • the Alarm Manager class provides an access interface to the system alarm service, and can set a function for the application to wake up the application at a certain time in the future, that is, at a specified time. Launch the application internally or periodically. Specifically, when the alarm alarm sounds (time to), the system will issue a broadcast registered for this alarm, which will automatically launch the target application. The registered alarm clock will remain when the terminal sleeps. You can optionally set whether to wake up the terminal, but the alarm will be cleared when the terminal is turned off and restarted.
  • the operating system When the application requests a system alarm and a response system alarm, the operating system receives a notification, so the operating system can count the number of times the application responds to the system alarm during the preset time period.
  • the number of times the application responds to the system alarm clock during the preset time period is the wake-up frequency of the application system within the preset time period.
  • Step 304 Acquire a preset freeze coefficient of each application.
  • Each application has a preset freeze coefficient.
  • the freeze coefficient of each application can be the same or different.
  • the preset freeze factor can be used to characterize the expectation that the application needs to be frozen. The larger the preset freeze coefficient, the higher the expectation.
  • the preset freeze coefficient is stored in the preset freeze coefficient table, and the mapping relationship between the application and the preset freeze coefficient is stored in the preset freeze coefficient table.
  • the mapping relationship in the preset freezing coefficient table may be set according to a preset condition, wherein the setting of the preset freezing coefficient may be set according to conditions such as an operating frequency of the application, a running time, and an resource occupancy rate of the application.
  • the preset freeze coefficient table may be set by the system default or according to user requirements. According to different preset conditions, a plurality of preset freeze coefficient tables may be set, and each freeze coefficient table corresponds to a preset condition.
  • Step 306 Adjust the preset freeze coefficient according to the wake-up frequency to obtain a real-time freeze coefficient.
  • the application obtained according to the foregoing steps responds to the wake-up frequency of the alarm clock and the preset freeze coefficient corresponding to the application to adjust the preset freeze coefficient.
  • the wake-up frequency of each application response alarm is different.
  • the preset freeze coefficient of each application is also different.
  • the preset freeze coefficient can be adjusted according to the wake-up frequency of the application response alarm to obtain the real-time freeze coefficient.
  • the freeze factor increases as the wake-up frequency increases to obtain a real-time freeze coefficient.
  • Step 308 When the real-time freezing coefficient is greater than a preset threshold, the application is frozen.
  • the preset freeze coefficient is dynamically adjusted to obtain a real-time freeze coefficient.
  • the acquired real-time freeze coefficient reaches a certain value, that is, when the real-time freeze coefficient is greater than a preset threshold, the application is frozen. It cannot be woken up, saving power and freeing up system resources.
  • the application freezing method obtains a wake-up frequency of the application response alarm clock in a preset time period; acquires a preset freeze coefficient of the application; and adjusts the preset freeze coefficient according to the wake-up frequency to obtain a real-time freeze coefficient;
  • the real-time freezing coefficient is greater than the preset threshold, the application is frozen, and the preset freezing coefficient may be adjusted according to the wake-up frequency of the application within a preset time period to obtain a real-time freezing coefficient, when the real-time freezing coefficient is greater than a preset threshold.
  • the application running in the background is frozen, it cannot be woken up, saving power and releasing system resources.
  • the method before acquiring the preset freeze coefficient of each application, the method further includes:
  • Step 402 Obtain an application resource usage rate or a running time of the application.
  • the resource usage rate can be CPU usage or memory usage.
  • the CPU usage refers to the CPU resources occupied by the running application, indicating the running of the terminal at a certain point in time.
  • Memory usage refers to the memory overhead of all processes in the application.
  • a process is a running activity of a program on a computer on a data set. It is the basic unit of the system for resource allocation and scheduling, and is the basis of the operating system structure.
  • the terminal may collect the maximum value of the resource usage of the application in a specific historical time as the resource occupancy rate, or collect the multiple instantaneous resource usage rates of the application in a specific historical time, according to multiple collected
  • the instantaneous resource occupancy rate obtains an average value of the resource occupancy rate, and the average value of the obtained resource occupancy rate is used as the resource occupancy rate of the application.
  • the terminal may also use other methods to count the resource usage of the application, which is not further limited herein.
  • the terminal can also count the number of starts the application is running in the foreground during a specific historical time, as well as the length of a single run after each launch.
  • the runtime that an application runs in the foreground is the sum of the length of a single run after each launch of the application during a particular historical time, that is, the cumulative run time of the application during a particular historical time.
  • Step 404 Set a preset freezing coefficient of the corresponding application according to the resource occupancy rate or the running frequency.
  • the preset freeze coefficient of each application may be set according to the resource occupancy rate, wherein the higher the resource occupancy rate, when the application is running in the background, it is highly likely to cause a jam, affecting the smoothness of the terminal.
  • the user has higher expectation of freezing the application with high resource occupancy rate, and the value of the corresponding preset freezing coefficient can be set larger. That is, the higher the resource occupancy rate of the application, the larger the corresponding preset freezing coefficient.
  • the preset freeze coefficient table is formed according to the correspondence between the resource occupancy rate of the application and the preset freeze coefficient.
  • the corresponding preset freeze coefficient can also be set according to the running time of the application.
  • the longer the running time indicates that the application is an important application that the user thinks; the shorter the running time, the less frequently the application is used by the user. That is, the user has a higher expectation of freezing the application of the running time, and the value of the corresponding preset freezing coefficient can be set larger. That is, the shorter the running time of the application, the larger the corresponding preset freezing coefficient.
  • the preset freeze coefficient table can also be formed according to the correspondence between the running time of the application and the preset freezing coefficient.
  • the user can also set the preset freeze list according to the running frequency, network usage, environment information, etc., and no further limitation is made here.
  • adjusting the preset freeze coefficient according to the wake-up frequency to obtain a real-time freeze coefficient includes:
  • Step 502 Acquire historical running data of the application, and determine a frequency of use of the application within the preset time period.
  • the terminal can record the situation in which the user uses the terminal, and store the historical data of the user using the terminal. Historical data can be statistically analyzed at set intervals to determine how often the user is using the application for each preset time period.
  • the frequency of use of the application by the user in the preset time period may be the number of times the application runs in the foreground during the preset time period, and the number of starts is used as the preset number of times. How often the app is running.
  • the above is only an example, and those skilled in the art may also determine, by other methods, the frequency of use of the application by the user during the preset time period.
  • Step 504 Determine a freeze weight factor according to the use frequency and the wake-up frequency.
  • the freezing weight factor of the application can be determined from multiple dimensions in combination with the wake-up frequency, and the freeze expectation of the application within the preset time period can be initially estimated.
  • the freeze weight factor is used to adjust the preset freeze coefficient to obtain the real-time freeze coefficient.
  • determining the freeze weighting factor according to the use frequency and the wake-up frequency comprises: calculating a ratio of the wake-up frequency to the use frequency; and searching for a freeze weight factor corresponding to the ratio in the preset weight table.
  • the weighting factor is determined according to the magnitude of the ratio K by calculating the ratio K of the wake-up frequency to the used frequency.
  • the frozen weighting factor corresponding to the ratio K is found by calling a preset weight table. In the preset weight table, the larger the ratio K, the larger the corresponding freeze weight factor. If the ratio K is larger, it can be considered that the wake-up frequency of the application is far greater than the frequency of use relative to the frequency of use. In this case, it can be considered that the application is not frequently used by the user during the preset time period. The application does not need to be woken up, and the user's expectation of freezing the application is large. If the ratio K is less than 1, it can be considered that the application is an application frequently used by the user, and needs to be woken up, and the user's expectation of freezing the application is relatively small.
  • the freeze weighting factor may also be determined according to the difference by calculating a difference between the wake-up frequency and the used frequency.
  • the preset weight table may be set by default or may be set according to user requirements. The user can adjust the correspondence between the ratio K and the frozen weight factor according to his own needs.
  • Step 506 Determine the real-time freezing coefficient according to the freeze weighting factor and the preset freezing coefficient.
  • the freeze weight factor can be determined according to the wake-up frequency and the use frequency of the application, and the preset freeze coefficient is adjusted according to the obtained weight factor to obtain the real-time freeze coefficient.
  • the real-time freezing coefficient is the sum of the preset freezing coefficient and the frozen weighting factor. That is:
  • Real-time freeze coefficient preset freeze coefficient + freeze weight factor.
  • the preset freeze coefficient is adjusted only by the wake-up frequency of the application within the preset time period, the adjustment accuracy is low.
  • the frozen weighting factor is determined from multiple dimensions, and the accuracy of calculating the real-time freezing coefficient can be improved.
  • the application freezing method includes:
  • Step 602 Acquire a wake-up frequency of the application response alarm clock within a preset time period.
  • Step 604 Acquire a preset freeze coefficient of the application.
  • Step 606 Adjust the preset freeze coefficient according to the wake-up frequency to obtain a real-time freeze coefficient.
  • steps 602, 604, and 606 are in one-to-one correspondence with the steps 302, 304, and 306 in the foregoing embodiment, and are not described again.
  • Step 608 Generate a freeze list according to the application whose real-time freeze coefficient is greater than a preset threshold; and the application in the freeze list sorts according to a preset policy.
  • the real-time freezing coefficient of all applications can be obtained.
  • the application is defined as a pre-freezing program, and a frozen list is generated according to the obtained pre-freezing program. After the freeze list is generated, it is pushed to the user, and the prompt is used to freeze management of the application installed in the terminal.
  • the applications in the frozen list can be arranged in the order of the real-time freeze coefficients. Sorting can make the user's search and subsequent operations more convenient, and meet the needs of different user operating habits.
  • Step 610 Ask the user if they need to freeze the application in the frozen list.
  • the frozen list includes a plurality of controls, respectively corresponding to the applications that need to be frozen, for example, the applications 1, the application 2, the application 3, ..., the control of the application 6.
  • the corresponding mark is displayed at the control of the corresponding application, and the mark is used to indicate that the application is selected.
  • the frozen list displayed on the display interface may be highlighted with different identifiers.
  • the first three digits of the frozen list may be displayed in a highlighted form, and the highlighted color may be a gradient color.
  • the freeze interface further includes a freeze button.
  • the prompt information of “whether the selected application is frozen” may be output through the pop-up window, and the option is “cancel” " or “freeze” selection controls for the user to select.
  • asking the user if they need to freeze the application in the frozen list includes:
  • Step 702 Acquire a historical running data of the application when receiving a freeze instruction for freezing the application by the user;
  • the terminal detects that the user triggers the freeze button, and may output a prompt message of “whether the selected application is frozen” in the form of a pop-up window, and the option is “ Cancel or "freeze” the selection controls for the user to select.
  • the terminal accepts a freeze instruction input by the user, wherein the freeze instruction is used to freeze the selection application.
  • historical running data of the application when receiving the freezing instruction input by the user, wherein the historical running data may be intermediate running data generated during running of the application to be frozen, for example, when running WeChat, Received WeChat information, such as voice, text, expressions, images, videos, files, and other historical intermediate data.
  • Step 704 Determine whether privacy data is included in the historical running data.
  • Obtain historical running data and analyze the obtained historical running data to detect whether the historical running data includes private data, wherein the private data may be an important contact information, a document number, an image and video with a specific user, and a certificate. Documents, etc.
  • Step 706 When the privacy data is included in the historical running data, the private data is encrypted and saved in a preset database.
  • a prompt window for encrypting the private data is displayed on the screen of the terminal, and the prompt window is used to prompt the user whether to encrypt and transfer the historical running data of the application to be frozen, and the user may According to the prompt window, choose whether you need to perform encryption transfer.
  • the user needs to encrypt and transfer the private data, it can be transferred to the preset database according to the preset storage path to prevent the application from influencing the user's call to the private data during the freezing.
  • the privacy data can be transferred to a certain area of the storage space of the terminal (such as an SD card, an external memory, etc.), thereby ensuring that the user can call the private data at any time when the application is frozen.
  • a certain area of the storage space of the terminal such as an SD card, an external memory, etc.
  • the encrypted password may be a character, an image, a fingerprint, an iris, an ear print, a voice print or other forms of a password formed by a combination of numbers and letters, which is not limited herein.
  • freezing the application includes:
  • Step 802 Acquire an application identifier of the application.
  • Each application has a unique app ID that uniquely identifies the corresponding app.
  • the application identifier may be composed of a combination of one or more of a preset number of digits, letters, or other characters.
  • Step 804 Acquire a freeze level of the application with the application identifier in a preset database.
  • a freeze level for each application is stored in the preset database, and the freeze level is used to indicate the maximum allowable resources that can be used by the application.
  • the resources that can be used represent the resources that the process can use at each moment of execution.
  • the maximum allowed resource represents the maximum resource that the process is allowed to use at various times.
  • the process is a basic operation of a program on a certain data set in a computer. It is the basic unit for resource allocation and scheduling, and is the basis of the operating system structure.
  • the terminal may acquire the background process according to a preset frequency or according to the detected user operation instruction.
  • the application obtains the corresponding freeze level from the preset database.
  • the user can configure the corresponding freeze level for each application.
  • the freeze level of the application may be divided into first level, second level, third level, and fourth level, wherein the lowest level of freezing level is one level, and the highest level of freezing level is four levels.
  • the foregoing resources may include a CPU, an I/O file resource, and the like. Take resources as memory for an example. If the memory required by the background process is 40Mb, if the freeze level is one level (lowest level), the background process is allocated resources according to the level 1 freeze level, and the maximum allowable resource that the application can use is 30Mb; For level 4 (the highest level), the background process is allocated resources according to the level 4 freeze level, and the maximum allowable resource that the application can use is 0Mb. Among them, the highest level of freezing level is completely frozen.
  • Step 806 Perform freeze on the application level according to the freeze level.
  • the application is frozen according to the freeze level configured by the application.
  • the freeze level of the application is different, different degrees of freezing operations may be performed according to each application, instead of making all applications satisfying the preset condition completely frozen, and the application may be completely frozen.
  • the state is convenient for the user to quickly and effectively unfreeze the application and improve the user experience.
  • the root-root freeze level limits the maximum allowed resources that an application can use, and can also allocate resources reasonably and reduce power consumption.
  • an application freezing device comprising:
  • the querying module 910 is configured to acquire, in a preset time period, a wake-up frequency of the application response alarm clock;
  • the obtaining module 920 is configured to acquire a preset freezing coefficient of the application
  • the adjusting module 930 is configured to adjust the preset freezing coefficient according to the wake-up frequency to obtain a real-time freezing coefficient
  • the freezing module 940 is configured to freeze the application when the real-time freezing coefficient is greater than a preset threshold.
  • the application freezing device the query module 910 can acquire the wake-up frequency of the application response alarm clock within a preset time period; the obtaining module 920 can acquire the preset freeze coefficient of each application; and the adjusting module 930 adjusts according to the wake-up frequency.
  • the preset freeze coefficient obtains a real-time freeze coefficient; when the real-time freeze coefficient is greater than a preset threshold, the freeze module 940 freezes the application.
  • the application freezing device can adjust the preset freezing coefficient to obtain the real-time freezing coefficient according to the wake-up frequency of the application in response to the alarm time in the preset time period, and when the real-time freezing coefficient is greater than the preset threshold, the application is frozen and cannot be performed. Wake up, save power and release system resources.
  • the adjustment module includes:
  • a first acquiring unit configured to acquire historical running data of the application, and determine a frequency of use of the application in the preset time period
  • a first determining unit configured to determine a freeze weighting factor according to the use frequency and the wake-up frequency; the first determining unit is further configured to calculate a ratio of the wake-up frequency and the used frequency; searching and referring to the preset weight table The frozen weight factor corresponding to the ratio;
  • a second determining unit configured to determine the real-time freezing coefficient according to the freeze weighting factor and a preset freezing coefficient.
  • the application freezing device further includes:
  • the coefficient setting module is configured to acquire a resource occupancy rate or a running time of the application; and set a preset freezing coefficient of the corresponding application according to the resource occupancy rate or the running time length.
  • the application freezing device further includes:
  • the query module is configured to generate a freeze list according to the application whose real-time freeze coefficient is greater than a preset threshold; the application in the freeze list sorts according to a preset policy, and asks the user whether the application in the freeze list needs to be frozen.
  • the determining module is further configured to: when receiving a freeze instruction for freezing the application by the user, acquiring historical running data of the application; determining whether the historical running data includes private data; When the private data is included, the private data is encrypted and saved in a preset database.
  • the freeze module includes:
  • An identifier obtaining unit configured to acquire an application identifier of the application
  • a level determining unit configured to acquire, in a preset database, a freeze level of an application having the application identifier, where the freeze level is used to indicate that a maximum allowed resource that can be used by the application is configured;
  • a freezing unit configured to freeze the corresponding level of the application according to the freezing level.
  • each module in the application freezing device is for illustrative purposes only. In other embodiments, the application freezing device may be divided into different modules as needed to complete all or part of the functions of the application freezing device.
  • a computer readable storage medium having stored thereon a computer program that, when executed by a processor, implements the steps of the application freeze method provided by the various embodiments described above.
  • a terminal including a memory, a processor, and a computer program stored on the memory and operable on the processor, and the processor freezes when the processor executes the computer program The steps of the method.
  • the embodiment of the present application also provides a computer program product.
  • a computer program product comprising instructions which, when run on a computer, cause the computer to perform the steps of the application freezing method provided by the various embodiments described above.
  • the embodiment of the present application further provides a terminal.
  • a terminal As shown in FIG. 10, for the convenience of description, only the parts related to the embodiments of the present application are shown. For the specific technical details not disclosed, refer to the method part of the embodiment of the present application.
  • the terminal may be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, a wearable device, and the terminal is a mobile phone as an example:
  • FIG. 10 is a block diagram showing a part of a structure of a mobile phone related to a terminal provided by an embodiment of the present application.
  • the mobile phone includes: a radio frequency (RF) circuit 1010, a memory 1020, an input unit 1030, a display unit 1040, a sensor 1050, an audio circuit 1060, a wireless fidelity (WiFi) module 1070, and a processor 1080. And power supply 1090 and other components.
  • RF radio frequency
  • the RF circuit 1010 can be used for receiving and transmitting signals during the transmission and reception of information or during a call.
  • the downlink information of the base station can be received and processed by the processor 1080.
  • the uplink data can also be sent to the base station.
  • RF circuits include, but are not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like.
  • LNA Low Noise Amplifier
  • RF circuit 1010 can also communicate with the network and other devices via wireless communication.
  • the above wireless communication may use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (Code Division). Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), e-mail, Short Messaging Service (SMS), and the like.
  • GSM Global System of Mobile communication
  • GPRS General Pack
  • the memory 1020 can be used to store software programs and modules, and the processor 1080 executes various functional applications and data processing of the mobile phone by running software programs and modules stored in the memory 1020.
  • the memory 1020 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as an application of a sound playing function, an application of an image playing function, etc.);
  • the data storage area can store data (such as audio data, address book, etc.) created according to the use of the mobile phone.
  • memory 1020 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
  • the input unit 1030 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the handset 1000.
  • the input unit 1030 may include an operation panel 1031 and other input devices 1032.
  • the operation panel 1031 which may also be referred to as a touch screen, may collect touch operations on or near the user (such as an operation of the user using a finger, a stylus, or the like on the operation panel 1031 or in the vicinity of the operation panel 1031). And drive the corresponding connection device according to a preset program.
  • the operation panel 1031 may include two parts of a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
  • the processor 1080 is provided and can receive commands from the processor 1080 and execute them.
  • the operation panel 1031 can be realized by various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 1030 may further include other input devices 1032.
  • other input devices 1032 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.).
  • the display unit 1040 can be used to display information input by the user or information provided to the user as well as various menus of the mobile phone.
  • the display unit 1040 may include a display panel 1041.
  • the display panel 1041 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
  • the operation panel 1031 may cover the display panel 1041, and when the operation panel 1031 detects a touch operation thereon or nearby, it is transmitted to the processor 1080 to determine the type of the touch event, and then the processor 1080 according to the touch event The type provides a corresponding visual output on display panel 1041.
  • the operation panel 1031 and the display panel 1041 are two independent components to implement the input and input functions of the mobile phone, in some embodiments, the operation panel 1031 and the display panel 1041 may be integrated to implement the mobile phone. Input and output functions.
  • the handset 1000 can also include at least one type of sensor 1050, such as a light sensor, motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1041 according to the brightness of the ambient light, and the proximity sensor may close the display panel 1041 and/or when the mobile phone moves to the ear. Or backlight.
  • the motion sensor may include an acceleration sensor, and the acceleration sensor can detect the magnitude of the acceleration in each direction, and the magnitude and direction of the gravity can be detected at rest, and can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching), and vibration recognition related functions (such as Pedometer, tapping, etc.; in addition, the phone can also be equipped with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors.
  • the acceleration sensor can detect the magnitude of the acceleration in each direction, and the magnitude and direction of the gravity can be detected at rest, and can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching), and vibration recognition related functions (such as Pedometer, tapping, etc.; in addition, the phone can also be equipped with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors.
  • Audio circuitry 1060, speaker 1061, and microphone 1062 can provide an audio interface between the user and the handset.
  • the audio circuit 1060 can transmit the converted electrical data of the received audio data to the speaker 1061, and convert it into a sound signal output by the speaker 1061; on the other hand, the microphone 1062 converts the collected sound signal into an electrical signal, by the audio circuit 1060. After receiving, it is converted into audio data, and then processed by the audio data output processor 1080, transmitted to another mobile phone via the RF circuit 1010, or outputted to the memory 1020 for subsequent processing.
  • WiFi is a short-range wireless transmission technology.
  • the mobile phone through the WiFi module 1070 can help users to send and receive e-mail, browse the web and access streaming media, etc. It provides users with wireless broadband Internet access.
  • FIG. 10 shows the WiFi module 1070, it can be understood that it does not belong to the essential configuration of the mobile phone 1000 and can be omitted as needed.
  • the processor 1080 is the control center of the handset, which connects various portions of the entire handset using various interfaces and lines, by executing or executing software programs and/or modules stored in the memory 1020, and invoking data stored in the memory 1020, The various functions of the mobile phone and the processing of the data, so that the overall monitoring of the mobile phone.
  • processor 1080 can include one or more processing units.
  • the processor 1080 can integrate an application processor and a modem, wherein the application processor primarily processes an operating system, a user interface, an application, etc.; the modem primarily processes wireless communications. It will be appreciated that the above described modem may also not be integrated into the processor 1080.
  • the processor 1080 can integrate an application processor and a baseband processor, and the baseband processor and other peripheral chips can form a modem.
  • the mobile phone 1000 also includes a power source 1090 (such as a battery) that supplies power to various components.
  • the power source can be logically coupled to the processor 1090 through a power management system to manage functions such as charging, discharging, and power management through the power management system.
  • the handset 1000 may also include a camera, a Bluetooth module, and the like.
  • the processor included in the mobile phone implements the application freezing method described above when executing a computer program stored in the memory.
  • Non-volatile memory can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory can include random access memory (RAM), which acts as an external cache.
  • RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronization.
  • SRAM static RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDR SDRAM dual data rate SDRAM
  • ESDRAM enhanced SDRAM
  • SLDRAM Link (Synchlink) DRAM
  • SLDRAM Memory Bus
  • Rambus Direct RAM
  • RDRAM Direct Memory Bus Dynamic RAM
  • RDRAM Memory Bus Dynamic RAM

Abstract

The present application relates to a method and apparatus for freezing an application, and a storage medium and a terminal. The method comprises: acquiring a wake-up frequency of an application responding to an alarm during a pre-set time period; acquiring a pre-set freezing coefficient of the application; adjusting the pre-set freezing coefficient according to the wake-up frequency, so as to obtain a real-time freezing coefficient; and when the real-time freezing coefficient is greater than a pre-set threshold value, freezing the application.

Description

应用程序冻结方法、装置、存储介质和终端Application freezing method, device, storage medium, and terminal
相关申请的交叉引用Cross-reference to related applications
本申请要求于2017年12月29日提交中国专利局、申请号为CN201711489061.9、申请名称为“应用程序冻结方法、装置、存储介质和终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on December 29, 2017, the Chinese Patent Office, the application number is CN201711489061.9, and the application name is "application freezing method, device, storage medium and terminal". The citations are incorporated herein by reference.
技术领域Technical field
本申请涉及终端技术领域,特别是涉及一种应用程序冻结方法、装置、存储介质和终端。The present application relates to the field of terminal technologies, and in particular, to an application freezing method, apparatus, storage medium, and terminal.
背景技术Background technique
随着终端设备进入智能时代,大屏幕(尤其是触摸屏)的终端设备越来越普及,终端设备上安装的应用程序(application,简称app)越来越多。为了保证应用程序的正常运行,终端的操作系统提供了闹钟alarm唤醒机制来唤醒应用。当有些应用程序申请了过多系统闹钟,或由于系统闹钟间隔非常短,会使应用程序频繁被系统闹钟唤醒,大大增加终端的运行功耗。As terminal devices enter the era of intelligence, terminal devices of large screens (especially touch screens) are becoming more and more popular, and applications (applications, referred to as app) installed on terminal devices are increasing. In order to ensure the normal operation of the application, the operating system of the terminal provides an alarm alarm wake-up mechanism to wake up the application. When some applications apply for too many system alarms, or because the system alarm interval is very short, the application is frequently woken up by the system alarm, greatly increasing the operating power consumption of the terminal.
发明内容Summary of the invention
本申请实施例提供一种应用程序冻结方法、装置、存储介质和终端,可以节省功耗、提高用户体验度。The embodiment of the present application provides an application freezing method, device, storage medium, and terminal, which can save power consumption and improve user experience.
一种应用程序冻结方法,包括:An application freezing method, including:
在预设时间段内,获取应用程序响应闹钟的唤醒频率;Obtain the wake-up frequency of the application response alarm clock during the preset time period;
获取所述应用程序的预设冻结系数;Obtaining a preset freeze coefficient of the application;
根据所述唤醒频率调整所述预设冻结系数以获得实时冻结系数;Adjusting the preset freeze coefficient according to the wake-up frequency to obtain a real-time freeze coefficient;
当所述实时冻结系数大于预设阈值时,冻结所述应用程序。The application is frozen when the real-time freeze coefficient is greater than a preset threshold.
一种应用程序冻结装置,所述装置包括:An application freezing device, the device comprising:
查询模块,用于在预设时间段内,获取应用程序响应闹钟的唤醒频率;The query module is configured to obtain an wake-up frequency of the application response alarm clock within a preset time period;
获取模块,用于获取所述应用程序的预设冻结系数;An obtaining module, configured to acquire a preset freezing coefficient of the application;
调整模块,用于根据所述唤醒频率调整所述预设冻结系数以获得实时冻结系数;And an adjusting module, configured to adjust the preset freezing coefficient according to the wake-up frequency to obtain a real-time freezing coefficient;
冻结模块,用于当所述实时冻结系数大于预设阈值时,冻结所述应用程序。And a freezing module, configured to freeze the application when the real-time freezing coefficient is greater than a preset threshold.
一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现本申请各个实施例中的应用程序冻结方法的步骤。A computer readable storage medium having stored thereon a computer program, the computer program being executed by a processor to implement the steps of the application freezing method in various embodiments of the present application.
一种终端,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现本申请各个实施例中的应用程序冻结的步骤。A terminal comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, the processor executing the computer program to implement the step of freezing the application in various embodiments of the present application.
本申请实施例提供的应用程序冻结方法和装置、存储介质和终端,该方法包括在预设时间段内,获取应用程序响应闹钟的唤醒频率;获取所述应用程序的预设冻结系数;根据所述唤醒频率调整所述预设冻结系数以获得实时冻结系数;当所述实时冻结系数大于预设阈值时,冻结所述应用程序,可以根据预设时间段内应用程序响应闹钟的唤醒频率来调整预设冻结系数以获得实时冻结系数,当实时冻结系数大于预设阈值时,对应用程序进行冻结操作,使其无法被唤醒,节省功耗、释放系统资源。An application freezing method and device, a storage medium, and a terminal provided by the embodiment of the present application, the method includes: acquiring, in a preset time period, a wake-up frequency of an application response alarm clock; acquiring a preset freezing coefficient of the application; The wake-up frequency adjusts the preset freeze coefficient to obtain a real-time freeze coefficient; when the real-time freeze coefficient is greater than a preset threshold, freezing the application may be adjusted according to an application program responding to an alarm wake-up frequency within a preset time period The preset freezing coefficient is obtained to obtain the real-time freezing coefficient. When the real-time freezing coefficient is greater than the preset threshold, the application is frozen, so that it cannot be woken up, saving power consumption and releasing system resources.
附图说明DRAWINGS
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings to be used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present application, and other drawings can be obtained according to the drawings without any creative work for those skilled in the art.
图1为一个实施例中终端的内部结构示意图;1 is a schematic diagram showing the internal structure of a terminal in an embodiment;
图2为一个实施例中终端中的系统的部分框架示意图;2 is a partial schematic diagram of a system in a terminal in an embodiment;
图3为一个实施例中应用程序冻结方法的流程图;3 is a flow chart of an application freezing method in an embodiment;
图4为另一个实施例中应用程序冻结方法的流程图;4 is a flow chart of an application freezing method in another embodiment;
图5为一个实施例中根据所述唤醒频率调整所述预设冻结系数以获得实时冻结系数的流程图;FIG. 5 is a flowchart of adjusting the preset freeze coefficient according to the wake-up frequency to obtain a real-time freeze coefficient according to an embodiment; FIG.
图6为又一个实施例中应用程序冻结方法的流程图;6 is a flow chart of an application freezing method in still another embodiment;
图7为一个实施例中询问用户是否需要对冻结列表内的应用程序进行冻结的流程图;7 is a flow chart for inquiring whether a user needs to freeze an application in a frozen list in one embodiment;
图8为一个实施例中冻结所述应用程序的流程图;Figure 8 is a flow chart of freezing the application in one embodiment;
图9为一个实施例中应用程序冻结装置的结构框图;9 is a structural block diagram of an application freezing device in an embodiment;
图10为一个实施例中手机的部分结构的框图。Figure 10 is a block diagram showing a portion of the structure of a handset in an embodiment.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the objects, technical solutions, and advantages of the present application more comprehensible, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the application and are not intended to be limiting.
可以理解,本发明所使用的术语“第一”、“第二”等可在本文中用于描述各种元件,但这些元件不受这些术语限制。这些术语仅用于将第一个元 件与另一个元件区分。举例来说,在不脱离本发明的范围的情况下,可以将第一被依赖进程称为第二被依赖进程,且类似地,可将第二被依赖进程称为第一被依赖进程。第一被依赖进程和第二被依赖进程两者都是被依赖进程,但其不是同一被依赖进程。It will be understood that the terms "first", "second" and the like, as used herein, may be used to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, a first dependent process may be referred to as a second dependent process without departing from the scope of the invention, and similarly, a second dependent process may be referred to as a first dependent process. Both the first dependent process and the second dependent process are dependent processes, but they are not the same dependent process.
在一个实施例中,如图1所示,提供了一种终端的内部结构示意图。该终端包括通过系统总线连接的处理器、存储器和显示屏。其中,该处理器用于提供计算和控制能力,支撑整个终端的运行。存储器用于存储数据、程序、和/或指令代码等,存储器上存储至少一个计算机程序,该计算机程序可被处理器执行,以实现本申请实施例中提供的适用于终端的进程处理方法。存储器可包括磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)等非易失性存储介质,或随机存储记忆体(Random-Access-Memory,RAM)等。例如,在一个实施例中,存储器包括非易失性存储介质及内存储器。非易失性存储介质存储有操作系统、数据库和计算机程序。该数据库中存储有用于实现以上各个实施例所提供的一种进程处理方法相关的数据,比如可存储有每个进程或应用的名称等信息。该计算机程序可被处理器所执行,以用于实现本申请各个实施例所提供的一种进程处理方法。内存储器为非易失性存储介质中的操作系统、数据库和计算机程序提供高速缓存的运行环境。显示屏可以是触摸屏,比如为电容屏或电子屏,用于显示前台进程对应的应用的界面信息,还可以被用于检测作用于该显示屏的触摸操作,生成相应的指令,比如进行前应用程序的切换指令等。In one embodiment, as shown in FIG. 1, a schematic diagram of an internal structure of a terminal is provided. The terminal includes a processor, memory, and display connected via a system bus. The processor is used to provide computing and control capabilities to support the operation of the entire terminal. The memory is used to store data, programs, and/or instruction codes, etc., and the memory stores at least one computer program, which can be executed by the processor to implement the process processing method applicable to the terminal provided in the embodiments of the present application. The memory may include a non-volatile storage medium such as a magnetic disk, an optical disk, a read-only memory (ROM), or a random storage memory (Random-Access-Memory, RAM). For example, in one embodiment, the memory includes a non-volatile storage medium and an internal memory. Non-volatile storage media stores operating systems, databases, and computer programs. The database stores data related to a process processing method provided by the above various embodiments, such as information such as the name of each process or application. The computer program can be executed by a processor for implementing a process processing method provided by various embodiments of the present application. The internal memory provides a cached operating environment for operating systems, databases, and computer programs in non-volatile storage media. The display screen can be a touch screen, such as a capacitive screen or an electronic screen, for displaying interface information of an application corresponding to the foreground process, and can also be used for detecting a touch operation acting on the display screen, and generating corresponding instructions, such as pre-application. Program switching instructions, etc.
本领域技术人员可以理解,图1中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的终端的限定,具体的终端可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。如该终端还包括通过系统总线连接的网络接口,网络接口可以是以太网卡或无线网卡等,用于与外部的终端进行通信,比如可用于同服务器进行通信。A person skilled in the art can understand that the structure shown in FIG. 1 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the terminal to which the solution of the present application is applied. The specific terminal may include a ratio. More or fewer components are shown in the figures, or some components are combined, or have different component arrangements. For example, the terminal further includes a network interface connected through a system bus, and the network interface may be an Ethernet card or a wireless network card, etc., for communicating with an external terminal, for example, for communicating with a server.
在一个实施例中,如图2所示,提供了一种终端的部分架构图。其中,该终端的架构系统中包括JAVA空间层210、本地框架层220以及内核(Kernel)空间层230。JAVA空间层上可包含冻结和解冻应用210,终端可通过该冻结和解冻应用210来实现对各个应用的冻结策略,对后台耗电的相关应用做冻结操作。本地框架层220中包含资源优先级和限制管理模块222和平台冻结管理模块224。终端可通过资源优先级和限制管理模块222实时维护不同的应用处于不同优先级和不同资源的组织中,并根据上层的需求来调整应用程序的资源组别从而达到优化性能,节省功耗的作用。终端可通过平台冻结管理模块224将后台可以冻结的任务按照进入冻结时间的长短,分配到对应预设的不同层 次的冻结层,可选地,该冻结层可包括三个,分别是:CPU限制睡眠模式、CPU冻结睡眠模式、进程深度冻结模式。其中,CPU限制睡眠模式是指对相关进程所占用的CPU资源进行限制,使相关进程占用较少的CPU资源,将空余的CPU资源向其它未被冻结的进程倾斜,限制了对CPU资源的占用,也相应限制了进行对网络资源以及I/O接口资源的占用;CPU冻结睡眠模式是指禁止相关进程使用CPU,而保留对内存的占用,当禁止使用CPU资源时,相应的网络资源以及I/O接口资源也被禁止使用;进程深度冻结模式是指除禁止使用CPU资源之外,进一步对相关进程所占用的内存资源进行回收,回收的内存可供其它进程使用。内核空间层230中包括UID管理模块231、Cgroup模块232、Binder管控模块233、进程内存回收模块234以及超时冻结退出模块235。其中,UID管理模块231用于实现基于应用的用户身份标识(User Identifier,UID)来管理第三方应用的资源或进行冻结。相比较于基于进程身份标识(Process Identifier,PID)来进行进程管控,通过UID更便于统一管理一个用户的应用的资源。Cgroup模块232用于提供一套完善的中央处理器(Central Processing Unit,CPU)、CPUSET、内存(memory)、输入/输出(input/output,I/O)和Net相关的资源限制机制。Binder管控模块233用于实现后台binder通信的优先级的控制。其中,本地框架层220的接口模块包含开发给上层的binder接口,上层的框架或者应用通过提供的binder接口来发送资源限制或者冻结的指令给资源优先级和限制管理模块222和平台冻结管理模块224。进程内存回收模块234用于实现进程深度冻结模式,这样能当某个第三方应用长期处于冻结状态的时候,会主要释放掉进程的文件区,从而达到节省内存的模块,也加快该应用在下次启动时的速度。超时冻结退出模块235用于解决出现冻结超时场景产生的异常。通过上述的架构,可实现本申请各个实施例中的应用程序冻结方法。In one embodiment, as shown in FIG. 2, a partial architectural diagram of a terminal is provided. The architecture system of the terminal includes a JAVA spatial layer 210, a local framework layer 220, and a kernel (Kernel) spatial layer 230. The freeze and thaw application 210 can be included in the JAVA spatial layer. The freeze and thaw application 210 can be used by the terminal to implement a freeze policy for each application, and freeze the related application of the background power consumption. The resource priority and restriction management module 222 and the platform freeze management module 224 are included in the local framework layer 220. The terminal can maintain different applications in different priorities and different resource organizations through the resource priority and limit management module 222, and adjust the resource group of the application according to the requirements of the upper layer to achieve optimized performance and save power. . The terminal freezes the task that can be frozen in the background by the platform freeze management module 224, and allocates the freeze layer to the preset different levels according to the length of the entry freeze time. Optionally, the freeze layer may include three, respectively: CPU limit Sleep mode, CPU freeze sleep mode, process deep freeze mode. The CPU restricts the sleep mode to limit the CPU resources occupied by the related processes, so that the related processes occupy less CPU resources, and the free CPU resources are tilted to other unfrozen processes, thereby limiting the occupation of CPU resources. It also limits the occupation of network resources and I/O interface resources; CPU freeze sleep mode refers to prohibiting related processes from using CPU, while preserving the occupation of memory, when prohibiting the use of CPU resources, the corresponding network resources and I The /O interface resource is also forbidden; the process deep freeze mode means that in addition to prohibiting the use of CPU resources, the memory resources occupied by the related processes are further recovered, and the recovered memory can be used by other processes. The kernel space layer 230 includes a UID management module 231, a Cgroup module 232, a Binder management module 233, a process memory collection module 234, and a timeout freeze exit module 235. The UID management module 231 is configured to implement an application-based User Identifier (UID) to manage resources of a third-party application or freeze. Compared with the Process Identifier (PID) for process management and control, it is easier to uniformly manage the resources of a user's application through UID. The Cgroup module 232 is used to provide a complete set of Central Processing Unit (CPU), CPUSET, memory, input/output (I/O), and Net related resource restriction mechanisms. The Binder management module 233 is used to implement the priority control of the background binder communication. The interface module of the local framework layer 220 includes a binder interface developed to the upper layer, and the upper layer framework or application sends a resource restriction or frozen instruction to the resource priority and restriction management module 222 and the platform freeze management module 224 through the provided binder interface. . The process memory recovery module 234 is configured to implement the process deep freeze mode, so that when a third-party application is in a frozen state for a long time, the file area of the process is mainly released, thereby saving the memory module and speeding up the application next time. The speed at startup. The timeout freeze exit module 235 is configured to solve the abnormality generated by the freeze timeout scenario. Through the above architecture, the application freezing method in various embodiments of the present application can be implemented.
在一个实施例中,如图3所示,提供了一种应用程序冻结方法。本实施例以该方法应用于如图1所示的终端为例进行说明。该应用程序冻结方法,包括:In one embodiment, as shown in FIG. 3, an application freeze method is provided. This embodiment is described by applying the method to the terminal shown in FIG. 1 as an example. The application freeze method includes:
步骤302:在预设时间段内,获取应用程序响应闹钟的唤醒频率。Step 302: Acquire a wake-up frequency of the application response alarm clock within a preset time period.
终端当前的显示界面展示的应用程序的操作页面对应的应用程序为终端当前运行的前台应用,在后台运行的应用程序为应用程序。The application corresponding to the operation page of the application displayed by the current display interface of the terminal is the foreground application currently running by the terminal, and the application running in the background is the application.
在终端的智能操作系统,例如Android操作系统中,一般采用alarm唤醒机制以在特定时刻唤醒相关应用进程。在alarm唤醒机制中,闹钟管理者(Alarm Manager)这个类提供对系统闹钟服务的访问接口,可以为应用程序设定一个在未来某个时间唤醒应用程序的功能,也即,可以在指定的时间内或周期性地启动应用程序。具体地,当alarm闹钟响起(时间到)时,系统会发出为这个闹钟注册的广播,会自动启动目标应用程序。注册的闹钟在终端睡眠的时 候仍然会保留,可以选择性地设置是否唤醒终端,但是当终端关机和重启后,闹钟将会被清除。当应用程序申请系统闹钟和响应系统闹钟时,操作系统会收到通知,因此操作系统可以在该预设时间段内统计应用程序响应系统闹钟的次数。其中,在预设时间段内应用程序响应系统闹钟的次数为应用系统在该预设时间段内的唤醒频率。In the intelligent operating system of the terminal, such as the Android operating system, the alarm waking mechanism is generally adopted to wake up related application processes at specific moments. In the alarm wakeup mechanism, the Alarm Manager class provides an access interface to the system alarm service, and can set a function for the application to wake up the application at a certain time in the future, that is, at a specified time. Launch the application internally or periodically. Specifically, when the alarm alarm sounds (time to), the system will issue a broadcast registered for this alarm, which will automatically launch the target application. The registered alarm clock will remain when the terminal sleeps. You can optionally set whether to wake up the terminal, but the alarm will be cleared when the terminal is turned off and restarted. When the application requests a system alarm and a response system alarm, the operating system receives a notification, so the operating system can count the number of times the application responds to the system alarm during the preset time period. The number of times the application responds to the system alarm clock during the preset time period is the wake-up frequency of the application system within the preset time period.
需要说明的是,应用程序的数量可以为一个,也可以为多个。It should be noted that the number of applications may be one or multiple.
步骤304:获取每个应用程序的预设冻结系数。Step 304: Acquire a preset freeze coefficient of each application.
终端内安装的应用程序多种多样,每个应用有一个预设冻结系数,每个应用程序的冻结系数可以相同也可以不相同。预设冻结系数,可以用于表征该应用程序需要被冻结的期望,预设冻结系数越大,该期望也就越高。There are a variety of applications installed in the terminal. Each application has a preset freeze coefficient. The freeze coefficient of each application can be the same or different. The preset freeze factor can be used to characterize the expectation that the application needs to be frozen. The larger the preset freeze coefficient, the higher the expectation.
预设冻结系数存储在预设冻结系数表中,预设冻结系数表中存储有应用程序与预设冻结系数的映射关系。预设冻结系数表中的映射关系可以根据预设条件进行设置,其中,预设冻结系数的设定可以根据应用程序的运行频率、运行时长、应用程序的资源占有率等条件进行设置。The preset freeze coefficient is stored in the preset freeze coefficient table, and the mapping relationship between the application and the preset freeze coefficient is stored in the preset freeze coefficient table. The mapping relationship in the preset freezing coefficient table may be set according to a preset condition, wherein the setting of the preset freezing coefficient may be set according to conditions such as an operating frequency of the application, a running time, and an resource occupancy rate of the application.
需要说明的是,预设冻结系数表可以为系统默认设置,也可以根据用户需求来设定。根据不同的预设条件,可以设置多个预设冻结系数表,每个冻结系数表对应一种预设条件。It should be noted that the preset freeze coefficient table may be set by the system default or according to user requirements. According to different preset conditions, a plurality of preset freeze coefficient tables may be set, and each freeze coefficient table corresponds to a preset condition.
步骤306:根据所述唤醒频率调整所述预设冻结系数以获得实时冻结系数。Step 306: Adjust the preset freeze coefficient according to the wake-up frequency to obtain a real-time freeze coefficient.
根据前述步骤获取的应用程序响应闹钟的唤醒频率,以及应用程序对应的预设冻结系数,来调整预设冻结系数。每个应用程序响应闹钟的唤醒频率有所差异,同时,每个应用程序的预设冻结系数也有所不同,可以根据应用程序响应闹钟的唤醒频率调整预设冻结系数以获得实时冻结系数,预设冻结系数会随着唤醒频率的增加而增加,以获取实时冻结系数。The application obtained according to the foregoing steps responds to the wake-up frequency of the alarm clock and the preset freeze coefficient corresponding to the application to adjust the preset freeze coefficient. The wake-up frequency of each application response alarm is different. At the same time, the preset freeze coefficient of each application is also different. The preset freeze coefficient can be adjusted according to the wake-up frequency of the application response alarm to obtain the real-time freeze coefficient. The freeze factor increases as the wake-up frequency increases to obtain a real-time freeze coefficient.
步骤308:当所述实时冻结系数大于预设阈值时,冻结所述应用程序。Step 308: When the real-time freezing coefficient is greater than a preset threshold, the application is frozen.
应用程序响应闹钟的唤醒频率若越大,会使应用程序频繁被系统闹钟唤醒,会大大增加终端的运行功耗。根据唤醒频率来动态调整预设冻结系数的大小,以获得实时冻结系数,当获取的实时冻结系数达到一定数值,也即,当实时冻结系数大于预设阈值时,对应用程序进行冻结操作,使其无法被唤醒,节省功耗、释放系统资源。If the wake-up frequency of the application response alarm clock is larger, the application will be frequently woken up by the system alarm clock, which will greatly increase the operating power consumption of the terminal. According to the wake-up frequency, the preset freeze coefficient is dynamically adjusted to obtain a real-time freeze coefficient. When the acquired real-time freeze coefficient reaches a certain value, that is, when the real-time freeze coefficient is greater than a preset threshold, the application is frozen. It cannot be woken up, saving power and freeing up system resources.
上述应用程序冻结方法,在预设时间段内,获取应用程序响应闹钟的唤醒频率;获取应用程序的预设冻结系数;根据所述唤醒频率调整所述预设冻结系数以获得实时冻结系数;当所述实时冻结系数大于预设阈值时,冻结所述应用程序,可以根据应用程序在预设时间段内的唤醒频率来调整预设冻结系数以获得实时冻结系数,当实时冻结系数大于预设阈值时,对后台运行的 应用程序进行冻结操作,使其无法被唤醒,节省功耗、释放系统资源。The application freezing method obtains a wake-up frequency of the application response alarm clock in a preset time period; acquires a preset freeze coefficient of the application; and adjusts the preset freeze coefficient according to the wake-up frequency to obtain a real-time freeze coefficient; When the real-time freezing coefficient is greater than the preset threshold, the application is frozen, and the preset freezing coefficient may be adjusted according to the wake-up frequency of the application within a preset time period to obtain a real-time freezing coefficient, when the real-time freezing coefficient is greater than a preset threshold. When the application running in the background is frozen, it cannot be woken up, saving power and releasing system resources.
在一个实施例中,如图4所示,获取每个应用程序的预设冻结系数前,还包括:In an embodiment, as shown in FIG. 4, before acquiring the preset freeze coefficient of each application, the method further includes:
步骤402:获取应用程序的资源占用率或运行时长;Step 402: Obtain an application resource usage rate or a running time of the application.
资源占用率可以为CPU占用率或内存占用率。CPU占用率指运行的应用程序占用的CPU资源,表示终端在某个时间点的运行程序的情况。内存占用率内指的是应用程序所有进程所开销的内存。进程(Process)是计算机中的程序关于某数据集合上的一次运行活动,是系统进行资源分配和调度的基本单位,是操作系统结构的基础。The resource usage rate can be CPU usage or memory usage. The CPU usage refers to the CPU resources occupied by the running application, indicating the running of the terminal at a certain point in time. Memory usage refers to the memory overhead of all processes in the application. A process is a running activity of a program on a computer on a data set. It is the basic unit of the system for resource allocation and scheduling, and is the basis of the operating system structure.
具体地,终端可以统计应用程序在特定历史时间内的资源占用率的最大值作为该资源占用率,或者,终端在特定历史时间内采集应用程序的多个瞬间资源占用率,根据采集的多个瞬间资源占用率获取资源占用率平均值,将该获取的资源占用率的平均值作为该应用程序的资源占用率。当然,终端也可以采用其他方法来统计应用程序的资源占用率,在此不做进一步的限定。Specifically, the terminal may collect the maximum value of the resource usage of the application in a specific historical time as the resource occupancy rate, or collect the multiple instantaneous resource usage rates of the application in a specific historical time, according to multiple collected The instantaneous resource occupancy rate obtains an average value of the resource occupancy rate, and the average value of the obtained resource occupancy rate is used as the resource occupancy rate of the application. Of course, the terminal may also use other methods to count the resource usage of the application, which is not further limited herein.
终端也可以统计在特定历史时间内应用程序在前台运行的启动次数,以及每一次启动后的单次运行时长。应用程序在前台运行的运行时长为在特定历史时间内应用程序的每次启动后单次运行时长的总和,也即,为在特定历史时间内应用程序的累积运行时长。The terminal can also count the number of starts the application is running in the foreground during a specific historical time, as well as the length of a single run after each launch. The runtime that an application runs in the foreground is the sum of the length of a single run after each launch of the application during a particular historical time, that is, the cumulative run time of the application during a particular historical time.
步骤404:根据所述资源占用率或运行频率设置对应的应用程序的预设冻结系数。Step 404: Set a preset freezing coefficient of the corresponding application according to the resource occupancy rate or the running frequency.
具体地,可以根据资源占用率设置每个应用程序的预设冻结系数,其中,资源占用率越高,当该应用程序在后台运行时,就极有可能造成卡顿,影响终端的流畅性,为了避免出现卡顿现象的发生,用户对资源占用率高的应用程序的冻结期望更高,可以将其对应的预设冻结系数的数值设置大些。也即,应用程序的资源占用率越高,其对应的预设冻结系数也就越大。根据应用程序的资源占用率与预设冻结系数之间的对应关系,形成该预设冻结系数表。Specifically, the preset freeze coefficient of each application may be set according to the resource occupancy rate, wherein the higher the resource occupancy rate, when the application is running in the background, it is highly likely to cause a jam, affecting the smoothness of the terminal. In order to avoid the occurrence of the stuck phenomenon, the user has higher expectation of freezing the application with high resource occupancy rate, and the value of the corresponding preset freezing coefficient can be set larger. That is, the higher the resource occupancy rate of the application, the larger the corresponding preset freezing coefficient. The preset freeze coefficient table is formed according to the correspondence between the resource occupancy rate of the application and the preset freeze coefficient.
可选的,还可以根据应用程序的运行时长设置相应的预设冻结系数。其中,运行时长越长,表明该应用程序为用户所认为的重要应用;运行时长越短,表明该应用程序不经常被用户所使用。也即,用户对运行时长短的应用程序的冻结期望更高,可以将其对应的预设冻结系数的数值设置大些。也即,应用程序的运行时长越短,其对应的预设冻结系数也就越大。根据应用程序的运行时长与预设冻结系数之间的对应关系,也能够形成该预设冻结系数表。Optionally, the corresponding preset freeze coefficient can also be set according to the running time of the application. Among them, the longer the running time, indicates that the application is an important application that the user thinks; the shorter the running time, the less frequently the application is used by the user. That is, the user has a higher expectation of freezing the application of the running time, and the value of the corresponding preset freezing coefficient can be set larger. That is, the shorter the running time of the application, the larger the corresponding preset freezing coefficient. The preset freeze coefficient table can also be formed according to the correspondence between the running time of the application and the preset freezing coefficient.
当然,用户还可以根据运行频率、网络使用情况、环境信息等来设置预设冻结列表,在此,不做进一步的限定。Of course, the user can also set the preset freeze list according to the running frequency, network usage, environment information, etc., and no further limitation is made here.
在一个实施例中,如图5所示,根据所述唤醒频率调整所述预设冻结系 数以获得实时冻结系数,包括:In an embodiment, as shown in FIG. 5, adjusting the preset freeze coefficient according to the wake-up frequency to obtain a real-time freeze coefficient includes:
步骤502:获取所述应用程序的历史运行数据,并确定所述应用程序在所述预设时间段内的使用频率。Step 502: Acquire historical running data of the application, and determine a frequency of use of the application within the preset time period.
终端可以对用户使用终端的情况进行记录,存储用户使用终端的历史数据。可以按照设定的时间间隔对历史数据进行统计分析,确定用户在每个预设时间段内对该应用程序的使用频率。The terminal can record the situation in which the user uses the terminal, and store the historical data of the user using the terminal. Historical data can be statistically analyzed at set intervals to determine how often the user is using the application for each preset time period.
具体的,对于某个预设时间段而言,该预设时间段内用户对应用程序的使用频率可以是,在该预设时间段内应用程序在前台运行的启动次数,将该启动次数作为该应用程序的运行频率。当然,上述仅为示例,本领域技术人员还可以通过其他方式确定用户在该预设时间段内运行该应用程序的使用频率。Specifically, for a preset time period, the frequency of use of the application by the user in the preset time period may be the number of times the application runs in the foreground during the preset time period, and the number of starts is used as the preset number of times. How often the app is running. Of course, the above is only an example, and those skilled in the art may also determine, by other methods, the frequency of use of the application by the user during the preset time period.
步骤504:根据所述使用频率和唤醒频率确定冻结权重因子。Step 504: Determine a freeze weight factor according to the use frequency and the wake-up frequency.
根据获取的应用程序的历史运行数据,就可以知晓,在预设时间段内用户使用该应用程序的使用情况。同时,结合唤醒频率就可以从多个维度确定该应用程序的冻结权重因子,可以对该应用程序在该预设时间段内的冻结期望进行初步估计。冻结权重因子用于调整预设冻结系数,以获取实时冻结系数。According to the historical running data of the acquired application, it can be known that the user uses the application during the preset time period. At the same time, the freezing weight factor of the application can be determined from multiple dimensions in combination with the wake-up frequency, and the freeze expectation of the application within the preset time period can be initially estimated. The freeze weight factor is used to adjust the preset freeze coefficient to obtain the real-time freeze coefficient.
进一步的,根据使用频率和唤醒频率确定冻结权重因子,包括:计算所述唤醒频率和所述使用频率的比值;在预设权重表中查找与所述比值对应的冻结权重因子。Further, determining the freeze weighting factor according to the use frequency and the wake-up frequency comprises: calculating a ratio of the wake-up frequency to the use frequency; and searching for a freeze weight factor corresponding to the ratio in the preset weight table.
具体的,通过计算唤醒频率与使用频率的比值K,根据比值K的大小来确定权重因子。通过调用预设权重表来查找与该比值K相对应的冻结权重因子。预设权重表中,其比值K越大,其对应的冻结权重因子也就越大。若比值K越大,则可以认为该应用程序的唤醒频率相对于使用频率而言,唤醒频率要远大于使用频率,此时,可以认为在该预设时间段内该应用程序不是用户经常使用的应用程序,不需要被唤醒,用户冻结该应用程序的期望比较大。若比值K小于1,则可以认为该应用程序为用户经常使用的应用程序,需要被唤醒,用户冻结该应用程序的期望比较小。Specifically, the weighting factor is determined according to the magnitude of the ratio K by calculating the ratio K of the wake-up frequency to the used frequency. The frozen weighting factor corresponding to the ratio K is found by calling a preset weight table. In the preset weight table, the larger the ratio K, the larger the corresponding freeze weight factor. If the ratio K is larger, it can be considered that the wake-up frequency of the application is far greater than the frequency of use relative to the frequency of use. In this case, it can be considered that the application is not frequently used by the user during the preset time period. The application does not need to be woken up, and the user's expectation of freezing the application is large. If the ratio K is less than 1, it can be considered that the application is an application frequently used by the user, and needs to be woken up, and the user's expectation of freezing the application is relatively small.
可选的,还可以通过计算唤醒频率与使用频率的差值,根据该差值来确定冻结权重因子。Optionally, the freeze weighting factor may also be determined according to the difference by calculating a difference between the wake-up frequency and the used frequency.
需要说明的是,预设权重表可以为系统默认设置,也可以根据用户需求来设定。用户可以根据自己的需求来调整比值K与冻结权重因子之间的对应关系。It should be noted that the preset weight table may be set by default or may be set according to user requirements. The user can adjust the correspondence between the ratio K and the frozen weight factor according to his own needs.
步骤506:根据所述冻结权重因子、预设冻结系数确定所述实时冻结系数。Step 506: Determine the real-time freezing coefficient according to the freeze weighting factor and the preset freezing coefficient.
根据应用程序的唤醒频率和使用频率可以确定冻结权重因子,根据获取的权重因子来调节预设冻结系数进而获取实时冻结系数。其中,实时冻结系数为预设冻结系数与冻结权重因子的和值。也即:The freeze weight factor can be determined according to the wake-up frequency and the use frequency of the application, and the preset freeze coefficient is adjusted according to the obtained weight factor to obtain the real-time freeze coefficient. The real-time freezing coefficient is the sum of the preset freezing coefficient and the frozen weighting factor. That is:
实时冻结系数=预设冻结系数+冻结权重因子。Real-time freeze coefficient = preset freeze coefficient + freeze weight factor.
例如,对于工具类(计算器、备忘录、日历等系统工具)用户不经常使用的应用程序,其使用频率低,可能其唤醒频率较高;而对于及时通讯类(微信、QQ等应用程序)用户经常使用的应用程序,其使用频率高,其唤醒频率也较高。若仅仅通过应用程序在预设时间段内的唤醒频率来调整预设冻结系数,其调整准确度较低。通过综合考虑使用频率和唤醒频率,从多个维度的来确定冻结权重因子,可以提高计算实时冻结系数的精度。For example, for applications such as tools (calculators, memos, calendars, etc.), applications that are not used frequently by users are used at a low frequency, which may have a higher wake-up frequency; for users of instant messaging (such as WeChat, QQ, etc.) Frequently used applications are frequently used and have a higher wake-up frequency. If the preset freeze coefficient is adjusted only by the wake-up frequency of the application within the preset time period, the adjustment accuracy is low. By considering the frequency of use and the wake-up frequency, the frozen weighting factor is determined from multiple dimensions, and the accuracy of calculating the real-time freezing coefficient can be improved.
在一个实施例中,如图6所示,应用程序冻结方法,包括:In one embodiment, as shown in FIG. 6, the application freezing method includes:
步骤602:在预设时间段内,获取应用程序响应闹钟的唤醒频率。Step 602: Acquire a wake-up frequency of the application response alarm clock within a preset time period.
步骤604:获取所述应用程序的预设冻结系数。Step 604: Acquire a preset freeze coefficient of the application.
步骤606:根据所述唤醒频率调整所述预设冻结系数以获得实时冻结系数。Step 606: Adjust the preset freeze coefficient according to the wake-up frequency to obtain a real-time freeze coefficient.
上述步骤602、步骤604、步骤606与前述实施例中的步骤302、步骤304、步骤306一一对应,在次不再赘述。The above steps 602, 604, and 606 are in one-to-one correspondence with the steps 302, 304, and 306 in the foregoing embodiment, and are not described again.
步骤608:根据所述实时冻结系数大于预设阈值的应用程序生成冻结列表;所述冻结列表中应用程序按照预设策略进行排序。Step 608: Generate a freeze list according to the application whose real-time freeze coefficient is greater than a preset threshold; and the application in the freeze list sorts according to a preset policy.
根据上述步骤可以获取所有应用程序的实时冻结系数,当实时冻结系数大于预设阈值时,则将该应用程序定义为预冻结程序,根据获取的预冻结程序生出冻结列表。生出冻结列表后会向用户推送,提示用于对终端内安装的应用程序进行冻结管理。According to the above steps, the real-time freezing coefficient of all applications can be obtained. When the real-time freezing coefficient is greater than the preset threshold, the application is defined as a pre-freezing program, and a frozen list is generated according to the obtained pre-freezing program. After the freeze list is generated, it is pushed to the user, and the prompt is used to freeze management of the application installed in the terminal.
具体的,其冻结列表中的应用程序,可以按照实时冻结系数的大小顺序排列。通过进行排序能够使用户的查找与后续操作更加便捷,并且满足了不同用户操作习惯的需求。Specifically, the applications in the frozen list can be arranged in the order of the real-time freeze coefficients. Sorting can make the user's search and subsequent operations more convenient, and meet the needs of different user operating habits.
步骤610:询问用户是否需要对冻结列表内的应用程序进行冻结。Step 610: Ask the user if they need to freeze the application in the frozen list.
其中,冻结列表中包括多个控件,分别对应于需要冻结的应用程序,例如,应用程序1、应用程序2、应用程序3、...、应用程序6的控件。当接收到用户的对控件的操作指令时,相应应用程序的控件处就会显示相应的标记,该标记用于表示应用程序被选中。The frozen list includes a plurality of controls, respectively corresponding to the applications that need to be frozen, for example, the applications 1, the application 2, the application 3, ..., the control of the application 6. When the user's operation instruction to the control is received, the corresponding mark is displayed at the control of the corresponding application, and the mark is used to indicate that the application is selected.
进一步,还可以对显示界面显示的冻结列表以不同标识进行突出显示,例如,位于冻结列表的前三位,可以以高亮的形式显示,且高亮的颜色可以呈渐变色。Further, the frozen list displayed on the display interface may be highlighted with different identifiers. For example, the first three digits of the frozen list may be displayed in a highlighted form, and the highlighted color may be a gradient color.
同时,在该冻结界面还包括冻结按钮,当终端检测到用户对冻结按钮的 触发操作时,可以通过弹窗的形式输出“是否冻结已选的应用程序”的提示信息,以及包括选项为“取消”或“冻结”的选择控件,以供用户选择。At the same time, the freeze interface further includes a freeze button. When the terminal detects the trigger operation of the freeze button by the user, the prompt information of “whether the selected application is frozen” may be output through the pop-up window, and the option is “cancel” " or "freeze" selection controls for the user to select.
在一个实施例中,如图7所示,询问用户是否需要对冻结列表内的应用程序进行冻结,包括:In one embodiment, as shown in FIG. 7, asking the user if they need to freeze the application in the frozen list includes:
步骤702:当接收到用户输入的对应用程序进行冻结的冻结指令时,获取所述应用程序的历史运行数据;Step 702: Acquire a historical running data of the application when receiving a freeze instruction for freezing the application by the user;
具体地,当用户选中需要冻结的应用程序后,终端检测到用户对冻结按钮的触发操作时,可以通过弹窗的形式输出“是否冻结已选的应用程序”的提示信息,以及包括选项为“取消”或“冻结”的选择控件,以供用户选择。当用户选择“冻结”选择控件时,则终端就接受到用户输入的冻结指令,其中,所述冻结指令用于对选择应用程序进行冻结操作。Specifically, when the user selects the application that needs to be frozen, the terminal detects that the user triggers the freeze button, and may output a prompt message of “whether the selected application is frozen” in the form of a pop-up window, and the option is “ Cancel or "freeze" the selection controls for the user to select. When the user selects the "freeze" selection control, the terminal accepts a freeze instruction input by the user, wherein the freeze instruction is used to freeze the selection application.
当接收到用户输入的冻结指令时,获取该应用程序的历史运行数据,其中,历史运行数据可以为将要冻结的应用程序的在运行过程中产生的中间运行数据,例如,运行“微信”时,接收到微信信息,如语音、文字、表情、图像、视频、文件等历史中间数据。Obtaining historical running data of the application when receiving the freezing instruction input by the user, wherein the historical running data may be intermediate running data generated during running of the application to be frozen, for example, when running WeChat, Received WeChat information, such as voice, text, expressions, images, videos, files, and other historical intermediate data.
步骤704:判断所述历史运行数据中是否包括隐私数据;Step 704: Determine whether privacy data is included in the historical running data.
获取历史运行数据,并对获取的历史运行数据进行分析,检测历史运行数据中是否包括隐私数据,其中,隐私数据可以为重要联系人的联系方式、证件号码、具有特定用户的图像和视频、证明文件等。Obtain historical running data, and analyze the obtained historical running data to detect whether the historical running data includes private data, wherein the private data may be an important contact information, a document number, an image and video with a specific user, and a certificate. Documents, etc.
步骤706:当历史运行数据中包括所述隐私数据时,对所述隐私数据进行加密处理,并保存到预设数据库中。Step 706: When the privacy data is included in the historical running data, the private data is encrypted and saved in a preset database.
当历史运行数据中包括隐私数据时,在终端的屏幕上弹出是否对隐私数据进行加密的提示窗口,该提示窗口用于提示用户是否对将要冻结的应用程序的历史运行数据进行加密转移,用户可以根据提示窗口进行选择是否需要进行加密转移。当用户需要对隐私数据进行加密转移时,可以将其按照预设存储路径转移存储预设数据库中,以防止应用程序在冻结期间影响用户对隐私数据的调用。When the historical running data includes the private data, a prompt window for encrypting the private data is displayed on the screen of the terminal, and the prompt window is used to prompt the user whether to encrypt and transfer the historical running data of the application to be frozen, and the user may According to the prompt window, choose whether you need to perform encryption transfer. When the user needs to encrypt and transfer the private data, it can be transferred to the preset database according to the preset storage path to prevent the application from influencing the user's call to the private data during the freezing.
具体地,可以将隐私数据转移到终端的存储空间的某一区域(如SD卡、外部存储器等),从而保证应用程序被冻结时,用户可以随时调用隐私数据。Specifically, the privacy data can be transferred to a certain area of the storage space of the terminal (such as an SD card, an external memory, etc.), thereby ensuring that the user can call the private data at any time when the application is frozen.
需要说明的是,加密密码可以为数字、字母由数字和字母组合形成的字符、图像、指纹、虹膜、耳纹、声纹或其他形式的密码,在此不作限定。It should be noted that the encrypted password may be a character, an image, a fingerprint, an iris, an ear print, a voice print or other forms of a password formed by a combination of numbers and letters, which is not limited herein.
在一个实施例中,如图8所示,冻结所述应用程序,包括:In one embodiment, as shown in FIG. 8, freezing the application includes:
步骤802:获取所述应用程序的应用标识。Step 802: Acquire an application identifier of the application.
每个应用程序都会有唯一的应用标识,应用标识用于唯一标识对应的应用程序。应用标识可由预设位数的数字、字母或者其他字符中的一种或几种 的组合所构成。Each application has a unique app ID that uniquely identifies the corresponding app. The application identifier may be composed of a combination of one or more of a preset number of digits, letters, or other characters.
步骤804:在预设数据库中获取具有所述应用标识的应用程序的冻结等级。Step 804: Acquire a freeze level of the application with the application identifier in a preset database.
在预设数据库中存储有每个应用程序的冻结等级,冻结等级用于指示配置所述应用程序所能使用的最大允许资源。其中,所能使用的资源表示进程在被执行的各个时刻下,所能使用的资源。最大允许资源表示进程在各个时刻下允许被使用的最大资源。终端中有多个处于运行状态的进程,进程(process)是计算机中的程序关于某数据集合上的一次运行活动,是系统进行资源分配和调度的基本单位,是操作系统结构的基础。终端可按照预设的频率或者根据检测到的用户操作指令来获取后台进程。A freeze level for each application is stored in the preset database, and the freeze level is used to indicate the maximum allowable resources that can be used by the application. Among them, the resources that can be used represent the resources that the process can use at each moment of execution. The maximum allowed resource represents the maximum resource that the process is allowed to use at various times. There are multiple running processes in the terminal. The process is a basic operation of a program on a certain data set in a computer. It is the basic unit for resource allocation and scheduling, and is the basis of the operating system structure. The terminal may acquire the background process according to a preset frequency or according to the detected user operation instruction.
若终端的每个应用程序需要被冻结时,应用程序从预设数据库中获取相应的冻结等级。用户可以自己的需求来为各个应用程序配置的相应的冻结等级。If each application of the terminal needs to be frozen, the application obtains the corresponding freeze level from the preset database. The user can configure the corresponding freeze level for each application.
具体的,应用程序的冻结等级可以划分为一级、二级、三级、四级,其中,最低级的冻结等级为一级,最高级的冻结等级为四级。Specifically, the freeze level of the application may be divided into first level, second level, third level, and fourth level, wherein the lowest level of freezing level is one level, and the highest level of freezing level is four levels.
其中,上述的资源可包括CPU、I/O文件资源等。以资源为内存来举例说明。若后台进程执行时所需的内存为40Mb,若冻结等级为一级(最低级),则根据一级冻结等级给后台进程分配资源,应用程序所能使用的最大允许资源为30Mb;若冻结等级为四级(最高级),则根据四级冻结等级给后台进程进行分配资源,应用程序所能使用的最大允许资源为0Mb。其中,最高等级的冻结等级为完全冻结状态。The foregoing resources may include a CPU, an I/O file resource, and the like. Take resources as memory for an example. If the memory required by the background process is 40Mb, if the freeze level is one level (lowest level), the background process is allocated resources according to the level 1 freeze level, and the maximum allowable resource that the application can use is 30Mb; For level 4 (the highest level), the background process is allocated resources according to the level 4 freeze level, and the maximum allowable resource that the application can use is 0Mb. Among them, the highest level of freezing level is completely frozen.
步骤806:根据所述冻结等级对所述应用程序进行相应等级的冻结。Step 806: Perform freeze on the application level according to the freeze level.
根据应用程序所配置的冻结等级对该应用程序进行冻结处理。本实施例中,由于应用程序的冻结等级不同,可以根据各个应用程序来进行不同程度的冻结操作,而不是使所有满足预设条件的应用程序处于完全冻结状态,可以使应用程序处于未完全冻结状态,便于用户后续可以快速有效的解冻该应用程序,提高用户的体验度。同时,根根冻结等级限制应用程序所能使用的最大允许资源,也能合理分配资源,减小功耗。The application is frozen according to the freeze level configured by the application. In this embodiment, because the freeze level of the application is different, different degrees of freezing operations may be performed according to each application, instead of making all applications satisfying the preset condition completely frozen, and the application may be completely frozen. The state is convenient for the user to quickly and effectively unfreeze the application and improve the user experience. At the same time, the root-root freeze level limits the maximum allowed resources that an application can use, and can also allocate resources reasonably and reduce power consumption.
应该理解的是,虽然图3-8的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图3-8中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者 交替地执行。It should be understood that although the various steps in the flowcharts of FIGS. 3-8 are sequentially displayed as indicated by the arrows, these steps are not necessarily performed in the order indicated by the arrows. Except as explicitly stated herein, the execution of these steps is not strictly limited, and the steps may be performed in other orders. Moreover, at least some of the steps in Figures 3-8 may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, these sub-steps or stages The order of execution is not necessarily performed sequentially, but may be performed alternately or alternately with at least a portion of other steps or sub-steps or stages of other steps.
在一个实施例中,如图9所示,提供了一种应用程序冻结装置,该装置包括:In one embodiment, as shown in FIG. 9, an application freezing device is provided, the device comprising:
查询模块910,用于在预设时间段内,获取应用程序响应闹钟的唤醒频率;The querying module 910 is configured to acquire, in a preset time period, a wake-up frequency of the application response alarm clock;
获取模块920,用于获取所述应用程序的预设冻结系数;The obtaining module 920 is configured to acquire a preset freezing coefficient of the application;
调整模块930,用于根据所述唤醒频率调整所述预设冻结系数以获得实时冻结系数;The adjusting module 930 is configured to adjust the preset freezing coefficient according to the wake-up frequency to obtain a real-time freezing coefficient;
冻结模块940,用于当所述实时冻结系数大于预设阈值时,冻结所述应用程序。The freezing module 940 is configured to freeze the application when the real-time freezing coefficient is greater than a preset threshold.
上述应用程序冻结装置,查询模块910能够在预设时间段内,获取应用程序响应闹钟的唤醒频率;获取模块920能够获取每个应用程序的预设冻结系数;调整模块930根据所述唤醒频率调整所述预设冻结系数以获得实时冻结系数;当所述实时冻结系数大于预设阈值时,冻结模块940冻结所述应用程序。应用程序冻结装置可以根据预设时间段内应用程序响应闹钟的唤醒频率来调整预设冻结系数以获得实时冻结系数,当实时冻结系数大于预设阈值时,对应用程序进行冻结操作,使其无法被唤醒,节省功耗、释放系统资源。The application freezing device, the query module 910 can acquire the wake-up frequency of the application response alarm clock within a preset time period; the obtaining module 920 can acquire the preset freeze coefficient of each application; and the adjusting module 930 adjusts according to the wake-up frequency. The preset freeze coefficient obtains a real-time freeze coefficient; when the real-time freeze coefficient is greater than a preset threshold, the freeze module 940 freezes the application. The application freezing device can adjust the preset freezing coefficient to obtain the real-time freezing coefficient according to the wake-up frequency of the application in response to the alarm time in the preset time period, and when the real-time freezing coefficient is greater than the preset threshold, the application is frozen and cannot be performed. Wake up, save power and release system resources.
在一个实施例中,调整模块,包括:In one embodiment, the adjustment module includes:
第一获取单元,用于获取所述应用程序的历史运行数据,并确定所述应用程序在所述预设时间段内的使用频率;a first acquiring unit, configured to acquire historical running data of the application, and determine a frequency of use of the application in the preset time period;
第一确定单元,用于根据所述使用频率和唤醒频率确定冻结权重因子;第一确定单元还用于计算所述唤醒频率和所述使用频率的比值;在预设权重表中查找与所述比值对应的冻结权重因子;a first determining unit, configured to determine a freeze weighting factor according to the use frequency and the wake-up frequency; the first determining unit is further configured to calculate a ratio of the wake-up frequency and the used frequency; searching and referring to the preset weight table The frozen weight factor corresponding to the ratio;
第二确定单元,用于根据所述冻结权重因子、预设冻结系数确定所述实时冻结系数。a second determining unit, configured to determine the real-time freezing coefficient according to the freeze weighting factor and a preset freezing coefficient.
在一个实施例中,应用程序冻结装置,还包括:In one embodiment, the application freezing device further includes:
系数设置模块,用于获取应用程序的资源占用率或运行时长;根据所述资源占用率或运行时长设置对应的应用程序的预设冻结系数。The coefficient setting module is configured to acquire a resource occupancy rate or a running time of the application; and set a preset freezing coefficient of the corresponding application according to the resource occupancy rate or the running time length.
在一个实施例中,应用程序冻结装置,还包括:In one embodiment, the application freezing device further includes:
询问模块,用于根据所述实时冻结系数大于预设阈值的应用程序生成冻结列表;所述冻结列表中应用程序按照预设策略进行排序,询问用户是否需要对冻结列表内的应用程序进行冻结。The query module is configured to generate a freeze list according to the application whose real-time freeze coefficient is greater than a preset threshold; the application in the freeze list sorts according to a preset policy, and asks the user whether the application in the freeze list needs to be frozen.
进一步的,判断模块还用于当接收到用户输入的对应用程序进行冻结的冻结指令时,获取所述应用程序的历史运行数据;判断所述历史运行数据中是否包括隐私数据;当历史运行数据中包括所述隐私数据时,对所述隐私数 据进行加密处理,并保存到预设数据库中。Further, the determining module is further configured to: when receiving a freeze instruction for freezing the application by the user, acquiring historical running data of the application; determining whether the historical running data includes private data; When the private data is included, the private data is encrypted and saved in a preset database.
在一个实施例中,冻结模块包括:In one embodiment, the freeze module includes:
标识获取单元,用于获取所述应用程序的应用标识;An identifier obtaining unit, configured to acquire an application identifier of the application;
等级确定单元,用于在预设数据库中获取具有所述应用标识的应用程序的冻结等级,所述冻结等级用于指示配置所述应用程序所能使用的最大允许资源;a level determining unit, configured to acquire, in a preset database, a freeze level of an application having the application identifier, where the freeze level is used to indicate that a maximum allowed resource that can be used by the application is configured;
冻结单元,用于根据所述冻结等级对所述应用程序进行相应等级的冻结。And a freezing unit, configured to freeze the corresponding level of the application according to the freezing level.
上述应用程序冻结装置中各个模块的划分仅用于举例说明,在其他实施例中,可将应用程序冻结装置按照需要划分为不同的模块,以完成上述应用程序冻结装置的全部或部分功能。The division of each module in the application freezing device is for illustrative purposes only. In other embodiments, the application freezing device may be divided into different modules as needed to complete all or part of the functions of the application freezing device.
在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现上述各实施例所提供的应用程序冻结方法的步骤。In one embodiment, a computer readable storage medium is provided having stored thereon a computer program that, when executed by a processor, implements the steps of the application freeze method provided by the various embodiments described above.
在一个实施例中,提供了一种终端,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,处理器执行计算机程序时实现上述各实施例所提供的应用程序冻结方法的步骤。In one embodiment, a terminal is provided, including a memory, a processor, and a computer program stored on the memory and operable on the processor, and the processor freezes when the processor executes the computer program The steps of the method.
本申请实施例还提供了一种计算机程序产品。一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述各实施例所提供的应用程序冻结方法的步骤。The embodiment of the present application also provides a computer program product. A computer program product comprising instructions which, when run on a computer, cause the computer to perform the steps of the application freezing method provided by the various embodiments described above.
本申请实施例还提供了一种终端。如图10所示,为了便于说明,仅示出了与本申请实施例相关的部分,具体技术细节未揭示的,请参照本申请实施例方法部分。该终端可以为包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑、穿戴式设备等任意终端设备,以终端为手机为例:The embodiment of the present application further provides a terminal. As shown in FIG. 10, for the convenience of description, only the parts related to the embodiments of the present application are shown. For the specific technical details not disclosed, refer to the method part of the embodiment of the present application. The terminal may be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, a wearable device, and the terminal is a mobile phone as an example:
图10为与本申请实施例提供的终端相关的手机的部分结构的框图。参考图10,手机包括:射频(Radio Frequency,RF)电路1010、存储器1020、输入单元1030、显示单元1040、传感器1050、音频电路1060、无线保真(wireless fidelity,WiFi)模块1070、处理器1080、以及电源1090等部件。本领域技术人员可以理解,图10所示的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。FIG. 10 is a block diagram showing a part of a structure of a mobile phone related to a terminal provided by an embodiment of the present application. Referring to FIG. 10, the mobile phone includes: a radio frequency (RF) circuit 1010, a memory 1020, an input unit 1030, a display unit 1040, a sensor 1050, an audio circuit 1060, a wireless fidelity (WiFi) module 1070, and a processor 1080. And power supply 1090 and other components. It will be understood by those skilled in the art that the structure of the handset shown in FIG. 10 does not constitute a limitation to the handset, and may include more or less components than those illustrated, or some components may be combined, or different components may be arranged.
其中,RF电路1010可用于收发信息或通话过程中,信号的接收和发送,可将基站的下行信息接收后,给处理器1080处理;也可以将上行的数据发送给基站。通常,RF电路包括但不限于天线、至少一个放大器、 收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路1010还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System of Mobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE))、电子邮件、短消息服务(Short Messaging Service,SMS)等。The RF circuit 1010 can be used for receiving and transmitting signals during the transmission and reception of information or during a call. The downlink information of the base station can be received and processed by the processor 1080. The uplink data can also be sent to the base station. Generally, RF circuits include, but are not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, RF circuit 1010 can also communicate with the network and other devices via wireless communication. The above wireless communication may use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (Code Division). Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), e-mail, Short Messaging Service (SMS), and the like.
存储器1020可用于存储软件程序以及模块,处理器1080通过运行存储在存储器1020的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器1020可主要包括程序存储区和数据存储区,其中,程序存储区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能的应用程序、图像播放功能的应用程序等)等;数据存储区可存储根据手机的使用所创建的数据(比如音频数据、通讯录等)等。此外,存储器1020可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 1020 can be used to store software programs and modules, and the processor 1080 executes various functional applications and data processing of the mobile phone by running software programs and modules stored in the memory 1020. The memory 1020 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as an application of a sound playing function, an application of an image playing function, etc.); The data storage area can store data (such as audio data, address book, etc.) created according to the use of the mobile phone. Moreover, memory 1020 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
输入单元1030可用于接收输入的数字或字符信息,以及产生与手机1000的用户设置以及功能控制有关的键信号输入。具体地,输入单元1030可包括操作面板1031以及其他输入设备1032。操作面板1031,也可称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在操作面板1031上或在操作面板1031附近的操作),并根据预先设定的程式驱动相应的连接装置。在一个实施例中,操作面板1031可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器1080,并能接收处理器1080发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现操作面板1031。除了操作面板1031,输入单元1030还可以包括其他输入设备1032。具体地,其他输入设备1032可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)等中的一种或多种。The input unit 1030 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the handset 1000. Specifically, the input unit 1030 may include an operation panel 1031 and other input devices 1032. The operation panel 1031, which may also be referred to as a touch screen, may collect touch operations on or near the user (such as an operation of the user using a finger, a stylus, or the like on the operation panel 1031 or in the vicinity of the operation panel 1031). And drive the corresponding connection device according to a preset program. In one embodiment, the operation panel 1031 may include two parts of a touch detection device and a touch controller. Wherein, the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information. The processor 1080 is provided and can receive commands from the processor 1080 and execute them. Further, the operation panel 1031 can be realized by various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the operation panel 1031, the input unit 1030 may further include other input devices 1032. Specifically, other input devices 1032 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.).
显示单元1040可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元1040可包括显示面板1041。在一个实施例中,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板1041。在一个实施例中,操作面板1031可覆盖显示面板1041,当操作面板1031检测到 在其上或附近的触摸操作后,传送给处理器1080以确定触摸事件的类型,随后处理器1080根据触摸事件的类型在显示面板1041上提供相应的视觉输出。虽然在图10中,操作面板1031与显示面板1041是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将操作面板1031与显示面板1041集成而实现手机的输入和输出功能。The display unit 1040 can be used to display information input by the user or information provided to the user as well as various menus of the mobile phone. The display unit 1040 may include a display panel 1041. In one embodiment, the display panel 1041 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like. In one embodiment, the operation panel 1031 may cover the display panel 1041, and when the operation panel 1031 detects a touch operation thereon or nearby, it is transmitted to the processor 1080 to determine the type of the touch event, and then the processor 1080 according to the touch event The type provides a corresponding visual output on display panel 1041. Although in FIG. 10, the operation panel 1031 and the display panel 1041 are two independent components to implement the input and input functions of the mobile phone, in some embodiments, the operation panel 1031 and the display panel 1041 may be integrated to implement the mobile phone. Input and output functions.
手机1000还可包括至少一种传感器1050,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板1041的亮度,接近传感器可在手机移动到耳边时,关闭显示面板1041和/或背光。运动传感器可包括加速度传感器,通过加速度传感器可检测各个方向上加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换)、振动识别相关功能(比如计步器、敲击)等;此外,手机还可配置陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器等。The handset 1000 can also include at least one type of sensor 1050, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1041 according to the brightness of the ambient light, and the proximity sensor may close the display panel 1041 and/or when the mobile phone moves to the ear. Or backlight. The motion sensor may include an acceleration sensor, and the acceleration sensor can detect the magnitude of the acceleration in each direction, and the magnitude and direction of the gravity can be detected at rest, and can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching), and vibration recognition related functions (such as Pedometer, tapping, etc.; in addition, the phone can also be equipped with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors.
音频电路1060、扬声器1061和传声器1062可提供用户与手机之间的音频接口。音频电路1060可将接收到的音频数据转换后的电信号,传输到扬声器1061,由扬声器1061转换为声音信号输出;另一方面,传声器1062将收集的声音信号转换为电信号,由音频电路1060接收后转换为音频数据,再将音频数据输出处理器1080处理后,经RF电路1010可以发送给另一手机,或者将音频数据输出至存储器1020以便后续处理。 Audio circuitry 1060, speaker 1061, and microphone 1062 can provide an audio interface between the user and the handset. The audio circuit 1060 can transmit the converted electrical data of the received audio data to the speaker 1061, and convert it into a sound signal output by the speaker 1061; on the other hand, the microphone 1062 converts the collected sound signal into an electrical signal, by the audio circuit 1060. After receiving, it is converted into audio data, and then processed by the audio data output processor 1080, transmitted to another mobile phone via the RF circuit 1010, or outputted to the memory 1020 for subsequent processing.
WiFi属于短距离无线传输技术,手机通过WiFi模块1070可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图10示出了WiFi模块1070,但是可以理解的是,其并不属于手机1000的必须构成,可以根据需要而省略。WiFi is a short-range wireless transmission technology. The mobile phone through the WiFi module 1070 can help users to send and receive e-mail, browse the web and access streaming media, etc. It provides users with wireless broadband Internet access. Although FIG. 10 shows the WiFi module 1070, it can be understood that it does not belong to the essential configuration of the mobile phone 1000 and can be omitted as needed.
处理器1080是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器1020内的软件程序和/或模块,以及调用存储在存储器1020内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监听。在一个实施例中,处理器1080可包括一个或多个处理单元。在一个实施例中,处理器1080可集成应用处理器和调制解调器,其中,应用处理器主要处理操作系统、用户界面和应用程序等;调制解调器主要处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器1080中。比如,该处理器1080可集成应用处理器和基带处理器,基带处理器与和其它外围芯片等可组成调制解调器。手机1000还包括给各个部件供电的电源1090(比如电池),优选的,电源可以通过电源管理系统与处理器1090逻辑相连,从而通过电源管理系统实现管理充电、 放电、以及功耗管理等功能。The processor 1080 is the control center of the handset, which connects various portions of the entire handset using various interfaces and lines, by executing or executing software programs and/or modules stored in the memory 1020, and invoking data stored in the memory 1020, The various functions of the mobile phone and the processing of the data, so that the overall monitoring of the mobile phone. In one embodiment, processor 1080 can include one or more processing units. In one embodiment, the processor 1080 can integrate an application processor and a modem, wherein the application processor primarily processes an operating system, a user interface, an application, etc.; the modem primarily processes wireless communications. It will be appreciated that the above described modem may also not be integrated into the processor 1080. For example, the processor 1080 can integrate an application processor and a baseband processor, and the baseband processor and other peripheral chips can form a modem. The mobile phone 1000 also includes a power source 1090 (such as a battery) that supplies power to various components. Preferably, the power source can be logically coupled to the processor 1090 through a power management system to manage functions such as charging, discharging, and power management through the power management system.
在一个实施例中,手机1000还可以包括摄像头、蓝牙模块等。In one embodiment, the handset 1000 may also include a camera, a Bluetooth module, and the like.
在本申请实施例中,该手机所包括的处理器执行存储在存储器上的计算机程序时实现上述所描述的应用程序冻结方法。In the embodiment of the present application, the processor included in the mobile phone implements the application freezing method described above when executing a computer program stored in the memory.
本申请所使用的对存储器、存储、数据库或其它介质的任何引用可包括非易失性和/或易失性存储器。合适的非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM),它用作外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDR SDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)。Any reference to a memory, storage, database or other medium used herein may include non-volatile and/or volatile memory. Suitable non-volatile memories can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM), which acts as an external cache. By way of illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual 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 above embodiments are merely illustrative of several embodiments of the present application, and the description thereof is more specific and detailed, but is not to be construed as limiting the scope of the claims. It should be noted that a number of variations and modifications may be made by those skilled in the art without departing from the spirit and scope of the present application. Therefore, the scope of the invention should be determined by the appended claims.

Claims (19)

  1. 一种应用程序冻结方法,包括:An application freezing method, including:
    在预设时间段内,获取应用程序响应闹钟的唤醒频率;Obtain the wake-up frequency of the application response alarm clock during the preset time period;
    获取所述应用程序的预设冻结系数;Obtaining a preset freeze coefficient of the application;
    根据所述唤醒频率调整所述预设冻结系数以获得实时冻结系数;Adjusting the preset freeze coefficient according to the wake-up frequency to obtain a real-time freeze coefficient;
    当所述实时冻结系数大于预设阈值时,冻结所述应用程序。The application is frozen when the real-time freeze coefficient is greater than a preset threshold.
  2. 根据权利要求1所述的方法,其中,所述根据所述唤醒频率调整所述预设冻结系数以获得实时冻结系数,包括:The method of claim 1, wherein the adjusting the preset freeze coefficient according to the wake-up frequency to obtain a real-time freeze coefficient comprises:
    获取所述应用程序的历史运行数据,并确定所述应用程序在所述预设时间段内的使用频率;Obtaining historical running data of the application, and determining a frequency of use of the application within the preset time period;
    根据所述使用频率和唤醒频率确定冻结权重因子;Determining a freeze weighting factor according to the use frequency and the wake-up frequency;
    根据所述冻结权重因子、预设冻结系数确定所述实时冻结系数。The real-time freezing coefficient is determined according to the freeze weighting factor and a preset freezing coefficient.
  3. 根据权利要求2所述的方法,其中,所述根据所述使用频率和唤醒频率确定冻结权重因子,包括:The method of claim 2, wherein said determining a freeze weighting factor based on said frequency of use and wake-up frequency comprises:
    计算所述唤醒频率和所述使用频率的比值;Calculating a ratio of the wake-up frequency to the used frequency;
    在预设权重表中查找与所述比值对应的冻结权重因子。A frozen weight factor corresponding to the ratio is found in the preset weight table.
  4. 根据权利要求3所述的方法,其中,所述预设权重表中,所述比值越大,对应的所述冻结权重因子越大。The method according to claim 3, wherein in the preset weight table, the larger the ratio, the larger the corresponding freeze weight factor.
  5. 根据权利要求2所述的方法,其中,所述根据所述使用频率和唤醒频率确定冻结权重因子,包括:The method of claim 2, wherein said determining a freeze weighting factor based on said frequency of use and wake-up frequency comprises:
    计算所述唤醒频率与所述使用频率的差值;Calculating a difference between the wake-up frequency and the used frequency;
    根据所述差值来确定冻结权重因子。A freeze weighting factor is determined based on the difference.
  6. 根据权利要求2所述的方法,其中,所述时冻结系数为所述预设冻结系数与所述冻结权重因子的和值。The method according to claim 2, wherein said time freeze coefficient is a sum of said preset freeze coefficient and said freeze weight factor.
  7. 根据权利要求1所述的方法,其中,所述获取每个应用程序的预设冻结系数前,包括:The method according to claim 1, wherein before the obtaining the preset freeze coefficient of each application, the method comprises:
    获取应用程序的资源占用率;Get the resource usage of the application;
    根据所述资源占用率设置对应的应用程序的预设冻结系数。Setting a preset freezing coefficient of the corresponding application according to the resource occupancy rate.
  8. 根据权利要求7所述的方法,其中,所述获取应用程序的资源占用率包括:统计所述应用程序在特定历史时间内的资源占用率的最大值,并将所述最大值作为所述资源占用率。The method according to claim 7, wherein the obtaining the resource occupancy rate of the application comprises: counting a maximum value of the resource occupancy rate of the application in a specific historical time, and using the maximum value as the resource. Occupancy rate.
  9. 根据权利要求7所述的方法,其中,所述获取应用程序的资源占用率包括:The method of claim 7, wherein the resource usage of the acquiring application comprises:
    在特定历史时间内采集所述应用程序的多个瞬间资源占用率;Collecting multiple instantaneous resource usage rates of the application during a specific historical time;
    根据采集的多个瞬间资源占用率获取资源占用率平均值,将获取的资源占用率平均值作为所述应用程序的资源占用率。The average resource usage rate is obtained according to the collected multiple instantaneous resource usage rates, and the obtained resource occupancy average value is used as the resource occupancy rate of the application.
  10. 根据权利要求7所述的方法,其中,所述应用程序的所述资源占用率越高,对应的所述预设冻结系数越大。The method according to claim 7, wherein the higher the resource occupancy rate of the application, the larger the corresponding preset freezing coefficient.
  11. 根据权利要求1所述的方法,其中,所述获取每个应用程序的预设冻结系数前,包括:The method according to claim 1, wherein before the obtaining the preset freeze coefficient of each application, the method comprises:
    获取应用程序的运行时长,所述运行时长为在特定历史时间内所述应用程序的每次启动后单次运行时长的总和;Obtaining a running time of the application, the running time being a sum of a single running time after each startup of the application in a specific historical time;
    根据所述运行时长设置对应的应用程序的预设冻结系数。Setting a preset freezing coefficient of the corresponding application according to the running time.
  12. 根据权利要求11所述的方法,其中,所述应用程序的所述运行时长越短,对应的所述预设冻结系数越大。The method according to claim 11, wherein the shorter the running time of the application, the larger the corresponding preset freezing coefficient.
  13. 根据权利要求1所述的方法,其中,所述冻结所述应用程序前,还包括:The method of claim 1, wherein before the freezing the application, the method further comprises:
    根据所述实时冻结系数大于预设阈值的应用程序生成冻结列表;所述冻结列表中应用程序按照预设策略进行排序;Generating a freeze list according to the application whose real-time freeze coefficient is greater than a preset threshold; the application in the freeze list is sorted according to a preset policy;
    询问用户是否需要对冻结列表内的应用程序进行冻结。Ask the user if they need to freeze the application in the frozen list.
  14. 根据权利要求13所述的方法,其中,所述询问用户是否需要对冻结列表内的应用程序进行冻结,包括:The method of claim 13 wherein said inquiring whether the user needs to freeze the application in the frozen list comprises:
    当接收到用户输入的对应用程序进行冻结的冻结指令时,获取所述应用程序的历史运行数据;Obtaining historical running data of the application when receiving a freeze instruction for freezing the application by the user;
    判断所述历史运行数据中是否包括隐私数据;Determining whether the historical data includes privacy data;
    当历史运行数据中包括所述隐私数据时,对所述隐私数据进行加密处理,并保存到预设数据库中。When the private data is included in the historical running data, the private data is encrypted and saved in a preset database.
  15. 根据权利要求1所述的方法,其中,所述冻结所应用程序,包括:The method of claim 1 wherein said freezing the applied program comprises:
    获取所述应用程序的应用标识;Obtaining an application identifier of the application;
    在预设数据库中获取具有所述应用标识的应用程序的冻结等级,所述冻结等级用于指示配置所述应用程序所能使用的最大允许资源;Obtaining, in a preset database, a freeze level of an application having the application identifier, where the freeze level is used to indicate that a maximum allowed resource that can be used by the application is configured;
    根据所述冻结等级对所述应用程序进行相应等级的冻结。The application is frozen according to the freeze level according to the freeze level.
  16. 根据权利要求1所述的方法,其中,所能使用的资源表示进程在被执行的各个时刻下,所能使用的资源;所述最大允许资源表示进程在各个时刻下允许被使用的最大资源。The method of claim 1 wherein the resources that are usable represent resources that the process can use at various times of execution; the maximum allowed resources represent the maximum resources that the process is allowed to use at various times.
  17. 一种应用程序冻结装置,所述装置包括:An application freezing device, the device comprising:
    查询模块,用于在预设时间段内,获取应用程序响应闹钟的唤醒频率;The query module is configured to obtain an wake-up frequency of the application response alarm clock within a preset time period;
    获取模块,用于获取所述应用程序的预设冻结系数;An obtaining module, configured to acquire a preset freezing coefficient of the application;
    调整模块,用于根据所述唤醒频率调整所述预设冻结系数以获得实时冻 结系数;And an adjustment module, configured to adjust the preset freeze coefficient according to the wake-up frequency to obtain a real-time freeze coefficient;
    冻结模块,用于当所述实时冻结系数大于预设阈值时,冻结所述应用程序。And a freezing module, configured to freeze the application when the real-time freezing coefficient is greater than a preset threshold.
  18. 一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1至16中任一项所述方法的步骤。A computer readable storage medium having stored thereon a computer program, the computer program being executed by a processor to perform the steps of the method of any one of claims 1 to 16.
  19. 一种终端,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现权利要求1至16中任一项所述方法的步骤。A terminal comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, the processor executing the computer program to implement the steps of the method of any one of claims 1 to 16. .
PCT/CN2018/116934 2017-12-29 2018-11-22 Method and apparatus for freezing application, and storage medium and terminal WO2019128570A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711489061.9A CN110008007B (en) 2017-12-29 2017-12-29 Application program freezing method and device, storage medium and terminal
CN201711489061.9 2017-12-29

Publications (1)

Publication Number Publication Date
WO2019128570A1 true WO2019128570A1 (en) 2019-07-04

Family

ID=67066475

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/116934 WO2019128570A1 (en) 2017-12-29 2018-11-22 Method and apparatus for freezing application, and storage medium and terminal

Country Status (2)

Country Link
CN (1) CN110008007B (en)
WO (1) WO2019128570A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113905400B (en) * 2020-07-07 2023-11-21 中国联合网络通信集团有限公司 Network optimization processing method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104298336A (en) * 2013-07-19 2015-01-21 贝壳网际(北京)安全技术有限公司 Mobile terminal and control method and device of application program of mobile terminal
CN106125896A (en) * 2016-06-29 2016-11-16 宇龙计算机通信科技(深圳)有限公司 A kind of application program freezing method and mobile terminal
CN107145214A (en) * 2017-04-28 2017-09-08 努比亚技术有限公司 The method and mobile terminal of application program power consumption management
CN107168851A (en) * 2017-05-08 2017-09-15 广东欧珀移动通信有限公司 Information processing method, device and mobile terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104298584A (en) * 2013-07-19 2015-01-21 贝壳网际(北京)安全技术有限公司 Method and device for acquiring application program with abnormal power consumption and mobile terminal
CN107436672B (en) * 2016-05-26 2021-01-08 中兴通讯股份有限公司 Application processing method and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104298336A (en) * 2013-07-19 2015-01-21 贝壳网际(北京)安全技术有限公司 Mobile terminal and control method and device of application program of mobile terminal
CN106125896A (en) * 2016-06-29 2016-11-16 宇龙计算机通信科技(深圳)有限公司 A kind of application program freezing method and mobile terminal
CN107145214A (en) * 2017-04-28 2017-09-08 努比亚技术有限公司 The method and mobile terminal of application program power consumption management
CN107168851A (en) * 2017-05-08 2017-09-15 广东欧珀移动通信有限公司 Information processing method, device and mobile terminal

Also Published As

Publication number Publication date
CN110008007A (en) 2019-07-12
CN110008007B (en) 2021-08-17

Similar Documents

Publication Publication Date Title
US11099900B2 (en) Memory reclamation method and apparatus
WO2019128540A1 (en) Resource management method, mobile terminal and computer readable storage medium
WO2019128546A1 (en) Application program processing method, electronic device, and computer readable storage medium
CN109144232B (en) Process processing method and device, electronic equipment and computer readable storage medium
WO2020093208A1 (en) Application processing method and apparatus, computer device, and computer readable storage medium
CN110032267B (en) Information processing method and device, mobile terminal and computer readable storage medium
WO2019128598A1 (en) Application processing method, electronic device, and computer readable storage medium
CN107577508B (en) Application processing method and device, readable storage medium and mobile terminal
CN110032266B (en) Information processing method, information processing device, computer equipment and computer readable storage medium
CN108334345B (en) Application processing method and device, readable storage medium and mobile terminal
WO2019128537A1 (en) Application freezing method, and computer device and computer-readable storage medium
WO2019128588A1 (en) Process processing method and apparatus, electronic device, computer readable storage medium
WO2019128573A1 (en) Information processing method, apparatus, computer device and computer-readable storage medium
WO2019128569A1 (en) Method and apparatus for freezing application, and storage medium and terminal
CN109992399B (en) Resource management method, resource management device, mobile terminal and computer-readable storage medium
WO2019128586A1 (en) Application processing method, electronic device, and computer readable storage medium
CN110018886B (en) Application state switching method and device, electronic equipment and readable storage medium
CN110032397B (en) Application processing method and device, electronic equipment and computer readable storage medium
CN109375995B (en) Application freezing method and device, storage medium and electronic equipment
WO2019128570A1 (en) Method and apparatus for freezing application, and storage medium and terminal
CN109511139B (en) WIFI control method and device, mobile device and computer-readable storage medium
WO2019128553A1 (en) Application processing method, electronic device, and computer-readable storage medium
CN109992360B (en) Process processing method and device, electronic equipment and computer readable storage medium
CN109992322B (en) Application program unloading method and device, storage medium and terminal
CN110046033B (en) Application program processing method and device, electronic equipment and computer readable storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18894496

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18894496

Country of ref document: EP

Kind code of ref document: A1