WO2020220748A1 - 应用控制方法、装置、终端及计算机可读存储介质 - Google Patents

应用控制方法、装置、终端及计算机可读存储介质 Download PDF

Info

Publication number
WO2020220748A1
WO2020220748A1 PCT/CN2020/071028 CN2020071028W WO2020220748A1 WO 2020220748 A1 WO2020220748 A1 WO 2020220748A1 CN 2020071028 W CN2020071028 W CN 2020071028W WO 2020220748 A1 WO2020220748 A1 WO 2020220748A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
frozen
rule
temporary
freezing
Prior art date
Application number
PCT/CN2020/071028
Other languages
English (en)
French (fr)
Inventor
张园园
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Priority to EP20798825.4A priority Critical patent/EP3926467B1/en
Priority to US17/606,451 priority patent/US20220197690A1/en
Priority to ES20798825T priority patent/ES2951182T3/es
Publication of WO2020220748A1 publication Critical patent/WO2020220748A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution
    • 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/48Indexing scheme relating to G06F9/48
    • G06F2209/482Application

Definitions

  • the embodiments of the present application relate to but are not limited to the field of communications, and specifically relate to but not limited to an application control method, device, terminal, and computer-readable storage medium.
  • Smart terminals have become an important tool that people can't do without in life and work.
  • the battery life problem of smart terminals is the shortcoming of various smart terminals.
  • the data transmission and reception of the application background on the terminal is one of the main reasons for shortening the battery life of the terminal.
  • In order to improve the endurance of the terminal there are generally the following two methods for the problem of sending and receiving data in the background of the application.
  • Method 1 Perform regular cleaning of the background application on the terminal.
  • the disadvantage of this method is that the user needs to restart the application when the application is used again, and the user experience is poor.
  • Method 2 After the application is switched to the background, the firewall is configured for the application running in the background to prohibit the application from sending and receiving packets in the background; but when the application is prohibited from receiving and sending packets in the background through the firewall, all the sending and receiving packets sent to the application will be discarded. This results in application-perceivable packet loss or network unreachability, and server-side push messages loss; user experience satisfaction is also poor.
  • the application control method, device, terminal, and computer-readable storage medium provided by the embodiments of the present application mainly solve the technical problem of: solving the current unreasonable control method for terminal background applications and poor user experience satisfaction.
  • an embodiment of the present application provides an application control method, including: when a certain running application is frozen, configuring a corresponding temporary thawing rule for the currently frozen application; and detecting a certain frozen application When an application currently satisfies its corresponding temporary unfreezing rule, the frozen application is temporarily unfrozen; when it is monitored that a temporarily unfrozen application currently meets its corresponding re-freezing rule, the temporarily unfrozen application is re-freeze.
  • configuring the corresponding temporary unfreezing rule for the currently frozen application includes: configuring the corresponding temporary unfreezing rule for the currently frozen application according to the application type to which the currently frozen application belongs and the corresponding relationship between the application type and the temporary unfreezing rule. Thaw rules.
  • the correspondence between the application type and the temporary thawing rule includes: a first temporary thawing rule corresponding to the first application type, and the first temporary thawing rule includes: detecting that the frozen application currently has data to be processed; corresponding to the second application type
  • the second temporary unfreezing rule includes at least one of the following: the continuous freezing duration of the frozen application reaches a preset freezing duration threshold; the current pending data cache amount of the frozen application reaches the preset data cache amount Threshold.
  • the correspondence between the application type and the temporary thawing rule further includes: a third temporary thawing rule corresponding to the third application type, and the third temporary thawing rule includes: not thawing the frozen application.
  • the application control method further includes: when the pending data of a certain frozen application is acquired, and the application type of the frozen application belongs to the third application type, discarding the acquired pending data.
  • the data to be processed includes network data sent to the frozen application.
  • the refreezing rule includes at least one of the following: the thawing duration of the temporarily thawed application reaches the preset thawing duration threshold; the temporarily thawed application has currently processed its corresponding pending data; the temporarily thawed application is within the preset duration No data processing.
  • the method further includes: when it is detected that the freeze management end condition of a certain frozen application is triggered, releasing the freeze management of the frozen application; the freeze management end condition includes at least one of the following: the frozen application stops running ; The frozen application switches to the foreground operation; for the frozen application whose reason is that the terminal screen is turned off, it is detected that the terminal is currently on.
  • an embodiment of the present application also provides an application control device, including: a freeze management module, configured to configure a corresponding temporary unfreezing rule for a currently frozen application when freezing a running application , And when it is monitored that a frozen application currently meets its corresponding temporary thawing rule, the frozen application is temporarily thawed, and used to monitor that a temporarily thawed application currently meets its corresponding refreezing rule When the time, the temporarily unfrozen application is frozen again.
  • a freeze management module configured to configure a corresponding temporary unfreezing rule for a currently frozen application when freezing a running application , And when it is monitored that a frozen application currently meets its corresponding temporary thawing rule, the frozen application is temporarily thawed, and used to monitor that a temporarily thawed application currently meets its corresponding refreezing rule When the time, the temporarily unfrozen application is frozen again.
  • the embodiment of the present application also provides a terminal, including a processor, a memory, and a communication bus; the communication bus is used to connect the processor and the memory; the processor is used to execute the Stored computer programs to implement the steps of the application control method as described above.
  • the embodiments of the present application also provide a computer-readable storage medium.
  • the computer-readable storage medium stores one or more computer programs.
  • the one or more computer programs can be used by one or more
  • the processor executes to implement the steps of the application control method as described above.
  • FIG. 1 is a schematic flowchart of an application control method provided in Embodiment 1 of the application;
  • FIG. 2 is a schematic structural diagram of an application control device provided in Embodiment 3 of this application;
  • FIG. 3 is a schematic diagram of the application freezing control process of the first application type provided in the third embodiment of the application;
  • FIG. 4 is a schematic diagram of the application freezing control process of the second application type provided in the third embodiment of the application;
  • FIG. 5 is a schematic diagram of a terminal structure provided in Embodiment 4 of the application.
  • FIG. 6 is a schematic structural diagram of another terminal provided in Embodiment 4 of this application.
  • the terminal may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a smart TV, a mobile Internet device, a wearable device, or other application clients that can be installed.
  • the terminal may also be any other terminal or device that can implement the application processing method of this application, which is not limited in this application.
  • this embodiment provides an application control method that can adopt a dynamic freezing strategy for terminal background applications to achieve energy saving and normal packet sending and receiving The balance of user experience is improved.
  • the following description of this embodiment takes the application control method shown in FIG. 1 as an example. It should be understood that the application control method provided in this embodiment can be applied to but not limited to various smart terminals. As shown in FIG. 1, the application control method includes the following steps.
  • the freezing condition for whether a certain motion application needs to be frozen can be flexibly set.
  • the freezing condition may include, but is not limited to: the application is switched from the foreground to the background; the terminal where the application is located changes from the screen on to the screen when the application is running; and the freezing instruction is received, the freezing instruction may be Sending for applications running in the background can also be sent for applications running in the foreground.
  • the specific settings can be flexibly set according to the application scenario.
  • any freezing method can be used when freezing the application in this embodiment, as long as it can make the application in the frozen state no longer run to save energy, but it can be no better than restarting the application when the application is needed. , And only need to unfreeze it to make the run continue to run.
  • the configuration method of configuring the corresponding temporary unfreezing rule for the currently frozen application can be flexibly determined.
  • a correspondence table between the application list and the temporary thawing rule may be preset, and the correspondence table between the application list and the temporary thawing rule may include the application identification information of each application and the corresponding application identification information.
  • Temporary thawing rules in this embodiment, the correspondence table between the application list and the temporary thawing rules can be set and/or updated by at least one of the terminal manufacturer, service provider, and terminal user.
  • the identification information of the frozen application can be extracted, so that the temporary thawing rule corresponding to the frozen application can be matched in the correspondence table of the application list and the temporary thawing rule to configure the frozen application .
  • a corresponding temporary thawing rule can be configured for the currently frozen application according to the application type to which the currently frozen application belongs and the preset correspondence between the application type and the temporary thawing rule.
  • the corresponding relationship between the application type and the temporary unfreezing rule can also be set and/or updated by at least one of the terminal manufacturer, the service provider, and the terminal user.
  • the method for dividing the application types of applications can be flexibly adopted according to specific requirements. For example, it can be classified according to the real-time requirements of the application for its data processing; or it can be classified according to the functions that the application can realize, or it can be classified according to the category of the provider of the application, and so on.
  • it can be divided into a first application type, a second application type, and a third application type according to the real-time requirements of the application for its data processing.
  • the first application type can include applications that need to perform instantaneous application data, and can also be referred to as an instant messaging type.
  • it can include applications such as WeChat, QQ, stock watching, DingTalk, etc.; one example of the division standard can be In order to determine whether the background data transmission and reception of the application can be delayed, whether the data interaction needs to be processed immediately.
  • the second application type can include applications that can delay the processing of application data for a certain period of time.
  • the delay time can be flexibly set according to specific needs. It can be set to a few minutes or tens of minutes; in this example also
  • the second application type can be referred to as the circular alignment data type, which can include, but is not limited to, applications such as mailboxes, microblogs, and forums; the classification standard of one example can be based on the application's requirements for background data processing (for example, the delay can be delayed for a period of time) Time (such as several minutes to tens of minutes) to determine.
  • the third application type can include applications that users don’t care about data processing after being frozen.
  • the third application type can also be called a strictly controlled data type; for example, an example can include but is not limited to mobile phone reading Applications, etc.; one of the specific examples of the classification standard can be determined according to whether the user cares about the data behavior of the application after the application is switched to the background.
  • the application can be divided into a first application type, a second application type, and a third application type according to the functions implemented by the application.
  • the first application type may include at least one of various applications that implement office functions.
  • the second application type may include at least one of various applications that implement shopping functions.
  • the third application type may include at least one of various applications that implement entertainment functions.
  • classification methods for applications can be flexibly set according to specific application scenarios and needs, and the number of specific classifications can be flexibly set during application classification, and it is not limited to the three categories in the above example, for example, it can be divided into two categories according to requirements , Four categories, five categories, etc., I will not repeat them here.
  • the correspondence between application types and temporary thawing rules may be one-to-one correspondence between application types and temporary thawing rules, or there may be two or more application types corresponding to one temporary thawing rule, or one
  • the application type can correspond to two or more temporary thawing rules, and the specific corresponding methods can be flexibly set according to needs.
  • the first temporary unfreezing rule includes but is not limited to at least one of the following: detecting that the frozen application currently has data to be processed; and receiving a temporary unfreezing instruction.
  • the second temporary unfreezing rule may include, but is not limited to, at least one of the following: the continuous frozen duration of the frozen application reaches the preset frozen duration threshold; it should be understood that the frozen duration in this embodiment
  • the specific value of the threshold can be flexibly set according to requirements, for example, it can be 10 minutes, 15 minutes, 20 minutes, etc.; the cached amount of the currently pending data of the frozen application reaches the preset data cache amount threshold; the temporary unfreeze instruction is received; this implementation
  • the specific value of the data cache amount threshold in the example can also be flexibly set according to requirements.
  • the corresponding relationship between the application type and the temporary unfreezing rule may further include a third temporary unfreezing rule corresponding to the third application type.
  • a third temporary unfreezing rule corresponding to the third application type.
  • the above-mentioned third temporary unfreezing rule may include, but is not limited to: not unfreezing the frozen application; at this time, after obtaining the pending data of a frozen application, when it is determined that the frozen application is to be processed
  • the frozen application is not temporarily unfrozen, and the acquired data to be processed may be discarded.
  • the thawing rules in the above examples and the correspondence between thawing rules and application types can be flexibly adjusted according to requirements, and are not limited to the above examples.
  • the data to be processed in this embodiment may include, but is not limited to: network data from the network side, data sent from applications on other terminals, and at least data sent by other applications on the terminal One kind.
  • the application can maintain a normal running state, so that the processed data can be processed normally.
  • re-freezing rules can be set for temporarily thawed applications.
  • the same re-freezing rule can be set for each temporarily unfrozen application, or the re-freezing rule can be set separately for different types of applications according to the type of application. Which method is used can be flexibly set according to user needs.
  • this embodiment is described below with an example and several refreezing rules.
  • the refreezing rule includes but is not limited to at least one of the following: The thawing duration of the temporarily thawed application reaches the preset thawing duration threshold. ; The temporarily thawed application has processed its corresponding pending data; the temporarily thawed application has not processed data within the preset time period.
  • the re-freezing rules corresponding to different application types may be the same.
  • the refreezing rules corresponding to the first application type and the second application type may be the same.
  • the refreezing rules corresponding to different application types may also be different, such as the following.
  • the refreezing rule corresponding to the first application type may be: the temporarily thawed application has currently processed its corresponding pending data.
  • the refreezing rule corresponding to the second application type may include at least one of the following: the thawing duration of the temporarily thawed application reaches a preset thawing duration threshold.
  • the temporarily unfrozen application has not processed data within the preset time period.
  • the application control method may further include monitoring that the freeze management end condition of a certain frozen application (including at least one of the currently frozen state and the temporary thawing state) is triggered, releasing the control of the frozen application.
  • Freeze management in this embodiment, after the freeze management of a frozen application is released, the application is no longer restricted by the aforementioned unfreezing and freezing rules.
  • the freezing management end condition in this embodiment can also be flexibly set according to specific application scenarios.
  • the freezing management end condition may include, but is not limited to, at least one of the following: the frozen application stops running; the frozen application switches to the foreground; for the frozen application whose reason is that the terminal screen is turned off, it is detected The terminal is currently on.
  • the application control method provided in this embodiment controls the application by dynamically freezing and thawing, so that the application in the frozen state can no longer run, thereby improving the endurance of the terminal, and when the application in the frozen state needs to be reused It can be thawed directly without restarting the application; at the same time, at least one application in the frozen state can be temporarily thawed and re-freeze dynamically as needed, so that the application can send and receive packets normally during the temporary thawing period, and avoid application generation Perceivable packet loss or network unreachable, or server-side push message loss occurs, which improves user experience satisfaction.
  • the application types are divided into instant messaging type (i.e., the first application type), circular aligned data type (i.e., the second application type), and strictly controlled data type (i.e., the third application type).
  • the first temporary unfreezing rule includes detecting that the frozen application currently has data to be processed, and the data to be processed includes network data.
  • the terminal receives the message sent to the frozen application from the server, it will unfreeze the application according to the first temporary unfreeze rule callback operation; the application will continue to run after being unfrozen, so that the data packets received from the server will be processed normally ; After the application has processed the data packet, it can be determined that it reaches the re-freeze condition and freeze it again, and repeat the process.
  • the second temporary unfreeze rule includes: the frozen application has been frozen continuously for a period of time that reaches the preset frozen period threshold (for example, 15 minutes); The cache amount of the currently pending data (including network data) of the frozen application reaches the preset data cache amount threshold.
  • the timer can be started after the application is frozen.
  • the terminal receives a message sent to the frozen application from the server side, it determines whether it needs to be unfrozen according to the second temporary unfreezing rule, for example, to determine whether the current cache number is reached The preset data cache amount threshold.
  • the application will be actively unfrozen, and the application will continue to run after being unfrozen so that the data packets received from the server will be processed normally. If the preset data cache threshold is reached, the application can continue to be collected; It can also determine whether the timer reaches 15 minutes. If it reaches 15 minutes, the application is also unfrozen, and the application continues to run after being unfrozen to process the cached data packets accordingly. After the application is thawed, it is determined whether the thawing duration of the application reaches the preset thawing duration threshold (for example, 1 minute), and if so, it is determined that it reaches the re-freezing condition and the application is frozen again, repeating and repeating the same.
  • the preset thawing duration threshold for example, 1 minute
  • the third temporary unfreezing rule For strictly controlled data types, after the application is frozen, configure the third temporary unfreezing rule for it, including not unfreezing the frozen application; at this time, when the terminal receives a message sent to the frozen application from the server side, according to the third The temporary unfreezing rule determines that the received data packet is directly discarded until the freeze management end condition of the application is triggered and the freeze management is released.
  • the application can be immediately unfrozen, and all management and control policies of the application are cancelled, and network restrictions are no longer performed until the application switches to the background again .
  • the application control method provided in this embodiment can dynamically freeze and unfreeze the application according to the application type, so that the application can normally send and receive packets during the temporary thawing period, and can re-enter the frozen state after processing the data, thereby While achieving terminal energy saving, it also improves user experience satisfaction.
  • the application control device can be set on a terminal, as shown in FIG. 2, and includes: a freeze management module 201, which is used to freeze a running application. Configure the temporary unfreeze rule corresponding to the currently frozen application, and when it is monitored that a frozen application currently meets its corresponding temporary unfreeze rule, temporarily unfreeze the frozen application and monitor a temporary unfreeze When the app currently satisfies its corresponding re-freezing rule, the temporarily unfrozen application is re-freeze.
  • a freeze management module 201 which is used to freeze a running application. Configure the temporary unfreeze rule corresponding to the currently frozen application, and when it is monitored that a frozen application currently meets its corresponding temporary unfreeze rule, temporarily unfreeze the frozen application and monitor a temporary unfreeze When the app currently satisfies its corresponding re-freezing rule, the temporarily unfrozen application is re-freeze.
  • the application control device may further include an application management module 202, an application freezing module 203, and a kernel network protocol stack 204, an application management module 202, an application freezing module 203, and a kernel
  • the network protocol stack 204 can cooperate with the freeze management module 201 to implement the above-mentioned application control method.
  • the freezing management module 201 is responsible for the application status reported by other modules and the issuance of operations such as freezing, thawing, and rules.
  • this embodiment will be described below with reference to a control process of the above modules as an example.
  • the control process can be applied to the framework of the Android system, and can also be applied to the framework of IOS or other operating systems.
  • the application management module 202 and the freezing management module 201 are provided at the system framework layer.
  • the application freezing module 203 is set at the system kernel layer.
  • the system kernel layer refers to the Framework part (system application framework layer) of the Android framework, which may include resource management, including management of applications, and an example may also include the freezing management shown in this embodiment, That is, the freeze management related modules and functions in this embodiment are also added at the system framework layer.
  • the system kernel layer is the core part of the operating system.
  • Android is Linux Kernel, which implements hardware device drivers, process and memory management, network protocol stack, power management, wireless communication and other core functions through the help of Linux kernel services.
  • the application management module 202 can determine which type of data management the application belongs to (for example, which type of the three types shown in the foregoing embodiment), and then report to the freeze management module 201.
  • the application management module 202 When the application management module 202 detects that an application is switched to the background during the running process, it reports to the freeze management module 201 that the running state of the application is background running.
  • the freezing management module 201 After determining that the application can be frozen, the freezing management module 201 directly issues a command to freeze the application to the application freezing module 203; if the application belongs to the circular alignment data type, the application can be added to the circular alignment list for subsequent unified management.
  • the freezing management module 201 issues corresponding rules (such as the temporary unfreezing rule and the corresponding re-freezing rule shown in the above embodiment) to the system kernel network protocol stack 204 according to the type of application to be frozen.
  • corresponding rules such as the temporary unfreezing rule and the corresponding re-freezing rule shown in the above embodiment
  • the application freezing module 203 freezes the application after receiving the command sent by the freezing management module 201, and notifies the kernel network protocol stack 204 after the freezing is completed.
  • the kernel network protocol stack 204 finds that the received data packet and the corresponding received application of the data packet are in a frozen state, it executes the temporary unfreezing rule corresponding to the frozen application.
  • Temporary unfreezing rules can include: the frozen application continues to be frozen for a period of time that reaches the preset freezing period threshold (for example, 15 minutes), and a cycle alignment timer can be set for timing, and the cycle alignment list can be adjusted when the cycle alignment timer reaches Unfreeze all applications in the application; it can also include that the cached amount of currently pending data of the frozen application reaches the preset data cache amount threshold. As long as any one of the two conditions is met, it can be confirmed that the temporary unfreeze rule is satisfied.
  • the freezing management module 201 may re-issue a freezing command to the application freezing module 203 to freeze the temporarily thawed application when the refreezing condition of the temporarily thawed application is satisfied.
  • the above control process is repeated for a certain frozen application until the freeze management end condition of the frozen application is triggered to release the frozen management.
  • control process for applications belonging to the instant messaging type includes the following steps.
  • the freeze management module 201 receives a notification that an application with a UID (Android Application Identification ID) of 10001 is switched to the background; the type of the application belongs to the instant messaging type.
  • UID Android Application Identification ID
  • the freezing management module 201 sends an instruction to freeze the application to the application freezing module 203.
  • the freezing management module 201 sends the corresponding first temporary unfreezing rule and the corresponding refreezing rule to the kernel network protocol stack 204.
  • the application freezing module 203 completes the freezing of the application.
  • the application freezing module 203 sends a notification that the application has been frozen to the core network protocol stack 204.
  • the core network protocol stack 204 receives the data packet sent to the application with the UID of 10001.
  • the core network protocol stack 204 sends a callback request for the first temporary unfreezing rule of the application to the freeze management module 201.
  • the freezing management module 201 sends an instruction to unfreeze the application to the application freezing module 203.
  • the application freezing module 203 completes the thawing of the application.
  • the application freezing module 203 sends a notification of normal operation of the application to the kernel network protocol stack 204 after the thawing is completed.
  • S310 The core network protocol stack 204 detects that the application has finished processing the data packet.
  • the core network protocol stack 204 sends a notification that the data packet processing is completed to the freeze management module 201.
  • the freezing management module 201 sends a freezing instruction to the application freezing module 203 to freeze the application again.
  • control process for applications belonging to the circular aligned data type includes the following steps.
  • the freeze management module 201 receives a notification that an application with a UID (Android Application Identification ID) of 10002 is switched to the background.
  • the application type belongs to the circular aligned data type.
  • the freezing management module 201 sends an instruction to freeze the application to the application freezing module 203.
  • the freezing management module 201 sends the corresponding second temporary unfreezing rule and the corresponding refreezing rule to the kernel network protocol stack 204.
  • the application freezing module 203 completes the freezing of the application.
  • the application freezing module 203 sends a notification that the application has been frozen to the core network protocol stack 204.
  • the core network protocol stack 204 receives and buffers the data packet sent to the application with the UID of 10002.
  • the core network protocol stack 204 detects that the buffered data packet corresponding to the application exceeds the threshold.
  • the core network protocol stack 204 sends a callback request for the second temporary unfreezing rule of the application to the freeze management module 201.
  • the freezing management module 201 sends an instruction to unfreeze the application to the application freezing module 203.
  • the application freezing module 203 completes the thawing of the application.
  • the application freezing module 203 sends a notification of normal operation of the application to the kernel network protocol stack 204 after the thawing is completed.
  • the freezing management module 201 sends a freezing instruction to the application freezing module 203 to freeze the application again.
  • the application freezing module 203 completes the re-freezing of the application and sends a notification to the kernel network protocol stack 204.
  • the freezing management module 201 determines that the cycle timer reaches, for example, 15 minutes.
  • the freezing management module 201 sends to the application freezing module 203 each frozen application in the un-circular alignment list.
  • S416 The application freezing module 203 completes the unfreezing of each application in the circular alignment list.
  • the application freezing module 203 sends a notification of normal operation of the application to the kernel network protocol stack 204.
  • the freezing management module 201 sends a freezing instruction to the application freezing module 203 to freeze the applications in the circular alignment list again.
  • the kernel network protocol stack 204 can Drop the packet directly.
  • the terminal in this embodiment may be a variety of communication terminals that can communicate with the core network through a base station, including various mobile terminals, and may also be a non-transitory terminal that can communicate with the core network through a base station.
  • Mobile terminal. 5 it includes a processor 501, a memory 502, and a communication bus 503; the communication bus 503 is used to connect the processor 501 and the memory 502; the processor 501 is used to execute the computer program stored in the memory 502 to achieve the above The steps of the application control method shown in each embodiment.
  • the memory 502 here may be the memory of the terminal itself; it may not include the memory set on the terminal component that can be separated from the terminal; of course, it can also be set to include the memory set on the terminal component that can be separated from the terminal according to requirements.
  • the terminal shown in Figure 5 in this embodiment can be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a smart TV, a mobile Internet device, a wearable device, or other terminal that can install an application client, or any other terminal that can be installed.
  • a terminal or device that implements the application processing method of this application the specific structure of a terminal is used as an example for description in this embodiment below.
  • the terminal 600 includes a radio frequency circuit 608, a memory 602 of one or more computer-readable storage media, an input unit 603, a display unit 604, a sensor 605, an audio circuit 606, A network connection module 607 (such as a Wi-fi module), one or more processors 601, and a power supply 609 and other components.
  • the radio frequency circuit 608 can be used to receive and send communication signals, receive information from the base station, and then hand it over to the processor 601 for processing.
  • the memory 602 is used to store software programs (including but not limited to the foregoing computer programs) and modules, and the processor 601 executes various functions and data processing by running the software programs or modules of the memory 602.
  • the input unit 603 can be used to receive inputted number or character information.
  • the input unit 603 may include various input devices, such as touch screen input, and other input devices.
  • the input unit 603 also converts various input information into computer instructions and sends them to the processor 601, and can also receive commands from the processor 601 for execution.
  • the display unit 604 is used to display information input by the user or information provided by the terminal to the user and various graphical user interfaces on the terminal.
  • the terminal 600 also includes at least one sensor, such as a light sensor, a motion sensor, and so on.
  • the terminal 600 may also include components such as an audio circuit 606, a network connection module 607, and a power supply 609.
  • This embodiment also provides a computer-readable storage medium, which is included in any method or technology for storing information (such as computer-readable instructions, data structures, computer program modules, or other data). Volatile or non-volatile, removable or non-removable media.
  • Computer readable storage media include but are not limited to RAM (Random Access Memory), ROM (Read-Only Memory, read-only memory), EEPROM (Electrically Erasable Programmable read only memory, charged Erasable Programmable Read-Only Memory) ), flash memory or other storage technology, CD-ROM (Compact Disc Read-Only Memory), digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, Or any other medium that can be used to store desired information and can be accessed by a computer.
  • the computer-readable storage medium in this embodiment can be used to store one or more computer programs, and the one or more computer programs can be executed by one or more processors, so as to implement the methods described in the above embodiments. Shows the steps of the application control method.
  • the computer-readable storage medium in this embodiment can be directly set in the terminal.
  • This embodiment also provides a computer program (or computer software).
  • the computer program can be distributed on a computer-readable medium and executed by a computable device to implement at least the application control method shown in the above embodiments.
  • One step; and in some cases, at least one step shown or described can be performed in an order different from that described in the foregoing embodiment.
  • This embodiment also provides a computer program product, including a computer readable device, and the computer readable device stores the computer program as shown above.
  • the computer-readable device in this embodiment may include the computer-readable storage medium as shown above.
  • communication media usually contain computer-readable instructions, data structures, computer program modules, or other data in a modulated data signal such as a carrier wave or other transmission mechanism, and may include any information delivery medium. Therefore, this application is not limited to any specific hardware and software combination.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Electrotherapy Devices (AREA)
  • Vehicle Body Suspensions (AREA)
  • Input Circuits Of Receivers And Coupling Of Receivers And Audio Equipment (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

一种应用控制方法、装置、终端(600)及计算机可读存储介质,应用控制方法,包括:在对某一运行的应用进行冻结时,为该当前被冻结的应用配置对应的临时解冻规则(S101);监测到某一被冻结应用当前满足其所对应的临时解冻规则时,对该被冻结应用进行临时解冻(S102);监测到某一临时解冻的应用当前满足其所对应的重新冻结规则时,对该临时解冻的应用重新冻结(S103)。

Description

应用控制方法、装置、终端及计算机可读存储介质
交叉引用
本申请引用于2019年04月30日递交的名称为“应用控制方法、装置、终端及计算机可读存储介质”的第201910364434.2号中国专利申请,其通过引用被全部并入本申请。
技术领域
本申请实施例涉及但不限于通信领域,具体而言,涉及但不限于一种应用控制方法、装置、终端及计算机可读存储介质。
背景技术
智能终端已经成为人们生活和工作中离不开的重要工具。而智能终端的续航问题是各种智能终端的都存在的短板。终端上应用后台的数据收发是使得终端续航缩短的其中一个主要原因。为了提升终端续航,针对应用后台数据收发问题,目前一般有以下两种做法。
做法一:对终端上的后台应用进行定时清理,这种做法的缺点就是用户再次使用该应用时需要重新启动该应用,用户体验差。
做法二:应用切换到后台后为处于后台运行的应用配置防火墙,从而禁止该应用在后台收发包;但通过防火墙禁止该应用在后台收发包时,发给该应用的所有收发包都会被丢弃,导致应用可感知的丢包或网络不可达、以及服务器端的推送消息丢失;用户体验满意度也差。
可见,目前对于终端后台应用的控制方式都不合理,导致用户体验满意度差。
发明内容
本申请实施例提供的应用控制方法、装置、终端及计算机可读存储介质,主要解决的技术问题是:解决目前对于终端后台应用的控制方式不合理,用户体验满意度差。
为解决上述技术问题,本申请实施例提供一种应用控制方法,包括:在对某一运行的应用进行冻结时,为该当前被冻结的应用配置对应的临时解冻规则;监测到某一被冻结应用当前满足其所对应的临时解冻规则时,对该被冻结应用进行临时解冻;监测到某一临时解冻的应用当前满足其所对应的重新冻结规则时,对该临时解冻的应用重新冻结。
另外,所述为该当前被冻结的应用配置对应的临时解冻规则包括:根据当前被冻结的应用所属的应用类型以及应用类型和临时解冻规则对应关系,为该当前被冻结的应用配置对应的临时解冻规则。
另外,所述应用类型和临时解冻规则对应关系包括:第一应用类型对应的第一临时解冻规则,所述第一临时解冻规则包括:检测到被冻结应用当前有待处理数据;第二应用类型对应的第二临时解冻规则,所述第二临时解冻规则包括以下至少之一:被冻结应用连续被冻结时长达到预设冻结时长阈值;被冻结应用当前待处理数据的缓存量达到预设数据缓存量阈值。
另外,所述应用类型和临时解冻规则对应关系还包括:第三应用类型对应的第三临时解冻规则,所述第三临时解冻规则包括:不对被冻结应用进行解冻。
另外,所述应用控制方法还包括:获取到某一被冻结应用的待处理数据,且该被冻结应用的应用类型属于所述第三应用类型时,将获取的该待处理数据丢弃。
另外,所述待处理数据包括发给被冻结应用的网络数据。
另外,所述重新冻结规则包括以下至少之一:临时解冻的应用的解冻时长达到预设解冻时长阈值;临时解冻的应用当前处理完其对应的待处理数据;临时解冻的应用在预设时长内未进行数据处理。
另外,所述方法还包括:监测到某一被冻结应用的冻结管理结束条件触发时,解除对该被冻结应用的冻结管理;所述冻结管理结束条件包括以下至少 之一:被冻结应用停止运行;被冻结应用切换到前台运行;对于被冻结原因为终端熄屏的被冻结应用,检测到终端当前亮屏。
为了解决上述问题,本申请实施例还提供了一种应用控制装置,包括:冻结管理模块,用于在对某一运行的应用进行冻结时,为该当前被冻结的应用配置对应的临时解冻规则,并在监测到某一被冻结应用当前满足其所对应的临时解冻规则时,对该被冻结应用进行临时解冻,以及用于监测到某一临时解冻的应用当前满足其所对应的重新冻结规则时,对该临时解冻的应用重新冻结。
为了解决上述问题,本申请实施例还提供了一种终端,包括处理器、存储器和通信总线;所述通信总线用于将所述处理器和存储器连接;所述处理器用于执行所述存储器中存储的计算机程序,以实现如上所述的应用控制方法的步骤。
为了解决上述问题,本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有一个或者多个计算机程序,所述一个或者多个计算机程序可被一个或者多个处理器执行,以实现如上所述的应用控制方法的步骤。
本申请其他特征和相应的有益效果在说明书的后面部分进行阐述说明,且应当理解,至少部分有益效果从本申请说明书中的记载变的显而易见。
附图说明
图1为本申请实施例一提供的应用控制方法流程示意图;
图2为本申请实施例三提供的应用控制装置结构示意图;
图3为本申请实施例三提供的第一应用类型的应用冻结控制过程示意图;
图4为本申请实施例三提供的第二应用类型的应用冻结控制过程示意图;
图5为本申请实施例四提供的终端结构示意图;
图6为本申请实施例四提供的另一终端结构示意图。
具体实施方式
为了使本申请的目的、技术方案及优点更加清楚明白,下面通过具体实 施例结合附图对本申请实施例作进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。
本领域技术人员可以理解的,本申请的下述实施例中,终端可以是手机、平板电脑、笔记本电脑、掌上电脑、智能电视机、移动互联网设备、可穿戴设备、或其他可以安装应用客户端的终端,也可以是其他任何可实现本申请应用处理方法的终端或装置,本申请并不对此进行限定。
实施例一
针对目前对于终端后台应用的控制方式都不合理,导致用户体验满意度差的问题,本实施例提供了一种应用控制方法,可以对终端的后台应用采用动态冻结策略从而实现节能和正常收发包的平衡,提升用户体验满意度。
为了便于理解,本实施例下面以图1所示的应用控制方法为示例进行说明,应当理解的是本实施例所提供的应用控制方法可应用于但不限于各种智能终端。其中参见图1所示,该应用控制方法包括以下步骤。
S101:在对某一运行的应用进行冻结时,为该当前被冻结的应用配置对应的临时解冻规则。
在本实施例中,对某一运动的应用是否需要进行冻结的冻结条件可以灵活设置。例如,一种示例中该冻结条件可以包括但不限于:应用由前台被切换到后台;应用在运行过程中,其所在终端由亮屏变为熄屏;接收到冻结指令,该冻结指令可以是针对后台运行的应用发送的,也可以时针对前台运行的应用发送,具体可根据应用场景灵活设置。
应当理解的是,本实施例中对应用进行冻结时可以采用任意冻结方式,只要其能使得处于冻结状态的应用无法再运行从而节省能耗,但在需要使用该应用时可不比重新启动该应用,而只需要将其进行解冻即可使得该运行继续运行即可。
在本实施例中,为当前被冻结的应用配置对应的临时解冻规则的配置方式可以灵活确定。
例如,一种示例中,可以预先设置一个应用清单与临时解冻规则的对应关系表,该应用清单与临时解冻规则的对应关系表中可包括各应用的应用识别信息以及各应用识别信息各自对应的临时解冻规则;本实施例中该应用清单与 临时解冻规则的对应关系表可由终端厂商、服务提供方、终端用户中的至少一方进行设置和/或更新。在对某一应用进行冻结时,可以提取该被冻结应用的识别信息,从而在应用清单与临时解冻规则的对应关系表中匹配该被冻结应用所对应的临时解冻规则以为该被冻结应用进行配置。
又例如,在另一示例中,可以根据当前被冻结的应用所属的应用类型以及预先设置的应用类型和临时解冻规则对应关系,为该当前被冻结的应用配置对应的临时解冻规则。该应用类型和临时解冻规则对应关系也可由终端厂商、服务提供方、终端用户中的至少一方进行设置和/或更新。且本实施例中,对于应用的应用类型的划分方式可以根据具体需求灵活采用。例如,可以根据应用对其数据处理的实时性要求对其进行分类;或则可以根据应用所能实现的功能对其进行分类,或者可以根据应用的提供商类别对其进行分类等等。
例如,在一种应用场景中,可以根据应用对其数据处理的实时性要求将其分为第一应用类型、第二应用类型和第三应用类型。
第一应用类型:可包括需要对应用的数据进行即时的应用,也可称之为即时通信类型,例如可以包括微信、QQ、股票看盘、钉钉等应用;其中一种示例的划分标准可为确定应用的后台数据收发能不能被延迟,数据交互是否需要立即处理完成。
第二应用类型:可包括对应用的数据可以暂缓延迟处理一定时间的应用,可以暂缓延迟的时间可根据具体需求灵活设置,可以设置为几分钟,也可设置为几十分钟;本示例中也可称第二应用类型为循环对齐数据类型,例如可以包括但不限于邮箱、微博、论坛等应用;其中一种示例的划分标准可以根据应用对后台数据处理的需求(例如是可以暂缓延迟一段时间(如几分钟至几十分钟)进行确定。
第三应用类型:可包括被冻结后用户不关心其是否进行数据处理的应用,本示例中也可称第三应用类型为严格管控数据类型;例如一种示例中可包括但不限于手机阅读类应用等;其中一种具体示例的划分标准可以是根据用户在应用切换到后台后是否关心应用的数据行为进行确定。
又例如,在另一种应用场景中,可以根据应用所实现的功能将其分为第一应用类型、第二应用类型和第三应用类型。
第一应用类型:可包括各种实现办公功能的应用中的至少一个。
第二应用类型:可包括各种实现购物功能的应用中的至少一个。
第三应用类型:可包括各种实现娱乐功能的应用中的至少一个。
对于应用的其他分类方式都可根据具体应用场景和需求灵活设置,且对于应用分类时具体的分类个数都可灵活设置,也并不限于上述示例的三类,例如可以根据需求划分为两类、四类、五类等,在此不再赘述。
另外,在本实施例中,应用类型和临时解冻规则对应关系中,可以是应用类型和临时解冻规则一一对应,也可以是存在两个或以上的应用类型对应一种临时解冻规则,或者一个应用类型可对应两种或以上的临时解冻规则,具体对应方式都可根据需求灵活设置。
为了便于理解,本实施例下面以一种应用类型和临时解冻规则对应关系为示例进行说明,该对应关系请参见下表1所示。
表1
应用类型 临时解冻规则
第一应用类型 第一临时解冻规则
第二应用类型 第二临时解冻规则
其中,一种示例中,第一临时解冻规则包括但不限于以下至少之一:检测到被冻结应用当前有待处理数据;接收到临时解冻指令。
在本实施例的另一示例中,第二临时解冻规则可包括但不限于以下至少之一:被冻结应用连续被冻结时长达到预设冻结时长阈值;应当理解的是,本实施例中冻结时长阈值的具体取值可以根据需求灵活设置,例如可以为10分钟、15分钟、20分钟等;被冻结应用当前待处理数据的缓存量达到预设数据缓存量阈值;接收到临时解冻指令;本实施例中数据缓存量阈值的具体取值也可以根据需求灵活设置。
在本实施例的另一示例中,应用类型和临时解冻规则对应关系还可包括第三应用类型对应的第三临时解冻规则,该对应关系请参见下表2所示。
表2
应用类型 临时解冻规则
第一应用类型 第一临时解冻规则
第二应用类型 第二临时解冻规则
第三应用类型 第三临时解冻规则
在本实施例的一种应用场景中,上述第三临时解冻规则可包括但不限于:不对被冻结应用进行解冻;此时取到某一被冻结应用的待处理数据后,当确定该被冻结应用的应用类型属于第三应用类型时,不对该被冻结应用临时解冻,并可将获取的该待处理数据丢弃。
应当理解的是,上述示例的解冻规则,以及解冻规则与应用类型的对应关系都可根据需求进行灵活的调整,并不限于上述示例。另外,应当理解的是,本实施例中的待处理数据可以包括但不限于:来自网络侧的网络数据,来自其他终端上的应用发送的数据,终端本地上的其他应用发送的数据中的至少一种。
S102:监测到某一被冻结应用当前满足其所对应的临时解冻规则时,对该被冻结应用进行临时解冻。
被冻结应用临时解冻之后,该应用可以保持正常的运行状态,从而可以正常的对待其处理的数据进行相应的处理。
S103:监测到某一临时解冻的应用当前满足其所对应的重新冻结规则时,对该临时解冻的应用重新冻结。
在本实施例中,对某一被冻结应用临时解冻之后,还可监测该应用是否又需要重新进行冻结,也即动态的对应用实现冻结和解冻,以在终端节能和应用数据的正常处理之间寻找到一个合理的平衡点,达到既能合理的节能又不影响至少部分应用正常使用的效果,提升终端节能控制的合理性,从而提升用户体验的满意度。
因此,在本实施例中,可以为临时解冻的应用设置重新冻结规则。在本实施例的一种示例中,可以为各临时解冻的应用设置相同的重新冻结规则,也可根据应用的类型为不同类型的应用分别设置重新冻结规则。具体采用哪种方式可以根据用户需求灵活设定。为了便于理解,本实施例下面以一种示例几种重新冻结规则进行说明,在本示例中该重新冻结规则包括但不限于以下至少之 一:临时解冻的应用的解冻时长达到预设解冻时长阈值;临时解冻的应用当前处理完其对应的待处理数据;临时解冻的应用在预设时长内未进行数据处理。
在本实施例中,不同应用类型对应的重新冻结规则可以相同。例如上述第一应用类型和第二应用类型对应的重新冻结规则可相同。在一些示例中,不同应用类型对应的重新冻结规则也可以不同,例如以下几种。
第一应用类型对应的重新冻结规则可为:临时解冻的应用当前处理完其对应的待处理数据。
第二应用类型对应的重新冻结规则可包括以下至少之一:临时解冻的应用的解冻时长达到预设解冻时长阈值。
临时解冻的应用在预设时长内未进行数据处理。
在本实施例中,应用控制方法还可包括监测到某一被冻结应用(包括当前处于冻结状态和临时解冻状态中的至少一种)的冻结管理结束条件触发时,解除对该被冻结应用的冻结管理;本实施例中解除对被冻结应用的冻结管理之后,该应用则不再受上述解冻和冻结规则限制。且应当理解的是,本实施例中冻结管理结束条件可以也可以根据具体应用场景灵活设置。例如,一种示例中,冻结管理结束条件可包括但不限于以下至少之一:被冻结应用停止运行;被冻结应用切换到前台运行;对于被冻结原因为终端熄屏的被冻结应用,检测到终端当前亮屏。
可见,本实施例提供的应用控制方法通过对应用采用动态冻结和解冻方式进行控制,可使得处于冻结状态的应用无法再运行从而提升终端续航能力,而在需要重新使用到冻结状态的应用时对其直接解冻即可,不需要重新启动应用;同时,还可根据需要动态的对处于冻结状态的至少一个应用进行临时解冻以及重新冻结,使得该应用在临时解冻期间可正常收发包,避免应用产生可感知的丢包或出现网络不可达、或服务器端的推送消息丢失等情况发生,从提升用户体验满意度。
实施例二
为了便于理解,本实施例下面以根据当前被冻结的应用所属的应用类型以及预先设置的应用类型和临时解冻规则对应关系为示例进行说明。在本示例中,应用类型划分为即时通信类型(即第一应用类型)、循环对齐数据类型(即 第二应用类型)、严格管控数据类型(即第三应用类型)。
对于即时通信类型,在应用冻结后,为其配置第一临时解冻规则,本示例中第一临时解冻规则包括:检测到被冻结应用当前有待处理数据,且待处理数据包括网络数据。此时在终端从服务器端接收到发给该被冻结应用的消息时,根据第一临时解冻规则回调操作解冻该应用;应用被解冻后继续运行从而使得从服务器端接收到的数据包被正常处理;在该应用处理完数据包之后可判定其达到重新冻结的条件而再次将其冻结,如此重复执行。
对于循环对齐数据类型,在应用冻结后,为其配置第二临时解冻规则,本示例中第二临时解冻规则包括:被冻结应用连续被冻结时长达到预设冻结时长阈值(例如15分钟);被冻结应用当前待处理数据(包括网络数据)的缓存量达到预设数据缓存量阈值。在应用冻结后可启动定时器,此时在终端从服务器端接收到发给该被冻结应用的消息时,根据第二临时解冻规则确定是否需要对其进行解冻,例如判断当前是否缓存数量是否达到预设数据缓存量阈值,如果达到,则主动解冻该应用,应用被解冻后继续运行从而使得从服务器端接收到的数据包被正常处理,如果为达到预设数据缓存量阈值则可继续收取;并可判断定时器是否达到15分钟,如果达到,也解冻该应用,应用被解冻后继续运行以对缓存的数据包进行相应的处理。在应用被解冻后,判断该应用的解冻时长是否达到预设解冻时长阈值(例如1分钟),如是,则判定其达到重新冻结的条件而再次将其冻结,如此重复执行,如此重复执行。
对于严格管控数据类型,在应用冻结后,为其配置第三临时解冻规则,包括不对被冻结应用进行解冻;此时在终端从服务器端接收到发给该被冻结应用的消息时,根据第三临时解冻规则确定对接收到的数据包直接丢弃,直到该应用的冻结管理结束条件触发而对其解除冻结管理。
在本实施例的一种示例中,不管上述哪种应用,如果用户主动点击应用切换为前台可以立即解冻应用,同时取消该应用的所有管控策略,不再进行网络限制,直到该应用再次切换后台。
可见,本实施例提供的应用控制方法可根据应用类型对应用采用动态冻结和解冻方式进行控制,使得该应用在临时解冻期间可正常收发包,在处理完数据之后则可重新进入冻结状态,从而达到终端节能的同时,提升用户体验满 意度。
实施例三
本实施例提供了一种应用控制装置,该应用控制装置可设置于终端上,请参见图2所示,包括:冻结管理模块201,用于在对某一运行的应用进行冻结时,为该当前被冻结的应用配置对应的临时解冻规则,并在监测到某一被冻结应用当前满足其所对应的临时解冻规则时,对该被冻结应用进行临时解冻,以及用于监测到某一临时解冻的应用当前满足其所对应的重新冻结规则时,对该临时解冻的应用重新冻结。其中冻结管理模块201实现上述功能的具体过程请参见上述各实施例所示,在此不再赘述。
请参见图2所示,本实施例的一种示例中,的应用控制装置还可包括应用管理模块202、应用冻结模块203以及内核网络协议栈204,应用管理模块202、应用冻结模块203以及内核网络协议栈204可与冻结管理模块201配合实现上述应用控制方法。冻结管理模块201负责其他模块上报的应用状以及进行冻结、解冻以及规则等操作的下发。为了便于理解,本实施例下面结合上述各模块的一种控制过程为示例进行说明。该控制过程可应用于安卓系统框架,也可应用于IOS或其他操作系统框架,一种示例中应用管理模块202、冻结管理模块201设置在系统框架层。应用冻结模块203设置在系统内核层。例如,以Android系统为例:Android由底层往上分为4个主要功能层,分别是linux内核层(Linux Kernel),系统运行时库层(Libraries和Android Runtime),应用程序架构层(Application Framework)和应用程序层(Applications)。系统框架层指的是Android框架的Framework部分(系统应用程序框架层),其可包含资源管理,其中包含对应用程序的管理,一种示例中也可包括本实施例中所示的冻结管理,也即本实施例中的冻结管理相关模块、功能也增加在系统框架层。系统内核层是操作系统的核心部分,例如Android就是Linux Kernel,通过借助Linux内核服务实现硬件设备驱动,进程和内存管理,网络协议栈,电源管理,无线通信等核心功能。
为了便于理解,下面结合上述示例的模块对控制过程进行以下示例说明。
应用启动,应用管理模块202可判断该应用属于数据管控的哪种类型(例如属于上述实施例中所示里的三种类型的哪种类型),然后上报冻结管理模块 201。
应用管理模块202在检测到某一应用运行过程中切换到后台时,向冻结管理模块201上报该应用的运行状态为后台运行。
冻结管理模块201判断该应用可以冻结后,直接下发冻结该应用的命令到应用冻结模块203;如果该应用属于循环对齐数据类型,可该应用则添加到循环对齐列表以便于后续统一管理。
冻结管理模块201根据待冻结应用的类型,下发对应的规则(例如上述实施例中所示的临时解冻规则和对应的重新冻结规则)到系统内核网络协议栈204。
应用冻结模块203接收到冻结管理模块201发送的命令后对该应用进行冻结,并在冻结完成后通知内核网络协议栈204。
内核网络协议栈204发现收到的数据包且该数据包对应接收的应用处于冻结状态,则执行该冻结应用对应的临时解冻规则。
根据第一临时解冻规则或则第二临时解冻规则确定对该冻结应用进行临时解冻时,冻结管理模块201下发对应应用解冻命令到应用冻结模块203;本实施例中针对循环对齐数据类型的应用的临时解冻规则可以包括:被冻结应用连续被冻结时长达到预设冻结时长阈值(例如15分钟),且可设置一个循环对齐定时器来进行计时,当循环对齐定时器达到时可以对循环对齐列表中的所有应用进行统一解冻;还可包括被冻结应用当前待处理数据的缓存量达到预设数据缓存量阈值,只要两个条件中的任意之一满足则都可确认为临时解冻规则满足。
冻结管理模块201在临时解冻的应用的重新冻结条件满足时,则可向应用冻结模块203重新下发冻结命令以将该临时解冻的应用进行冻结。
针对某一冻结应用重复上述控制过程直到该冻结应用的冻结管理结束条件触发而对其解除冻结管理。
为了便于理解,本实施例下面分别以即时通信类型(即第一应用类型)的应用和循环对齐数据类型(即第二应用类型)的应用的控制过程分别进行示例说明。
请参见图3所示,对于属于即时通信类型的应用的控制过程包括以下步骤。
S300:冻结管理模块201接收到UID(安卓应用识别ID)为10001的应用切换到后台的通知;该应用的类型属于即时通信类型。
S301:冻结管理模块201向应用冻结模块203发送冻结该应用的指令。
S302:冻结管理模块201向内核网络协议栈204发送对应的第一临时解冻规则以及对应的重新冻结规则。
S303:应用冻结模块203完成该应用的冻结。
S304:应用冻结模块203向核网络协议栈204发送应用已冻结的通知。
S305:核网络协议栈204接收到发给UID为10001的应用的数据包。
S306:核网络协议栈204向冻结管理模块201发送针对该应用的第一临时解冻规则的回调请求。
S307:冻结管理模块201向应用冻结模块203发送解冻该应用的指令。
S308:应用冻结模块203完成该应用的解冻。
S309:应用冻结模块203解冻完成后向内核网络协议栈204发送应用正常运行通知。
S310:核网络协议栈204检测到该应用完成数据包的处理。
S311:核网络协议栈204向冻结管理模块201发送数据包处理完毕的通知。
S312:冻结管理模块201向应用冻结模块203发送冻结指令以再次冻结该应用。
请参见图4所示,对于属于循环对齐数据类型的应用的控制过程包括以下步骤。
S400:冻结管理模块201接收到UID(安卓应用识别ID)为10002的应用切换到后台的通知。该应用的类型属于循环对齐数据类型。
S401:冻结管理模块201向应用冻结模块203发送冻结该应用的指令。
S402:冻结管理模块201向内核网络协议栈204发送对应的第二临时解冻规则以及对应的重新冻结规则。
S403:应用冻结模块203完成该应用的冻结。
S404:应用冻结模块203向核网络协议栈204发送应用已冻结的通知。
S405:核网络协议栈204接收到发给UID为10002的应用的数据包进行 缓存。
S406:核网络协议栈204检测到该应用对应的缓存的数据包超过阈值。
S407:核网络协议栈204向冻结管理模块201发送针对该应用的第二临时解冻规则的回调请求。
S408:冻结管理模块201向应用冻结模块203发送解冻该应用的指令。
S409:应用冻结模块203完成该应用的解冻。
S410:应用冻结模块203解冻完成后向内核网络协议栈204发送应用正常运行通知。
S411:进行数据包的处理。
S412:冻结管理模块201向应用冻结模块203发送冻结指令以再次冻结该应用。
S413:应用冻结模块203完成该应用的重新冻结并发通知给内核网络协议栈204。
S414:冻结管理模块201确定循环定时器达到,例如到达15分钟。
S415:冻结管理模块201向应用冻结模块203发送解除循环对齐列表中的各冻结应用。
S416:应用冻结模块203完成循环对齐列表中各应用的解冻。
S417:应用冻结模块203向内核网络协议栈204发送应用正常运行通知。
S418:临时解冻应用的数据包被处理。
S419:对齐窗口结束,也即解冻时长达到预设时长。
S420:冻结管理模块201向应用冻结模块203发送冻结指令以再次将该循环对齐列表中的应用进行冻结。
在本实施例的一种示例中,如果内核网络协议栈204当前收到的数据包是发给应用UID为10003的,且UID 10003应用属于严格管控数据类型的应用时,内核网络协议栈204可以直接丢弃该数据包。
实施例四
本实施例提供了一种终端,本实施例中的终端可以为各种能通过基站与核心网进行通信的通信终端,可以包括各种移动终端,也可为能通过基站与核心网通信的非移动类终端。参见图5所示,其包括处理器501、存储器502和通信总线503;通信总线503用于将处理器501和存储器502连接;处理器501用 于执行存储器502中存储的计算机程序,以实现如上各实施例所示的应用控制方法的步骤。此处的存储器502可为终端自身的存储器;其可不包括能与终端分离的终端部件上设置的存储器;当然根据需求也可设置为包括能与终端分离的终端部件上设置的存储器。
本实施例中图5所示的终端可以是手机、平板电脑、笔记本电脑、掌上电脑、智能电视机、移动互联网设备、可穿戴设备、或其他可以安装应用客户端的终端,也可以是其他任何可实现本申请应用处理方法的终端或装置,本实施例下面以一种终端的具体结构为示例进行说明。本申请实施例所涉及的终端的一个具体实施例中,终端600包括射频电路608、一个或一个以上计算机可读存储介质的存储器602、输入单元603、显示单元604、传感器605、音频电路606、网络连接模块607(例如Wi-fi模块)、一个或一个以上的处理器601、以及电源609等部件。本领域技术人员可以理解,以上结构并不构成对终端的限定,可以包括比所列部件更多或更少的部件。其中射频电路608可用于通信信号的接收与发送,接收基站的信息,再交由处理器601处理。存储器602用于存储软件程序(例如包括但不限于上述计算机程序)以及模块,处理器601通过运行存储器602的软件程序或模块,从而执行各种功能以及数据处理。输入单元603可用于接收输入的数字或字符信息。输入单元603可以包括多种输入设备,例如触摸屏输入、以及其它输入设备等。输入单元603同样将各类输入信息转化为计算机指令发送给处理器601,并也能接收处理器601的命令进行执行。显示单元604用于显示由用户输入的信息或者终端提供给用户的信息以及终端上各种图形用户接口。终端600还包括至少一种传感器,例如:光传感器、运动传感器等。终端600还可以包括音频电路606、网络连接模块607、和电源609等部件。
本实施例还提供了一种计算机可读存储介质,该计算机可读存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、计算机程序模块或其他数据)的任何方法或技术中实施的易失性或非易失性、可移除或不可移除的介质。计算机可读存储介质包括但不限于RAM(Random Access Memory,随机存取存储器),ROM(Read-Only Memory,只读存储器),EEPROM(Electrically Erasable Programmable read only memory,带电可擦可编程只读存储器)、闪存或其他存储器技术、CD-ROM(Compact Disc Read-Only Memory,光盘只读存储器),数 字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。
在一种示例中,本实施例中的计算机可读存储介质可用于存储一个或者多个计算机程序,该一个或者多个计算机程序可被一个或者多个处理器执行,以实现如上各实施例所示的应用控制方法的步骤。本实施例中的计算机可读存储介质可以直接设置在终端内。
本实施例还提供了一种计算机程序(或称计算机软件),该计算机程序可以分布在计算机可读介质上,由可计算装置来执行,以实现如上各实施例所示的应用控制方法的至少一个步骤;并且在某些情况下,可以采用不同于上述实施例所描述的顺序执行所示出或描述的至少一个步骤。
本实施例还提供了一种计算机程序产品,包括计算机可读装置,该计算机可读装置上存储有如上所示的计算机程序。本实施例中该计算机可读装置可包括如上所示的计算机可读存储介质。
可见,本领域的技术人员应该明白,上文中所公开方法中的全部或某些步骤、系统、装置中的功能模块/单元可以被实施为软件(可以用计算装置可执行的计算机程序代码来实现)、固件、硬件及其适当的组合。在硬件实施例中,在以上描述中提及的功能模块/单元之间的划分不一定对应于物理组件的划分;例如,一个物理组件可以具有多个功能,或者一个功能或步骤可以由若干物理组件合作执行。某些物理组件或所有物理组件可以被实施为由处理器,如中央处理器、数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。
此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、计算机程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。所以,本申请不限制于任何特定的硬件和软件结合。
以上内容是结合具体的实施例对本申请实施例所作的进一步详细说明,不能认定本申请的具体实施只局限于这些说明。对于本申请所属技术领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干简单推演或替换,都应当视为属于本申请的保护范围。

Claims (11)

  1. 一种应用控制方法,包括:
    在对某一运行的应用进行冻结时,为该当前被冻结的应用配置对应的临时解冻规则;
    监测到某一被冻结应用当前满足其所对应的临时解冻规则时,对该被冻结应用进行临时解冻;
    监测到某一临时解冻的应用当前满足其所对应的重新冻结规则时,对该临时解冻的应用重新冻结。
  2. 如权利要求1所述的应用控制方法,其中,所述为该当前被冻结的应用配置对应的临时解冻规则包括:
    根据当前被冻结的应用所属的应用类型以及应用类型和临时解冻规则对应关系,为该当前被冻结的应用配置对应的临时解冻规则。
  3. 如权利要求2所述的应用控制方法,其中,所述应用类型和临时解冻规则对应关系包括:
    第一应用类型对应的第一临时解冻规则,所述第一临时解冻规则包括:检测到被冻结应用当前有待处理数据;
    第二应用类型对应的第二临时解冻规则,所述第二临时解冻规则包括以下至少之一:
    被冻结应用连续被冻结时长达到预设冻结时长阈值;
    被冻结应用当前待处理数据的缓存量达到预设数据缓存量阈值。
  4. 如权利要求3所述的应用控制方法,其中,所述应用类型和临时解冻规则对应关系还包括:
    第三应用类型对应的第三临时解冻规则,所述第三临时解冻规则包括:不对被冻结应用进行解冻。
  5. 如权利要求4所述的应用控制方法,其中,所述应用控制方法还包括:
    获取到某一被冻结应用的待处理数据,且该被冻结应用的应用类型属于所述第三应用类型时,将获取的该待处理数据丢弃。
  6. 如权利要求3-5任一项所述的应用控制方法,其中,所述待处理数据包括发给被冻结应用的网络数据。
  7. 如权利要求1-5任一项所述的应用控制方法,其中,所述重新冻结规则包括以下至少之一:
    临时解冻的应用的解冻时长达到预设解冻时长阈值;
    临时解冻的应用当前处理完其对应的待处理数据;
    临时解冻的应用在预设时长内未进行数据处理。
  8. 如权利要求1-5任一项所述的应用控制方法,其中,所述方法还包括:监测到某一被冻结应用的冻结管理结束条件触发时,解除对该被冻结应用的冻结管理;
    所述冻结管理结束条件包括以下至少之一:
    被冻结应用停止运行;
    被冻结应用切换到前台运行;
    对于被冻结原因为终端熄屏的被冻结应用,检测到终端当前亮屏。
  9. 一种应用控制装置,包括:
    冻结管理模块,用于在对某一运行的应用进行冻结时,为该当前被冻结的应用配置对应的临时解冻规则,并在监测到某一被冻结应用当前满足其所对应的临时解冻规则时,对该被冻结应用进行临时解冻,以及用于监测到某一临时解冻的应用当前满足其所对应的重新冻结规则时,对该临时解冻的应用重新冻结。
  10. 一种终端,包括处理器、存储器和通信总线;
    所述通信总线用于将所述处理器和存储器连接;
    所述处理器用于执行所述存储器中存储的计算机程序,以实现如权利要求1-8任一项所述的应用控制方法的步骤。
  11. 一种计算机可读存储介质,所述计算机可读存储介质存储有一个或者多个计算机程序,所述一个或者多个计算机程序可被一个或者多个处理器执行,以实现如权利要求1-8任一项所述的应用控制方法的步骤。
PCT/CN2020/071028 2019-04-30 2020-01-08 应用控制方法、装置、终端及计算机可读存储介质 WO2020220748A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
EP20798825.4A EP3926467B1 (en) 2019-04-30 2020-01-08 Application control method and apparatus, terminal, and computer-readable storage medium
US17/606,451 US20220197690A1 (en) 2019-04-30 2020-01-08 Application control method and apparatus, terminal, and computer-readable storage medium
ES20798825T ES2951182T3 (es) 2019-04-30 2020-01-08 Método y aparato de control de aplicaciones, terminal y medio de almacenamiento legible por ordenador

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910364434.2A CN111857859A (zh) 2019-04-30 2019-04-30 应用控制方法、装置、终端及计算机可读存储介质
CN201910364434.2 2019-04-30

Publications (1)

Publication Number Publication Date
WO2020220748A1 true WO2020220748A1 (zh) 2020-11-05

Family

ID=72966710

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/071028 WO2020220748A1 (zh) 2019-04-30 2020-01-08 应用控制方法、装置、终端及计算机可读存储介质

Country Status (5)

Country Link
US (1) US20220197690A1 (zh)
EP (1) EP3926467B1 (zh)
CN (1) CN111857859A (zh)
ES (1) ES2951182T3 (zh)
WO (1) WO2020220748A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111897586A (zh) * 2019-05-06 2020-11-06 中兴通讯股份有限公司 应用状态控制方法、装置、终端及计算机可读存储介质
CN112462925B (zh) * 2020-11-30 2024-03-19 努比亚技术有限公司 小窗挂机应用功耗管控方法、装置、移动终端及存储介质
CN112653615A (zh) * 2020-12-16 2021-04-13 努比亚技术有限公司 即时通信应用的管控方法、终端以及计算机可读介质
CN117632452A (zh) * 2022-08-15 2024-03-01 华为技术有限公司 应用处理方法和电子设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150160976A1 (en) * 2013-12-06 2015-06-11 Samsung Electronics Co., Ltd. Multitasking method and electronic device therefor
CN106126259A (zh) * 2016-06-30 2016-11-16 宇龙计算机通信科技(深圳)有限公司 一种冻结应用的方法及系统
CN106250230A (zh) * 2016-09-29 2016-12-21 宇龙计算机通信科技(深圳)有限公司 一种应用冻结的方法、装置及终端
CN106293008A (zh) * 2016-08-15 2017-01-04 宇龙计算机通信科技(深圳)有限公司 一种应用程序冻结方法及终端设备
CN108664285A (zh) * 2018-05-10 2018-10-16 Oppo广东移动通信有限公司 应用程序预加载方法、装置、存储介质及移动终端

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5091273B2 (ja) * 2010-04-23 2012-12-05 株式会社エヌ・ティ・ティ・ドコモ 通信端末及びアプリケーション制御方法
US8621494B2 (en) * 2011-09-12 2013-12-31 Microsoft Corporation Managing processes within suspend states and execution states
WO2017166117A1 (zh) * 2016-03-30 2017-10-05 华为技术有限公司 广播的管控方法、装置及终端
CN106126325A (zh) * 2016-06-21 2016-11-16 宇龙计算机通信科技(深圳)有限公司 应用程序的管理方法、管理装置及终端
CN106713490B (zh) * 2017-01-19 2021-06-15 努比亚技术有限公司 一种基于网络应用的进程冻结解冻装置及方法
CN108055693B (zh) * 2017-10-26 2020-12-18 江苏知链科技有限公司 一种终端应用控制方法、终端及计算机可读存储介质
CN107957771A (zh) * 2017-11-20 2018-04-24 珠海市魅族科技有限公司 一种应用程序的控制方法、装置、移动终端和存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150160976A1 (en) * 2013-12-06 2015-06-11 Samsung Electronics Co., Ltd. Multitasking method and electronic device therefor
CN106126259A (zh) * 2016-06-30 2016-11-16 宇龙计算机通信科技(深圳)有限公司 一种冻结应用的方法及系统
CN106293008A (zh) * 2016-08-15 2017-01-04 宇龙计算机通信科技(深圳)有限公司 一种应用程序冻结方法及终端设备
CN106250230A (zh) * 2016-09-29 2016-12-21 宇龙计算机通信科技(深圳)有限公司 一种应用冻结的方法、装置及终端
CN108664285A (zh) * 2018-05-10 2018-10-16 Oppo广东移动通信有限公司 应用程序预加载方法、装置、存储介质及移动终端

Also Published As

Publication number Publication date
CN111857859A (zh) 2020-10-30
EP3926467A1 (en) 2021-12-22
ES2951182T3 (es) 2023-10-18
US20220197690A1 (en) 2022-06-23
EP3926467B1 (en) 2023-06-28
EP3926467A4 (en) 2022-06-15

Similar Documents

Publication Publication Date Title
WO2020220748A1 (zh) 应用控制方法、装置、终端及计算机可读存储介质
US10628216B2 (en) I/O request scheduling method and apparatus by adjusting queue depth associated with storage device based on hige or low priority status
KR101551611B1 (ko) 실패들 사이의 평균 시간을 증가시키기 위해 멀티서브시스템 모바일 통신 디바이스에서 소프트웨어를 선제적으로 재시작하는 방법
US8788663B1 (en) Managing resource dependent workflows
US11429461B2 (en) Broadcast control method and apparatus, and terminal
US10455509B2 (en) Energy efficient data handling for mobile devices
US8656002B1 (en) Managing resource dependent workflows
US10417062B2 (en) Method and apparatus of unloading out of memory processing flow to user space
WO2017107852A1 (zh) 一种心跳报文的发送方法和装置
US8738775B1 (en) Managing resource dependent workflows
US20170195275A1 (en) Delivery of email to a mobile device
US20170160778A1 (en) Method and device for monitoring power-consuming applications, user terminal, computer program and storage medium
WO2020220868A1 (zh) 广播控制方法、终端及计算机可读存储介质
WO2020224381A1 (zh) 应用状态控制方法、装置、终端及计算机可读存储介质
EP3614633B1 (en) Scheduling method and terminal
US10856298B2 (en) Resource information providing device, resource information providing method, and computer-readable recording medium
WO2021000666A1 (zh) 应用程序冷冻控制方法、装置、终端及可读存储介质
CN114095361B (zh) 设备汇聚维护方法、装置及网络系统
US20240098476A1 (en) Multi-device communication method, electronic device, and computer-readable storage medium
US20220385713A1 (en) Media Service Processing Method and Electronic Device
US9152460B1 (en) Management of computing devices processing workflow stages of a resource dependent workflow
US20150081886A1 (en) Data network device discovery optimization to reduce data transfer volume
US9152461B1 (en) Management of computing devices processing workflow stages of a resource dependent workflow
CN115086263A (zh) Ios终端的im消息发送方法、系统、存储介质、计算机设备
CN113419666A (zh) 数据处理方法和装置、电子设备以及计算机可读存储介质

Legal Events

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

Ref document number: 20798825

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2020798825

Country of ref document: EP

Effective date: 20210818