WO2019128549A1 - Method and apparatus for freezing application, and terminal and computer-readable storage medium - Google Patents

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

Info

Publication number
WO2019128549A1
WO2019128549A1 PCT/CN2018/116536 CN2018116536W WO2019128549A1 WO 2019128549 A1 WO2019128549 A1 WO 2019128549A1 CN 2018116536 W CN2018116536 W CN 2018116536W WO 2019128549 A1 WO2019128549 A1 WO 2019128549A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
terminal
freeze
freezing
service
Prior art date
Application number
PCT/CN2018/116536
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 WO2019128549A1 publication Critical patent/WO2019128549A1/en

Links

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
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72451User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to schedules, e.g. using calendar applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72463User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions to restrict the functionality of the device
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0264Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by selectively disabling software applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/10Details of telephonic subscriber devices including a GPS signal receiver
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion
    • 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
    • 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
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present application relates to the field of data processing, and in particular, to an application freezing method, apparatus, terminal, and computer readable storage medium. Background technique
  • the embodiment of the present application provides an application freezing method, a device, a terminal, and a computer readable storage medium, which can freeze according to the motion state information of the terminal. Close the background application to optimize the running performance of the foreground application.
  • An application freezing method configured to freeze an application running on a terminal, the method includes: acquiring, when the 0-8 service on the terminal is enabled, motion state information of the terminal; Information judgment needs The closed application is frozen;
  • An application freezing device includes: ⁇ 0 2019/128549 ⁇ (:17 ⁇ 2018/116536
  • An obtaining module configured to acquire motion state information of the terminal when the service on the terminal is enabled
  • a determining module configured to determine, according to the motion state information of the terminal, whether the application related to the 0?8 service needs to be frozen;
  • Freeze module used when it needs to freeze When you are related to the application, according to the preset freeze policy Off the app.
  • a terminal comprising a memory and a processor, wherein the memory stores computer readable instructions that, when executed by the processor, cause the processor to perform the steps of the method.
  • a computer readable storage medium having stored thereon a computer program that, when executed by a processor, implements the steps of the method.
  • the above application freezing method, device, terminal and computer readable storage medium are passed through the terminal
  • the service is enabled, acquiring the motion state information of the terminal, determining, according to the motion state information of the terminal, whether the application related to the 0-8 service needs to be frozen, when it is required to freeze and
  • the application can freeze the application related to the 0?8 service according to the state of the terminal, improve the working performance of the foreground application, and reduce the power consumption of the terminal.
  • 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 schematic flow chart of an application freezing method in an embodiment
  • FIG. 4 is a schematic flow chart of an application freezing method in another embodiment
  • FIG. 5 is a schematic flow chart of an application freezing method in another embodiment
  • FIG. 6 is a schematic flow chart of an application freezing method in another embodiment
  • FIG. 7 is a schematic flow chart of an application freezing method in another embodiment
  • FIG. 8 is a block diagram showing the structure of an application freezing device in an embodiment
  • FIG. 9 is a block diagram showing a partial structure of a mobile phone related to a terminal provided by an embodiment of the present application.
  • 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 calculation 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 that can be executed by the processor to implement the application-free application freeze method 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-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 an application freezing method provided by the above various embodiments, for example, information such as the name of each application or process, the size of the occupied memory, and the like may be stored.
  • the computer program can be executed by a processor for implementing an application freezing 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 first process, and can also be used for detecting a touch operation applied to the display screen, and generating corresponding instructions, such as before execution. Switching instructions for background applications, etc.
  • the structure shown in FIG. 1 is only related to the solution of the present application.
  • the block diagram of the partial structure does not constitute a limitation of the terminal to which the solution of the present application is applied, and the specific terminal may include more or less components than those shown in the figure, or combine some components or have different components.
  • 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 space layer 230.
  • the freeze and thaw application 212 can be included on the JAVA spatial layer 210.
  • the freeze and thaw application 212 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 restriction 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 consumption. effect.
  • the terminal may use the platform freeze management module 224 to assign the tasks that can be frozen in the background to the freeze layer of 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 5 knot 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 recovery module 234, and a freeze timeout 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 perform freezing. Compared with the Process Identifier (PID) based on process ID, 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 limiting 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 framework or application sends a resource restriction through the provided binder interface or
  • the frozen instructions are given to the resource priority and limit management module 222 and the platform freeze management module 224.
  • 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 freeze timeout exit module 235 is configured to resolve the exception generated by the freeze timeout scenario 5.
  • an application freeze method for freezing an application running on a terminal. This embodiment is described by using the method as shown in FIG. 1 as an example.
  • the application freeze method includes steps 302 - 306. among them,
  • Step 302 Acquire motion state information of the terminal when the GPS service on the terminal is turned on.
  • GPS Global Positioning System
  • the terminal usually has a built-in GPS positioning module.
  • the GPS service on the terminal can be manually turned on, and the location signal of the terminal is sent to the positioning background by using the GPS positioning module on the terminal to achieve positioning.
  • the application with navigation function is run, such as Baidu map, Gaode navigation, etc., at this time, the application will obtain the location information of the terminal, and according to the user input.
  • the destination information is routed.
  • the motion state information of the terminal refers to the stationary state or the moving state where the terminal is currently located. If the terminal is in the static state, it means that the location of the terminal has not changed in the original place. For example, when the user arrives at the destination and stays at the destination, but the GPS service on the terminal and the application for navigation are still 0, then the terminal is in a stationary state of motion information; if the terminal is in the mobile state, it means At this time, the position of the terminal continues to change, for example, the user is on the way of navigation, and the terminal changes as the position of the user changes.
  • the GPS information of the terminal may be monitored in real time to monitor whether the GPS information of the terminal changes. If the GPS information of the terminal is not changed, the terminal may be considered to be at a static state. When the GPS information of the terminal shows the coordinate change, it is considered that the terminal is in the moving state at this time.
  • the acceleration of the terminal at different time points can be obtained by the acceleration sensor on the terminal, the speed and the displacement are obtained by the integral of the acceleration, and whether the motion is determined by the speed or displacement in the horizontal, if the acceleration is constantly changing, and The direction of the acceleration is also changing, and it is determined that the terminal is in the 0 moving state. Similarly, if the magnitude and direction of the acceleration do not change, it is determined that the terminal is at rest. ⁇ 0 2019/128549 ⁇ (:17 ⁇ 2018/116536
  • the speed of the terminal in different time periods may be acquired by using a speed sensor on the terminal. If the terminal has a certain moving speed, the terminal is considered to be in a moving state; if the moving speed of the terminal is zero or less than the preset At the speed threshold, it is considered that the terminal is at a standstill at this time.
  • the motion state information of the terminal may be judged by using two or three of the speed sensor, the acceleration sensor and the direction sensor of the terminal together, and the determination effect is more accurate.
  • Step 304 Determine, according to the motion state information of the terminal, whether it is necessary to freeze the application related to the 0?8 service.
  • the terminal should ? refers to a computer program that performs one or more specific tasks. It runs in user mode and can interact with the user, with a visual user interface. Often still
  • the program is a basic unit of resource allocation and scheduling, and is the basis of the operating system structure.
  • the operation of an application is usually exemplified by the operation of multiple related processes.
  • the terminal If the terminal is in a mobile state, it indicates that the user may have a demand for the 0?8 service. In this case, it is necessary to keep the applications and processes related to the 0?8 service running.
  • the terminal may be switched from the quiescent state to the mobile state, and the background application and the background process related to 0-8 are frozen to save resources when the terminal is in a static state, and when the terminal is detected to be switched from the quiescent state to the mobile state, Time, The closed background application and background process are thawed, 5 normal positioning.
  • the application related to the 0-8 service is frozen according to the preset freeze policy.
  • the background application and the background process related to the 0?8 service need to be frozen
  • the background application and the background process are frozen according to the preset policy, and the corresponding freezing policy can be set according to the state of the terminal.
  • the corresponding freezing policy can be set according to the state of the terminal.
  • it can be based on ⁇ 0 2019/128549 ⁇ (:17 ⁇ 2018/116536
  • the terminal changes the state interval time to set different freeze levels, and freezes the back-end application and background processes according to the freeze level. It is also possible to set the priority of the background application according to the motion state information of the terminal, and freeze the background application and the background process according to the priority order.
  • the above application freezing method by using on the terminal Obtaining motion state information of the terminal 5, determining whether it is needed according to the motion state information of the terminal
  • the related application freezes, when it is necessary to freeze the application related to the 0-8 service, according to the preset freeze policy freeze and
  • the closed application can freeze the application related to the 0?8 service according to the state of the terminal, improve the working performance of the foreground application, and reduce the power consumption of the terminal.
  • Step 402 When the terminal is in a static state, acquire a time interval at which the terminal moves last time, and record a time interval of the time from the current time.
  • the time interval 5 is the last time the terminal moves from the current time, and the time interval from the current time is recorded.
  • the terminal may be The mobile state is switched to the stationary state, and the terminal has a high demand for 0-8 service in the process of being in the mobile state, and the demand for the 0-8 service is reduced when the terminal is switched to the stationary state.
  • the time interval between the moment when the terminal moves last time from the current time and the current time it can be determined whether the terminal is in a stable static state. If the terminal only stays for a short time, it is not necessary to change the running of the background application and the background process on the terminal. status.
  • the terminal will get the current time (09:30:00).
  • the time when the location of the terminal has changed is detected last time. If the last time the terminal moves is 09:20:00, the time interval from the current time can be obtained, and the time interval is 10 minutes.
  • Step 404 When the time interval is greater than the preset time interval, it needs to be frozen and
  • Real-time recording the time interval of the last time the terminal moves from the current time point.
  • the time interval is greater than the preset time interval, it is determined that the terminal is currently in a static state.
  • the terminal is related to the background application and background of the service. The process needs are not high, then you need to freeze Service-related back-end applications and background processes. ⁇ 0 2019/128549 ⁇ (:17 ⁇ 2018/116536
  • the determining, according to the motion state information of the terminal, whether it is necessary to freeze the application related to the 0-8 service further includes step 502 - step 504, where step 502: When it is detected that the terminal changes from a stationary state to a moving state,
  • the terminal after detecting that the terminal changes from the quiescent state to the mobile state, the terminal automatically generates a corresponding defrosting instruction for thawing the application and process related to the ⁇ 8 service.
  • the user can input the thaw instruction.
  • the defrosting command includes biometric information, wherein the biometric information may be fingerprint information, iris information, voiceprint information, facial information, and the like. It should be noted that different applications can set different biometric information, and can also set the same biometric information, and can be customized according to the needs of the user.
  • Step 504 According to the thawing finger
  • the off application is thawed.
  • the thaw instruction pair automatically generated after detecting that the terminal changes from the stationary state to the moving state is frozen.
  • the application and process are thawed.
  • the frozen application is thawed by the obtained user-entered defrosting instruction, if the biometric information 0 in the defrosting instruction matches the preset biometric information, the background application and the background are The process performs a thaw operation.
  • the application freezing method when the terminal is in a static state, acquires a time interval at which the terminal moves the current time at the latest time, and when the time interval is greater than the preset time interval, the method needs to freeze and Off application; when it is detected that the terminal changes from a stationary state to a moving state,
  • the application is unfrozen, can intelligently freeze or unfreeze the application related to the 0?8 service according to the motion state information of the terminal, change the background freeze application type, freeze more applications, save more for the terminal Memory and power consumption.
  • the freezing the application related to the service according to the preset freeze policy includes step 602 - step 606. among them,
  • Step 602 Obtain the duration of the time interval. Obtain the time when the terminal moves the last time from the current time, and record the time interval from the current time. When the time interval is greater than the preset time interval, it indicates that the terminal is currently in a static state, and the background application and the background process related to the GPS service need to be frozen to obtain the duration of the time interval. Specifically, the timing can be started by the timer/timer for the last time the terminal moves 5 times from the current time, and the timing result is fed back in real time.
  • Step 604 Divide the freeze level into the duration; the freeze level is used to indicate the maximum allowed resource that can be used by the application related to the GPS service.
  • the freeze level is divided according to the duration of the acquired time interval.
  • the freeze level is used to indicate the maximum allowed resources that can be used by the configuration background application.
  • the resources that can be used represent the resources that the process can use at various times when it is executed by 0.
  • the maximum allowed resource represents the maximum resource that the process is allowed to use at various times. The longer the interval, the higher the freeze level, and the higher the freeze level, the fewer maximum allowed resources the background application can use.
  • the interaction mechanism between processes is mainly divided into a synchronization mechanism and a communication mechanism.
  • the communication mechanism includes socket, binder, shared memory and so on.
  • Binder is an interprocess communication mechanism that provides remote procedure call functionality.
  • the terminal may acquire the background process according to a preset frequency or according to the detected user operation instruction.
  • the process identifier of the background process may be obtained, and the process identifier is used to uniquely identify the corresponding process, and may be composed of a combination of one or more of a preset number of digits, letters, or other characters. For example, you can use the process ID "0001" for process A and "1234" for process B and so on.
  • the manner of dividing the freeze level can be set according to the needs of the user, and can be set in combination with the historical running time of the background application and the application type of the background application.
  • the division rules of the freeze level of each application may be the same or different, and the number of division levels may be the same or different.
  • the terminal may acquire a historical running time of the application related to the GPS service for 5 hours; divide the freezing level according to the historical running time; and the freezing level is used to indicate that the application related to the GPS service is configured to be used.
  • the maximum allowed resource; the corresponding level of freezing of the application related to the GPS service is performed according to the freeze level.
  • the terminal may acquire an application type of an application related to the GPS service; divide a freeze level according to the application type; and the freeze level is used to indicate a maximum allowable configuration of an application related to the GPS service. Resource; the corresponding level of freezing of the application associated with the GPS service is performed according to the freeze level. ⁇ 0 2019/128549 ⁇ (:17 ⁇ 2018/116536
  • Step 606 According to the freezing, etc.
  • the closed application freezes at the appropriate level.
  • the freeze level corresponding to the current time interval is determined according to the duration of the time interval. If the memory required by the background application is 40, if the freeze level is one level (lowest level), the resources are allocated to the background application according to level 5 such as level one freeze, and the maximum allowable for the background application. The resource is 30 ⁇ ; if the freeze level is level 4 (the highest level), the background application is allocated resources according to the level 1 freeze level, and the maximum allowable resource that the background application can use is 0. Among them, the highest level of freezing is completely frozen.
  • the above resources can be 1/0 file resources, etc. Take the resource as an example of memory.
  • the longer the interval the higher the freeze level.
  • the higher the freeze level the fewer the maximum allowed resources for the background application.
  • the freeze level is set according to the duration of the time interval, and as the duration increases, the level of freezing increases, but the maximum allowable resources that can be used by the background application are reduced until the background application is enabled. It is completely frozen. It takes a certain time process from partial freeze to full freeze. 5 Give the user a buffer time period. During this time period, the user can quickly and effectively unfreeze the background application and improve the user experience.
  • the root-root freeze level limits the maximum allowed resources that can be used by background applications, and can also allocate resources reasonably and reduce power consumption.
  • the freeze according to the preset freeze policy is
  • the related application includes steps 702 - 706. among them,
  • Step 702 When the terminal is in a stationary state, acquire and The first type of background application, and The second type of background application.
  • the first type of background application related to the 0-8 service refers to an application that implements location service by acquiring terminal location information, such as Baidu map, Gaode navigation, and the like.
  • the second type of background application related to the service refers to
  • the system needs to perform the 5 freeze application, which is usually the application with lower usage rate at the current time. For example, if the stop application is in the background running state, the step application can be frozen. .
  • the priority of the first type of background application is reduced, The first level is improved.
  • Service-related background applications and background processes are still working. It consumes 0 ⁇ 1; resources and memory usage, so the priority of the first type of background applications related to 0?8 services will be reduced, and the services will be non-zero.
  • the related second type of background applications are prioritized to freeze the application in a specific priority order.
  • Step 706 Freeze the first type of background application and the second type 5 background application according to a priority from low to high.
  • priority freeze The first type of background application, after freezing the first type of background application, freezes the second type of background application.
  • the freezing and the freezing according to the preset freezing policy further includes: when the terminal changes from a static state to a mobile state, the priority of the first type of background application that is related to the 0-8 service is increased, and the non-zero is changed. 8 Service-related second-class background applications have lower priority.
  • the terminal if the terminal is in a mobile state, it indicates that the user can There is a need, in this case, it is necessary to keep the applications and processes related to the 0?8 service in the running state, because the terminal will freeze when it is at rest.
  • the background application and the background process are closed to save resources.
  • the priority of the first type of background application related to the 6 8 service is improved, and the first type of application can be guaranteed. It is not frozen by priority, so that the terminal can be positioned normally.
  • an application freezing device configured to acquire motion of the terminal when the 0-8 service on the terminal is turned on. status information.
  • the determining module 820 is configured to determine, according to the motion state information of the terminal, whether the The application freezes.
  • the freezing module 830 is configured to freeze an application related to the 0-8 service according to a preset freeze policy when an application related to the 0 8 service needs to be frozen. ⁇ 0 2019/128549 ⁇ (:17 ⁇ 2018/116536
  • the determining module 820 is further configured to: when the terminal is in a static state, acquire a time interval at which the terminal moves the current time at a current time; when the time interval is greater than the preset time interval, Freeze applications related to the 0 ⁇ 8 service.
  • the determining module 820 is further configured to generate a pair when detecting that the terminal changes from a stationary state to a moving state. a thaw instruction of the closed application; according to the thaw instruction The off application is thawed.
  • the freezing module 830 is further configured to: when the time interval is greater than the preset time interval, acquire a duration of the time interval; divide a freeze level according to the duration; the freeze level is used to indicate the configuration The maximum allowed resource that can be used by the application related to the 0 8 service; according to the frozen ⁇ level The closed application freezes at the appropriate level.
  • the freezing module 830 is further configured to: when the terminal is in a static state, acquire a second type of background application related to the background application and the non-zero service; The priority of the first type of background application is lowered, The priority of the related second type of background application is increased; and the fifth type 1 background application and the second type background application are frozen in order according to the priority from low to high.
  • the freezing module 830 is further configured to: when the terminal changes from a stationary state to a mobile state, The priority of the first type of background application is improved, and the non- Service-related second-class background applications have lower priority.
  • the manner of acquiring the motion state information of the terminal includes acquiring at least one of a terminal, a speed sensor on the terminal, and an acceleration sensor on the terminal to obtain a motion state of the terminal. information.
  • the application freezing device obtains the motion state information of the terminal when the 0-8 service on the terminal is enabled by the obtaining module 810, and the determining module 820 determines whether it needs to be based on the motion state information of the terminal. Off the application to freeze, when it needs to freeze with
  • the freeze module 830 freezes the application related to the 0-8 service according to the preset freeze policy, and can be based on the state of the terminal The closed application freezes, improving the performance of the foreground application and reducing the power consumption of the terminal.
  • 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.
  • the embodiment of the present application also provides a computer readable storage medium. One or more non-transitory computer readable storage media containing computer executable instructions that, when executed by one or more processors, cause the processor to perform as in the various embodiments described above Described application freeze
  • 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 application freeze method described in the various embodiments above.
  • the embodiment of the present application further provides a terminal.
  • a terminal As shown in FIG. 9, for the convenience of description, only the parts related to the embodiments of the present application are shown. If the specific technical details are not disclosed, please 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 P0S (Point of Sales, a sales terminal), an on-board computer, a wearable device, and the like:
  • FIG. 9 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 910, a memory 920, an input unit 930, a display unit 940, a sensor 950, an audio circuit 960, a wireless fidelity (WiFi) module 970, and a processor. 980, and power supply 990 and other components.
  • RF radio frequency
  • the structure of the handset shown in Figure 9 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.
  • the RF circuit 910 can be used for receiving and transmitting information during the transmission or reception of information, and can receive and send the downlink information of the base station, and then send the uplink data 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) duplexer, and the like.
  • the RF circuit 910 can also communicate with the network and other devices via wireless communication.
  • the above wireless communication can 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), etc.
  • GSM Global System of Mobile communication
  • GPRS General Packet Radio Service
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • SMS Short Messaging Service
  • the memory 920 can be used to store software programs and modules, and the processor 980 executes various functional applications and data processing of the mobile phone by running software programs and modules stored in the memory 920.
  • the memory 920 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 program of a sound playing function, an application of an image playing function, etc.) Etc.;
  • the data storage area can store data created according to the use of the mobile phone (such as audio data, address book, etc.).
  • memory 920 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 930 can be used to receive input numeric or character information, as well as generate key signal inputs related to user settings and function control of the handset 900 ⁇ .
  • the input unit 930 can include a touch panel 931 and other input devices 932.
  • the touch panel 931 also referred to as a touch screen, can collect touch operations on or near the user (such as the user using a finger, a stylus, or the like on the touch panel 931 or near the touch panel 931. Operation), and drive the corresponding connection device according to a preset program.
  • the touch panel 931 can include two portions of the touch 5 detection device and the 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 980 is provided and can receive commands from the processor 980 and execute them.
  • the touch panel 931 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 930 may also include other input devices 932.
  • other input devices 932 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 940 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 940 can include a display panel 941.
  • the display panel 941 can be configured in the form of a Liquid Crystal Display (LCD) Organic Light-Emitting Diode (OLED).
  • the touch panel 931 can be covered.
  • the display panel 941 when the touch panel 931 detects a touch operation on or near it, transmits to the processor 980 to determine the type of the touch event, and then the processor 980 provides a corresponding display on the display panel 941 according to the type of the touch event. Visual output.
  • the touch panel 931 and the display panel 941 are used as two separate components to implement input and input of the mobile phone. ⁇ 0 2019/128549 ⁇ (:17 ⁇ 2018/116536
  • the touch panel 931 can be integrated with the display panel 941 to implement the input and output functions of the handset.
  • the handset 900 can also include at least one type of sensor 950, such as a light sensor, motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, where
  • Ambient light sensor adjusts the brightness of display panel 941 according to the brightness of the ambient light.
  • the proximity sensor can turn off display panel 941 and/or backlight when the phone moves to the ear.
  • 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 when stationary, 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.;
  • the phone can be equipped with other sensors such as gyroscope, gas pressure gauge, hygrometer, thermometer, infrared sensor, etc.
  • Audio circuit 960, speaker 961 and microphone 962 provide an audio interface between the user and the handset.
  • the audio circuit 960 can transmit the converted audio signal of the received audio data to the speaker 961, and convert it into a sound signal output by the speaker 961; on the other hand, the microphone 962 converts the collected sound signal into an electrical signal, and the audio circuit 960 After receiving, it is converted into audio data, and then the audio data is output to the processor 980 for processing, and then sent to another mobile phone via the circuit 910, or the audio data is output to the memory 920 for subsequent processing.
  • the mobile phone can help users to send and receive emails, browse web pages and access streaming media through the 1 module 970, which provides users with wireless broadband Internet access.
  • FIG. 9 shows the ⁇ ViFi module 970, it will be understood that it does not belong to the necessary configuration of the hand-held machine 900 and may be omitted as needed.
  • the processor 980 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 920, and invoking data stored in the memory 920, The phone's various functions and processing data, so that the overall monitoring of the phone.
  • processor 980 can include one or more processing units. 5
  • the processor 980 can integrate an application processor and a modem, wherein the application processor primarily processes an operating system, user pages, applications, etc.; the modem primarily processes wireless communications. It will be appreciated that the above modems may also not be integrated into the processor 980.
  • the processor 980 can integrate an application processor and a baseband processor, and the baseband processor and other peripheral chips can form a modem.
  • the handset 900 also includes a power source 990 (such as a battery) that supplies power to the various components.
  • the power source can be logically coupled to the processor 980 via a power management system.
  • the power management system is used to manage functions such as charging, discharging, and power management.
  • the handset 900 can also include a camera, a Bluetooth module, and the like.
  • the processor included in the mobile phone implements the application freezing method described in the foregoing embodiments when executing the computer program stored in the memory.
  • the application related to the GPS service can be frozen according to the state of the terminal, thereby improving the working performance of the foreground application and reducing the power consumption of the terminal.
  • 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 formats, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDR SDRAM) enhanced SDRAM (E SDRAM) synchronization chain.
  • Synchlink DRAM SLDRAM
  • Memory Bus Radbus
  • Direct RAM RDRAM
  • DRAM Direct Memory Bus Dynamic RAM
  • RDRAM vX' and Memory Bus Dynamic RAM

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Environmental & Geological Engineering (AREA)
  • Position Fixing By Use Of Radio Waves (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The present application relates to a method and apparatus for freezing an application, and to a terminal and a computer-readable storage medium. The method comprises: obtaining motion state information of a terminal when a GPS service on the terminal is enabled; determining, according to the motion state information of the terminal, whether an application related to the GPS service needs to be frozen; and freezing the application related to the GPS service according to a preset freeze policy when the application related to the GPS service needs to be frozen.

Description

\¥0 2019/128549 卩(:17 \2018/116536 应用冻结方法、 装置、 终端及计算机可读存储介质  \¥0 2019/128549 卩(:17 \2018/116536 application freezing method, device, terminal and computer readable storage medium
相关申请的交叉引用  Cross-reference to related applications
本申请要求于 2017 年 12 月 29 日提交中国专利局、 申请号为 CN 201711488980.4、 申请名称为 “应用冻结方法、 装置、 终端及计算机可读存储介 质” 的中国专利申请的优先权, 其全部内容通过引用结合在本申请中。 技术领域  This application claims the priority of the Chinese patent application filed on December 29, 2017, the Chinese Patent Office, the application number is CN 201711488980.4, and the application name is "application freezing method, device, terminal and computer readable storage medium". This is incorporated herein by reference. Technical field
本申请涉及数据处理领域, 特别是涉及一种应用冻结方法、 装置、 终端及计 算机可读存储介质。 背景技术  The present application relates to the field of data processing, and in particular, to an application freezing method, apparatus, terminal, and computer readable storage medium. Background technique
随着移动通信技术的发展,智能终端的功能越来越强,应用程序也越来越多。 为了避免不需要的应用在后台运行、 或未被用户合理使用的应用在前台运行, 占 用***内存、 消耗终端设备的电量, 一般会冻结不需要或未被用户合理使用的应 用。 但仍有一些后台应用程序不能被合理优化资源, 例如当 0卩8服务开启之后, 不管终端当前是否需要使用 0?8服务,
Figure imgf000003_0001
关的应用都会在后台工作消耗 资源, 使终端的前台应用运行变慢, 耗费终端的电量。 发明内容
With the development of mobile communication technology, the functions of intelligent terminals are getting stronger and stronger, and the number of applications is increasing. In order to prevent unwanted applications from running in the background, or applications that are not reasonably used by users, running in the foreground, occupying system memory and consuming power of terminal devices, applications that are not needed or are not reasonably used by users are generally frozen. However, there are still some background applications that cannot be reasonably optimized for resources. For example, when the 0卩8 service is turned on, regardless of whether the terminal currently needs to use the 0?8 service,
Figure imgf000003_0001
The closed application will consume resources in the background, making the terminal's foreground application run slower and consume the terminal's power. Summary of the invention
本申请实施例提供一种应用冻结方法、 装置、 终端及计算机可读存储介质, 能够根据终端的运动状态信息冻结与
Figure imgf000003_0002
关的后台应用程序, 优化前台 应用程序的运行性能。
The embodiment of the present application provides an application freezing method, a device, a terminal, and a computer readable storage medium, which can freeze according to the motion state information of the terminal.
Figure imgf000003_0002
Close the background application to optimize the running performance of the foreground application.
一种应用冻结方法, 用于冻结终端上运行的应用程序, 所述方法包括: 当所述终端上的 0?8服务开启时, 获取所述终端的运动状态信息; 根据所述终端的运动状态信息判断是否需要
Figure imgf000003_0003
关的应用 程序进行冻结;
An application freezing method, configured to freeze an application running on a terminal, the method includes: acquiring, when the 0-8 service on the terminal is enabled, motion state information of the terminal; Information judgment needs
Figure imgf000003_0003
The closed application is frozen;
服务相关的应用程序时, 根据预设冻结策略冻结与
Figure imgf000003_0004
序。
When the service-related application is frozen, it is frozen according to the preset freeze policy.
Figure imgf000003_0004
sequence.
一种应用冻结装置, 包括: \¥0 2019/128549 卩(:17 \2018/116536 An application freezing device includes: \¥0 2019/128549 卩(:17 \2018/116536
获取模块, 用于当所述终端上的 〇?8 服务开启时, 获取所述终端的运动状 态信息; An obtaining module, configured to acquire motion state information of the terminal when the service on the terminal is enabled;
判断模块, 用于根据所述终端的运动状态信息判断是否需要对与所述 0?8 服务相关的应用程序进行冻结;  a determining module, configured to determine, according to the motion state information of the terminal, whether the application related to the 0?8 service needs to be frozen;
冻结模块, 用于当需要冻结与
Figure imgf000004_0001
务相关的应用程序时, 根据预设 冻结策略
Figure imgf000004_0002
关的应用程序。
Freeze module, used when it needs to freeze
Figure imgf000004_0001
When you are related to the application, according to the preset freeze policy
Figure imgf000004_0002
Off the app.
一种终端, 包括存储器及处理器, 所述存储器中储存有计算机可读指令, 所 述指令被所述处理器执行时, 使得所述处理器执行所述的方法的步骤。  A terminal, comprising a memory and a processor, wherein the memory stores computer readable instructions that, when executed by the processor, cause the processor to perform the steps of the method.
一种计算机可读存储介质, 其上存储有计算机程序, 所述计算机程序被处理 器执行时实现所述的方法的步骤。  A computer readable storage medium having stored thereon a computer program that, when executed by a processor, implements the steps of the method.
上述应用冻结方法、 装置、 终端及计算机可读存储介质, 通过当所述终端上
Figure imgf000004_0003
务开启时, 获取所述终端的运动状态信息, 根据所述终端的运动状态 信息判断是否需要对与所述 0?8 服务相关的应用程序进行冻结, 当需要冻结与
Figure imgf000004_0004
The above application freezing method, device, terminal and computer readable storage medium are passed through the terminal
Figure imgf000004_0003
When the service is enabled, acquiring the motion state information of the terminal, determining, according to the motion state information of the terminal, whether the application related to the 0-8 service needs to be frozen, when it is required to freeze and
Figure imgf000004_0004
的应用程序, 能够根据终端所处的状态对与 0?8 服务相关的应用进行冻结, 提 升前台应用的工作性能, 降低终端功耗。 附图说明 The application can freeze the application related to the 0?8 service according to the state of the terminal, improve the working performance of the foreground application, and reduce the power consumption of the terminal. 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 description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is some embodiments of the present application, and those skilled in the art can obtain other drawings according to these drawings without any creative work.
图 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 schematic flow chart of an application freezing method in an embodiment;
图 4为另一个实施例中应用冻结方法的流程示意图;  4 is a schematic flow chart of an application freezing method in another embodiment;
图 5为另一个实施例中应用冻结方法的流程示意图;  5 is a schematic flow chart of an application freezing method in another embodiment;
图 6为另一个实施例中应用冻结方法的流程示意图;  6 is a schematic flow chart of an application freezing method in another embodiment;
图 7为另一个实施例中应用冻结方法的流程示意图;  7 is a schematic flow chart of an application freezing method in another embodiment;
图 8为一个实施例中应用冻结装置的结构框图; 图 9为与本申请实施例提供的终端相关的手机的部分结构的框图。 具体实施方式 Figure 8 is a block diagram showing the structure of an application freezing device in an embodiment; FIG. 9 is a block diagram showing a partial structure of a mobile phone related to a terminal provided by an embodiment of the present application. 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.
除非另有定义, 本文所使用的所有的技术和科学术语与属于本申请的技术领 域的技术人员通常理解的含义相同。 本文中在本申请的说明书中所使用的术语只 是为了描述具体的实施例的目的, 不是旨在限制本申请。 可以理解, 本申请所使 用的术语 “第二” 等可在本文中用于描述各种元件, 但这些元件不受这 些术语限制。 这些术语仅用于将第一个元件与另一个元件区分。 举例来说, 在不 脱离本申请的范围的情况下,可以将第一应用程序称为第二应用程序,且类似地, 可将第二进应用程序为第一应用程序。 第一应用程序和第二应用程序两者都是应 用程序, 但其不是同一应用程序。  All technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art of the present application, unless otherwise defined. The terminology used herein is for the purpose of describing particular embodiments and is not intended to be limiting. It will be understood that the term "second" or 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, the first application may be referred to as a second application without departing from the scope of the present application, and similarly, the second incoming application may be the first application. Both the first application and the second application are applications, but they are not the same application.
在一个实施例中, 如图 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 calculation 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 that can be executed by the processor to implement the application-free application freeze method 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-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 an application freezing method provided by the above various embodiments, for example, information such as the name of each application or process, the size of the occupied memory, and the like may be stored. The computer program can be executed by a processor for implementing an application freezing 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 first process, and can also be used for detecting a touch operation applied to the display screen, and generating corresponding instructions, such as before execution. Switching instructions for background applications, etc.
本领域技术人员可以理解, 图 1中示出的结构, 仅仅是与本申请方案相关的 部分结构的框图, 并不构成对本申请方案所应用于其上的终端的限定, 具体的终 端可以包括比图中所示更多或更少的部件, 或者组合某些部件, 或者具有不同的 部件布置。 如该终端还包括通过***总线连接的网络接口, 网络接口可以是以太 网卡或无线网卡等,用于与外部的终端进行通信,比如可用于同服务器进行通信。Those skilled in the art can understand that the structure shown in FIG. 1 is only related to the solution of the present application. The block diagram of the partial structure does not constitute a limitation of the terminal to which the solution of the present application is applied, and the specific terminal may include more or less components than those shown in the figure, or combine some components or have different components. Arrangement. 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.
5 在一个实施例中, 如图 2所示, 提供了一种终端的部分架构图。 其中, 该终 端的架构***中包括 JAVA空间层 210、 本地框架层 220以及内核 ( Kernel )空间层 230。 JAVA空间层 210上可包含冻结和解冻应用 212 , 终端可通过该冻结和解冻应 用 212来实现对各个应用的冻结策略, 对后台耗电的相关应用做冻结操作。 本地 框架层 220中包含资源优先级和限制管理模块 222和平台冻结管理模块 224。 终端 〇 可通过资源优先级和限制管理模块 222实时维护不同的应用处于不同优先级和不 同资源的组织中, 并根据上层的需求来调整应用程序的资源组别从而达到优化性 能, 节省功耗的作用。 终端可通过平台冻结管理模块 224将后台可以冻结的任务 按照进入冻结时间的长短, 分配到对应预设的不同层次的冻结层, 可选地, 该冻 结层可包括三个, 分别是: CPU限制睡眠模式、 CPU冻结睡眠模式、 进程深度冻5 结模式。 其中, 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)来管理第三方应用的资源或进行冻结。 相比较于基于进程身份标5 识 (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用于解决出现冻结超时场景 5 产生的异常。 通过上述的架构, 可实现本申请各个实施例中的应用冻结方法。 5 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 space layer 230. The freeze and thaw application 212 can be included on the JAVA spatial layer 210. The freeze and thaw application 212 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 restriction 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 consumption. effect. The terminal may use the platform freeze management module 224 to assign the tasks that can be frozen in the background to the freeze layer of 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 5 knot 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 by the process; CPU freeze sleep mode means that the related process is prohibited from using the CPU, but reserves the memory. When the CPU resources are forbidden, the corresponding network resources and I The /O interface resource is also forbidden to use; the process depth 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 recovery module 234, and a freeze timeout 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 perform freezing. Compared with the Process Identifier (PID) based on process ID, 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 limiting 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 framework or application sends a resource restriction through the provided binder interface or The frozen instructions are given to the resource priority and limit management module 222 and the platform freeze management module 224. 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 freeze timeout exit module 235 is configured to resolve the exception generated by the freeze timeout scenario 5. Through the above architecture, the application freezing method in various embodiments of the present application can be implemented.
在一个实施例中, 如图 3所示, 提供了一种应用冻结方法, 用于冻结终端上 运行的应用程序。 本实施例以该方法应用于如图 1所示的终端为例进行说明。 该 应用冻结方法, 包括步骤 302 -步骤 306。 其中,  In one embodiment, as shown in Figure 3, an application freeze method is provided for freezing an application running on a terminal. This embodiment is described by using the method as shown in FIG. 1 as an example. The application freeze method includes steps 302 - 306. among them,
步骤 302:当所述终端上的 GPS服务开启时,获取所述终端的运动状态信息。 〇 其中, GPS( Global Positioning System, 全球定位***)是能够利用 GPS定 位卫星, 在全球范围内实时进行定位、 导航的***, 终端一般内置 GPS 定位模 块。 当用户需要获取终端位置信息时, 可以手动开启终端上的 GPS 服务, 利用 终端上的 GPS定位模块将终端的位置信号发送到定位后台从而实现定位。 例如, 当用户需要导航时, 通常会先启用 GPS服务, 再运行具有导航功能的应用程序,5 如百度地图、 高德导航等, 此时该应用程序会获取终端的位置信息, 并根据用户 输入的目的地信息进行路径规划。  Step 302: Acquire motion state information of the terminal when the GPS service on the terminal is turned on. GPS Among them, GPS (Global Positioning System) is a system that can locate and navigate in real time on a global scale using GPS positioning satellites. The terminal usually has a built-in GPS positioning module. When the user needs to obtain the terminal location information, the GPS service on the terminal can be manually turned on, and the location signal of the terminal is sent to the positioning background by using the GPS positioning module on the terminal to achieve positioning. For example, when the user needs to navigate, usually the GPS service is enabled first, then the application with navigation function is run, such as Baidu map, Gaode navigation, etc., at this time, the application will obtain the location information of the terminal, and according to the user input. The destination information is routed.
终端的运动状态信息指的是终端当前所处的静止状态或移动状态, 若终端处 于静止状态则表示此时终端的位置一直停留在原地没有发生变化。 例如, 当用户 到达目的地后停留在目的地, 但终端上的 GPS 服务以及进行导航的应用程序仍0 处于开启状态, 此时获取到终端处于静止的运动状态信息; 若终端处于移动状态 则表示此时终端的位置持续发生变化, 例如用户在导航的途中, 终端随着用户的 位置变化而变化。  The motion state information of the terminal refers to the stationary state or the moving state where the terminal is currently located. If the terminal is in the static state, it means that the location of the terminal has not changed in the original place. For example, when the user arrives at the destination and stays at the destination, but the GPS service on the terminal and the application for navigation are still 0, then the terminal is in a stationary state of motion information; if the terminal is in the mobile state, it means At this time, the position of the terminal continues to change, for example, the user is on the way of navigation, and the terminal changes as the position of the user changes.
在一个实施例中, 可以通过获取终端的 GPS信息, 实时监听终端的 GPS信 息是否发生变化, 若大于预设时长终端的 GPS 信息都没有发生变化, 则可认为5 此时终端处于静止状态, 若终端的 GPS 信息显示坐标变化, 则认为此时终端处 于移动状态。  In an embodiment, the GPS information of the terminal may be monitored in real time to monitor whether the GPS information of the terminal changes. If the GPS information of the terminal is not changed, the terminal may be considered to be at a static state. When the GPS information of the terminal shows the coordinate change, it is considered that the terminal is in the moving state at this time.
在一个实施例中, 可以通过终端上的加速度传感器获取终端不同时间点的加 速度, 通过加速度的积分获取速度和位移, 通过水平上是否有速度或位移判断是 否运动, 如果该加速度在不断变化, 且加速度的方向也在变化, 则判定终端处于0 移动状态。 同理, 若加速度的大小和方向都没有发生变化, 则判定终端处于静止 \¥0 2019/128549 卩(:17 \2018/116536 In an embodiment, the acceleration of the terminal at different time points can be obtained by the acceleration sensor on the terminal, the speed and the displacement are obtained by the integral of the acceleration, and whether the motion is determined by the speed or displacement in the horizontal, if the acceleration is constantly changing, and The direction of the acceleration is also changing, and it is determined that the terminal is in the 0 moving state. Similarly, if the magnitude and direction of the acceleration do not change, it is determined that the terminal is at rest. \¥0 2019/128549 卩(:17 \2018/116536
状态。 status.
可选地, 还可以通过终端上的速度传感器获取终端在不同时间段的移动速 度, 若终端的存在一定移动速度, 则认为此时终端处于移动状态; 若终端的移动 速度为零或小于预设速度阈值, 则认为此时终端处于静止状态。  Optionally, the speed of the terminal in different time periods may be acquired by using a speed sensor on the terminal. If the terminal has a certain moving speed, the terminal is considered to be in a moving state; if the moving speed of the terminal is zero or less than the preset At the speed threshold, it is considered that the terminal is at a standstill at this time.
5 可选地, 还可以通过终端的速度传感器、 加速度传感器和方向传感器中的两 个或三个一起来判断终端的运动状态信息, 判定效果更准确。  5 Optionally, the motion state information of the terminal may be judged by using two or three of the speed sensor, the acceleration sensor and the direction sensor of the terminal together, and the determination effect is more accurate.
步骤 304:根据所述终端的运动状态信息判断是否需要对与所述 0?8服务相 关的应用程序进行冻结。  Step 304: Determine, according to the motion state information of the terminal, whether it is necessary to freeze the application related to the 0?8 service.
其中, 终端上的应
Figure imgf000008_0001
?)指为完成某项或多项特定工0 作的计算机程序, 它运行在用户模式, 可以和用户进行交互, 具有可视的用户界 面。
Figure imgf000008_0002
常还会
Figure imgf000008_0003
Among them, the terminal should
Figure imgf000008_0001
? ) refers to a computer program that performs one or more specific tasks. It runs in user mode and can interact with the user, with a visual user interface.
Figure imgf000008_0002
Often still
Figure imgf000008_0003
的程序关于某数据集合上的一次运行活动, 是***进行资源分配和调度的基本单 位, 是操作***结构的基础。 一个应用程序的运行通常是由相关的多个进程的运 行而体现的。 The program is a basic unit of resource allocation and scheduling, and is the basis of the operating system structure. The operation of an application is usually exemplified by the operation of multiple related processes.
5 具体地, 当终端上
Figure imgf000008_0004
若检测到此时终端处于静止状态, 并且终端处于静止状态的持续时间超过一定时间时, 则说明用户此时对于
Figure imgf000008_0005
服务的需要不高, 此时与
Figure imgf000008_0006
关的后台应用程序和后台进程仍处于工作
Figure imgf000008_0007
关的后台应用程 序和进程进行冻结。
5 specifically, when on the terminal
Figure imgf000008_0004
If it is detected that the terminal is in a static state at this time, and the duration of the terminal is at a stationary state exceeds a certain time, the user is
Figure imgf000008_0005
The service needs are not high, at this time with
Figure imgf000008_0006
Off background applications and background processes are still working
Figure imgf000008_0007
The closed background applications and processes are frozen.
〇 若终端处于移动状态, 则表明用户可能对 0?8 服务有需求, 此时需要保持 与 0?8服务相关的应用程序和进程处于运行状态。 〇 If the terminal is in a mobile state, it indicates that the user may have a demand for the 0?8 service. In this case, it is necessary to keep the applications and processes related to the 0?8 service running.
可选地, 终端可能是由静止状态切换为移动状态, 由于终端在静止状态时会 冻结与 0?8 相关的后台应用程序和后台进程以节省资源, 当检测到终端由静止 状态切换为移动状态时,
Figure imgf000008_0008
关的后台应用程序和后台进程进行解冻,5 正常定位。
Optionally, the terminal may be switched from the quiescent state to the mobile state, and the background application and the background process related to 0-8 are frozen to save resources when the terminal is in a static state, and when the terminal is detected to be switched from the quiescent state to the mobile state, Time,
Figure imgf000008_0008
The closed background application and background process are thawed, 5 normal positioning.
Figure imgf000008_0009
服务相关的应用程序时, 根据预设冻结策 略冻结与所述 0?8服务相关的应用程序。
Figure imgf000008_0009
When the service-related application is serviced, the application related to the 0-8 service is frozen according to the preset freeze policy.
当需要冻结与 0?8 服务相关的后台应用程序和后台进程时, 则根据预设策 略对该后台应用程序和后台进程进行冻结操作, 可以根据终端所处的状态来设定0 相应的冻结策略来实现对后台应用程序和后台进程的冻结操作。 例如, 可以根据 \¥0 2019/128549 卩(:17 \2018/116536 When the background application and the background process related to the 0?8 service need to be frozen, the background application and the background process are frozen according to the preset policy, and the corresponding freezing policy can be set according to the state of the terminal. To freeze the background application and background processes. For example, it can be based on \¥0 2019/128549 卩(:17 \2018/116536
终端改变状态的时间间隔时长来设定不同的冻结等级, 根据冻结等级来实现对后 台应用程序和后台进程的冻结。还可以根据终端的运动状态信息设置后台应用的 优先级, 按照优先级顺序来对后台应用程序和后台进程进行冻结。 The terminal changes the state interval time to set different freeze levels, and freezes the back-end application and background processes according to the freeze level. It is also possible to set the priority of the background application according to the motion state information of the terminal, and freeze the background application and the background process according to the priority order.
上述应用冻结方法, 通过当所述终端上的
Figure imgf000009_0001
获取所述终端 5 的运动状态信息, 根据所述终端的运动状态信息判断是否需要
Figure imgf000009_0002
The above application freezing method, by using on the terminal
Figure imgf000009_0001
Obtaining motion state information of the terminal 5, determining whether it is needed according to the motion state information of the terminal
Figure imgf000009_0002
务相关的应用程序进行冻结, 当需要冻结与所述 0?8 服务相关的应用程序时, 根据预设冻结策略冻结与所述
Figure imgf000009_0003
关的应用程序, 能够根据终端所处的 状态对与 0?8 服务相关的应用进行冻结, 提升前台应用的工作性能, 降低终端 功耗。
The related application freezes, when it is necessary to freeze the application related to the 0-8 service, according to the preset freeze policy freeze and
Figure imgf000009_0003
The closed application can freeze the application related to the 0?8 service according to the state of the terminal, improve the working performance of the foreground application, and reduce the power consumption of the terminal.
〇 在一个实施例中, 如图 4所示, 所述根据终端的运动状态信息判断是否需要
Figure imgf000009_0004
关的应用程序进行冻结, 包括步骤 402 -步骤 404。 其中, 步骤 402: 当所述终端处于静止状态时, 获取所述终端在最近一次进行移动 的时刻, 记录所述时刻距离当前时刻的时间间隔。
In an embodiment, as shown in FIG. 4, the determining, according to the motion state information of the terminal, is required.
Figure imgf000009_0004
The closed application is frozen, including steps 402 - 404. Step 402: When the terminal is in a static state, acquire a time interval at which the terminal moves last time, and record a time interval of the time from the current time.
当检测到终端处于静止状态时, 获取终端距离当前时刻最近一次进行移动的5 时刻, 记录该时刻距离当前时刻的时间间隔。 在检测到终端处于静止状态时, 则 终端可能是在
Figure imgf000009_0005
由移动状态切换为静止状态, 而终端在处于移动 状态的过程中对 0?8服务有较高需求, 当终端切换为静止状态后对 0?8服务的 需求降低。根据终端距离当前时刻最近一次进行移动的时刻距离当前时刻的时间 间隔, 能够确定终端是否处于稳定的静止状态, 若终端只是短暂停留, 则无需改0 变终端上的后台应用程序和后台进程的运行状态。
When it is detected that the terminal is in a stationary state, the time interval 5 is the last time the terminal moves from the current time, and the time interval from the current time is recorded. When it is detected that the terminal is at a standstill, the terminal may be
Figure imgf000009_0005
The mobile state is switched to the stationary state, and the terminal has a high demand for 0-8 service in the process of being in the mobile state, and the demand for the 0-8 service is reduced when the terminal is switched to the stationary state. According to the time interval between the moment when the terminal moves last time from the current time and the current time, it can be determined whether the terminal is in a stable static state. If the terminal only stays for a short time, it is not necessary to change the running of the background application and the background process on the terminal. status.
举例说明, 若当前时刻为早上 09:30:00 , 此时终端的后台正在运行 “高德导 航”, 在当前时刻 (09:30:00), 终端会获取距离当前时刻 (09:30:00)最近一次检 测到终端的位置发生变化的时间点, 若终端最近一次移动的时间点为 09:20:00 , 则可以获取距离当前时刻的时间间隔, 该时间间隔为 10分钟。 For example, if the current time is 09:30:00 in the morning, the background of the terminal is running “Gao De Navigation”. At the current time (09:30:00), the terminal will get the current time (09:30:00). The time when the location of the terminal has changed is detected last time. If the last time the terminal moves is 09:20:00, the time interval from the current time can be obtained, and the time interval is 10 minutes.
5 步骤 404: 当所述时间间隔大于预设时间间隔时, 则需要冻结与
Figure imgf000009_0006
5 Step 404: When the time interval is greater than the preset time interval, it needs to be frozen and
Figure imgf000009_0006
关的应用程序。  Off the app.
实时记录终端最近一次移动的时间点距离当前时间点的时间间隔, 当该时间 间隔大于预设时间间隔时, 确定终端当前处于静止状态, 此时终端对 6卩8 服务 相关的后台应用程序和后台进程的需要不高, 则需要冻
Figure imgf000009_0007
服务相关的后0 台应用程序和后台进程。 \¥0 2019/128549 卩(:17 \2018/116536
Real-time recording the time interval of the last time the terminal moves from the current time point. When the time interval is greater than the preset time interval, it is determined that the terminal is currently in a static state. At this time, the terminal is related to the background application and background of the service. The process needs are not high, then you need to freeze
Figure imgf000009_0007
Service-related back-end applications and background processes. \¥0 2019/128549 卩(:17 \2018/116536
在一个实施例中, 如图 5所示, 所述根据终端的运动状态信息判断是否需要 对与所述 0?8服务相关的应用程序进行冻结, 还包括步骤 502 -步骤 504 其中, 步骤 502:当检测到所述终端由静止状态变为移动状态时,
Figure imgf000010_0001
In an embodiment, as shown in FIG. 5, the determining, according to the motion state information of the terminal, whether it is necessary to freeze the application related to the 0-8 service, further includes step 502 - step 504, where step 502: When it is detected that the terminal changes from a stationary state to a moving state,
Figure imgf000010_0001
服务相关的应用程序的解冻指令。  Thaw instructions for service-related applications.
5 实时检测终端的运动状态信息, 在确定终端处于静止状态后, 当检测到终端 的位置信息开始发生变化, 即可确定终端由静止状态切换为移动状态。 终端处于
Figure imgf000010_0002
5 Real-time detection of the motion state information of the terminal. After determining that the terminal is in a static state, when it is detected that the location information of the terminal begins to change, it can be determined that the terminal is switched from the stationary state to the mobile state. Terminal is at
Figure imgf000010_0002
关的应用程序和进程进行解冻操作。  The closed applications and processes are thawed.
具体地, 当检测到终端由静止状态变为移动状态后, 终端自动生成相应的解 〇 冻指令, 用于对与 0卩8服务相关的应用程序和进程进行解冻。 可选地, 当后台应 用程序和后台进程被冻结后, 需要对相应的应用程序和进程进行解冻处理时, 还 可以通过获取用户输入的解冻指令。 解冻指令中包括生物特征信息, 其中, 生物 特征信息可以为指纹信息、 虹膜信息、 声纹信息、 面部信息等等。 需要说明的是, 不同的应用可以设定不同的生物特征信息, 也可以设定相同的生物特征信息, 可5 以根据用户的需求进行自定义设置。  Specifically, after detecting that the terminal changes from the quiescent state to the mobile state, the terminal automatically generates a corresponding defrosting instruction for thawing the application and process related to the 卩8 service. Optionally, when the background application and the background process are frozen, and the corresponding application and process need to be thawed, the user can input the thaw instruction. The defrosting command includes biometric information, wherein the biometric information may be fingerprint information, iris information, voiceprint information, facial information, and the like. It should be noted that different applications can set different biometric information, and can also set the same biometric information, and can be customized according to the needs of the user.
步骤 504: 根据所述解冻指
Figure imgf000010_0003
关的应用程序进行解冻。 根据检测到终端由静止状态变为移动状态后自动生成的解冻指令对已冻结
Figure imgf000010_0004
的应用程序和进程进行解冻。 可选地, 当通过获取到的用户 输入的解冻指令对已冻结的应用程序进行解冻时, 若解冻指令中的生物特征信息0 与预设的生物特征信息相匹配, 则对后台应用程序和后台进程进行解冻操作。
Step 504: According to the thawing finger
Figure imgf000010_0003
The off application is thawed. The thaw instruction pair automatically generated after detecting that the terminal changes from the stationary state to the moving state is frozen.
Figure imgf000010_0004
The application and process are thawed. Optionally, when the frozen application is thawed by the obtained user-entered defrosting instruction, if the biometric information 0 in the defrosting instruction matches the preset biometric information, the background application and the background are The process performs a thaw operation.
上述应用冻结方法, 当所述终端处于静止状态时, 获取所述终端最近时刻进 行移动距离当前时刻的时间间隔, 当所述时间间隔大于预设时间间隔时, 则需要 冻结与
Figure imgf000010_0005
关的应用程序; 当检测到终端由静止状态变为移动状态时,
Figure imgf000010_0006
The application freezing method, when the terminal is in a static state, acquires a time interval at which the terminal moves the current time at the latest time, and when the time interval is greater than the preset time interval, the method needs to freeze and
Figure imgf000010_0005
Off application; when it is detected that the terminal changes from a stationary state to a moving state,
Figure imgf000010_0006
5 关的应用程序进行解冻, 能够根据终端的运动状态信息智能地对与 0?8 服务相 关的应用程序进行冻结或解冻操作,改变后台冻结应用类型,可以冻结更多应用, 为终端节省更多内存 间和功耗。 5 The application is unfrozen, can intelligently freeze or unfreeze the application related to the 0?8 service according to the motion state information of the terminal, change the background freeze application type, freeze more applications, save more for the terminal Memory and power consumption.
在一个实施例中, 如图 6所示, 所述根据预设冻结策略冻结与所述 0 8服 务相关的应用程序, 包括步骤 602 -步骤 606。 其中,  In an embodiment, as shown in FIG. 6, the freezing the application related to the service according to the preset freeze policy includes step 602 - step 606. among them,
〇 步骤 602: 获取所述时间间隔的时长。 获取终端距离当前时刻最近一次进行移动的时刻, 并记录该时刻距离当前时 刻的时间间隔。 当该时间间隔大于预设的时间间隔时, 即表示终端当前处于静止 状态, 需要冻结与 GPS 服务相关的后台应用程序和后台进程, 获取该时间间隔 持续的时长。具体地,可以通过定时器 /计时器对终端距离当前时刻最近一次进行 5 移动的时刻开始计时, 实时反馈计时结果。 Step 602: Obtain the duration of the time interval. Obtain the time when the terminal moves the last time from the current time, and record the time interval from the current time. When the time interval is greater than the preset time interval, it indicates that the terminal is currently in a static state, and the background application and the background process related to the GPS service need to be frozen to obtain the duration of the time interval. Specifically, the timing can be started by the timer/timer for the last time the terminal moves 5 times from the current time, and the timing result is fed back in real time.
步骤 604: 相 4居所述时长划分冻结等级; 所述冻结等级用于指示配置所述与 GPS服务相关的应用程序所能使用的最大允许资源。  Step 604: Divide the freeze level into the duration; the freeze level is used to indicate the maximum allowed resource that can be used by the application related to the GPS service.
根据获取的时间间隔的时长, 来划分冻结等级。 其中, 冻结等级用于指示配 置后台应用程序所能使用的最大允许资源。 其中, 所能使用的资源表示进程在被0 执行的各个时刻下, 所能使用的资源。 最大允许资源表示进程在各个时刻下允许 被使用的最大资源。 间隔时间越长, 其冻结等级也就越高, 其冻结等级越高, 其 后台应用程序所能使用的最大允许资源也就越少。  The freeze level is divided according to the duration of the acquired time interval. The freeze level is used to indicate the maximum allowed resources that can be used by the configuration background application. Among them, the resources that can be used represent the resources that the process can use at various times when it is executed by 0. The maximum allowed resource represents the maximum resource that the process is allowed to use at various times. The longer the interval, the higher the freeze level, and the higher the freeze level, the fewer maximum allowed resources the background application can use.
终端中有多个处于运行状态的进程, 在操作***中, 进程之间的交互机制主 要分为同步机制和通信机制。 其中, 通信机制包括 socket、 binder、 共享内存等。 There are multiple processes in the terminal in the running state. In the operating system, the interaction mechanism between processes is mainly divided into a synchronization mechanism and a communication mechanism. Among them, the communication mechanism includes socket, binder, shared memory and so on.
5 网络上的两个程序通过一个双向的通信连接实现数据的交换, 这个连接的一端称 为一个 socket。 Binder是一种进程间通信机制, 提供远程过程调用功能。 5 The two programs on the network exchange data through a two-way communication connection. One end of the connection is called a socket. Binder is an interprocess communication mechanism that provides remote procedure call functionality.
终端可按照预设的频率或者根据检测到的用户操作指令来获取后台进程。 可 选地, 可获取该后台进程的进程标识, 进程标识用于唯一标识对应的进程, 可由 预设位数的数字、 字母或者其他字符中的一种或几种的组合所构成。 比如, 可以 〇 以进程标识 “0001” 表示进程 A, 以 “1234” 表示进程 B等。  The terminal may acquire the background process according to a preset frequency or according to the detected user operation instruction. Alternatively, the process identifier of the background process may be obtained, and the process identifier is used to uniquely identify the corresponding process, and may be composed of a combination of one or more of a preset number of digits, letters, or other characters. For example, you can use the process ID "0001" for process A and "1234" for process B and so on.
需要说明的是, 冻结等级的划分方式可以根据用户的需求来设定, 可以结合 后台应用程序的历史运行时长、 后台应用程序的应用类型来设定。 其中, 每个应 用程序的冻结等级的划分规则可以相同, 也可以不同, 划分的等级数可以相同, 也可以不同。 例如, 终端可以获取与所述 GPS 服务相关的应用程序的历史运行5 时长; 根据所述历史运行时长划分冻结等级; 所述冻结等级用于指示配置与所述 GPS服务相关的应用程序所能使用的最大允许资源;根据所述冻结等级对与所述 GPS服务相关的应用程序进行相应等级的冻结。 例如, 终端可以获取与所述 GPS 服务相关的应用程序的应用类型; 根据所述应用类型划分冻结等级; 所述冻结等 级用于指示配置与所述 GPS 服务相关的应用程序所能使用的最大允许资源; 根 〇 据所述冻结等级对与所述 GPS服务相关的应用程序进行相应等级的冻结。 \¥0 2019/128549 卩(:17 \2018/116536 It should be noted that the manner of dividing the freeze level can be set according to the needs of the user, and can be set in combination with the historical running time of the background application and the application type of the background application. The division rules of the freeze level of each application may be the same or different, and the number of division levels may be the same or different. For example, the terminal may acquire a historical running time of the application related to the GPS service for 5 hours; divide the freezing level according to the historical running time; and the freezing level is used to indicate that the application related to the GPS service is configured to be used. The maximum allowed resource; the corresponding level of freezing of the application related to the GPS service is performed according to the freeze level. For example, the terminal may acquire an application type of an application related to the GPS service; divide a freeze level according to the application type; and the freeze level is used to indicate a maximum allowable configuration of an application related to the GPS service. Resource; the corresponding level of freezing of the application associated with the GPS service is performed according to the freeze level. \¥0 2019/128549 卩(:17 \2018/116536
步骤 606:根据所述冻结等
Figure imgf000012_0001
关的应用程序进行相应等 级的冻结。
Step 606: According to the freezing, etc.
Figure imgf000012_0001
The closed application freezes at the appropriate level.
才艮据时间间隔的时长确定当前时间间隔所对应的冻结等级。 若当后台应用程 序执行时所需的内存为 40 , 若冻结等级为一级(最低级), 则根据一级冻结等 5 级给后台应用程序进行分配资源, 后台应用程序所能使用的最大允许资源为 30^; 若冻结等级为四级(最高级), 则根据一级冻结等级给后台应用程序分配 资源, 后台应用程序所能使用的最大允许资源为 0 。 其中, 最高等级的冻结等 级为完全冻结状态。  The freeze level corresponding to the current time interval is determined according to the duration of the time interval. If the memory required by the background application is 40, if the freeze level is one level (lowest level), the resources are allocated to the background application according to level 5 such as level one freeze, and the maximum allowable for the background application. The resource is 30^; if the freeze level is level 4 (the highest level), the background application is allocated resources according to the level 1 freeze level, and the maximum allowable resource that the background application can use is 0. Among them, the highest level of freezing is completely frozen.
其中,上述的资源可
Figure imgf000012_0002
1/0文件资源等。以资源为内存来举例说明,0 间隔时间越长, 冻结等级也就越高; 冻结等级越高, 其后台应用程序所能使用的 最大允许资源也就越少。
Among them, the above resources can be
Figure imgf000012_0002
1/0 file resources, etc. Take the resource as an example of memory. The longer the interval, the higher the freeze level. The higher the freeze level, the fewer the maximum allowed resources for the background application.
上述方法中, 根据时间间隔的时长来设定冻结等级, 随着时长的增加, 冻结 的等级也随着增加, 但是, 其后台应用所能使用的最大允许资源却随之降低, 直 到使后台应用处于完全冻结状态。 从部分冻结到完全冻结需要一定的时间过程,5 给用户一个缓冲时间段,在这个时间段内,用户可以快速有效的解冻该后台应用, 提高用户的体验度。同时,根根冻结等级限制后台应用所能使用的最大允许资源, 也能合理分配资源, 减小功耗。  In the above method, the freeze level is set according to the duration of the time interval, and as the duration increases, the level of freezing increases, but the maximum allowable resources that can be used by the background application are reduced until the background application is enabled. It is completely frozen. It takes a certain time process from partial freeze to full freeze. 5 Give the user a buffer time period. During this time period, the user can quickly and effectively unfreeze the background application and improve the user experience. At the same time, the root-root freeze level limits the maximum allowed resources that can be used by background applications, and can also allocate resources reasonably and reduce power consumption.
在一个实施例中, 如图 7所示, 所述根据预设冻结策略冻结与
Figure imgf000012_0003
In an embodiment, as shown in FIG. 7, the freeze according to the preset freeze policy is
Figure imgf000012_0003
务相关的应用程序, 包括步骤 702 -步骤 706。 其中,  The related application includes steps 702 - 706. among them,
〇 步骤 702 : 当所述终端处于静止状态时, 获取与
Figure imgf000012_0004
关的第一类后台 应用、 以及非与
Figure imgf000012_0005
的第二类后台应用。
Step 702: When the terminal is in a stationary state, acquire and
Figure imgf000012_0004
The first type of background application, and
Figure imgf000012_0005
The second type of background application.
其中, 与 0?8 服务相关的第一类后台应用指的是通过获取终端位置信息实 现位置服务的应用程序, 例如百度地图、 高德导航等。
Figure imgf000012_0006
服务相关的第 二类后台应用指的是除
Figure imgf000012_0007
关的后台应用之外, 经***判断需要进行5 冻结的应用, 通常为当前时刻使用率较低的应用, 例如终端静止状态下记步应用 处于后台运行状态, 则可以将该记步应用进行冻结。
The first type of background application related to the 0-8 service refers to an application that implements location service by acquiring terminal location information, such as Baidu map, Gaode navigation, and the like.
Figure imgf000012_0006
The second type of background application related to the service refers to
Figure imgf000012_0007
In addition to the background application, the system needs to perform the 5 freeze application, which is usually the application with lower usage rate at the current time. For example, if the stop application is in the background running state, the step application can be frozen. .
第一类后台应用的优先级降低, 将所述
Figure imgf000012_0008
先级提高。
The priority of the first type of background application is reduced,
Figure imgf000012_0008
The first level is improved.
可以理解的是, 当终端处于静止状态时, 用户可能当前时刻并不需要进行导 〇 航或获取位置信息, 或者用户导航行程已经结束但未关闭相关应用。 此时与 \¥0 2019/128549 卩(:17 \2018/116536 It can be understood that when the terminal is in a stationary state, the user may not need to conduct navigation or acquire location information at the current moment, or the user navigation trip has ended but the related application is not closed. At this time \¥0 2019/128549 卩(:17 \2018/116536
服务相关的后台应用程序和后台进程仍处于工作状态会消耗 0卩1; 资源并且占用 内存, 因此将与 0?8服务相关的第一类后台应用的优先级降低, 将非与 0卩8服 务相关的第二类后台应用的优先级提高, 按照特定的优先级顺序冻结应用。 Service-related background applications and background processes are still working. It consumes 0卩1; resources and memory usage, so the priority of the first type of background applications related to 0?8 services will be reduced, and the services will be non-zero. The related second type of background applications are prioritized to freeze the application in a specific priority order.
步骤 706: 根据优先级从低到高的顺序依次冻结所述第一类后台应用和第二 5 类后台应用。  Step 706: Freeze the first type of background application and the second type 5 background application according to a priority from low to high.
具体地, 优先冻结
Figure imgf000013_0001
第一类后台应用, 在将第一类后台应 用冻结完成后, 再对第二类后台应用进行冻结。
Specifically, priority freeze
Figure imgf000013_0001
The first type of background application, after freezing the first type of background application, freezes the second type of background application.
在一个实施例中, 所述根据预设冻结策略冻结与所述
Figure imgf000013_0002
关的应用 程序, 还包括: 当所述终端由静止状态变为移动状态时, 将所述与 0?8 服务相0 关的第一类后台应用的优先级提高, 将所述非与 0?8 服务相关的第二类后台应 用的优先级降低。
In an embodiment, the freezing and the freezing according to the preset freezing policy
Figure imgf000013_0002
The closed application further includes: when the terminal changes from a static state to a mobile state, the priority of the first type of background application that is related to the 0-8 service is increased, and the non-zero is changed. 8 Service-related second-class background applications have lower priority.
可以理解的是, 若终端处于移动状态, 则表明用户可
Figure imgf000013_0003
务有需求, 此时需要保持与 0?8 服务相关的应用程序和进程处于运行状态, 由于终端在静 止状态时会冻结与
Figure imgf000013_0004
关的后台应用程序和后台进程以节省资源, 当检测到5 终端由静止状态切换为移动状态时, 将与 6 8 服务相关的第一类后台应用的优 先级提高, 可以保证第一类应用程序不被优先冻结, 使终端能够正常定位。
It can be understood that if the terminal is in a mobile state, it indicates that the user can
Figure imgf000013_0003
There is a need, in this case, it is necessary to keep the applications and processes related to the 0?8 service in the running state, because the terminal will freeze when it is at rest.
Figure imgf000013_0004
The background application and the background process are closed to save resources. When it is detected that the 5 terminal is switched from the quiescent state to the mobile state, the priority of the first type of background application related to the 6 8 service is improved, and the first type of application can be guaranteed. It is not frozen by priority, so that the terminal can be positioned normally.
应该理解的是,虽然图 3-7的流程图中的各个步骤按照箭头的指示依次显示, 但是这些步骤并不是必然按照箭头指示的顺序依次执行。 除非本文中有明确的说 明, 这些步骤的执行并没有严格的顺序限制, 这些步骤可以以其它的顺序执行。 〇 而且, 图 3-7中的至少一部分步骤可以包括多个子步骤或者多个阶段, 这些子步 骤或者阶段并不必然是在同一时刻执行完成, 而是可以在不同的时刻执行, 这些 子步骤或者阶段的执行顺序也不必然是依次进行, 而是可以与其它步骤或者其它 步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。  It should be understood that although the various steps in the flowcharts of Figures 3-7 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 sequences. Moreover, at least some of the steps in FIGS. 3-7 may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, or The order of execution of the stages is also not necessarily sequential, but may be performed alternately or alternately with at least a portion of the sub-steps or stages of the other steps or other steps.
在一个实施例中, 如图 8所示, 提供了一种应用冻结装置, 该装置包括:5 获取模块 810, 用于当所述终端上的 0?8服务开启时, 获取所述终端的运动 状态信息。  In an embodiment, as shown in FIG. 8, an application freezing device is provided, where the device includes: 5 an obtaining module 810, configured to acquire motion of the terminal when the 0-8 service on the terminal is turned on. status information.
判断模块 820 , 用于根据所述终端的运动状态信息判断是否需要对与所述
Figure imgf000013_0005
应用程序进行冻结。
The determining module 820 is configured to determine, according to the motion state information of the terminal, whether the
Figure imgf000013_0005
The application freezes.
冻结模块 830, 用于当需要冻结与所述 0 8服务相关的应用程序时, 根据预 〇 设冻结策略冻结与所述 0?8服务相关的应用程序。 \¥0 2019/128549 卩(:17 \2018/116536 The freezing module 830 is configured to freeze an application related to the 0-8 service according to a preset freeze policy when an application related to the 0 8 service needs to be frozen. \¥0 2019/128549 卩(:17 \2018/116536
在一个实施例中, 判断模块 820还用于当所述终端处于静止状态时, 获取所 述终端最近时刻进行移动距离当前时刻的时间间隔; 当所述时间间隔大于预设时 间间隔时, 则需要冻结与 0卩8服务相关的应用程序。 In an embodiment, the determining module 820 is further configured to: when the terminal is in a static state, acquire a time interval at which the terminal moves the current time at a current time; when the time interval is greater than the preset time interval, Freeze applications related to the 0卩8 service.
在一个实施例中, 判断模块 820还用于当检测到所述终端由静止状态变为移 5 动状态时, 生成对
Figure imgf000014_0001
关的应用程序的解冻指令; 根据所述解冻 指令对所述与
Figure imgf000014_0002
关的应用程序进行解冻。
In an embodiment, the determining module 820 is further configured to generate a pair when detecting that the terminal changes from a stationary state to a moving state.
Figure imgf000014_0001
a thaw instruction of the closed application; according to the thaw instruction
Figure imgf000014_0002
The off application is thawed.
在一个实施例中,冻结模块 830还用于当所述时间间隔大于预设时间间隔时, 获取所述时间间隔的时长; 根据所述时长划分冻结等级; 所述冻结等级用于指示 配置所述与 0 8 服务相关的应用程序所能使用的最大允许资源; 根据所述冻结 〇 等级对所述与
Figure imgf000014_0003
关的应用程序进行相应等级的冻结。
In an embodiment, the freezing module 830 is further configured to: when the time interval is greater than the preset time interval, acquire a duration of the time interval; divide a freeze level according to the duration; the freeze level is used to indicate the configuration The maximum allowed resource that can be used by the application related to the 0 8 service; according to the frozen 〇 level
Figure imgf000014_0003
The closed application freezes at the appropriate level.
在一个实施例中, 冻结模块 830还用于当所述终端处于静止状态时, 获取与 后台应用、 以及非与 0卩8服务相关的第二类后台应用;
Figure imgf000014_0004
的第一类后台应用的优先级降低, 将所述非与
Figure imgf000014_0005
相关的第二类后台应用的优先级提高; 根据优先级从低到高的顺序依次冻结所述5 第一类后台应用和第二类后台应用。
In an embodiment, the freezing module 830 is further configured to: when the terminal is in a static state, acquire a second type of background application related to the background application and the non-zero service;
Figure imgf000014_0004
The priority of the first type of background application is lowered,
Figure imgf000014_0005
The priority of the related second type of background application is increased; and the fifth type 1 background application and the second type background application are frozen in order according to the priority from low to high.
在一个实施例中, 冻结模块 830还用于当所述终端由静止状态变为移动状态 时, 将所述与
Figure imgf000014_0006
第一类后台应用的优先级提高, 将所述非
Figure imgf000014_0007
服务相关的第二类后台应用的优先级降低。
In an embodiment, the freezing module 830 is further configured to: when the terminal changes from a stationary state to a mobile state,
Figure imgf000014_0006
The priority of the first type of background application is improved, and the non-
Figure imgf000014_0007
Service-related second-class background applications have lower priority.
在一个实施例中, 获取终端的运动状态信息的方式包括相 ·据终端的 6 8 信0 息、 终端上的速度传感器以及终端上的加速度传感器中的至少一种来获取所述终 端的运动状态信息。  In an embodiment, the manner of acquiring the motion state information of the terminal includes acquiring at least one of a terminal, a speed sensor on the terminal, and an acceleration sensor on the terminal to obtain a motion state of the terminal. information.
上述应用冻结装置, 通过获取模块 810 当所述终端上的 0?8服务开启时, 获取所述终端的运动状态信息, 判断模块 820根据所述终端的运动状态信息判断 是否需要
Figure imgf000014_0008
关的应用程序进行冻结, 当需要冻结与
Figure imgf000014_0009
The application freezing device obtains the motion state information of the terminal when the 0-8 service on the terminal is enabled by the obtaining module 810, and the determining module 820 determines whether it needs to be based on the motion state information of the terminal.
Figure imgf000014_0008
Off the application to freeze, when it needs to freeze with
Figure imgf000014_0009
5 服务相关的应用程序时, 冻结模块 830根据预设冻结策略冻结与所述 0?8服务 相关的应用程序, 能够根据终端所处的状
Figure imgf000014_0010
关的应用进行冻结, 提升前台应用的工作性能, 降低终端功耗。
5 when the service-related application is used, the freeze module 830 freezes the application related to the 0-8 service according to the preset freeze policy, and can be based on the state of the terminal
Figure imgf000014_0010
The closed application freezes, improving the performance of the foreground application and reducing the power consumption of the terminal.
上述应用冻结装置中各个模块的划分仅用于举例说明, 在其他实施例中, 可 将应用冻结装置按照需要划分为不同的模块, 以完成上述应用冻结装置的全部或0 部分功能。 本申请实施例还提供了一种计算机可读存储介质。 一个或多个包含计算机可 执行指令的非易失性计算机可读存储介质, 当所述计算机可执行指令被一个或多 个处理器执行时, 使得所述处理器执行如上述各实施例中所描述的应用冻结方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. The embodiment of the present application also provides a computer readable storage medium. One or more non-transitory computer readable storage media containing computer executable instructions that, when executed by one or more processors, cause the processor to perform as in the various embodiments described above Described application freeze
5 法。 5 methods.
本申请实施例还提供了一种计算机程序产品。一种包含指令的计算机程序产 品, 当其在计算机上运行时, 使得计算机执行上述各实施例中所描述的应用冻结 方法。  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 application freeze method described in the various embodiments above.
本申请实施例还提供了一种终端。 如图 9 所示, 为了便于说明, 仅示出0 了与本申请实施例相关的部分, 具体技术细节未揭示的, 请参照本申请实施 例方法部分。 该终端可以为包括手机、 平板电脑、 PDA ( Personal Digital Assistant, 个人数字助理) 、 P0S ( Point of Sales , 销售终端 ) 、 车载电脑、 穿戴式设备等任意终端设备, 以终端为手机为例:  The embodiment of the present application further provides a terminal. As shown in FIG. 9, for the convenience of description, only the parts related to the embodiments of the present application are shown. If the specific technical details are not disclosed, please 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 P0S (Point of Sales, a sales terminal), an on-board computer, a wearable device, and the like:
图 9 为与本申请实施例提供的终端相关的手机的部分结构的框图。 参考5 图 9, 手机包括: 射频 ( Radio Frequency, RF ) 电路 910、 存储器 920、 输入 单元 930、显示单元 940、传感器 950、音频电路 960、无线保真( wireless fidelity , WiFi )模块 970、 处理器 980、 以及电源 990等部件。 本领域技术人员可以理 解, 图 9 所示的手机结构并不构成对手机的限定, 可以包括比图示更多或更 少的部件, 或者组合某些部件, 或者不同的部件布置。 FIG. 9 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. 9, the mobile phone includes: a radio frequency (RF) circuit 910, a memory 920, an input unit 930, a display unit 940, a sensor 950, an audio circuit 960, a wireless fidelity (WiFi) module 970, and a processor. 980, and power supply 990 and other components. It will be understood by those skilled in the art that the structure of the handset shown in Figure 9 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.
0 其中, RF电路 910可用于收发信息或通话过程中, 信号的接收和发送, 可将基站的下行信息接收后, 给处理器 980 处理; 也可以将上行的数据发送 给基站。 通常, RF电路包括但不限于天线、 至少一个放大器、 收发信机、 耦 合器、 低噪声放大器 ( Low Noise Amplifier, LNA ) 双工器等。 此外, RF 电路 910还可以通过无线通信与网络和其他设备通信。 上述无线通信可以使5 用任一通信标准或协议, 包括但不限于全球移动通讯*** ( 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 ) 等。 存储器 920可用于存储软件程序以及模块, 处理器 980通过运行存储在 存储器 920 的软件程序以及模块, 从而执行手机的各种功能应用以及数据处 理。 存储器 920 可主要包括程序存储区和数据存储区, 其中, 程序存储区可 存储操作***、 至少一个功能所需的应用程序 (比如声音播放功能的应用程 5 序、 图像播放功能的应用程序等) 等; 数据存储区可存储根据手机的使用所 创建的数据 (比如音频数据、 通讯录等) 等。 此外, 存储器 920 可以包括高 速随机存取存储器, 还可以包括非易失性存储器, 例如至少一个磁盘存储器 件、 闪存器件、 或其他易失性固态存储器件。 0, the RF circuit 910 can be used for receiving and transmitting information during the transmission or reception of information, and can receive and send the downlink information of the base station, and then send the uplink data 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) duplexer, and the like. In addition, the RF circuit 910 can also communicate with the network and other devices via wireless communication. The above wireless communication can 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), etc. The memory 920 can be used to store software programs and modules, and the processor 980 executes various functional applications and data processing of the mobile phone by running software programs and modules stored in the memory 920. The memory 920 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 program of a sound playing function, an application of an image playing function, etc.) Etc.; The data storage area can store data created according to the use of the mobile phone (such as audio data, address book, etc.). Moreover, memory 920 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.
输入单元 930 可用于接收输入的数字或字符信息, 以及产生与手机 900 〇 的用户设置以及功能控制有关的键信号输入。 具体地, 输入单元 930 可包括 触控面板 931以及其他输入设备 932。 触控面板 931 , 也可称为触摸屏, 可收 集用户在其上或附近的触摸操作 (比如用户使用手指、 触笔等任何适合的物 体或附件在触控面板 931上或在触控面板 931 附近的操作) , 并根据预先设 定的程式驱动相应的连接装置。 在一个实施例中, 触控面板 931 可包括触摸5 检测装置和触摸控制器两个部分。 其中, 触摸检测装置检测用户的触摸方位, 并检测触摸操作带来的信号, 将信号传送给触摸控制器; 触摸控制器从触摸 检测装置上接收触摸信息, 并将它转换成触点坐标, 再送给处理器 980, 并能 接收处理器 980 发来的命令并加以执行。 此外, 可以采用电阻式、 电容式、 红外线以及表面声波等多种类型实现触控面板 931。 除了触控面板 931, 输入 〇 单元 930还可以包括其他输入设备 932。 具体地, 其他输入设备 932可以包括 但不限于物理键盘、 功能键 (比如音量控制按键、 开关按键等) 等中的一种 或多种。  The input unit 930 can be used to receive input numeric or character information, as well as generate key signal inputs related to user settings and function control of the handset 900 。. Specifically, the input unit 930 can include a touch panel 931 and other input devices 932. The touch panel 931, also referred to as a touch screen, can collect touch operations on or near the user (such as the user using a finger, a stylus, or the like on the touch panel 931 or near the touch panel 931. Operation), and drive the corresponding connection device according to a preset program. In one embodiment, the touch panel 931 can include two portions of the touch 5 detection device and the 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 980 is provided and can receive commands from the processor 980 and execute them. In addition, the touch panel 931 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 931, the input unit 930 may also include other input devices 932. In particular, other input devices 932 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.).
显示单元 940 可用于显示由用户输入的信息或提供给用户的信息以及手 机的各种菜单。 显示单元 940可包括显示面板 941。 在一个实施例中, 可以采5 用液晶显示器(Liquid Crystal Display, LCD) 有机发光二极管 (Organic Light-Emitting Diode, OLED) 等形式来配置显示面板 941 在一个实施例中, 触控面板 931可覆盖显示面板 941 ,当触控面板 931检测到在其上或附近的触 摸操作后, 传送给处理器 980以确定触摸事件的类型, 随后处理器 980根据 触摸事件的类型在显示面板 941 上提供相应的视觉输出。 虽然在图 9 中, 触 〇 控面板 931 与显示面板 941是作为两个独立的部件来实现手机的输入和输入 \¥0 2019/128549 卩(:17 \2018/116536 The display unit 940 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 940 can include a display panel 941. In one embodiment, the display panel 941 can be configured in the form of a Liquid Crystal Display (LCD) Organic Light-Emitting Diode (OLED). In one embodiment, the touch panel 931 can be covered. The display panel 941, when the touch panel 931 detects a touch operation on or near it, transmits to the processor 980 to determine the type of the touch event, and then the processor 980 provides a corresponding display on the display panel 941 according to the type of the touch event. Visual output. Although in FIG. 9, the touch panel 931 and the display panel 941 are used as two separate components to implement input and input of the mobile phone. \¥0 2019/128549 卩(:17 \2018/116536
功能, 但是在某些实施例中, 可以将触控面板 931 与显示面板 941 集成而实 现手机的输入和输出功能。 Functionality, but in some embodiments, the touch panel 931 can be integrated with the display panel 941 to implement the input and output functions of the handset.
手机 900还可包括至少一种传感器 950, 比如光传感器、 运动传感器以及 其他传感器。 具体地, 光传感器可包括环境光传感器及接近传感器, 其中, The handset 900 can also include at least one type of sensor 950, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, where
5 环境光传感器可根据环境光线的明暗来调节显示面板 941 的亮度, 接近传感 器可在手机移动到耳边时, 关闭显示面板 941和/或背光。 运动传感器可包括 加速度传感器, 通过加速度传感器可检测各个方向上加速度的大小, 静止时 可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换)、 振动识别相关功能(比如计步器、 敲击)等; 此外, 手机还可配置陀螺仪、 气0 压计、 湿度计、 温度计、 红外线传感器等其他传感器等。 5 Ambient light sensor adjusts the brightness of display panel 941 according to the brightness of the ambient light. The proximity sensor can turn off display panel 941 and/or backlight when the phone moves to the ear. 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 when stationary, 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 be equipped with other sensors such as gyroscope, gas pressure gauge, hygrometer, thermometer, infrared sensor, etc.
音频电路 960、扬声器 961和传声器 962可提供用户与手机之间的音频接 口。音频电路 960可将接收到的音频数据转换后的电信号,传输到扬声器 961 , 由扬声器 961转换为声音信号输出; 另一方面, 传声器 962将收集的声音信 号转换为电信号, 由音频电路 960接收后转换为音频数据, 再将音频数据输5 出处理器 980处理后, 经 电路 910可以发送给另一手机, 或者将音频数据 输出至存储器 920以便后续处理。 Audio circuit 960, speaker 961 and microphone 962 provide an audio interface between the user and the handset. The audio circuit 960 can transmit the converted audio signal of the received audio data to the speaker 961, and convert it into a sound signal output by the speaker 961; on the other hand, the microphone 962 converts the collected sound signal into an electrical signal, and the audio circuit 960 After receiving, it is converted into audio data, and then the audio data is output to the processor 980 for processing, and then sent to another mobile phone via the circuit 910, or the audio data is output to the memory 920 for subsequent processing.
Figure imgf000017_0001
,手机通过 1模块 970可以帮助用户收 发电子邮件、 浏览网页和访问流式媒体等, 它为用户提供了无线的宽带互联 网访问。 虽然图 9示出了 \ViFi模块 970, 但是可以理解的是, 其并不属于手 〇 机 900的必须构成, 可以根据需要而省略。
Figure imgf000017_0001
The mobile phone can help users to send and receive emails, browse web pages and access streaming media through the 1 module 970, which provides users with wireless broadband Internet access. Although FIG. 9 shows the \ViFi module 970, it will be understood that it does not belong to the necessary configuration of the hand-held machine 900 and may be omitted as needed.
处理器 980 是手机的控制中心, 利用各种接口和线路连接整个手机的各 个部分, 通过运行或执行存储在存储器 920 内的软件程序和/或模块, 以及调 用存储在存储器 920 内的数据, 执行手机的各种功能和处理数据, 从而对手 机进行整体监控。 在一个实施例中, 处理器 980可包括一个或多个处理单元。5 在一个实施例中, 处理器 980 可集成应用处理器和调制解调器, 其中, 应用 处理器主要处理操作***、 用户页面和应用程序等; 调制解调器主要处理无 线通信。 可以理解的是, 上述调制解调器也可以不集成到处理器 980 中。 比 如, 该处理器 980 可集成应用处理器和基带处理器, 基带处理器与和其它外 围芯片等可组成调制解调器。 手机 900还包括给各个部件供电的电源 990(比 〇 如电池) , 优选的, 电源可以通过电源管理***与处理器 980 逻辑相连, 从 而通过电源管理***实现管理充电、 放电、 以及功耗管理等功能。 在一个实施例中, 手机 900还可以包括摄像头、 蓝牙模块等。 The processor 980 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 920, and invoking data stored in the memory 920, The phone's various functions and processing data, so that the overall monitoring of the phone. In one embodiment, processor 980 can include one or more processing units. 5 In one embodiment, the processor 980 can integrate an application processor and a modem, wherein the application processor primarily processes an operating system, user pages, applications, etc.; the modem primarily processes wireless communications. It will be appreciated that the above modems may also not be integrated into the processor 980. For example, the processor 980 can integrate an application processor and a baseband processor, and the baseband processor and other peripheral chips can form a modem. The handset 900 also includes a power source 990 (such as a battery) that supplies power to the various components. Preferably, the power source can be logically coupled to the processor 980 via a power management system. The power management system is used to manage functions such as charging, discharging, and power management. In one embodiment, the handset 900 can 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 in the foregoing embodiments when executing the computer program stored in the memory.
在处理器上运行的计算机程序的执行时,能够根据终端所处的状态对与 GPS 服务相关的应用进行冻结, 提升前台应用的工作性能, 降低终端功耗。  When the computer program running on the processor is executed, the application related to the GPS service can be frozen according to the state of the terminal, thereby improving the working performance of the foreground application and reducing the power consumption of the terminal.
本申请所使用的对存储器、 存储、 数据库或其它介质的任何引用可包括 非易失性和 /或易失性存储器。 合适的非易失性存储器可包括只读存储器 (ROM)、 可编程 ROM(PROM)、 电可编程 ROM(EPROM)、 电可擦除可编程 ROM(EEPROM)或闪存。 易失性存储器可包括随机存取存储器 (RAM) , 它用作 外部高速缓冲存储器。 作为说明而非局限, RAM以多种形式可得, 诸如静态 RAM (SRAM)、 动态 RAM (DRAM)、 同步 DRAM (SDRAM)、 双数据率 SDRAM (DDR SDRAM) 增 强 型 SDRAM(E SDRAM) 同 步链路 (Synchlink)DRAM(SLDRAM)、 存储器总线 (Rambus)直接 RAM(RDRAM)、 直 接存储器总线动态 RAM(DRDRAM) , vX' 及存储器总线动态 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 formats, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDR SDRAM) enhanced SDRAM (E SDRAM) synchronization chain. Synchlink DRAM (SLDRAM), Memory Bus (Rambus) Direct RAM (RDRAM), Direct Memory Bus Dynamic RAM (DRDRAM), vX' and Memory Bus Dynamic RAM (RDRAM).
以上所述实施例仅表达了本申请的几种实施方式, 其描述较为具体和详细, 但并不能因此而理解为对本申请专利范围的限制。 应当指出的是, 对于本领域的 普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进, 这些都属于本申请的保护范围。 因此, 本申请专利的保护范围应以所附权利要求 为准。  The above-mentioned 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 scope of the present application. Therefore, the scope of protection of the patent application is subject to the appended claims.

Claims

\¥0 2019/128549 卩(:17 \2018/116536 \¥0 2019/128549 卩(:17 \2018/116536
1、一种应用冻结方法,用于冻结终端上运行的应用程序,所述方法包括: 当所述终
Figure imgf000019_0001
获取所述终端的运动状态信息; 根据所述终端的运动状态信息判断是否需要对与所述 0?8服务相关的应 用程序进行冻结;
An application freezing method for freezing an application running on a terminal, the method comprising: when the end
Figure imgf000019_0001
Acquiring the motion state information of the terminal; determining, according to the motion state information of the terminal, whether the application related to the 0-8 service needs to be frozen;
当需要冻结与
Figure imgf000019_0002
的应用程序时, 根据预设冻结策略冻结 与所述 0?8服务相关的应用程序。
When it needs to be frozen
Figure imgf000019_0002
When the application is launched, the application related to the 0-8 service is frozen according to the preset freeze policy.
2、 根据权利要求 1所述的方法, 其中, 所述根据所述终端的运动状态信 息判断是否需要
Figure imgf000019_0003
关的应用程序进行冻结, 包括:
2. The method according to claim 1, wherein the determining, according to the motion state information of the terminal, is required
Figure imgf000019_0003
The closed application freezes, including:
当所述终端处于静止状态时, 获取所述终端在最近一次移动的时刻, 记 录所述时刻距离当前时刻的时间间隔;  And acquiring, when the terminal is in a static state, a time interval at which the terminal is at a current time, and recording a time interval from the current time;
当所述时间间隔大于预设时间间隔时, 则需要冻结与所述 0?8服务相关 的应用程序。  When the time interval is greater than the preset time interval, the application related to the 0-8 service needs to be frozen.
3、 根据权利要求 2所述的方法, 其中, 所述方法进一步包括: 当检测到所述终端由静止状态变为移动状态时, 生成对与所
Figure imgf000019_0004
3. The method according to claim 2, wherein the method further comprises: generating a pair when detecting that the terminal changes from a stationary state to a moving state
Figure imgf000019_0004
相关的应用程序的解冻指令;  Thaw instructions for related applications;
根据所述解冻指令对与所述 0?8服务相关的应用程序进行解冻。  The application related to the 0-8 service is thawed according to the thaw instruction.
4、 根据权利要求 2所述的方法, 其中, 所述根据所述解冻指令对与所述
Figure imgf000019_0009
4. The method according to claim 2, wherein said pairing according to said defrosting instruction
Figure imgf000019_0009
5、 根据权利要求 2所述的方法, 其中, 所述根据预设冻结策略冻结与所
Figure imgf000019_0005
用程序, 包括:
5. The method according to claim 2, wherein the freezing and freezing according to a preset freezing policy
Figure imgf000019_0005
Programs, including:
获取所述时间间隔的时长;  Obtaining the duration of the time interval;
根据所述时长划分冻结等级; 所述冻结等级用于指
Figure imgf000019_0006
Dividing a freeze level according to the duration; the freeze level is used to refer to
Figure imgf000019_0006
务相关的应用程序所能使用的最大允许资源;  The maximum allowed resources that can be used by related applications;
根据所述冻结等级对
Figure imgf000019_0007
关的应用程序进行相应等级的冻 结。
According to the freeze level pair
Figure imgf000019_0007
The closed application freezes at the appropriate level.
6、 根据权利要求 5所述的方法, 其中, 所述最大允许资源表示进程在各 个时刻下允许被使用的最大资源, 所述资源至
Figure imgf000019_0008
1/0文件资源。 \¥0 2019/128549 卩(:17 \2018/116536
6. The method according to claim 5, wherein the maximum allowed resource indicates a maximum resource that the process allows to be used at each moment, the resource to
Figure imgf000019_0008
1/0 file resource. \¥0 2019/128549 卩(:17 \2018/116536
7、 根据权利要求 5所述的方法, 其中, 所述冻结等级随着所述时长的增 加而增加; 所述最大允许资源随着所述冻结等级的增加而降低。 7. The method according to claim 5, wherein the freeze level increases as the duration increases; the maximum allowable resource decreases as the freeze level increases.
8、 根据权利要求 2所述的方法, 其中, 所述根据预设冻结策略冻结与所 包括:  8. The method according to claim 2, wherein the freezing and including according to a preset freezing policy are:
5
Figure imgf000020_0001
的应用程序的历史运行时长;
5
Figure imgf000020_0001
The history of the application's runtime;
根据所述历史运行时长划分冻结等级; 所述冻结等级用于指示配置与所 述 0?8服务相关的应用程序所能使用的最大允许资源;  And dividing a freeze level according to the historical running time; the freezing level is used to indicate that a maximum allowed resource that can be used by an application related to the 0-8 service is configured;
根据所述冻结等级对与所述〇卩 服务相关的应用程序进行相应等级的冻 结。  The application associated with the 〇卩 service is frozen at a corresponding level based on the freeze level.
9、 根据权利要求 2所述的方法, 其中, 所述根据预设冻结策略冻结与所 包括:9. The method according to claim 2, wherein the freezing and including according to a preset freezing policy are:
Figure imgf000020_0002
的应用程序的应用类型;
Figure imgf000020_0002
Application type of the application;
根据所述应用类型划分冻结等级; 所述冻结等级用于指示配置与所述
Figure imgf000020_0003
关的应用程序所能使用的最大允许资源;
Demarcating a freeze level according to the application type; the freeze level is used to indicate a configuration and the
Figure imgf000020_0003
The maximum allowed resources that the closed application can use;
5 根据所述冻结等级对与所述 0?8服务相关的应用程序进行相应等级的冻 结。 5 The corresponding application of the 0-8 service is frozen according to the freeze level.
10、 根据权利要求 1所述的方法, 其中, 所述根据预设冻结策略冻结与 所述 0?8服务相关的应用程序, 包括:  10. The method according to claim 1, wherein the freezing the application related to the 0?8 service according to a preset freeze policy comprises:
当所述终端处于静止状态时, 获取与所述
Figure imgf000020_0004
Obtaining and when the terminal is in a stationary state
Figure imgf000020_0004
0 用、 以及非与
Figure imgf000020_0005
关的第二类后台应用;
0 with, and with
Figure imgf000020_0005
The second type of background application;
将所述第一类后台应用的优先级降低, 将所述第二类后台应用的优先级 提高;  Lowering the priority of the first type of background application, and increasing the priority of the second type of background application;
根据所述优先级从低到高的顺序依次冻结所述第一类后台应用和第二类 后台应用。 The first type of background application and the second type of background application are frozen in order according to the priority from low to high.
5 11、 根据权利要求 10所述的方法, 其中, 所述根据预设冻结策略冻结与
Figure imgf000020_0006
关的应用程序, 还包括:
The method according to claim 10, wherein the freezing according to a preset freezing policy is
Figure imgf000020_0006
Off applications, including:
当所述终端由静止状态变为移动状态时, 将所述第一类后台应用的优先 级提高, 将所述第二类后台应用的优先级降低。  When the terminal changes from a stationary state to a mobile state, the priority of the first type of background application is increased, and the priority of the second type of background application is lowered.
12、 根据权利要求 1所述的方法, 其中, 所述获取所述终端的运动状态 〇 信息的方式包括获取所述终端
Figure imgf000020_0007
获取所述终端上的速度传感器采 \¥0 2019/128549 卩(:17 \2018/116536
The method according to claim 1, wherein the manner of acquiring the motion state information of the terminal comprises acquiring the terminal
Figure imgf000020_0007
Obtaining the speed sensor on the terminal \¥0 2019/128549 卩(:17 \2018/116536
集的移动速度信息以及获取所述终端上的加速度传感器采集的加速度信息中 的至少一种。 At least one of the set moving speed information and the acceleration information acquired by the acceleration sensor on the terminal.
13、 一种应用冻结装置, 包括:  13. An application freezing device, comprising:
获取模块, 用于当所述
Figure imgf000021_0001
获取所述终端的运动 状态信息;
An acquisition module, used to
Figure imgf000021_0001
Obtaining motion state information of the terminal;
判断模块, 用于根据所述终端的运动状态信息判断是否需要对与所述
Figure imgf000021_0002
关的应用程序进行冻结;
a determining module, configured to determine, according to the motion state information of the terminal, whether the
Figure imgf000021_0002
The closed application is frozen;
冻结模块, 用于当需要冻结与所述
Figure imgf000021_0003
服务相关的应用程序时, 根据预 设冻结策略冻结
Figure imgf000021_0004
关的应用程序。
a freeze module, for when it is required to freeze and
Figure imgf000021_0003
When the service-related application is frozen according to the preset freeze policy
Figure imgf000021_0004
Off the app.
14、 一种终端, 包括存储器及处理器, 所述存储器中储存有计算机可读 指令, 所述指令被所述处理器执行时, 使得所述处理器执行如权利要求 1 至 12中任一项所述的方法的步骤。  14. A terminal, comprising a memory and a processor, the memory storing computer readable instructions, wherein the instructions are executed by the processor, causing the processor to perform any one of claims 1 to 12. The steps of the method described.
15、 一种计算机可读存储介质, 其上存储有计算机程序, 所述计算机程 序被处理器执行时实现如权利要求 1至 12中任一项所述的方法的步骤。  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 method of any one of claims 1 to 12.
PCT/CN2018/116536 2017-12-29 2018-11-20 Method and apparatus for freezing application, and terminal and computer-readable storage medium WO2019128549A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711488980.4 2017-12-29
CN201711488980.4A CN109992378A (en) 2017-12-29 2017-12-29 Using freezing method, device, terminal and computer readable storage medium

Publications (1)

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

Family

ID=67065080

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/116536 WO2019128549A1 (en) 2017-12-29 2018-11-20 Method and apparatus for freezing application, and terminal and computer-readable storage medium

Country Status (2)

Country Link
CN (1) CN109992378A (en)
WO (1) WO2019128549A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110830658A (en) * 2019-11-29 2020-02-21 捷开通讯(深圳)有限公司 Mobile terminal control method and device, mobile terminal and storage medium
CN111124632A (en) * 2019-12-06 2020-05-08 西安易朴通讯技术有限公司 Optimization method and device of mobile terminal, terminal equipment and storage medium
CN113595662A (en) * 2021-07-23 2021-11-02 Oppo广东移动通信有限公司 Signal prompting method and device, terminal equipment and storage medium
EP3974977A4 (en) * 2019-08-29 2023-05-31 ZTE Corporation Application management method and apparatus, terminal, and readable storage medium
WO2024037353A1 (en) * 2022-08-15 2024-02-22 华为技术有限公司 Application processing method and electronic device

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110673880A (en) * 2019-08-30 2020-01-10 上海能塔智能科技有限公司 Terminal application program awakening method and device, storage medium and terminal
CN112558745A (en) * 2019-09-24 2021-03-26 中兴通讯股份有限公司 Method and device for freezing control of terminal application program, terminal and storage medium
CN112162838B (en) * 2020-09-25 2023-06-20 维沃移动通信有限公司 Multimedia file playing method and device and electronic equipment
CN113254109B (en) * 2021-07-15 2023-03-14 深圳传音控股股份有限公司 Application or service processing method and device and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102088657A (en) * 2010-11-19 2011-06-08 厦门雅迅网络股份有限公司 Power saving method for global positioning system (GPS) module
CN105101366A (en) * 2015-05-29 2015-11-25 努比亚技术有限公司 Mobile terminal control method and mobile terminal
CN105682032A (en) * 2016-01-13 2016-06-15 广东欧珀移动通信有限公司 Positioning mode control method, positioning mode control device and mobile terminal
CN106155787A (en) * 2016-06-28 2016-11-23 宇龙计算机通信科技(深圳)有限公司 The management method of application program, the managing device of application program and terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105677386A (en) * 2015-12-29 2016-06-15 北京金山安全软件有限公司 Application program management method and device and electronic equipment
CN107402808B (en) * 2017-07-31 2020-03-27 Oppo广东移动通信有限公司 Process management method, device, storage medium and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102088657A (en) * 2010-11-19 2011-06-08 厦门雅迅网络股份有限公司 Power saving method for global positioning system (GPS) module
CN105101366A (en) * 2015-05-29 2015-11-25 努比亚技术有限公司 Mobile terminal control method and mobile terminal
CN105682032A (en) * 2016-01-13 2016-06-15 广东欧珀移动通信有限公司 Positioning mode control method, positioning mode control device and mobile terminal
CN106155787A (en) * 2016-06-28 2016-11-23 宇龙计算机通信科技(深圳)有限公司 The management method of application program, the managing device of application program and terminal

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3974977A4 (en) * 2019-08-29 2023-05-31 ZTE Corporation Application management method and apparatus, terminal, and readable storage medium
CN110830658A (en) * 2019-11-29 2020-02-21 捷开通讯(深圳)有限公司 Mobile terminal control method and device, mobile terminal and storage medium
CN111124632A (en) * 2019-12-06 2020-05-08 西安易朴通讯技术有限公司 Optimization method and device of mobile terminal, terminal equipment and storage medium
CN111124632B (en) * 2019-12-06 2024-02-13 西安易朴通讯技术有限公司 Optimization method and device of mobile terminal, terminal equipment and storage medium
CN113595662A (en) * 2021-07-23 2021-11-02 Oppo广东移动通信有限公司 Signal prompting method and device, terminal equipment and storage medium
CN113595662B (en) * 2021-07-23 2023-08-18 Oppo广东移动通信有限公司 Signal prompting method, device, terminal equipment and storage medium
WO2024037353A1 (en) * 2022-08-15 2024-02-22 华为技术有限公司 Application processing method and electronic device

Also Published As

Publication number Publication date
CN109992378A (en) 2019-07-09

Similar Documents

Publication Publication Date Title
WO2019128549A1 (en) Method and apparatus for freezing application, and terminal and computer-readable storage medium
US10299210B2 (en) Method and apparatus for reducing power consumption of electronic device
KR102148948B1 (en) Multi tasking method of electronic apparatus and electronic apparatus thereof
WO2019128540A1 (en) Resource management method, mobile terminal and computer readable storage medium
US10956316B2 (en) Method and device for processing reclaimable memory pages, and storage medium
CN109144232B (en) Process processing method and device, electronic equipment and computer readable storage medium
KR102642689B1 (en) Electronic Apparatus and the Method for Controlling Traffic thereof
CN110032266B (en) Information processing method, information processing device, computer equipment and computer readable storage medium
CN107612643B (en) Channel detection method and channel detection equipment
CN112703714A (en) Application program processing method and device, computer equipment and computer readable storage medium
WO2019128588A1 (en) Process processing method and apparatus, electronic device, computer readable storage medium
CN109992364B (en) Application freezing method and device, computer equipment and computer readable storage medium
CN112559390B (en) Data writing control method and storage device
WO2019128573A1 (en) Information processing method, apparatus, computer device and computer-readable storage medium
CN104423996A (en) View refreshing method and view refreshing device
US10963208B2 (en) Electronic device and method for operating electronic device
WO2019128571A1 (en) Resource management method and device, mobile terminal, as well as computer readable storage medium
WO2019128574A1 (en) Information processing method and device, computer device and computer readable storage medium
WO2019128569A1 (en) Method and apparatus for freezing application, and storage medium and terminal
WO2019128586A1 (en) Application processing method, electronic device, and computer readable storage medium
WO2019128570A1 (en) Method and apparatus for freezing application, and storage medium and terminal
CN109992395B (en) Application freezing method and device, terminal and computer readable storage medium
CN110045811B (en) Application program processing method and device, electronic equipment and computer readable storage medium
WO2019137187A1 (en) Resource management method and apparatus, mobile terminal and computer-readable storage medium
WO2019128562A1 (en) Application freezing method and apparatus, and terminal 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: 18895377

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: 18895377

Country of ref document: EP

Kind code of ref document: A1