CN107608498B - Application program management method and terminal equipment - Google Patents

Application program management method and terminal equipment Download PDF

Info

Publication number
CN107608498B
CN107608498B CN201710901245.5A CN201710901245A CN107608498B CN 107608498 B CN107608498 B CN 107608498B CN 201710901245 A CN201710901245 A CN 201710901245A CN 107608498 B CN107608498 B CN 107608498B
Authority
CN
China
Prior art keywords
program list
application
list
program
programs
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.)
Active
Application number
CN201710901245.5A
Other languages
Chinese (zh)
Other versions
CN107608498A (en
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.)
Shanghai Chuanying Information Technology Co Ltd
Original Assignee
Shanghai Chuanying Information Technology 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 Shanghai Chuanying Information Technology Co Ltd filed Critical Shanghai Chuanying Information Technology Co Ltd
Priority to CN201710901245.5A priority Critical patent/CN107608498B/en
Publication of CN107608498A publication Critical patent/CN107608498A/en
Application granted granted Critical
Publication of CN107608498B publication Critical patent/CN107608498B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Stored Programmes (AREA)
  • Telephone Function (AREA)

Abstract

The invention provides an application program management method and terminal equipment. The method comprises the following steps: the method comprises the steps that after terminal equipment receives a screen locking instruction input by a user, a current running application program list of the terminal equipment is obtained; the terminal equipment screens out a first program list, a second program list and a third program list from the application program list; the application programs in the first program list are programs which continue to run after the screen is locked, the application programs in the second program list are programs which terminate after the screen is locked, and the application programs in the third program list are programs which terminate after the screen is locked and resume to run after the screen is unlocked; and the terminal equipment performs screen locking processing and processes the application programs in each program list. By the method, unnecessary application programs are cleaned when the terminal device locks the screen, electric quantity is greatly saved, necessary related application programs are recovered after the user unlocks the terminal device again, and user experience is improved.

Description

Application program management method and terminal equipment
Technical Field
The present application relates to the field of communications, and in particular, to an application management method and a terminal device.
Background
With the development of communication technology, more and more applications are installed in the terminal device, but the applications bring various convenient functions to users and occupy a large amount of memory of the terminal device, so that the processing speed of the terminal device is slower and slower, and the power consumption of the terminal device is increased.
Especially, after the screen of the terminal device is locked, the application program running in the background still occupies a large amount of memory, thereby causing unnecessary consumption of electric quantity in the screen locking state. Aiming at the condition that a background program occupies a large amount of memory when the terminal device is in a screen locking state, a plurality of cleaning methods are developed by technical personnel in the field to optimize the memory condition so as to reduce the consumption of electric quantity, for example, the cleaning methods are carried out according to the process priority and the white list method. However, these cleaning rules are generally relatively single, and there are many problems, for example, for some programs that are only frequently used in a certain period of time, the terminal device may perform a false cleaning because of its low process priority, and after the user re-unlocks, the application program must be restarted frequently, which seriously affects the user experience.
In addition, in the cleaning mode in the prior art, only the terminal device simply performs application cleaning in the screen locking state, and the function of restoring the relevant necessary application after the user unlocks again is not provided.
Disclosure of Invention
The invention provides an application program management method and terminal equipment, which are used for cleaning unnecessary application programs when the terminal equipment locks a screen, greatly saving electric quantity, recovering necessary related application programs after a user unlocks the terminal equipment again, and further improving user experience.
In a first aspect, the present invention provides an application management method, including:
the method comprises the steps that after terminal equipment receives a screen locking instruction input by a user, a current running application program list of the terminal equipment is obtained;
the terminal equipment screens out a first program list, a second program list and a third program list from the application program list; the application programs in the first program list are programs which continue to run after the screen is locked, the application programs in the second program list are programs which terminate after the screen is locked, and the application programs in the third program list are programs which terminate after the screen is locked and resume to run after the screen is unlocked;
and the terminal equipment performs screen locking processing and processes the application programs in each program list.
In one possible design, the screening, by the terminal device, of the first program list, the second program list, and the third program list from the application program list includes:
the terminal equipment acquires the current electric quantity of the terminal equipment;
the terminal equipment judges whether the current electric quantity is lower than a preset electric quantity threshold value or not;
and if the power consumption is lower than a preset power threshold, setting the first program list to be empty, listing all application programs in the application program list into the second program list, and setting the third program list to be empty.
In one possible design, if the current value is equal to or higher than the preset power threshold, the method further includes:
judging whether the application program is in a preset white list or not for each application program in the application program list, and if so, listing the application program in the first program list; if the application program is not in the preset white list, judging whether the application program is in a preset grey list, if so, listing the application program in the third program list, and if not, listing the application program in the second program list.
In one possible design, the processing the application programs in each program list includes:
the terminal equipment continues to run the application programs in the first program list;
the terminal equipment terminates the application programs in the second program list and the third program list;
the terminal equipment receives a screen unlocking instruction input by a user;
and the terminal equipment restores the application programs in the third program list according to the screen-unlocking instruction.
In one possible design, before the terminal device terminates the application programs in the second program list and the third program list, the method further includes:
the terminal equipment continues to run all programs in the application program list within preset caching time;
the terminating the application programs in the second program list and the third program list by the terminal device includes:
and the terminal equipment terminates the application programs in the second program list and the third program list after the preset caching time is over.
In one possible design, after the processing the application programs in each program list, the method further includes:
the method comprises the steps that when the terminal equipment is in a screen locking state, an application program list currently operated by the terminal equipment is obtained at preset time intervals;
the terminal device screens out a new first program list and a new second program list from the application program list acquired last time according to the current electric quantity of the terminal device;
the terminal equipment continues to operate the application programs in the new first program list;
the terminal device terminates the application programs in the new second program list.
In a second aspect, the present invention further provides a terminal device, including:
the first acquisition module is used for acquiring an application program list currently operated by the terminal equipment after the terminal equipment receives a screen locking instruction input by a user;
the screening module is used for screening a first program list, a second program list and a third program list from the application program list; the application programs in the first program list are programs which continue to run after the screen is locked, the application programs in the second program list are programs which terminate after the screen is locked, and the application programs in the third program list are programs which terminate after the screen is locked and resume to run after the screen is unlocked;
and the processing module is used for performing screen locking processing and processing the application programs in each program list.
In a possible design, the screening module specifically includes:
the second acquisition module is used for acquiring the current electric quantity of the terminal equipment;
the first judgment module is used for judging whether the current electric quantity is lower than the preset electric quantity threshold value or not;
and if so, setting the first program list to be empty, listing all application programs in the application program list into the second program list, and setting the third program list to be empty.
In one possible design, the screening module further includes:
a second determining module, configured to determine, for each application program in the application program list, whether the application program is in a preset white list, and if the application program is in the preset white list, list the application program in the first program list; if the application program is not in the preset white list, judging whether the application program is in a preset grey list, if so, listing the application program in the third program list, and if not, listing the application program in the second program list.
In a possible design, the processing module specifically includes:
the running module is used for continuously running the programs in the first program list;
a termination module for terminating the application programs in the second program list and the third program list;
the receiving module is used for receiving a screen-unlocking instruction input by a user;
and the restoring module is used for restoring the application programs in the third program list according to the screen unlocking instruction.
In a possible design, the first obtaining module is further configured to obtain, in a screen lock state, a list of application programs currently running on the terminal device at preset time intervals;
the screening module is further configured to screen a new first program list and a new second program list from the application program list acquired last time according to the application program list;
the running module is used for continuously running the programs in the new first program list;
the termination module is further configured to terminate the application programs in the new second program list and the third program list.
In a third aspect, the present invention provides a terminal device, including: a memory, a processor and a computer program, the computer program being stored in the memory, the processor running the computer program to perform the first aspect and various possible designs of the application management method of the first aspect.
In a fourth aspect, the present invention also provides a storage medium comprising: a readable storage medium and a computer program for implementing the first aspect and the various possible application management methods of the first aspect.
The invention provides an application program management method and terminal equipment, wherein a currently running application program list is obtained, a first program list, a second program list and a third program list are screened from the currently running application program list according to relevant screening criteria, and then different operation processing is carried out on the application programs in the lists, so that the terminal equipment can clean unnecessary application programs when a screen is locked, the electric quantity is greatly saved, necessary relevant application programs are recovered after a user unlocks the terminal equipment again, and the user experience is further improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a schematic view of an alternative application management method according to the present invention;
FIG. 2 is a flowchart of an application management method according to an embodiment of the present invention;
fig. 3 is a flowchart of an application management method according to a second embodiment of the present invention;
fig. 4 is a schematic structural diagram of a terminal device according to a third embodiment of the present invention;
FIG. 5 is a schematic structural diagram of the screening module of FIG. 4;
FIG. 6 is a schematic diagram of the processing module of FIG. 4;
fig. 7 is a schematic diagram of a hardware structure of the terminal device provided by the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic view of an optional application management method according to the present invention. As shown in fig. 1, in this embodiment, a user inputs a screen locking instruction, for example, a screen locking key on a terminal device is triggered to lock the screen, and when the terminal device is in a screen locking state, the application management method in this example is activated to manage a background application.
Fig. 2 is a flowchart of an application management method according to an embodiment of the present invention, where the method of this embodiment is applied to a terminal device, and the terminal device may be an electronic device with data processing and display functions, such as a smart phone, a tablet computer, and a personal computer, as shown in fig. 2, the method of this embodiment may include:
step 101, after receiving a screen locking instruction input by a user, a terminal device acquires an application program list currently running by the terminal device.
Specifically, a user may input a screen locking instruction through a screen locking key of the terminal device to lock the screen, or may perform automatic screen locking without operating the terminal device within a preset automatic screen locking time, or may perform screen locking operation on the terminal device through human-computer interaction modes such as voice recognition, iris recognition, face recognition, and the like, where the specific mode for inputting the screen locking instruction by the user is not limited in this embodiment. The method comprises the steps of registering a system screen locking broadcast message in a system, enabling the system to receive the system screen locking broadcast message after a user inputs a screen locking instruction, then calling through an interface of the system to traverse a current background running program, and generating a current running application program list of the terminal device according to the obtained current background running program. The application program list currently running in the terminal device can be detected through a third-party application program management program besides being detected through the system of the terminal device, for example, a mobile phone 360 housekeeping, a mobile phone housekeeping manager, a memory housekeeping and the like. The embodiment does not limit the specific manner of acquiring the application program list currently running by the terminal device.
And 102, the terminal device screens a first program list, a second program list and a third program list from the application program list.
Specifically, the terminal device traverses the obtained application program list according to a preset screening rule, and screens out a first program list, a second program list and a third program list, wherein an application program in the first program list is a program which continues to run after the screen is locked, an application program in the second program list is a program which is terminated after the screen is locked, and an application program in the third program list is a program which is terminated after the screen is locked and resumes running after the screen is unlocked.
And 103, the terminal equipment performs screen locking processing and processes the application programs in each program list.
Specifically, the terminal device performs screen locking processing according to a screen locking instruction input by a user, and performs corresponding operations on the programs in the first program list, the second program list, and the third program list in the background.
In this embodiment, the terminal device obtains the currently running application program list, then screens out the first program list, the second program list and the third program list from the currently running application program list according to the relevant screening criteria, and then performs different operation processing on the application programs in each list, so as to clean up unnecessary application programs when the terminal device locks the screen, thereby greatly saving electric quantity, and recovering necessary relevant application programs after the user unlocks the terminal device again, thereby further improving user experience.
Fig. 3 is a flowchart of an application management method according to a second embodiment of the present invention, where the method according to the present embodiment includes:
step 201, after receiving a screen locking instruction input by a user, the terminal device obtains an application program list currently running by the terminal device.
The specific implementation of step 201 refers to the description of step 101 in the first embodiment, and is not described herein again.
Step 202, the terminal device obtains the current electric quantity of the terminal device.
Specifically, after the terminal device obtains the currently running application program list, the terminal device may detect the current power information through its own system, or may detect the current power information through a third-party power management program, for example, a 360-degree battery manager.
Step 203, the terminal device determines whether the current electric quantity is lower than a preset electric quantity threshold.
Specifically, the terminal device compares the acquired current electric quantity with an electric quantity threshold preset in the system, and judges whether the current electric quantity is lower than the preset electric quantity threshold. The preset electric quantity threshold may be set by the system according to the requirement of ensuring normal operation of the internal hardware, or may be set by the user through a setting interface, for example, the preset electric quantity threshold may be set to 10%, and the present embodiment does not specifically limit the value of the preset electric quantity threshold. In addition, a plurality of electric quantity thresholds can be preset according to different modes of the terminal equipment, and the terminal equipment can be adaptively adjusted in different modes, so that the terminal equipment can better manage background programs in a screen locking state, for example, the electric quantity threshold with a higher numerical value is set for an outdoor mode of the terminal equipment, and therefore the electric consumption of the terminal equipment is reduced, and the terminal equipment has longer standby time. The present embodiment does not specifically limit the value of the preset electric quantity threshold. If the current electric quantity acquired by the terminal device is lower than the preset electric quantity threshold value, executing the substep 2031; if the current electric quantity acquired by the terminal device is higher than or equal to the preset electric quantity threshold, step 204 is executed.
Substep 2031, setting the first program list to null, listing all the applications in the application list in the second program list, and setting the third program list to null.
And if the current electric quantity acquired by the terminal equipment is lower than a preset electric quantity threshold value, setting the first program list to be empty, listing all application programs in the application program list into a second program list, and setting the third program list to be empty. Under the condition that the terminal equipment is in a low power state, all application programs in all application program lists are closed during screen locking, so that the terminal equipment enters a super power-saving mode, and the standby time of the terminal equipment can be greatly prolonged. Jump directly to step 205 after step 2031 is complete.
And step 204, judging whether the application program is in a preset white list or not aiming at each application program in the application program list.
If the current power obtained by the terminal device is higher than or equal to the preset power threshold in step 203, it is determined whether the application program is in a preset white list for each application program in the application program list. If the application program is in the preset white list, executing substep 2041; if the application is not on the preset white list, substep 2042 is performed.
It should be noted that the white list may include applications that need to receive information in real time, such as applications for WeChat, QQ, telephone, and SMS. And the grey list may include some applications that the user will use in a specific scene, such as navigation maps, mobile music, game software, and other applications. The white list and the grey list may be preset by a user, or may be automatically generated by the terminal device system according to the usual usage habit of the user.
Substep 2041, listing the application program into a first program list.
Specifically, in step 204, if the application is in the preset white list, the application is listed in the first program list.
Substep 2042, the terminal device sequentially determines whether each application in the application list is in a preset grey list.
Specifically, in step 204, if the application program is not in the preset white list, it is sequentially determined whether each application program in the application program list is in the preset grey list.
Substep 20421, listing the application program into said third program list.
Specifically, in step 2042, if the application is in the gray list, the application is listed in the third program list.
Substep 20422, listing the application program into a second program list.
Specifically, in step 2042, if the application is not in the gray list, the application is listed in the second program list.
Step 205, the terminal device continues to run the application programs in the first program list.
Specifically, the terminal device continues to run the applications in the first program list in the background after locking the screen according to the application list in the first program list. For example, if the white list includes the WeChat, the WeChat will also be in the first program list, and after the terminal device locks the screen, the WeChat will still run in the background, so as to ensure that the user can receive the WeChat information in real time.
Step 206, the terminal device terminates the applications in the second program sequence table and the third list.
Specifically, the terminal device terminates the applications in the second program sequence list and the third list after locking the screen according to the second program sequence list and the application list in the third list. In the screen locking state, a large number of programs in the background of the terminal equipment are removed, so that the memory occupancy rate can be reduced, and the electric quantity consumption in the screen locking state is reduced.
And step 207, the terminal equipment receives a screen-off instruction input by the user.
Specifically, the user may input a screen unlocking instruction through the terminal device interface to unlock the terminal device, for example, modes of sliding unlocking, gesture unlocking, and fingerprint unlocking, and may also perform an unlocking operation on the terminal device through human-computer interaction modes such as voice recognition, iris recognition, and face recognition, which is not limited in the specific mode of inputting the unlocking instruction by the user.
And step 208, the terminal equipment restores the application programs in the third list according to the unlocking instruction.
Specifically, the terminal device restores the application programs in the third list according to the received unlocking instruction.
When the terminal device determines in step 203 that the current power amount is lower than the preset power amount threshold, the third program list is empty, and after the terminal device is unlocked, no application program is recovered, so that power consumption of the terminal device in a low power state can be further reduced, and the standby time of the terminal device can be further prolonged.
When the terminal device determines in step 203 that the current electric quantity is equal to or higher than the preset electric quantity threshold, the third program list is not empty, and after unlocking, the background automatically restores the programs of the third program list. In a possible practical application, the user places the game software, for example, royal glory, on a grey list, which naturally also appears on the third list in the case of a sufficiently charged terminal device. When the terminal equipment is in the screen locking state, the glory of the queen person is stopped, so that the power consumption in the screen locking state can be greatly reduced; when the terminal equipment is unlocked, the glory of the prince is restored on the background, so that the time for the user to enter the game can be greatly reduced, and the user experience is further improved.
In the actual application process, the user may mistakenly lock the screen or unlock the screen immediately after the screen locking time is short, and in order to ensure that the terminal device can keep all the application programs used by the user before the screen is locked after the user quickly unlocks the screen again under the condition. Before step 206, the terminal device may continue to run all the programs in the application program list within the preset caching time, and after the preset caching time is over, the terminal device terminates the application programs in the second program sequence list and the third program list. The cache time may be set and defined by the user, or may be determined by the terminal device according to the daily usage habit of the user.
In addition, some rogue programs often run by themselves when the terminal device is in the screen locking state. Therefore, after step 208, the current running application program list of the terminal device may be further acquired once every preset time interval, a new first program list and a new second program list are screened from the last acquired application program list, the application programs in the new first program list continue to run, and the application programs in the new second program list and the third program list are terminated. In the screen locking state, the background program is cleaned once at preset time intervals, so that the occupation of rogue programs on the memory is reduced, and the power consumption of the terminal equipment in the screen locking state is further reduced.
Fig. 4 is a schematic structural diagram of a terminal device according to a third embodiment of the present invention. As shown in fig. 4, the terminal device provided in this embodiment includes:
the first obtaining module 301 is configured to obtain, by the terminal device, an application program list currently running by the terminal device after receiving a screen locking instruction input by a user;
a screening module 302, configured to screen a first program list, a second program list, and a third program list from the application program list; the application programs in the first program list are programs which continue to run after the screen is locked, the application programs in the second program list are programs which terminate after the screen is locked, and the application programs in the third program list are programs which terminate after the screen is locked and resume to run after the screen is unlocked;
and the processing module 303 is configured to perform screen locking processing and process the application programs in each program list.
Fig. 5 is a schematic structural diagram of the screening module in fig. 4. As shown in fig. 5, the screening module 302 specifically includes:
a second obtaining module 3021, configured to obtain a current electric quantity of the terminal device;
a first judging module 3022, configured to judge whether the current electric quantity is lower than a preset electric quantity threshold;
and if so, setting the first program list to be empty, listing all the application programs in the application program list into the second program list, and setting the third program list to be empty.
In one possible design, the screening module 302 further includes:
a second determining module 3023, configured to determine, for each application in the application list, whether the application is in a preset white list, and if the application is in the preset white list, list the application in the first program list; if the application program is not in the preset white list, judging whether the application program is in the preset grey list, if so, listing the application program in a third program list, and if not, listing the application program in a second program list.
Fig. 6 is a schematic structural diagram of the processing module in fig. 4. As shown in fig. 6, in a possible design, the processing module 303 specifically includes:
an operation module 3031, configured to continue to operate the programs in the first program list;
a termination module 3032, configured to terminate the application programs in the second program list and the third program list;
a receiving module 3033, configured to receive a screen-unlocking instruction input by a user;
a restoring module 3034, configured to restore the application programs in the third program list according to the screen-unlocking instruction.
In a possible design, the first obtaining module 301 is further configured to obtain, in a screen-locked state, a list of application programs currently running on the terminal device at preset time intervals;
the screening module 302 is further configured to screen a new first program list and a new second program list from the application program list obtained last time according to the application program list;
an operation module 3031, configured to continue to operate the programs in the new first program list;
a termination module 3032 is further configured to terminate the application programs in the new second program list and the third program list.
Fig. 7 is a schematic diagram of a hardware structure of a terminal device provided in the present application. As shown in fig. 7, the terminal device 40 includes: a processor 41 and a memory 42; wherein
A memory 42 for storing a computer program, which may also be a flash (flash memory).
And the processor 41 is used for executing the execution instructions stored in the memory so as to realize the steps in the decoding method. Reference may be made in particular to the description relating to the preceding method embodiment.
Alternatively, the memory 42 may be separate or integrated with the processor 41.
When the memory 42 is a device independent of the processor 41, the terminal device 40 may further include:
a bus 43 for connecting the memory 42 and the processor 41.
The application also provides a storage medium, wherein the storage medium stores an execution instruction, and when at least one processor of the terminal device executes the execution instruction, the terminal device executes the application management method provided by the above various embodiments.
The present application also provides a program product comprising execution instructions stored in a readable storage medium. The at least one processor of the sending device may read the execution instruction from the readable storage medium, and the execution of the execution instruction by the at least one processor causes the terminal device to implement the application management method provided by the various embodiments described above.
The present application also provides a program product comprising execution instructions stored in a readable storage medium. The at least one processor of the terminal device may read the execution instruction from the readable storage medium, and the execution of the execution instruction by the at least one processor causes the terminal device to implement the application management method provided by the various embodiments described above.
In the above embodiments of the terminal device, it should be understood that the Processor may be a Central Processing Unit (CPU), other general-purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present application may be embodied directly in a hardware processor, or in a combination of the hardware and software modules in the processor.
All or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The aforementioned program may be stored in a readable memory. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned memory (storage medium) includes: read-only memory (ROM), RAM, flash memory, hard disk, solid state disk, magnetic tape (magnetic tape), floppy disk (flexible disk), optical disk (optical disk), and any combination thereof.
Finally, it should be noted that: while the present solution has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; however, these modifications and substitutions do not cause the essential features of the corresponding technical solutions to depart from the scope of the technical solutions of the embodiments of the present application.

Claims (5)

1. An application management method, comprising:
the method comprises the steps that after terminal equipment receives a screen locking instruction input by a user, a current running application program list of the terminal equipment is obtained;
the terminal equipment screens out a first program list, a second program list and a third program list from the application program list; the application programs in the first program list are programs which continue to run after the screen is locked, the application programs in the second program list are programs which terminate after the screen is locked, and the application programs in the third program list are programs which terminate after the screen is locked and resume to run after the screen is unlocked;
the terminal equipment performs screen locking processing and processes application programs in each program list;
the processing of the application programs in each program list includes:
the terminal equipment continues to run the application programs in the first program list;
the terminal equipment terminates the application programs in the second program list and the third program list;
the terminal equipment receives a screen unlocking instruction input by a user;
the terminal equipment restores the application programs in the third program list according to the screen-unlocking instruction;
the terminal device screens out a first program list, a second program list and a third program list from the application program list, and the method comprises the following steps:
the terminal equipment acquires the current electric quantity of the terminal equipment;
the terminal equipment judges whether the current electric quantity is lower than a preset electric quantity threshold value or not;
if the power consumption is lower than a preset power threshold, setting the first program list to be empty, listing all application programs in the application program list into the second program list, and setting the third program list to be empty;
after the processing of the application programs in each program list, the method further includes:
the method comprises the steps that when the terminal equipment is in a screen locking state, an application program list currently operated by the terminal equipment is obtained at preset time intervals;
the terminal device screens a new first program list and a new second program list from the application program list acquired last time;
the terminal equipment continues to operate the application programs in the new first program list;
the terminal device terminates the application programs in the new second program list and the third program list.
2. The method of claim 1, wherein if the power level is equal to or higher than a predetermined power threshold, the method further comprises:
judging whether the application program is in a preset white list or not for each application program in the application program list, and if so, listing the application program in the first program list; if the application program is not in the preset white list, judging whether the application program is in a preset grey list, if so, listing the application program in the third program list, and if not, listing the application program in the second program list.
3. The method according to claim 1, further comprising, before the terminal device terminates the applications in the second program list and the third program list:
the terminal equipment continues to run all programs in the application program list within preset caching time;
the terminating the application programs in the second program list and the third program list by the terminal device includes:
and the terminal equipment terminates the application programs in the second program list and the third program list after the preset caching time is over.
4. A terminal device, comprising:
the first acquisition module is used for acquiring an application program list currently operated by the terminal equipment after the terminal equipment receives a screen locking instruction input by a user;
the screening module is used for screening a first program list, a second program list and a third program list from the application program list; the application programs in the first program list are programs which continue to run after the screen is locked, the application programs in the second program list are programs which terminate after the screen is locked, and the application programs in the third program list are programs which terminate after the screen is locked and resume to run after the screen is unlocked;
the processing module is used for carrying out screen locking processing and processing the application programs in each program list;
the processing module specifically comprises:
the running module is used for continuously running the programs in the first program list;
a termination module for terminating the application programs in the second program list and the third program list;
the receiving module is used for receiving a screen-unlocking instruction input by a user;
the restoring module is used for restoring the application programs in the third program list according to the screen unlocking instruction;
the screening module specifically comprises:
the second acquisition module is used for acquiring the current electric quantity of the terminal equipment;
the first judgment module is used for judging whether the current electric quantity is lower than a preset electric quantity threshold value or not;
if the judgment result is yes, setting the first program list to be empty, listing all application programs in the application program list into the second program list, and setting the third program list to be empty;
the first obtaining module is further configured to obtain a list of application programs currently running by the terminal device at preset time intervals in the screen locking state;
the screening module is further used for screening a new first program list and a new second program list from the application program list acquired last time according to the application program list;
and the termination module is also used for terminating the application programs in the new second program sequence list and the third program list.
5. The terminal device of claim 4, wherein the filtering module further comprises:
a second determining module, configured to determine, for each application program in the application program list, whether the application program is in a preset white list, and if the application program is in the preset white list, list the application program in the first program list; if the application program is not in the preset white list, judging whether the application program is in a preset grey list, if so, listing the application program in the third program list, and if not, listing the application program in the second program list.
CN201710901245.5A 2017-09-28 2017-09-28 Application program management method and terminal equipment Active CN107608498B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710901245.5A CN107608498B (en) 2017-09-28 2017-09-28 Application program management method and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710901245.5A CN107608498B (en) 2017-09-28 2017-09-28 Application program management method and terminal equipment

Publications (2)

Publication Number Publication Date
CN107608498A CN107608498A (en) 2018-01-19
CN107608498B true CN107608498B (en) 2020-11-10

Family

ID=61059310

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710901245.5A Active CN107608498B (en) 2017-09-28 2017-09-28 Application program management method and terminal equipment

Country Status (1)

Country Link
CN (1) CN107608498B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112530192B (en) * 2019-09-18 2023-05-26 三六零科技集团有限公司 Road condition display method and device in screen locking state

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103885803A (en) * 2014-03-17 2014-06-25 可牛网络技术(北京)有限公司 Method and device for managing procedures in mobile terminal and mobile terminal
CN104199605A (en) * 2014-09-16 2014-12-10 太仓红码软件技术有限公司 Mobile terminal and control method and device for mobile terminal applications
CN104298335A (en) * 2013-07-19 2015-01-21 贝壳网际(北京)安全技术有限公司 Application program process cleaning method and device of mobile terminal and mobile terminal
CN105549718A (en) * 2015-12-09 2016-05-04 北京金山安全软件有限公司 Method and device for optimizing power consumption of application program and electronic equipment
CN105653009A (en) * 2015-12-29 2016-06-08 北京金山安全软件有限公司 Method and device for starting night sleep mode and electronic equipment
CN105676993A (en) * 2015-12-29 2016-06-15 北京金山安全软件有限公司 Method and device for saving electric quantity and electronic equipment
CN106020421A (en) * 2016-05-19 2016-10-12 深圳市金立通信设备有限公司 Application management method and terminal
CN106125884A (en) * 2016-06-16 2016-11-16 维沃移动通信有限公司 The processing method of the background task of a kind of mobile terminal and mobile terminal
CN106406883A (en) * 2016-09-18 2017-02-15 努比亚技术有限公司 A screen locking device and method
CN106933323A (en) * 2015-12-30 2017-07-07 北京金山安全软件有限公司 Method and device for optimizing power consumption of application program and electronic equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8788863B2 (en) * 2011-08-10 2014-07-22 Microsoft Corporation System and method for restoring and/or continuing execution functionality to various processes based on predefined power classifications while transitioning a computing environment from connected standby state to execution state
US9588568B2 (en) * 2012-11-16 2017-03-07 Samsung Electronics Co., Ltd. Monitoring and managing processor activity in power save mode of portable electronic device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104298335A (en) * 2013-07-19 2015-01-21 贝壳网际(北京)安全技术有限公司 Application program process cleaning method and device of mobile terminal and mobile terminal
CN103885803A (en) * 2014-03-17 2014-06-25 可牛网络技术(北京)有限公司 Method and device for managing procedures in mobile terminal and mobile terminal
CN104199605A (en) * 2014-09-16 2014-12-10 太仓红码软件技术有限公司 Mobile terminal and control method and device for mobile terminal applications
CN105549718A (en) * 2015-12-09 2016-05-04 北京金山安全软件有限公司 Method and device for optimizing power consumption of application program and electronic equipment
CN105653009A (en) * 2015-12-29 2016-06-08 北京金山安全软件有限公司 Method and device for starting night sleep mode and electronic equipment
CN105676993A (en) * 2015-12-29 2016-06-15 北京金山安全软件有限公司 Method and device for saving electric quantity and electronic equipment
CN106933323A (en) * 2015-12-30 2017-07-07 北京金山安全软件有限公司 Method and device for optimizing power consumption of application program and electronic equipment
CN106020421A (en) * 2016-05-19 2016-10-12 深圳市金立通信设备有限公司 Application management method and terminal
CN106125884A (en) * 2016-06-16 2016-11-16 维沃移动通信有限公司 The processing method of the background task of a kind of mobile terminal and mobile terminal
CN106406883A (en) * 2016-09-18 2017-02-15 努比亚技术有限公司 A screen locking device and method

Also Published As

Publication number Publication date
CN107608498A (en) 2018-01-19

Similar Documents

Publication Publication Date Title
CN109918141B (en) Thread execution method, thread execution device, terminal and storage medium
CN106507445B (en) Wireless fidelity Wi-Fi scanning method and mobile terminal
CN106055073B (en) A kind for the treatment of method and apparatus based on bright screen lock
CN107291549B (en) Method and device for managing application program
US20160048682A1 (en) Method and Apparatus for Clearing Malicious Power-Consuming Application, and User Terminal
CN110764906B (en) Memory recovery processing method and device, electronic equipment and storage medium
CN111158910A (en) Memory management method and device, storage medium and electronic equipment
CN109522147A (en) A kind of method, apparatus, storage medium and the terminal of record booting exception information
CN110554762A (en) Method and terminal for controlling application program
CN110888746A (en) Memory management method and device, storage medium and electronic equipment
CN107748685A (en) Application program launching control method, device, terminal device and storage medium
CN107943269B (en) Scheduling job control method, device, terminal equipment and storage medium
CN108776624A (en) Determine the method, apparatus and storage medium of terminal interim card reason
CN111258921A (en) Method and device for recycling garbage memory, electronic equipment and storage medium
CN111273769B (en) Equipment control method and device, electronic equipment and storage medium
CN110737606B (en) Memory recovery processing method and device, electronic equipment and storage medium
CN107368255B (en) Unlocking method, mobile terminal and computer readable storage medium
CN104808766A (en) Terminal
CN107608498B (en) Application program management method and terminal equipment
CN113946385A (en) Application program cleaning method and application program cleaning device
CN106648916B (en) Method and device for reporting pedometer message
CN112286559A (en) Upgrading method and device for vehicle-mounted intelligent terminal
CN111865763A (en) Message display method and device, electronic equipment and storage medium
CN111475299A (en) Memory allocation method and device, storage medium and electronic equipment
CN116705033A (en) System on chip for wireless intelligent audio equipment and wireless processing method

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
GR01 Patent grant
GR01 Patent grant