Application Control Method, Device, Terminal and Computer Readable Storage Medium

By configuring temporary unfreezing rules and refreezing rules for terminal background applications, dynamically managing the freezing status of applications, solving the problem of unreasonable control of backend applications in the existing technology, and improving terminal battery life and improving user experience.

CN111857859BActive Publication Date: 2025-06-13ZTE CORP
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN201910364434.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-04-30
Publication Date
2025-06-13
Estimated Expiration
2039-04-30

AI Technical Summary

Technical Problem

In the prior art, the control method for terminal backend applications is unreasonable, resulting in poor user experience satisfaction.

Method used

When a certain running application is frozen, the corresponding temporary thawing rules are configured for the currently frozen application, and when a certain frozen application is monitored that the corresponding temporary thawing rules are currently met, the frozen application is temporarily thawed. The temporarily thawed application can send and receive packets normally during the thawing period; for applications in temporary thawing, the temporarily thawed application is refreezed when it is monitored that the currently thawing rule is currently thawing.

Benefits of technology

By controlling applications with dynamic freezing and thawing, applications in the frozen state can no longer run, thereby improving terminal battery life; directly unfreezing applications in the frozen state when they need to be reused, without restarting the application; at the same time, applications in the frozen state are temporarily thawed and refreezed, so that applications can send and receive packets normally during the temporary thawing, avoiding packet loss or network unreachable problems, and improving user experience satisfaction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111857859B_ABST
    Figure CN111857859B_ABST
Patent Text Reader

Abstract

Embodiments of the present invention provide an application control method, apparatus, terminal, and computer-readable storage medium. In certain implementation processes, the background applications are controlled by freezing them, so that the background applications in the frozen state cannot run anymore, thereby improving the battery life of the terminal. When an application in the frozen state needs to be used again, it can be directly thawed without restarting the application. At the same time, at least one background application in the frozen state can be dynamically thawed temporarily and refrozen as needed, so that the background application can normally send and receive packets during the temporary thawing period, avoiding situations such as perceivable packet loss, network unreachability, or loss of push messages from the server side, thereby realizing effective management of background data transmission and reception and improving user experience satisfaction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to, but are not limited to, the field of communications. Specifically, embodiments of the present invention relate to, but are not limited to, an application control method, apparatus, terminal, and computer-readable storage medium. Background Art

[0002] Smart terminals have become important tools that people cannot do without in their lives and work. However, the battery life problem of smart terminals is a shortcoming of various smart terminals. The data reception and transmission in the background of applications on the terminal is one of the main reasons for the shortened battery life of the terminal. To improve the battery life of the terminal, there are generally two methods for the problem of data reception and transmission in the background of applications:

[0003] Method 1: Regularly clean the background applications on the terminal. The disadvantage of this method is that the user needs to restart the application when using the application again, and the user experience is poor;

[0004] Method 2: Configure a firewall for the applications running in the background after the application switches to the background, so as to prohibit the application from receiving and sending packets in the background; however, when the application is prohibited from receiving and sending packets in the background through the firewall, all the received and sent packets sent to the application will be discarded, resulting in perceivable packet loss or network unreachability for the application, and the loss of push messages on the server side; the user experience satisfaction is also poor.

[0005] It can be seen that the current control methods for terminal background applications are all unreasonable, resulting in poor user experience satisfaction. Summary of the Invention

[0006] The application control method, apparatus, terminal, and computer-readable storage medium provided by the embodiments of the present invention mainly solve the technical problem of: solving the unreasonable control methods for terminal background applications and the poor user experience satisfaction currently.

[0007] To solve the above technical problem, an embodiment of the present invention provides an application control method, including:

[0008] When freezing a certain running application, configuring a corresponding temporary thawing rule for the currently frozen application;

[0009] When it is monitored that a certain frozen application currently meets its corresponding temporary thawing rule, temporarily thawing the frozen application;

[0010] When it is monitored that a certain temporarily thawed application currently meets its corresponding refreezing rule, refreezing the temporarily thawed application.

[0011] Optionally, the configuring a corresponding temporary thawing rule for the currently frozen application includes:

[0012] According to the application type to which the currently frozen application belongs and the correspondence between the application type and the temporary thawing rule, a corresponding temporary thawing rule is configured for the currently frozen application.

[0013] Optionally, the correspondence between the application type and the temporary unfreezing rule includes:

[0014] A first temporary unfreezing rule corresponding to the first application type, the first temporary unfreezing rule comprising: detecting that the frozen application currently has data to be processed;

[0015] The second temporary thawing rule corresponding to the second application type includes at least one of the following:

[0016] The frozen application is frozen for a continuous period of time that reaches the preset freezing time threshold;

[0017] The cache amount of the currently processed data of the frozen application reaches the preset data cache amount threshold.

[0018] Optionally, the correspondence between the application type and the temporary unfreezing rule further includes:

[0019] The third temporary thawing rule corresponding to the third application type includes: not thawing the frozen application.

[0020] Optionally, the application control method further includes:

[0021] When the to-be-processed data of a frozen application is obtained and the application type of the frozen application belongs to the third application type, the obtained to-be-processed data is discarded.

[0022] Optionally, the data to be processed includes network data sent to the frozen application.

[0023] Optionally, the refreezing rule includes at least one of the following:

[0024] The thawing time of the temporarily thawed application reaches the preset thawing time threshold;

[0025] The temporarily unfrozen application has currently processed its corresponding pending data;

[0026] The temporarily unfrozen application has not processed any data within a preset period of time.

[0027] Optionally, the method further includes: when detecting that a freeze management end condition of a frozen application is triggered, releasing the freeze management of the frozen application;

[0028] The freeze management end condition includes at least one of the following:

[0029] The frozen application stops running;

[0030] The frozen application switches to running in the foreground;

[0031] For a frozen application whose freezing reason is the terminal screen going off, it is detected that the terminal is currently lit.

[0032] To solve the above problems, an embodiment of the present invention further provides an application control device, including:

[0033] A freezing management module, configured to, when freezing a running application, configure a corresponding temporary thawing rule for the currently frozen application, and when it is monitored that a certain frozen application currently meets its corresponding temporary thawing rule, temporarily thaw the frozen application, and when it is monitored that a temporarily thawed application currently meets its corresponding re-freezing rule, re-freeze the temporarily thawed application.

[0034] To solve the above problems, an embodiment of the present invention further provides a terminal, including a processor, a memory, and a communication bus;

[0035] The communication bus is used to connect the processor and the memory;

[0036] The processor is configured to execute the computer program stored in the memory to implement the steps of the application control method as described above.

[0037] To solve the above problems, an embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores one or more computer programs, and the one or more computer programs can be executed by one or more processors to implement the steps of the application control method as described above.

[0038] The beneficial effects of the present invention are:

[0039] According to the application control method, device, terminal and computer-readable storage medium provided by the embodiments of the present invention, when freezing a running application, a corresponding temporary thawing rule is configured for the currently frozen application; and each frozen application is monitored. When it is monitored that a certain frozen application currently meets its corresponding temporary thawing rule, the frozen application is temporarily thawed, and the temporarily thawed application can normally send and receive packets during the thawing period; for an application in a temporary thawing state, when it is monitored that it currently meets the re-freezing rule, the temporarily thawed application is re-frozen. By controlling the application in a frozen manner, the embodiments of the present invention make the application in a frozen state unable to run anymore, thereby improving the battery life of the terminal. When the frozen application needs to be used again, it can be directly thawed without restarting the application; at the same time, at least one application in a frozen state can be temporarily thawed and re-frozen dynamically as needed, so that the application can normally send and receive packets during the temporary thawing period, avoiding situations such as perceivable packet loss, network unreachability, or loss of push messages from the server side, thereby realizing effective management of background data transmission and reception and improving user experience satisfaction.

[0040] Other features and corresponding beneficial effects of the present invention are described and explained in the following part of the specification, and it should be understood that at least some of the beneficial effects are obvious from the description in the specification of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 It is a schematic flowchart of the application control method provided by Embodiment 1 of the present invention;

[0042] Figure 2 It is a schematic structural diagram of the application control device provided by Embodiment 3 of the present invention;

[0043] Figure 3 It is a schematic diagram of the application freezing control process of the first application type provided by Embodiment 3 of the present invention;

[0044] Figure 4 It is a schematic diagram of the application freezing control process of the second application type provided by Embodiment 3 of the present invention;

[0045] Figure 5 It is a schematic structural diagram of the terminal provided by Embodiment 4 of the present invention;

[0046] Figure 6 It is another schematic structural diagram of the terminal provided by Embodiment 4 of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0047] In order to make the objectives, technical solutions and advantages of the present invention more clear and understandable, the embodiments of the present invention will be further described in detail below in conjunction with the accompanying drawings through specific implementation manners. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0048] Those skilled in the art can understand that in the following embodiments of the present invention, the terminal can be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a smart TV, a mobile Internet device, a wearable device, or other terminals that can install an application client, or any other terminal or device that can implement the application processing method of the present invention. The present invention does not limit this.

[0049] Embodiment 1:

[0050] In view of the problem that the current control methods for background applications of terminals are all unreasonable, resulting in poor user experience satisfaction, this embodiment provides an application control method that can adopt a dynamic freezing strategy for the background applications of the terminal to achieve a balance between energy saving and normal packet sending and receiving, and improve user experience satisfaction.

[0051] For the sake of easy understanding, in this embodiment, the following Figure 1 shown application control method is taken as an example for description. It should be understood that the application control method provided in this embodiment can be applied to but not limited to various intelligent terminals. Among them, referring to Figure 1 shown, the application control method includes:

[0052] S101: When freezing a certain running application, configure a corresponding temporary thawing rule for the currently frozen application.

[0053] In this embodiment, the freezing conditions for whether a certain running application needs to be frozen can be set flexibly. For example, in one example, the freezing conditions may include but are not limited to:

[0054] The application is switched from the foreground to the background;

[0055] During the running of the application, the terminal where it is located changes from a lit screen to a dim screen;

[0056] A freezing instruction is received. The freezing instruction can be sent for a background running application or for a foreground running application, and can be flexibly set according to the application scenario.

[0057] It should be understood that in this embodiment, any freezing method can be adopted when freezing the application, as long as it can make the application in the frozen state unable to run anymore, thereby saving energy consumption, but when the application needs to be used, it is not necessary to restart the application, and only need to thaw it to make the application continue to run.

[0058] In this embodiment, the configuration method for configuring a corresponding temporary thawing rule for the currently frozen application can be determined flexibly.

[0059] For example, in one example, a corresponding table of the application list and the temporary thawing rule can be preset. The corresponding table of the application list and the temporary thawing rule may include the application identification information of each application and the corresponding temporary thawing rule for each application identification information. In this embodiment, the corresponding table of the application list and the temporary thawing rule can be set and / or updated by at least one of the terminal manufacturer, the service provider, and the terminal user. When freezing a certain application, the identification information of the frozen application can be extracted, so as to match the corresponding temporary thawing rule of the frozen application in the corresponding table of the application list and the temporary thawing rule to configure the frozen application.

[0060] Also for example, in another example, 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 corresponding relationship between the preset application type and the temporary thawing rule. The corresponding relationship between the application type and the temporary thawing rule can also be set and / or updated by at least one of the terminal manufacturer, the service provider, and the terminal user. And in this embodiment, the classification method for the application type of the application can be flexibly adopted according to specific requirements. For example, it can be classified according to the real-time requirement of the application for its data processing; or it can be classified according to the functions that the application can achieve, or it can be classified according to the provider category of the application, and so on.

[0061] For example, in one application scenario, the application can be divided into a first application type, a second application type, and a third application type according to the real-time requirement of the application for its data processing, where:

[0062] First application type: It may include applications that need to process the data of the application immediately, which can also be called the instant messaging type. For example, it may include applications such as WeChat, QQ, stock market viewing, and DingTalk. One example of the classification standard can be to determine whether the background data sending and receiving of the application can be delayed and whether the data interaction needs to be processed immediately;

[0063] Second application type: It may include applications that can delay the processing of the application data for a certain period of time. The time that can be delayed can be flexibly set according to specific requirements. It can be set to several minutes or dozens of minutes. In this example, the second application type can also be called the cyclic alignment data type. For example, it may include but is not limited to applications such as email, Weibo, and forums. One example of the classification standard can be determined according to the requirements of the application for background data processing (for example, it can be delayed for a period of time (such as several minutes to dozens of minutes));

[0064] The third application type: It may include applications that the user doesn't care whether data processing is performed after being frozen. In this example, the third application type can also be called the strictly controlled data type. For example, in one example, it may include but is not limited to mobile reading applications, etc. One specific example of the classification criterion can be determined based on whether the user cares about the data behavior of the application after it switches to the background.

[0065] Also, for example, in another application scenario, applications can be classified into the first application type, the second application type, and the third application type according to the functions they implement, where:

[0066] The first application type: It may include at least one of various applications that implement office functions;

[0067] The second application type: It may include at least one of various applications that implement shopping functions;

[0068] The third application type: It may include at least one of various applications that implement entertainment functions.

[0069] For other classification methods of applications, they can be flexibly set according to specific application scenarios and requirements. Also, the specific number of classifications when classifying applications can be flexibly set, and it is not limited to the three types in the above examples. For example, it can be divided into two types, four types, five types, etc. according to requirements, which will not be elaborated here.

[0070] In addition, in this embodiment, in the correspondence between the application type and the temporary thawing rule, it can be a one-to-one correspondence between the application type and the temporary thawing rule, or there can be two or more application types corresponding to one temporary thawing rule, or one application type can correspond to two or more temporary thawing rules. The specific correspondence method can be flexibly set according to requirements.

[0071] For the sake of easy understanding, the following takes an example of the correspondence between an application type and a temporary thawing rule in this embodiment for illustration. This correspondence is shown in Table 1 below and includes:

[0072] Table 1

[0073] Application type Temporary thawing rule First application type First temporary thawing rule Second application type Second temporary thawing rule

[0074] Among them, in one example, the first temporary thawing rule includes but is not limited to at least one of the following:

[0075] It is detected that the frozen application currently has data to be processed;

[0076] A temporary thawing instruction is received.

[0077] In another example of this embodiment, the second temporary thawing rule may include but is not limited to at least one of the following:

[0078] The continuous freezing duration of the frozen application reaches the preset freezing duration threshold; it should be understood that the specific value of the freezing duration threshold in this embodiment can be flexibly set according to requirements, for example, it can be 10 minutes, 15 minutes, 20 minutes, etc.;

[0079] The cache amount of the currently pending data of the frozen application reaches the preset data cache amount threshold; the specific value of the data cache amount threshold in this embodiment can also be flexibly set according to requirements;

[0080] A temporary thawing instruction is received.

[0081] In another example of this embodiment, the correspondence between the application type and the temporary thawing rule may further include a third temporary thawing rule corresponding to the third application type. The corresponding relationship is shown in Table 2 below, including:

[0082] Table 2

[0083] Application type Temporary thawing rule First application type First temporary thawing rule Second application type Second temporary thawing rule Third application type Third temporary thawing rule

[0084] In an application scenario of this embodiment, the above-mentioned third temporary thawing rule may include, but is not limited to: not thawing the frozen application; when the pending data of a certain frozen application is obtained, when it is determined that the application type of the frozen application belongs to the third application type, the frozen application is not temporarily thawed, and optionally, the obtained pending data can be discarded.

[0085] It should be understood that the thawing rules in the above examples, as well as the correspondence between the thawing rules and the application types, can be flexibly adjusted according to requirements and are not limited to the above examples. In addition, it should be understood that the pending data in this embodiment may include, but is not limited to: at least one of network data from the network side, data sent by applications on other terminals, and data sent by other applications on the local terminal of the terminal.

[0086] S102: When it is monitored that a certain frozen application currently meets its corresponding temporary thawing rule, the frozen application is temporarily thawed.

[0087] After the frozen application is temporarily thawed, the application can maintain a normal running state, so that the data to be processed can be processed accordingly normally.

[0088] S103: When it is monitored that a certain temporarily thawed application currently meets its corresponding refreezing rule, the temporarily thawed application is refrozen.

[0089] In this embodiment, after temporarily thawing a frozen application, it is also possible to monitor whether the application needs to be refrozen, that is, to dynamically freeze and thaw the application, so as to find a reasonable balance between terminal energy saving and normal processing of application data, achieving the effect of reasonable energy saving without affecting the normal use of at least some applications, improving the rationality of terminal energy saving control, and thus enhancing the satisfaction of the user experience.

[0090] Therefore, in this embodiment, a refreezing rule can be set for the temporarily thawed application. In one example of this embodiment, the same refreezing rule can be set for each temporarily thawed application, or different refreezing rules can be set for different types of applications according to the type of the application. Which specific method to adopt can be flexibly set according to user requirements. For the sake of easy understanding, several refreezing rules will be described below in this embodiment by way of an example. In this example, the refreezing rule includes but is not limited to at least one of the following:

[0091] The thawing duration of the temporarily thawed application reaches a preset thawing duration threshold;

[0092] The temporarily thawed application has currently processed its corresponding data to be processed;

[0093] The temporarily thawed application has not performed data processing within a preset duration.

[0094] In this embodiment, the refreezing rules corresponding to different application types can be the same. For example, the refreezing rules corresponding to the first application type and the second application type above can be the same. In some examples, the refreezing rules corresponding to different application types can also be different. For example:

[0095] The refreezing rule corresponding to the first application type can be: the temporarily thawed application has currently processed its corresponding data to be processed;

[0096] The refreezing rule corresponding to the second application type can include at least one of the following: the thawing duration of the temporarily thawed application reaches a preset thawing duration threshold;

[0097] The temporarily thawed application has not performed data processing within a preset duration.

[0098] In this embodiment, the application control method may further include that when the freezing management end condition of a frozen application (including at least one of the currently frozen state and the temporarily thawed state) is triggered, the freezing management of the frozen application is released; after the freezing management of the frozen application is released in this embodiment, the application is no longer restricted by the above thawing and freezing rules. And it should be understood that the freezing management end condition in this embodiment can also be flexibly set according to the specific application scenario. For example, in one example, the freezing management end condition may include but is not limited to at least one of the following:

[0099] The frozen application stops running;

[0100] The frozen application switches to the foreground to run;

[0101] For a frozen application whose freezing reason is that the terminal screen is turned off, it is detected that the terminal screen is currently on.

[0102] It can be seen that the application control method provided in this embodiment controls the application by adopting a dynamic freezing and thawing method, so that the application in the frozen state cannot run anymore, thereby improving the battery life of the terminal. When the application in the frozen state needs to be used again, it can be directly thawed without restarting the application; at the same time, at least one application in the frozen state can be temporarily thawed and refrozen dynamically according to needs, so that the application can receive and send packets normally during the temporary thawing period, avoiding situations such as perceivable packet loss, network unreachability, or loss of push messages from the server side for the application, thus improving the user experience satisfaction.

[0103] Embodiment 2:

[0104] For the convenience of understanding, this embodiment will be described below by taking the application type to which the currently frozen application belongs and the corresponding relationship between the pre-set application type and the temporary thawing rule as an example. In this example, the application type is divided into an instant messaging type (i.e., the first application type), a cyclic alignment data type (i.e., the second application type), and a strictly controlled data type (i.e., the third application type). Among them:

[0105] For the instant messaging type, after the application is frozen, a first temporary thawing rule is configured for it. In this example, the first temporary thawing rule includes: it is detected that the frozen application currently has data to be processed, and the data to be processed includes network data. At this time, when the terminal receives a message sent to the frozen application from the server side, the application is thawed according to the callback operation of the first temporary thawing rule; after the application is thawed, it continues to run so that the data packet received from the server side is normally processed; after the application finishes processing the data packet, it can be determined that it meets the condition for refreezing and is frozen again, and this is repeated.

[0106] For circularly aligned data types, after an application is frozen, a second temporary thawing rule is configured for it. In this example, the second temporary thawing rule includes: the continuously frozen duration of the frozen application reaches a preset frozen duration threshold (e.g., 15 minutes); the cache volume of the currently pending data (including network data) of the frozen application reaches a preset data cache volume threshold. A timer can be started after the application is frozen. At this time, when the terminal receives a message sent to the frozen application from the server, it is determined whether it needs to be thawed according to the second temporary thawing rule. For example, it is judged whether the current cache quantity reaches the preset data cache volume threshold. If it reaches, the application is actively thawed, and after the application is thawed, it continues to run so that the data packets received from the server are processed normally. If it does not reach the preset data cache volume threshold, it can continue to receive; and it can be judged whether the timer reaches 15 minutes. If it reaches, the application is also thawed, and after the application is thawed, it continues to run to process the cached data packets accordingly. After the application is thawed, it is judged whether the thawing duration of the application reaches a preset thawing duration threshold (e.g., 1 minute). If so, it is determined that it meets the condition for refreezing and is frozen again, and this is repeated.

[0107] For strictly controlled data types, after an application is frozen, a third temporary thawing rule is configured for it, including not thawing the frozen application; at this time, when the terminal receives a message sent to the frozen application from the server, it is determined according to the third temporary thawing rule to directly discard the received data packets until the freeze management end condition of the application is triggered and the freeze management of it is lifted.

[0108] In an example of this embodiment, regardless of which of the above applications, if the user actively clicks to switch the application to the foreground, the application can be immediately thawed, and at the same time, all control policies of the application are cancelled, and network restrictions are no longer imposed until the application switches to the background again.

[0109] It can be seen that the application control method provided in this embodiment can control the application in a dynamic freezing and thawing manner according to the application type, so that the application can normally receive and send data packets during the temporary thawing period, and can re-enter the frozen state after processing the data, thereby achieving energy saving of the terminal while improving the user experience satisfaction.

[0110] Embodiment 3:

[0111] This embodiment provides an application control device, which can be set on a terminal. Please refer to Figure 2As shown in the figure, it includes: a freezing management module 201, which is used to configure corresponding temporary thawing rules for the currently frozen application when freezing a running application, and to temporarily thaw the frozen application when it is detected that the currently frozen application meets its corresponding temporary thawing rules, and to refreeze the temporarily thawed application when it is detected that the temporarily thawed application meets its corresponding refreezing rules. For the specific process of the freezing management module 201 to implement the above functions, please refer to the above embodiments, which will not be elaborated here.

[0112] Please refer to Figure 2 As shown in the figure, in an example of this embodiment, the application control device may further include an application management module 202, an application freezing module 203, and a kernel network protocol stack 204. The application management module 202, the application freezing module 203, and the kernel network protocol stack 204 can cooperate with the freezing management module 201 to implement the above 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. For the convenience of understanding, the following example of a control process of the above modules will be used to illustrate in this embodiment. This control process can be applied to the Android system framework, and can also be applied to the IOS or other operating system frameworks. In an example, the application management module 202 and the freezing management module 201 are set in the system framework layer. The application freezing module 203 is set in the system kernel layer. For example, taking the Android system as an example: Android is divided into 4 main functional layers from bottom to top, namely the linux kernel layer (Linux Kernel), the system runtime library layer (Libraries and Android Runtime), the application framework layer (Application Framework), and the application layer (Applications). The system framework layer refers to the Framework part of the Android framework (system application framework layer), which can include resource management, including the management of application programs. In an example, it can also include the freezing management shown in this embodiment, that is, the relevant modules and functions of freezing management in this embodiment are also added to the system framework layer. The system kernel layer is the core part of the operating system. For example, Android is the Linux Kernel, which realizes core functions such as hardware device drivers, process and memory management, network protocol stacks, power management, and wireless communication by leveraging Linux kernel services.

[0113] For the convenience of understanding, the following example description of the control process will be given in combination with the above example modules, including:

[0114] When the application is started, the application management module 202 can determine which type of data control the application belongs to (for example, which type of the three types shown in the above embodiment) and then report it to the freezing management module 201;

[0115] When the application management module 202 detects that a certain application is switched to the background during operation, it reports to the freezing management module 201 that the operation state of the application is background operation;

[0116] After the freezing management module 201 determines that the application can be frozen, it directly sends a command to freeze the application to the application freezing module 203; if the application belongs to the loop alignment data type, the application can be added to the loop alignment list for subsequent unified management;

[0117] The freezing management module 201 sends corresponding rules (such as the temporary unfreezing rules and corresponding refreezing rules shown in the above embodiment) to the system kernel network protocol stack 204 according to the type of the application to be frozen;

[0118] 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;

[0119] When the kernel network protocol stack 204 finds that the received data packet and the application corresponding to the received data packet is in a frozen state, it executes the temporary unfreezing rule corresponding to the frozen application;

[0120] When it is determined according to the first temporary unfreezing rule or the second temporary unfreezing rule that the frozen application is to be temporarily unfrozen, the freezing management module 201 sends a corresponding application unfreezing command to the application freezing module 203; in this embodiment, the temporary unfreezing rules for applications of the loop alignment data type may include: the frozen application is continuously frozen for a preset freezing time threshold (for example, 15 minutes), and a loop alignment timer may be set to count, and when the loop alignment timer is reached, all applications in the loop alignment list may be unfrozen uniformly; it may also include that the cache amount of the current to-be-processed data of the frozen application reaches a preset data cache amount threshold. As long as any one of the two conditions is met, it can be confirmed that the temporary unfreezing rule is met.

[0121] When the re-freezing condition of the temporarily unfrozen application is met, the freezing management module 201 may re-issue a freezing command to the application freezing module 203 to freeze the temporarily unfrozen application.

[0122] The above control process is repeated for a certain frozen application until the freeze management end condition of the frozen application is triggered and the freeze management of the frozen application is released.

[0123] For ease of understanding, the control processes of applications of the instant messaging type (i.e., the first application type) and applications of the circular alignment data type (i.e., the second application type) are respectively illustrated by examples below in this embodiment.

[0124] Please refer to Figure 3 As shown, the control process for an application belonging to the instant messaging type includes:

[0125] S300: The freeze management module 201 receives a notification that the application with UID (Android application identification ID) 10001 switches to the background; the type of this application belongs to the instant messaging type.

[0126] S301: The freeze management module 201 sends an instruction to the application freeze module 203 to freeze this application.

[0127] S302: The freeze management module 201 sends the corresponding first temporary thawing rule and the corresponding refreezing rule to the kernel network protocol stack 204.

[0128] S303: The application freeze module 203 completes the freezing of this application.

[0129] S304: The application freeze module 203 sends a notification that the application has been frozen to the kernel network protocol stack 204.

[0130] S305: The kernel network protocol stack 204 receives a data packet sent to the application with UID 10001.

[0131] S306: The kernel network protocol stack 204 sends a callback request for the first temporary thawing rule for this application to the freeze management module 201.

[0132] S307: The freeze management module 201 sends an instruction to the application freeze module 203 to thaw this application.

[0133] S308: The application freeze module 203 completes the thawing of this application.

[0134] S309: After the application freeze module 203 completes the thawing, it sends a notification that the application is running normally to the kernel network protocol stack 204.

[0135] S310: The kernel network protocol stack 204 detects that this application has completed the processing of the data packet.

[0136] S311: The kernel network protocol stack 204 sends a notification that the data packet processing is completed to the freeze management module 201.

[0137] S312: The freeze management module 201 sends a freeze instruction to the application freeze module 203 to freeze this application again.

[0138] Please refer toFigure 4 As shown, the control process for applications belonging to the cyclic alignment data type includes:

[0139] S400: The freeze management module 201 receives a notification that the application with UID (Android application identification ID) 10002 has switched to the background. The type of this application belongs to the cyclic alignment data type

[0140] S401: The freeze management module 201 sends an instruction to the application freeze module 203 to freeze this application.

[0141] S402: The freeze management module 201 sends the corresponding second temporary thawing rule and the corresponding refreezing rule to the kernel network protocol stack 204.

[0142] S403: The application freeze module 203 completes the freezing of this application.

[0143] S404: The application freeze module 203 sends a notification that the application has been frozen to the kernel network protocol stack 204.

[0144] S405: The kernel network protocol stack 204 caches the data packets sent to the application with UID 10002.

[0145] S406: The kernel network protocol stack 204 detects that the cached data packets corresponding to this application exceed the threshold.

[0146] S407: The kernel network protocol stack 204 sends a callback request for the second temporary thawing rule for this application to the freeze management module 201.

[0147] S408: The freeze management module 201 sends an instruction to the application freeze module 203 to thaw this application.

[0148] S409: The application freeze module 203 completes the thawing of this application.

[0149] S410: After the application freeze module 203 completes the thawing, it sends a notification that the application is running normally to the kernel network protocol stack 204.

[0150] S411: Process the data packets.

[0151] S412: The freeze management module 201 sends a freeze instruction to the application freeze module 203 to freeze this application again.

[0152] S413: The application freeze module 203 completes the refreezing of this application and sends a notification to the kernel network protocol stack 204.

[0153] S414: The freeze management module 201 determines that the cyclic timer has reached, for example, 15 minutes.

[0154] S415: The freeze management module 201 sends each frozen application in the loop alignment list to the application freeze module 203 to unfreeze it.

[0155] S416: The application freeze module 203 completes the thawing of each application in the loop alignment list.

[0156] S417: The application freeze module 203 sends a notification of normal application operation to the kernel network protocol stack 204.

[0157] S418: The data packets of the temporarily thawed applications are processed.

[0158] S419: The alignment window ends, that is, the thawing duration reaches the preset duration.

[0159] S420: The freeze management module 201 sends a freeze instruction to the application freeze module 203 to freeze the applications in the loop alignment list again.

[0160] In an example of this embodiment, if the data packet currently received by the kernel network protocol stack 204 is sent to the application with UID 10003, and the application with UID 10003 belongs to the application type of strictly controlled data, the kernel network protocol stack 204 can directly discard the data packet.

[0161] Embodiment 4:

[0162] This embodiment provides a terminal. The terminal in this embodiment can be various communication terminals that can communicate with the core network through a base station, including various mobile terminals, or non-mobile terminals that can communicate with the core network through a base station. Refer to Figure 5 As shown, it includes a processor 501, a memory 502, and a communication bus 503;

[0163] The communication bus 503 is used to connect the processor 501 and the memory 502;

[0164] The processor 501 is used to execute the computer program stored in the memory 502 to implement the steps of the application control method as shown in the above embodiments. Here, the memory 502 can be the memory of the terminal itself; it may not include the memory provided on the terminal component that can be separated from the terminal; of course, according to requirements, it can also be set to include the memory provided on the terminal component that can be separated from the terminal.

[0165] In this embodiment Figure 5The terminal shown may be a mobile phone, a tablet computer, a laptop computer, a handheld computer, a smart TV, a mobile Internet device, a wearable device, or other terminals that can install application clients, or any other terminal or device that can implement the application processing method of the present invention. In the following, a specific structure of a terminal will be taken as an example for illustration. In a specific embodiment of the terminal involved in the embodiments of the present invention, 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. Those skilled in the art can understand that the above structure does not constitute a limitation on the terminal, and may include more or fewer components than those listed. Among them, the radio frequency circuit 608 can be used for receiving and sending communication signals, receiving information from the base station, and then handing it over to the processor 601 for processing. The memory 602 is used for storing software programs (such as including but not limited to the above computer programs) and modules, and the processor 601 executes various functions and data processing by running the software programs or modules in the memory 602. The input unit 603 can be used for receiving input digital or character information. The input unit 603 may include various input devices, such as touch screen input, and other input devices, etc. 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 and execute them. The display unit 604 is used for displaying information input by the user, information provided by the terminal to the user, and various graphical user interfaces on the terminal. The terminal 600 further includes at least one sensor, such as: a light sensor, a motion sensor, etc. The terminal 600 may also include components such as an audio circuit 606, a network connection module 607, and a power supply 609.

[0166] This embodiment also provides a computer-readable storage medium, which includes a volatile or non-volatile, removable or non-removable medium implemented in any method or technology for storing information such as computer-readable instructions, data structures, computer program modules, or other data. The computer-readable storage medium includes, but is not limited to, RAM (Random Access Memory), ROM (Read-Only Memory), EEPROM (Electrically Erasable Programmable Read Only Memory), flash memory or other memory technologies, CD-ROM (Compact Disc Read-Only Memory), digital versatile disc (DVD) or other optical disc storage, magnetic cassette, tape, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer.

[0167] In one example, 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 to implement the steps of the application control method shown in the above embodiments. The computer-readable storage medium in this embodiment can be directly disposed within the terminal.

[0168] This embodiment also provides a computer program (or computer software), which can be distributed on a computer-readable medium and executed by a computable device to implement at least one step of the application control method shown in the above embodiments; and in some cases, at least one step shown or described can be executed in a different order from that described in the above embodiments.

[0169] This embodiment also provides a computer program product, including a computer-readable device, on which the computer program shown above is stored. The computer-readable device in this embodiment can include the computer-readable storage medium shown above.

[0170] It can be seen that those skilled in the art should understand that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices, can be implemented as software (which can be realized by computer program codes executable by a computing device), firmware, hardware, and their appropriate combinations. In the hardware implementation, the division between the functional modules / units mentioned above does not necessarily correspond to the division of physical components; for example, a physical component can have multiple functions, or a function or step can be executed by the cooperation of several physical components. Some or all of the physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or can be implemented as hardware, or can be implemented as an integrated circuit, such as an application-specific integrated circuit.

[0171] In addition, as is well known to those of ordinary skill in the art, a communication medium generally includes computer-readable instructions, data structures, computer program modules, or other data in a modulated data signal such as a carrier wave or other transmission mechanisms, and can include any information delivery medium. Therefore, the present invention is not limited to any specific combination of hardware and software.

[0172] The above content is a further detailed description of the embodiments of the present invention in combination with specific implementation manners, and it cannot be determined that the specific implementation of the present invention is only limited to these descriptions. For those of ordinary skill in the technical field to which the present invention belongs, without departing from the concept of the present invention, several simple deductions or substitutions can still be made, and all should be regarded as belonging to the protection scope of the present invention.

Claims

1. An application control method, include: When freezing a running application, configure a corresponding temporary unfreezing rule for the currently frozen application; When it is detected that a frozen application currently meets the corresponding temporary unfreezing rule, the frozen application is temporarily unfrozen; When it is detected that a temporarily unfrozen application currently satisfies its corresponding refreezing rule, the temporarily unfrozen application is re-frozen; wherein, configuring the corresponding temporary unfreezing rule for the currently frozen application includes: According to the application type to which the currently frozen application belongs and the correspondence between the application type and the temporary thawing rule, a corresponding temporary thawing rule is configured for the currently frozen application; the correspondence between the application type and the temporary thawing rule includes: A first temporary unfreezing rule corresponding to the first application type, the first temporary unfreezing rule comprising: detecting that the frozen application currently has data to be processed; The second temporary thawing rule corresponding to the second application type includes at least one of the following: The frozen application is frozen for a continuous period of time that reaches the preset freezing time threshold; The cache amount of the currently processed data of the frozen application reaches the preset data cache amount threshold; The data to be processed includes network data sent to the frozen application.

2. The application control method according to claim 1, It is characterized in that The correspondence between the application type and the temporary unfreezing rule also includes: The third temporary thawing rule corresponding to the third application type includes: not thawing the frozen application.

3. The application control method according to claim 2, It is characterized in that The application control method further includes: When the to-be-processed data of a frozen application is obtained and the application type of the frozen application belongs to the third application type, the obtained to-be-processed data is discarded.

4. The application control method according to any one of claims 1 to 3, It is characterized in that The refreezing rules include at least one of the following: The thawing time of the temporarily thawed application reaches the preset thawing time threshold; The temporarily unfrozen application has currently processed its corresponding pending data; The temporarily unfrozen application has not processed any data within a preset period of time.

5. The application control method according to any one of claims 1 to 3, It is characterized in that The method further includes: when a freeze management end condition of a frozen application is detected to be 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 is switched to the foreground; For a frozen application whose freezing reason is that the terminal screen is off, it is detected that the terminal screen is currently on.

6. An application control device, It is characterized in that include: The freezing management module is used to configure a corresponding temporary unfreezing rule for a currently frozen application when freezing a running application, and to temporarily unfreeze the frozen application when monitoring that a frozen application currently satisfies its corresponding temporary unfreezing rule, and to refreeze the temporarily unfrozen application when monitoring that a temporarily unfrozen application currently satisfies its corresponding refreezing rule; Among them, the freeze management module is specifically configured to configure a corresponding temporary thawing rule for the currently frozen application according to the application type to which the currently frozen application belongs and the correspondence between the application type and the temporary thawing rule. The correspondence between the application type and the temporary thawing rule includes: The first temporary thawing rule corresponding to the first application type, and the first temporary thawing rule includes: detecting that there is data to be processed for the frozen application currently; The second temporary thawing rule corresponding to the second application type, and the second temporary thawing rule includes at least one of the following: The continuous freezing duration of the frozen application reaches a preset freezing duration threshold; The cache amount of the data to be processed for the frozen application currently reaches a preset data cache amount threshold; Among them, the data to be processed includes network data sent to the frozen application.

7. A terminal, Characterized in that, It includes 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 computer program stored in the memory to implement the steps of the application control method according to any one of claims 1-5.

8. A computer-readable storage medium, Characterized in that, The computer-readable storage medium stores one or more computer programs, and the one or more computer programs can be executed by one or more processors to implement the steps of the application control method according to any one of claims 1-5.

Citation Information

Patent Citations

  • Application program freezing method and terminal equipment

    CN106293008A