WO2019128570A1 - Appareil et procédé de gel d'une application et support de stockage et terminal - Google Patents

Appareil et procédé de gel d'une application et support de stockage et 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
English (en)
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/fr

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

Landscapes

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

Abstract

La présente invention concerne un procédé et un appareil de gel d'une application, un support de stockage et un terminal. Le procédé consiste à : acquérir une fréquence de réveil d'une application répondant à une alarme pendant une période de temps prédéfinie ; acquérir un coefficient de gel prédéfini de l'application ; ajuster le coefficient de gel prédéfini en fonction de la fréquence de réveil de façon à obtenir un coefficient de gel en temps réel ; et lorsque le coefficient de gel en temps réel est supérieur à une valeur de seuil prédéfinie, geler l'application.
PCT/CN2018/116934 2017-12-29 2018-11-22 Appareil et procédé de gel d'une application et support de stockage et terminal WO2019128570A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711489061.9 2017-12-29
CN201711489061.9A CN110008007B (zh) 2017-12-29 2017-12-29 应用程序冻结方法、装置、存储介质和终端

Publications (1)

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

Family

ID=67066475

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/116934 WO2019128570A1 (fr) 2017-12-29 2018-11-22 Appareil et procédé de gel d'une application et support de stockage et terminal

Country Status (2)

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

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112540666A (zh) * 2019-09-20 2021-03-23 中兴通讯股份有限公司 应用解冻方法、终端设备、计算机设备和计算机可读介质
CN113905400B (zh) * 2020-07-07 2023-11-21 中国联合网络通信集团有限公司 网络优化处理方法、装置、电子设备及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104298336A (zh) * 2013-07-19 2015-01-21 贝壳网际(北京)安全技术有限公司 移动终端及其应用程序的控制方法和装置
CN106125896A (zh) * 2016-06-29 2016-11-16 宇龙计算机通信科技(深圳)有限公司 一种应用程序冻结方法及移动终端
CN107145214A (zh) * 2017-04-28 2017-09-08 努比亚技术有限公司 应用程序耗电管理的方法及移动终端
CN107168851A (zh) * 2017-05-08 2017-09-15 广东欧珀移动通信有限公司 信息处理方法、装置和移动终端

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104298584A (zh) * 2013-07-19 2015-01-21 贝壳网际(北京)安全技术有限公司 耗电异常的应用程序获取方法、装置和移动终端
CN107436672B (zh) * 2016-05-26 2021-01-08 中兴通讯股份有限公司 一种应用的处理方法及终端

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104298336A (zh) * 2013-07-19 2015-01-21 贝壳网际(北京)安全技术有限公司 移动终端及其应用程序的控制方法和装置
CN106125896A (zh) * 2016-06-29 2016-11-16 宇龙计算机通信科技(深圳)有限公司 一种应用程序冻结方法及移动终端
CN107145214A (zh) * 2017-04-28 2017-09-08 努比亚技术有限公司 应用程序耗电管理的方法及移动终端
CN107168851A (zh) * 2017-05-08 2017-09-15 广东欧珀移动通信有限公司 信息处理方法、装置和移动终端

Also Published As

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

Similar Documents

Publication Publication Date Title
EP3514684B1 (fr) Procédé et appareil de récupération de la mémoire
WO2019128540A1 (fr) Procédé de gestion de ressources, terminal mobile et support d'informations lisible par ordinateur
WO2019128546A1 (fr) Procédé de traitement de programme d'application, dispositif électronique et support de stockage lisible par ordinateur
CN109144232B (zh) 进程处理方法和装置、电子设备、计算机可读存储介质
WO2020093208A1 (fr) Procédé et appareil de traitement d'applications, dispositif informatique, et support de stockage lisible par ordinateur
CN110032267B (zh) 信息处理方法、装置、移动终端及计算机可读存储介质
WO2019128598A1 (fr) Procédé de traitement d'application, dispositif électronique et support de stockage lisible par ordinateur
CN107577508B (zh) 应用程序处理方法、装置、可读存储介质和移动终端
CN110032266B (zh) 信息处理方法、装置、计算机设备和计算机可读存储介质
CN108334345B (zh) 应用程序处理方法、装置、可读存储介质和移动终端
WO2019128537A1 (fr) Procédé de gel d'application, dispositif informatique, et support de stockage lisible par ordinateur
WO2019128588A1 (fr) Procédé et appareil de traitement de processus, dispositif électronique et support d'informations lisible par ordinateur
WO2019128573A1 (fr) Procédé de traitement d'informations, appareil, dispositif informatique et support d'informations lisible par ordinateur
WO2019128569A1 (fr) Procédé et appareil pour geler une application et support de stockage et terminal
CN109992399B (zh) 资源管理方法、装置、移动终端及计算机可读存储介质
WO2019128586A1 (fr) Procédé de traitement d'applications, dispositif électronique et support de stockage lisible par ordinateur
WO2019128570A1 (fr) Appareil et procédé de gel d'une application et support de stockage et terminal
WO2019128553A1 (fr) Procédé de traitement d'application, dispositif électronique et support de stockage lisible par ordinateur
CN110018886B (zh) 应用状态切换方法和装置、电子设备、可读存储介质
CN109992360B (zh) 进程处理方法和装置、电子设备、计算机可读存储介质
CN110032397B (zh) 应用处理方法和装置、电子设备、计算机可读存储介质
CN109375995B (zh) 应用冻结方法和装置、存储介质、电子设备
CN109511139B (zh) Wifi控制方法、装置、移动设备、计算机可读存储介质
CN110045811B (zh) 应用程序处理方法和装置、电子设备、计算机可读存储介质
CN109992322B (zh) 应用程序卸载方法、装置、存储介质和终端

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