CN113946385A - Application program cleaning method and application program cleaning device - Google Patents

Application program cleaning method and application program cleaning device Download PDF

Info

Publication number
CN113946385A
CN113946385A CN202111212170.2A CN202111212170A CN113946385A CN 113946385 A CN113946385 A CN 113946385A CN 202111212170 A CN202111212170 A CN 202111212170A CN 113946385 A CN113946385 A CN 113946385A
Authority
CN
China
Prior art keywords
application program
cleaning
queue
target
information
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202111212170.2A
Other languages
Chinese (zh)
Inventor
陈文斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202111212170.2A priority Critical patent/CN113946385A/en
Publication of CN113946385A publication Critical patent/CN113946385A/en
Pending legal-status Critical Current

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/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
    • 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

Landscapes

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

Abstract

The embodiment of the application provides an application program cleaning method and an application program cleaning device, and belongs to the technical field of electronic equipment. The cleaning method of the application program comprises the following steps: determining a cleaning queue under the condition of receiving cleaning input of a user, wherein the cleaning queue comprises a first application program, and the first application program is a background application program to be cleaned; under the condition that the first application program has downloading operation, acquiring downloading information of a target application program, wherein the target application program is the application program with the downloading operation in the first application program; updating the cleaning queue according to the downloading information; and cleaning the target application program according to the updated cleaning queue.

Description

Application program cleaning method and application program cleaning device
Technical Field
The application relates to the technical field of electronic equipment, in particular to an application program cleaning method and an application program cleaning device.
Background
In the related art, there is no program for centrally managing the downloading behavior of the application program on the system side, which results in that it is difficult for the terminal to distinguish whether the application program is downloading or running on the internet. When background application programs are cleaned, all the application programs can be killed no matter the running condition of the background application programs, so that the downloading of the application programs is interrupted, the downloading efficiency is seriously influenced, and unfriendly use experience is caused to users.
Disclosure of Invention
The embodiment of the application provides an application program cleaning method and an application program cleaning device, which can prevent a downloading process from being closed when the application program is cleaned, so that downloading interruption is avoided.
In a first aspect, an embodiment of the present application provides an application program cleaning method, including:
determining a cleaning queue under the condition of receiving cleaning input, wherein the cleaning queue comprises a first application program, and the first application program is a background application program to be cleaned;
under the condition that the first application program has downloading operation, acquiring downloading information of a target application program, wherein the target application program is the application program with the downloading operation in the first application program;
updating the cleaning queue according to the downloading information;
and cleaning the first application program according to the updated cleaning queue.
In a second aspect, an embodiment of the present application provides an apparatus for cleaning an application program, including:
the device comprises a determining module, a clearing module and a processing module, wherein the determining module is used for determining a clearing queue under the condition of receiving clearing input, the clearing queue comprises a first application program, and the first application program is a background application program to be cleared;
the device comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring the downloading information of a target application program under the condition that the first application program has downloading operation, and the target application program is the application program with the downloading operation in the first application program;
the updating module is used for updating the cleaning queue according to the downloading information;
and the cleaning module is used for cleaning the first application program according to the updated cleaning queue.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or an instruction stored in the memory and running on the processor, where the program or the instruction, when executed by the processor, implements the steps of the method for cleaning an application program as provided in the first aspect.
In a fourth aspect, the present application provides a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the cleaning method for an application program as provided in the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the steps of the method for cleaning an application program as provided in the first aspect.
In the embodiment of the application, a cleaning queue is determined under the condition that cleaning input of a user is received, wherein the cleaning queue comprises a first application program, and the first application program is a background application program to be cleaned; under the condition that the first application program has downloading operation, acquiring downloading information of a target application program, wherein the target application program is the application program with the downloading operation in the first application program; updating the cleaning queue according to the downloading information; and cleaning the first application program according to the updated cleaning queue. When a user needs to clean the application program running in the background, the application program needing to be cleaned is determined. Before cleaning the first application program, the downloading condition of the first application program is detected, and the first application program is marked as a target application program when the downloading operation is determined to exist in the first application program. And adjusting the first application program in the cleaning queue according to the downloading information of the target application program which is downloading the task, thereby fully considering the downloading condition of the target application program and reasonably planning the first application program which needs to be cleaned. And cleaning the first application program according to the updated cleaning queue. Therefore, the target application program with downloading operation can be avoided as much as possible in the background application program cleaning process, so that the progress of the target application program cannot be killed, the electric energy of the electronic equipment is saved, the running speed of the electronic equipment is increased, the downloading interruption of the application program is effectively avoided, and the data downloading efficiency is improved.
Drawings
FIG. 1 shows one of the flow diagrams of a cleaning method of an application according to one embodiment of the present application;
FIG. 2 illustrates an electronic device display diagram according to one embodiment of the present application;
FIG. 3 shows a block diagram of a cleaning device for an application according to an embodiment of the present application;
FIG. 4 shows a block diagram of an electronic device according to an embodiment of the present application;
fig. 5 shows a block diagram of a hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
A cleaning method of an application and a cleaning apparatus of an application according to some embodiments of the present application are described below with reference to fig. 1 to 5.
In an embodiment of the present application, fig. 1 shows one of flowcharts of an application program cleaning method of the embodiment of the present application, including:
step 102, determining a cleaning queue under the condition of receiving cleaning input of a user;
the cleaning queue comprises a first application program, the first application program is a background application program to be cleaned, namely the cleaning queue is a collection of background application programs needing to be cleaned. The cleaning input for the background application program may be an operation input of the user to the electronic device, for example, when the user clicks a "one-click cleaning" button, the mobile phone starts to execute the cleaning program for the background application program; the cleaning input may also be a cleaning instruction input automatically generated by the system according to the resource consumption information of the electronic device, for example, a high power consumption module of the electronic device may detect the power consumption condition of the background application program all the time, if the background application program exceeds the background power consumption threshold and the electronic device does not make a preset event (such as playing music), the high power consumption module may generate the cleaning instruction, and the cleaning instruction triggers the cleaning program of the electronic device, so as to quickly reduce the power consumption and effectively improve the cruising ability of the electronic device.
In particular, the cleaning method for the application program is applicable to electronic equipment, and the electronic equipment comprises but is not limited to a mobile terminal, a tablet computer, a notebook computer, a wearable device or a vehicle-mounted terminal and the like.
104, acquiring downloading information of a target application program under the condition that the first application program has downloading operation;
the target application program is an application program with a downloading operation in the first application program.
Specifically, the download information includes a download progress and/or a download speed, where the download speed may be a download speed at the current time, or an average download speed within a preset time period, and of course, the download information may also include information related to the download task, such as a download address and a data name.
Step 106, updating the cleaning queue according to the downloading information;
and step 108, cleaning the first application program according to the updated cleaning queue.
In this embodiment, when a user needs to clean an application running in the background, the application needing to be cleaned, that is, the cleaning queue of the first application, is determined first. Before cleaning the first application program, the downloading condition of the first application program is detected, and the first application program is marked as a target application program when the downloading operation is determined to exist in the first application program. And adjusting the first application program in the cleaning queue according to the downloading information of the target application program which is downloading the task, thereby fully considering the downloading condition of the target application program and reasonably planning the first application program which needs to be cleaned. And cleaning the first application program according to the updated cleaning queue. Therefore, the target application program with downloading operation can be avoided as much as possible in the process of cleaning the application program, so that the progress of the target application program cannot be killed, the electric energy of the electronic equipment is saved, the running speed of the electronic equipment is increased, the downloading interruption of the application program is effectively avoided, and the data downloading efficiency is improved.
Specifically, the first application is cleaned up, including the following manner.
The first method is as follows: the first application is closed.
In the embodiment, the process information of all the first application programs running in the background in the system is acquired, and then the first application programs of the non-system are controlled to be closed so as to quit the first application programs, so that the purposes of releasing the memory occupied by the application programs, reducing the occupancy rate of a central processing unit, reducing corona consumption and prolonging the service time of the electronic equipment are achieved.
The second method comprises the following steps: and freezing the first application program.
In this embodiment, when the application is exited, the application is not actually completely killed by the system, but the application is merely exited from the system background, and the application still occupies system resources such as a network and a Central Processing Unit (CPU) of the system. In order to avoid the loss of system resources, the process freezing method can be utilized to freeze the process of the application program, so that the application program is in a suspended state, and the application program in the suspended state does not need to be connected with a network, so that the system resources are not occupied. Therefore, after some first application programs in the background are frozen on the electronic equipment, the consumption and occupation of resources can be effectively reduced, so that the resources on the electronic equipment can better meet the normal use of other application programs.
In some possible designs, the first application program may be allocated to freezing layers corresponding to different preset levels according to the length of the entering freezing time, for example, the freezing layers may include three, respectively: CPU limited sleep mode, CPU frozen sleep mode, process deep frozen mode. The CPU sleep-restricted mode is to restrict CPU resources occupied by related processes, so that the related processes occupy less CPU resources, and the vacant CPU resources are inclined to other processes which are not frozen, so that the occupation of the CPU resources is restricted, and the occupation of network resources and I/O interface resources by the processes is correspondingly restricted; the CPU freezing sleep mode means that related processes are forbidden to use the CPU, the occupation of a memory is reserved, and when CPU resources are forbidden to use, corresponding network resources and I/O interface resources are also forbidden to use; the process deep freezing mode is to further recycle the memory resources occupied by the relevant processes except for forbidding the use of CPU resources, and the recycled memory can be used by other processes. The selection of the freezing layer can be determined according to the information of the power consumption, the application type and the like of the first application program.
Further, when the user wants to start the frozen application program, the user needs to first release the freezing of the application program by releasing the freezing operation. Of course, the electronic device may start timing at the time when the application program is frozen, and automatically release the freezing of the application program when the duration of the freezing reaches a preset freezing time.
In one embodiment of the present application, the step of updating the cleanup queue according to the download information includes: and removing the target application program from the cleaning queue under the condition that the downloading information is greater than or equal to the preset downloading information. The downloading information comprises downloading progress and/or downloading speed, and the preset downloading information is associated with the resource consumption information of the electronic equipment.
It can be understood that if the download information is detected to be greater than or equal to the preset download information, it indicates that the download progress of the target application program download task is more and/or the download speed is faster, and the target application program is being downloaded at a high speed or is about to complete the download, and the download task can be completed in a short time. When the download information of the target application program is detected to be smaller than the preset download information, the download progress of the download task is less and/or the download speed is slower, at the moment, the target application program not only increases the memory occupation of the power consumption of the electronic equipment, but also can not achieve good download efficiency, so that the target application program is still kept in the cleaning queue, the target application program can be cleaned when the cleaning program is executed by a system, and the purposes of releasing the memory occupied by the application program, reducing the occupancy rate of a central processing unit, reducing power consumption halo and prolonging the service time of the mobile phone are achieved.
In the embodiment of the application, the target application program with the downloading operation is divided by using the downloading information, so that the target application program with poor partial downloading condition is selectively cleaned, the downloading efficiency of the application program and the resource consumption of the electronic equipment are considered, and the flexibility of cleaning the application program is favorably improved.
Specifically, the preset download information can be reasonably set according to the requirement of the user on cleaning the target application program. For example, if the download speed is set to 0, the target application program will be cleared from the clear queue as long as the target application program is in the process of data transmission. If the download progress is 80%, the download progress of the target application program exceeds 80%, that is, the target application program is cleared from the cleaning queue only when the download task is expected to be completed in a short time. For example, when the total power consumption of the electronic device is high, the electronic device automatically executes a program for cleaning the background application program. Meanwhile, a video application is detected to download the movie from the application programs running in the background, and a game application downloads the update data, wherein the movie downloading speed is 15KB/s, the downloading progress is 45%, the update data downloading speed is 1025KB/s, and the downloading progress is 88%. The preset downloading progress and the preset downloading speed corresponding to the total power consumption of the electronic equipment are respectively 60% and 400 KB/s. At the moment, even if the video application has downloading operation, the video application can be normally cleaned, so that the power consumption of the electronic equipment is reduced, and the running smoothness of the electronic equipment is ensured.
In one embodiment of the present application, the step of updating the cleanup queue according to the download information includes: displaying a target interface; receiving a first input to a target interface; in response to the first input, the target application corresponding to the first input is removed from the cleanup queue.
The target interface is used for displaying the downloading information of the target application program, so that a user can intuitively know the downloading conditions of all the target application programs. The first input includes, but is not limited to, a click input, a key input, a fingerprint input, a swipe input, a press input. The key input includes, but is not limited to, a power key, a volume key, a single-click input of a main menu key, a double-click input, a long-press input, a combination key input, etc. to the electronic device. Of course, the first input may also be other operations of the electronic device by the user, and the operation manner in the embodiment of the present application is not particularly limited, and may be any realizable manner.
In this embodiment, the user can view the downloaded information of all the target applications through the target interface, and the user can select the target applications which do not need to be cleaned by the first input. The electronic equipment removes the target application program selected by the user from the cleaning queue, so that the downloading process of the target application program is reserved when the first application program in the cleaning queue is cleaned subsequently. Therefore, the personalized selection function of the cleaning queue is realized, the problem that a user who has a higher importance degree of the background application program cannot want to be cleaned and is cleaned by mistake is solved, the cleaning method is more humanized, the first application program which is cleaned cannot exceed the cleaning requirement of the user on the application program, the man-machine interaction performance of the electronic equipment is improved, and the better user experience realizes the power saving effect.
Specifically, for example, before the user kills the process, the mobile phone queries the list of the application programs being downloaded at the system end, as shown in fig. 2, if an application program is downloaded, a corresponding download status prompt (download information) is popped up, and the user selects to clear the application program or to keep the application program by clicking the interface. If the user clicks on the "keep" option, the application will not be killed; if the user clicks the 'kill' option, the one-touch clean will kill the application, and the next time the application is restarted, the download can continue or be re-downloaded.
In one embodiment of the present application, the cleanup queue includes M target applications, where M is a positive integer, that is, the number of target applications for which there is a download operation is at least one. The step of updating the cleanup queue according to the download information includes: acquiring resource consumption information of the electronic equipment; under the condition that the resource consumption information meets a first preset condition, updating a cleaning queue, wherein the updated cleaning queue does not comprise M target application programs; or under the condition that the resource consumption information does not meet the first preset condition, updating the cleaning queue according to the first sequencing and removal quantity.
The resource consumption information of the electronic device includes total power consumption, total memory occupation or operation mode of the electronic device.
It is understood that the first preset condition, that is, the condition that the target application is removed from the cleaning queue, may be set as needed, for example, the total power consumption, the total memory footprint is less than or equal to the corresponding threshold, or the electronic device does not enter the power saving mode. The first ordering is the ordering of the M target applications in the cleanup queue.
In this embodiment, when the resource consumption information satisfies the first preset condition, it indicates that the resource occupied by the application program in the electronic device is within the preset tolerance range of the electronic device, and the probability of occurrence of stuck or high power consumption is low, so that even if the electronic device is stuck or high power consumption, a small part of the application program can be cleared for mitigation. At the moment, all target application programs with downloading operation in the cleaning queue are removed, so that the downloading task of the target application program is not suspended midway due to the fact that the application programs need to be cleaned, and the downloading efficiency is improved. When the resource consumption information does not meet the first preset condition, it is indicated that the resources occupied by the application programs in the electronic equipment are more, and the resources exceed the preset bearing range of the electronic equipment, so that the fluency of the electronic equipment is difficult to ensure, and more background application programs need to be cleaned to ensure the fluency operation of the electronic equipment. At this time, the number of target applications that can be removed is determined according to the resource consumption information. And removing the target application programs from the cleaning queue one by one according to the first sequence of the M target application programs in the cleaning queue. It can be understood that the removed target application is the application with higher importance among the M target applications, so that the remaining target applications are retained in the cleaning queue, and the remaining part of the target applications (with lower importance) are cleaned when cleaning the background application. Therefore, the running smoothness of the electronic equipment is increased, and meanwhile, the downloading tasks of more target application programs are guaranteed not to be interrupted as far as possible.
It is worth mentioning that the removal amount is associated with the resource consumption information, and if the removal amount is greater than or equal to M, it indicates that the operation requirement of the electronic device can be met after the application program which does not have the downloading operation in the cleaning queue is cleaned, and at this time, all the target application programs can be removed from the cleaning queue; and if the removal quantity is less than M, removing part of the target application programs in the cleaning queue according to the first sequence and the removal quantity as required, so that the operation requirement of the electronic equipment is met by properly cleaning the part of the target application programs. For example, the total power consumption is larger, which means that resources occupied by applications in the electronic device are more, the jam condition is not easy to be relieved, and in order to ensure smooth operation of the electronic device, the number of background applications to be cleaned is larger, so that the number of target applications (removed number) that can be removed from the cleaning queue is smaller.
In some possible embodiments, before updating the cleanup queue according to the first sort and removal number, the method further includes: and determining a first ordering according to the downloading information of the M target application programs, wherein the larger the downloading information is, the higher the ordering of the target application programs in the cleaning queue is.
In this embodiment, before the clear queue is updated, the M target applications are sorted according to the download information, so that the target application with a larger download progress and/or a faster download speed of the download task can be located at the front position in the first sorting. When the cleaning queue is updated according to the first sorting and removing quantity, part of the target application programs required by the user can be removed from the cleaning queue preferentially, so that the target application programs in the cleaning queue are reasonably adjusted under the condition that the resource consumption information does not meet the first preset condition, and the downloading tasks of more target application programs are not interrupted as far as possible while the running smoothness of the electronic equipment is increased.
It will be appreciated that a removal rule may be preconfigured before updating the cleanup queue according to the first ordering and removal quantity, for example, the removal rule may be set as: the target applications are removed in a front-to-back order so that the target applications that are being downloaded at a high speed or are about to complete the download can be preferentially removed from the cleanup queue, and the downloading of the target applications that are better in these downloading situations is not interrupted. Or the removal rule is set to remove the target application programs from back to front, so that the target application programs with lower download speed and/or download progress are reserved and continue to run in the background when the cleaning queue is updated.
In an embodiment of the present application, in a case that the cleanup queue includes N first applications, the step of cleaning the first applications according to the updated cleanup queue specifically includes: and cleaning the first application program according to the second sorting and cleaning quantity.
Wherein N is a positive integer greater than 1, N is greater than M, the cleaning amount is associated with the resource consumption information, the second ordering is an ordering of the N first applications in the cleaning queue, and the first ordering is an order of the target applications in the second ordering.
In this embodiment, the N first applications have a second order in the cleanup queue. The second order is used to indicate a cleaning priority of the first application. And in the process of executing the cleaning program, cleaning the first application programs one by one according to a second sequence until the number of the cleaned first application programs reaches the required cleaning number. Therefore, under the condition of ensuring the power consumption problem or the blockage problem of the electronic equipment, the background running application program can be kept as much as possible, so that the user can conveniently start the background application program at any time, and the operation experience of the user is improved.
For example, according to the sequence of the application power consumption of the first application from high to low, the application power consumption of the first application located at the head in the second sequence is the highest, if the cleaning number is determined to be 3, the first three first applications in the second sequence are cleaned, and the other first applications in the cleaning queue can continue to run in the background.
Further, in a case that the updated cleanup queue includes the target application, after the first application is cleaned, the method further includes: recording the downloading information of the target application program; receiving a second input to the cleaned target application program; and responding to the second input, starting the target application program, and recovering the downloading operation of the target application program according to the downloading information.
In this embodiment, if the target application exists in the cleaning queue and the target application is cleaned, the electronic device executes the cleaning program, which causes the downloading task of the target application to be interrupted. At this time, the downloading information of the target application program is recorded, and when the user opens the target application program again through the second input, the downloading operation of the target application program is immediately recovered according to the recorded downloading information so as to continuously complete the downloading task. Therefore, interruption and recovery of the downloading task are realized, the complicated steps of recovering the downloading of the application program again by the user are reduced, and the use experience of the user is improved.
In an embodiment of the present application, the step of determining a clear queue specifically includes: acquiring running parameters of a background application program; determining the background application program with the operation parameters meeting second preset conditions as a first application program; and sequencing the first application program according to a preset sequencing rule and an operation parameter to form a cleaning queue.
Wherein the operating parameters include at least one of: lock status, application power consumption, run time, and cleaning priority.
It can be understood that the application program in the locked state is not cleaned, and may be preset by the user, for example, the chat-type application, and in order to ensure that the user timely learns the messages sent by other people, the chat-type application needs to be maintained to run in the background all the time, and at this time, the user may prevent the chat-type application from being cleaned by adjusting the chat-type application to the locked state. The cleaning priority, that is, the sequence of cleaning the application programs preset by the system, can be set reasonably according to the types, functions and the like of the applications. For example, for the chat type, the music playing type and the game type application, the cleaning priority is chat type > music playing type > game type, that is, when cleaning the application, the game type application (with lower cleaning priority) is cleaned first.
In the embodiment, the background applications are screened according to a second preset condition to determine the first application needing to be cleaned in all the background applications. Therefore, the process of cleaning background application programs is refined, some important application programs are guaranteed not to be cleaned, the accuracy of cleaning the application programs is improved, the process degree of the electronic equipment is effectively improved, and the electronic equipment is convenient for a user to use.
Specifically, the background application program with the running parameter meeting the second preset condition is used as the first application program, and the first application program comprises at least one of the following applications.
The first method comprises the following steps: and taking the background application program in the non-locking state as the first application program, namely the application program which is specified by the user and can be cleaned.
And the second method comprises the following steps: and under the condition that the application power consumption of the background application program is greater than or equal to the first power threshold corresponding to the background application program, taking the background application program as the first application program, namely taking the application program with higher application power consumption as the application program needing to be cleaned.
It can be understood that, since the initial value of the resource consumed by the running of the application program with different functions is different, for example, when the game application runs, there is usually a large amount of data transmission in order to ensure the smoothness of the running of the game and the various game functions, while the chat application has a much smaller amount of data transmission than the game application. If a uniform first power threshold is set for different applications, it is obviously impossible to accurately analyze which applications are applications that really have resource consumption abnormality. For this reason, different first power thresholds may be set for different applications such that each application has a filtering criterion that is specific to a target user, thereby improving the filtering accuracy of the first application.
And the third is that: and under the condition that the cleaning priority of the background application program is less than or equal to the priority threshold, taking the background application program as the first application program, namely taking the application program with lower cleaning priority as the application program needing to be cleaned.
The preset sorting rules can be reasonably set according to the cleaning habits of users, for example, sorting according to the application power consumption from high to low, sorting according to the running time from high to low, or sorting according to the cleaning priority from low to high.
In some embodiments, for the second and third manners of screening the first application, since the first application is screened according to the first power threshold or the priority threshold, that is, the first power threshold or the cleaning priority corresponding to the target application may be changed, so that the target application cannot meet the screening condition of the first application, and the purpose of removing the target application from the cleaning queue is achieved.
Specifically, the step of updating the clear queue according to the download information specifically includes: determining a target offset according to download information of the target application program, wherein the target offset is used for adjusting a first electric quantity threshold or a cleaning priority of the target application program, and the target offset is related to the download information, for example, the larger the download information is, the larger the target offset is; increasing a first electric quantity threshold corresponding to a target application program in the background application program or the cleaning priority of the target application program according to the target offset; and refreshing the cleaning queue according to the operation parameters and the second preset condition, and finishing the updating of the cleaning queue. At this time, due to the change of the first power threshold and the cleaning priority, there may be a case where part of the target application is removed from the cleaning queue because the second preset condition cannot be satisfied again.
In one embodiment of the application, a download request of a first application program is obtained; and in the case that the first application program responds to the downloading request, determining that the first application program has the downloading operation.
In this embodiment, because the manner of determining whether the application is downloading is determined according to the traffic condition of the application, a determination error is easily generated due to the fact that the application runs out of traffic in the background, and the traffic is greatly affected by the quality of the network, so that the downloading operation cannot be accurately determined. Therefore, the application judges whether the downloading operation exists or not by recording the downloading request of the application program through the system end. Therefore, the management accuracy of the application program is improved, and the use requirements of users are met.
In one embodiment of the present application, as shown in fig. 3, the cleaning apparatus 300 for an application program includes: a determining module 302, where the determining module 302 is configured to determine a cleaning queue under the condition that a cleaning input is received, where the cleaning queue includes a first application program, and the first application program is a background application program to be cleaned; an obtaining module 304, where the obtaining module 304 is configured to obtain download information of a target application program when a download operation exists in a first application program, where the target application program is an application program in which the download operation exists in the first application program; the updating module 306, the updating module 306 is used for updating the cleaning queue according to the downloading information; a cleaning module 308, wherein the cleaning module 308 is configured to clean the first application according to the updated cleaning queue.
In this embodiment, when a user needs to clean up an application running in the background, the application needing to be cleaned up is determined first. Before cleaning the first application program, the downloading condition of the first application program is detected, and the first application program is marked as a target application program when the downloading operation is determined to exist in the first application program. And adjusting the first application program in the cleaning queue according to the downloading information of the target application program which is downloading the task, thereby fully considering the downloading condition of the target application program and reasonably planning the first application program which needs to be cleaned. And cleaning the first application program according to the updated cleaning queue. Therefore, the target application program with downloading operation can be avoided as much as possible in the background application program cleaning process, so that the progress of the target application program cannot be killed, the electric energy of the electronic equipment is saved, the running speed of the electronic equipment is increased, the downloading interruption of the application program is effectively avoided, and the data downloading efficiency is improved.
Optionally, the updating module 306 is specifically configured to remove the target application program from the cleaning queue when the download information is greater than or equal to the preset download information; wherein, the download information comprises download progress and/or download speed.
Optionally, the cleaning queue includes M target applications, where M is a positive integer, and the obtaining module 304 is specifically configured to obtain the resource consumption information; the updating module 306 is specifically configured to update the cleaning queue when the resource consumption information meets a first preset condition, where the updated cleaning queue does not include the M target applications; or, under the condition that the resource consumption information does not meet the first preset condition, updating the cleaning queue according to a first sorting and a removal quantity, wherein the removal quantity is associated with the resource consumption information, and the first sorting is the sorting of the M target application programs in the cleaning queue.
Optionally, the determining module 302 is specifically configured to determine the first ordering according to the download information of the M target applications, where the larger the download information is, the earlier the ordering of the target applications in the cleaning queue is.
Optionally, the obtaining module 304 is specifically configured to obtain an operation parameter of the background application; the determining module 302 is specifically configured to determine the background application program with the operation parameter meeting the second preset condition as the first application program; the cleaning device 300 for the application program further comprises: a sorting module (not shown in the figure) for sorting the first application program according to a preset sorting rule and an operation parameter to form a cleaning queue; wherein the operating parameters include at least one of: lock status, application power consumption, run time, and cleaning priority.
In this embodiment, when each module of the cleaning apparatus 300 for an application executes its respective function, the steps of the method for cleaning an application in any embodiment of the first aspect are implemented, and therefore, the cleaning apparatus 300 for an application also includes all beneficial effects of the method for cleaning an application in any embodiment of the first aspect, which are not described herein again.
The cleaning device of the application program in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in the terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a smart camera, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a self-service machine, and the like, and the embodiment of the present application is not particularly limited.
The cleaning device of the application program in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system (Android), an iOS operating system, or an operating system of other capabilities, which is not specifically limited in the embodiments of the present application.
In one embodiment of the present application, as shown in fig. 4, there is provided an electronic device 400 comprising: the processor 401, the memory 402, and the program or the instructions stored in the memory 402 and run on the processor 401, where the program or the instructions, when executed by the processor 401, implement the steps of the method for cleaning the application program provided in any of the above embodiments, and therefore, the electronic device 400 includes all the advantages of the method for cleaning the application program provided in any of the above embodiments, which are not described herein again.
In an embodiment of the application, there is provided a cleaning apparatus comprising an application as in any embodiment of the second aspect. Therefore, the electronic device also includes all the beneficial effects of the cleaning apparatus for the application program in any embodiment of the second aspect, which are not described herein again.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic device and the non-mobile electronic device described above.
Fig. 5 is a schematic hardware structure diagram of an electronic device 500 for implementing an embodiment of the present application. The electronic device 500 includes, but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and the like.
Those skilled in the art will appreciate that the electronic device 500 may further include a power supply (e.g., a battery) for supplying power to various components, and the power supply may be logically connected to the processor 510 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system. The electronic device structure shown in fig. 5 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
Wherein, the processor 510 is configured to determine a cleaning queue in a case that a cleaning input is received, where the cleaning queue includes a first application program, and the first application program is a background application program to be cleaned; under the condition that the downloading operation exists in the first application program, acquiring downloading information of a target application program; updating the cleaning queue according to the downloading information; and cleaning the first application program according to the updated cleaning queue.
In this embodiment, when a user needs to clean up an application running in the background, the application needing to be cleaned up is determined first. Before cleaning the first application program, the downloading condition of the first application program is detected, and the first application program is marked as a target application program when the downloading operation is determined to exist in the first application program. And adjusting the first application program in the cleaning queue according to the downloading information of the target application program which is downloading the task, thereby fully considering the downloading condition of the target application program and reasonably planning the first application program which needs to be cleaned. And cleaning the first application program according to the updated cleaning queue. Therefore, the target application program with downloading operation can be avoided as much as possible in the background application program cleaning process, so that the progress of the target application program cannot be killed, the electric energy of the electronic equipment is saved, the running speed of the electronic equipment is increased, the downloading interruption of the application program is effectively avoided, and the data downloading efficiency is improved.
Further, the processor 510 is further configured to remove the target application from the cleaning queue if the download information is greater than or equal to the preset download information; wherein, the download information comprises download progress and/or download speed.
Further, the cleanup queue includes M target applications, where M is a positive integer, and processor 510 is further configured to obtain resource consumption information; under the condition that the resource consumption information meets a first preset condition, updating a cleaning queue, wherein the updated cleaning queue does not comprise M target application programs; or, under the condition that the resource consumption information does not meet the first preset condition, updating the cleaning queue according to a first sorting and a removal quantity, wherein the removal quantity is associated with the resource consumption information, and the first sorting is the sorting of the M target application programs in the cleaning queue.
Further, the processor 510 is further configured to determine a first ordering according to the download information of the M target applications, wherein the larger the download information is, the higher the ordering of the target applications in the cleaning queue is.
Further, the processor 510 is further configured to obtain an operation parameter of the background application; determining the background application program with the operation parameters meeting second preset conditions as a first application program; sequencing the first application program according to a preset sequencing rule and an operation parameter to form a cleaning queue; wherein the operating parameters include at least one of: lock status, application power consumption, run time, and cleaning priority.
It should be understood that in the embodiment of the present application, the input Unit 504 may include a Graphics Processing Unit (GPU) 541 and a microphone 542, and the Graphics Processing Unit 541 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 506 may include a display panel 561, and the display panel 561 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 507 includes a touch panel 571 and other input devices 572. A touch panel 571, also referred to as a touch screen. The touch panel 571 may include two parts, a touch detection device and a touch controller. Other input devices 572 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 509 may be used to store software programs as well as various data including, but not limited to, application programs and operating systems. Processor 510 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 510.
In an embodiment of the present application, a read storage medium is provided, on which a program or instructions are stored, which when executed by a processor implement the steps of the cleaning method of an application as provided in any of the above embodiments.
In this embodiment, the reading of the storage medium can implement each process of the method for cleaning up the application program provided in the embodiment of the present application, and can achieve the same technical effect, and for avoiding repetition, details are not described here again.
The processor is the processor in the communication device in the above embodiment. The Read-storage medium includes a computer-readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the embodiment of the method for cleaning an application program, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A method for cleaning an application program, comprising:
determining a cleaning queue under the condition of receiving cleaning input, wherein the cleaning queue comprises a first application program, and the first application program is a background application program to be cleaned;
acquiring downloading information of a target application program under the condition that the first application program has downloading operation, wherein the target application program is the application program with the downloading operation in the first application program;
updating the cleaning queue according to the downloading information;
and cleaning the first application program according to the updated cleaning queue.
2. The method for cleaning up the application program according to claim 1, wherein the updating the cleaning queue according to the download information comprises:
removing the target application program from the cleaning queue under the condition that the downloading information is greater than or equal to preset downloading information;
wherein, the download information comprises download progress and/or download speed.
3. The method according to claim 1, wherein the cleanup queue includes M target applications, M being a positive integer, and the updating the cleanup queue according to the download information includes:
acquiring resource consumption information;
under the condition that the resource consumption information meets a first preset condition, updating the cleaning queue, wherein the updated cleaning queue does not comprise the M target application programs;
or, when the resource consumption information does not satisfy the first preset condition, updating the cleaning queue according to a first sorting and a removal number, where the removal number is associated with the resource consumption information, and the first sorting is the sorting of the M target applications in the cleaning queue.
4. The method of claim 3, wherein before updating the cleanup queue according to the first sort and remove quantity, further comprising:
and determining the first sequencing according to the downloading information of the M target application programs, wherein the larger the downloading information is, the higher the sequencing of the target application programs in the cleaning queue is.
5. The method for cleaning up the application program according to any one of claims 1 to 4, wherein the determining a cleaning queue comprises:
acquiring the running parameters of the background application program;
determining the background application program with the operation parameters meeting a second preset condition as the first application program;
sequencing the first application program according to a preset sequencing rule and the operation parameters to form the cleaning queue;
wherein the operating parameters include at least one of: lock status, application power consumption, run time, and cleaning priority.
6. An apparatus for cleaning an application, comprising:
the device comprises a determining module, a clearing module and a processing module, wherein the determining module is used for determining a clearing queue under the condition of receiving clearing input, the clearing queue comprises a first application program, and the first application program is a background application program to be cleared;
an obtaining module, configured to obtain download information of a target application program when a download operation exists in the first application program, where the target application program is an application program in which the download operation exists in the first application program;
the updating module is used for updating the cleaning queue according to the downloading information;
and the clearing module is used for clearing the first application program according to the updated clearing queue.
7. The cleaning apparatus for application program according to claim 6,
the update module is specifically configured to remove the target application program from the cleaning queue when the download information is greater than or equal to preset download information;
wherein, the download information comprises download progress and/or download speed.
8. A cleaning apparatus for application programs according to claim 6, wherein the cleaning queue includes M target application programs, M is a positive integer,
the acquisition module is specifically used for acquiring resource consumption information;
the updating module is specifically configured to update the cleaning queue when the resource consumption information meets a first preset condition, where the updated cleaning queue does not include the M target applications;
or, when the resource consumption information does not satisfy the first preset condition, updating the cleaning queue according to a first sorting and a removal number, where the removal number is associated with the resource consumption information, and the first sorting is a sorting of the M target applications in the cleaning queue.
9. The cleaning apparatus for application program according to claim 8,
the determining module is specifically configured to determine the first ranking according to the download information of the M target applications, where the larger the download information is, the earlier the ranking of the target applications in the cleaning queue is.
10. Cleaning device of an application according to any of the claims 6 to 9,
the obtaining module is specifically configured to obtain an operating parameter of the background application program;
the determining module is specifically configured to determine the background application program with the operating parameter meeting a second preset condition as the first application program;
the cleaning device for the application program further comprises:
the sorting module is used for sorting the first application program according to a preset sorting rule and the operation parameters to form the cleaning queue;
wherein the operating parameters include at least one of: lock status, application power consumption, run time, and cleaning priority.
CN202111212170.2A 2021-10-18 2021-10-18 Application program cleaning method and application program cleaning device Pending CN113946385A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111212170.2A CN113946385A (en) 2021-10-18 2021-10-18 Application program cleaning method and application program cleaning device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111212170.2A CN113946385A (en) 2021-10-18 2021-10-18 Application program cleaning method and application program cleaning device

Publications (1)

Publication Number Publication Date
CN113946385A true CN113946385A (en) 2022-01-18

Family

ID=79331430

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111212170.2A Pending CN113946385A (en) 2021-10-18 2021-10-18 Application program cleaning method and application program cleaning device

Country Status (1)

Country Link
CN (1) CN113946385A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115033306A (en) * 2022-06-29 2022-09-09 维沃移动通信有限公司 Application exit method and device
CN115098448A (en) * 2022-08-26 2022-09-23 深圳市必凡娱乐科技有限公司 Software cleaning method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070038763A1 (en) * 2003-07-02 2007-02-15 Symbian Software Limited Method of enabling a multitasking computing device to conserve resources
CN102859980A (en) * 2010-03-29 2013-01-02 摩托罗拉解决方案公司 Enhanced public safety communication system
CN105786520A (en) * 2016-03-17 2016-07-20 北京百纳威尔科技有限公司 Method and device for managing applications of electronic equipment
CN106919428A (en) * 2017-03-21 2017-07-04 北京奇虎科技有限公司 Clear up method, device and the mobile terminal of mobile terminal internal memory
CN107943650A (en) * 2017-11-21 2018-04-20 广东欧珀移动通信有限公司 Control method, device, storage medium and the terminal of application program

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070038763A1 (en) * 2003-07-02 2007-02-15 Symbian Software Limited Method of enabling a multitasking computing device to conserve resources
CN102859980A (en) * 2010-03-29 2013-01-02 摩托罗拉解决方案公司 Enhanced public safety communication system
CN105786520A (en) * 2016-03-17 2016-07-20 北京百纳威尔科技有限公司 Method and device for managing applications of electronic equipment
CN106919428A (en) * 2017-03-21 2017-07-04 北京奇虎科技有限公司 Clear up method, device and the mobile terminal of mobile terminal internal memory
CN107943650A (en) * 2017-11-21 2018-04-20 广东欧珀移动通信有限公司 Control method, device, storage medium and the terminal of application program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115033306A (en) * 2022-06-29 2022-09-09 维沃移动通信有限公司 Application exit method and device
CN115033306B (en) * 2022-06-29 2024-05-24 维沃移动通信有限公司 Application exit method and device
CN115098448A (en) * 2022-08-26 2022-09-23 深圳市必凡娱乐科技有限公司 Software cleaning method and system

Similar Documents

Publication Publication Date Title
CN111885258B (en) Unread message display method and device, electronic equipment and storage medium
CN108762831B (en) Application program preloading method and device, storage medium and terminal
CN113946385A (en) Application program cleaning method and application program cleaning device
US10719769B2 (en) Systems and methods for generating and communicating application recommendations at uninstall time
CN108090079B (en) Chat record processing method and device of instant chat tool
CN105095107A (en) Buffer memory data cleaning method and apparatus
CN106775809B (en) Method and device for cleaning memory of mobile terminal and mobile terminal
CN110889064B (en) Page display method, device, equipment and storage medium
CN112099685B (en) Notification message display control method and device, electronic equipment and readable storage medium
CN112148405B (en) Desktop layout method and device and electronic equipment
WO2016196526A1 (en) Viewport-based implicit feedback
CN112286887A (en) File sharing method and device and electronic equipment
CN113271360B (en) Application program recommendation method and device, electronic equipment and medium
CN113835580A (en) Application icon display method and device, electronic equipment and storage medium
CN105893471B (en) Data processing method and electronic equipment
CN112787907A (en) Display method and device and electronic equipment
CN112286612A (en) Information display method and device and electronic equipment
CN114489913A (en) Interaction method, interaction device and electronic equipment
CN113114845B (en) Notification message display method and device
CN113938551B (en) Caching method and device, electronic equipment and storage medium
CN114489418A (en) Message processing method, message processing device and electronic equipment
CN111757040B (en) Communication method and device
CN113805997B (en) Information display method, information display device, electronic equipment and storage medium
CN112882789A (en) Information display method and device, electronic equipment and storage medium
CN113835601A (en) Screenshot management method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination