CN115665311A - System optimization method for regularly optimizing background process of mobile phone - Google Patents
System optimization method for regularly optimizing background process of mobile phone Download PDFInfo
- Publication number
- CN115665311A CN115665311A CN202211308743.6A CN202211308743A CN115665311A CN 115665311 A CN115665311 A CN 115665311A CN 202211308743 A CN202211308743 A CN 202211308743A CN 115665311 A CN115665311 A CN 115665311A
- Authority
- CN
- China
- Prior art keywords
- app
- mobile phone
- white list
- services
- processes
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 93
- 238000005457 optimization Methods 0.000 title claims abstract description 19
- 238000004140 cleaning Methods 0.000 claims abstract description 15
- 230000006378 damage Effects 0.000 claims description 5
- 230000006870 function Effects 0.000 description 9
- 230000000694 effects Effects 0.000 description 3
- 230000007246 mechanism Effects 0.000 description 2
- 230000004083 survival effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
Images
Landscapes
- Telephone Function (AREA)
Abstract
The invention relates to the field of a mobile phone system optimization method, in particular to a system optimization method for optimizing a background process by a mobile phone at regular time. Based on a mobile phone APP installed in advance, the APP is started by clicking launch of a mobile phone interface, and then the APP is operated to realize system optimization of a background process. According to the method and the system, the user manually enters the APP for cleaning, a service is customized to run in the background, the process, the service, the broadcast and the like of the APP running in the background are obtained, and a set List is used for storing. If a user wants a certain APP not to join the cleaned list, the APP can be added into the white list in the setting, and the related processes and services of the APP cannot be cleaned automatically after the APP is added into the white list. And the processes and services which are not added into the white list are operated in the background until the number reaches a set value, and the processes and services are destroyed as the objects for automatically executing the cleaning task. The operation is simple and convenient, and the normal use of the mobile phone is not influenced. And manual closing is carried out without detecting background programs and services one by one. And the closing is thorough without residue.
Description
Technical Field
The invention relates to the field of a mobile phone system optimization method, in particular to a system optimization method for optimizing a background process by a mobile phone at regular time.
Background
Broadcast Receiver, service and Activity are three major information transmission mechanisms and components of the Android system, and bear a large amount of information and space. Under the condition that various application devices are various in types and specifications, the operation fluency, safety, standby time and overall performance of the Android system are not enough to be praised by users like IOS. The most important influencing factor is the management of the background process of the Android system. In many cases, a user forgets to turn off the mobile phone after opening an application of the mobile phone, and many times, several to dozens of processes are running simultaneously, for example: weChat, chat software, american show, map navigation, music and other daily applications, and jumping-open Taobao, maoduo and other electronic commercial applications or non-user actively-started applications all run in the background at the same time for a long time. These conditions have become the most painful and troubling scenario for Android users on a daily basis.
When the android system is commonly used by various types of application equipment, many applications are still left in the carrier memory after exiting from the android system essentially until the residual memory is as low as the lowest point of system operation, the system mechanism closes the residual memory, and the part of memory occupied by the applications is recycled. The prior art basically needs a user to manually enter a started APP before background running processes and services can be cleaned. In addition, most cleaning tools cannot completely clean background processes, services and the like at present.
Disclosure of Invention
Aiming at the problems in the background technology, a system optimization method for timing optimization of a background process of a mobile phone is provided. According to the method and the device, the user manually enters the APP for cleaning, a service is customized to run in the background, the process, the service, the broadcast and the like of the APP running in the background are obtained, and a set List is used for storing. If a user wants a certain APP not to join the cleaned list, the APP can be added into the white list in the setting, and the related processes and services of the APP cannot be cleaned automatically after the APP is added into the white list. And the processes and services which are not added into the white list run in the background until the number reaches a set value, and the processes and services are destroyed as objects for automatically executing the cleaning task. The operation is simple and convenient, and the normal use of the mobile phone is not influenced. Background programs and services do not need to be detected one by one, and manual closing is carried out. And the closing is thorough without residue.
The invention provides a system optimization method for optimizing a background process by a mobile phone at regular time.
Preferably, the method comprises the following steps:
s1, after entering an APP, a user needs to manually add a white list which does not need automatic cleaning process and service, and the white list is set and then stored;
s2, opening an automatic cleaning function after the white list is successfully set;
s3, after the function is opened, the program acquires all running processes and services through a getRunningAppProcesses function in getSystemService by using a timing module of scheduled executive service, discovers the running processes and services and does not exist in a white list set by a user, and adds the processes and services to a collection of recentList;
s4, traversing the recentList set when the number of the recentList set reaches 10, destroying the recentList set by an am.killbackgroudprocesses method, and deleting the recentList set after the destroy is successful until all the processes and services existing in the recentList set are destroyed;
and S5, repeating the above processes after the destruction is completed to make the mobile phone smoother when the user uses the mobile phone for a long time.
Preferably, the white list addition method is as follows: a. acquiring an APP (application) installed in a mobile phone by a user through a getInstallledPackages function in a PackageManage; b. displaying the scanned APP to a user in a list mode; c. the user actively selects the APP needing to be added to the white list.
Compared with the prior art, the invention has the following beneficial technical effects:
according to the method and the device, the user manually enters the APP for cleaning, a service is customized to run in the background, the process, the service, the broadcast and the like of the APP running in the background are obtained, and a set List is used for storing. If a user wants a certain APP not to join the cleaned list, the APP can be added into the white list in the setting, and the related processes and services of the APP cannot be cleaned automatically after the APP is added into the white list. And the processes and services which are not added into the white list are operated in the background until the number reaches a set value, and the processes and services are destroyed as the objects for automatically executing the cleaning task. The operation is simple and convenient, and the normal use of the mobile phone is not influenced. And manual closing is carried out without detecting background programs and services one by one. And the closing is thorough without residue.
Drawings
FIG. 1 is a flow chart of a method in an embodiment of the present invention.
Detailed Description
Example one
The invention provides a system optimization method for optimizing a background process by a mobile phone at regular time.
Example two
The invention provides a system optimization method for optimizing a background process by a mobile phone at regular time.
As shown in fig. 1, the method steps are as follows:
s1, after the user enters the APP, the user needs to manually add a white list which does not need to automatically clear the process and the service, and the white list is set and then stored;
s2, opening an automatic cleaning function after the white list is successfully set;
s3, the program acquires all running processes and SERVICEs through a getRing AppProcesses function in getSystemService (context. Active _ SERVICE) by using a timing module of scheduled executive SERVICE; discovering the survival process and service and directly skipping in a white list set by a user; discovering the alive process and service which are not in the white list set by the user, and adding the process and the service to the collection of the recentList;
s4, when the number in the recentList set does not reach 10, waiting for the newly started service or process to be added; traversing the recentList when the number of the recentList sets reaches 10, destroying the recentList sets by an am.killbackgroudprocess (recentList.get (i)) method, and deleting the recentList sets after the destruction is successful until all processes and services existing in the recentList sets are destroyed;
and S5, repeating the processes after the destruction is finished to enable the mobile phone to be smoother when the user uses the mobile phone for a long time.
EXAMPLE III
The invention provides a system optimization method for optimizing a background process by a mobile phone at regular time.
As shown in fig. 1, the method comprises the following steps:
s1, after the user enters the APP, the user needs to manually add a white list which does not need to automatically clear the process and the service, and the white list is set and then stored;
s2, opening an automatic cleaning function after the white list is successfully set;
s3, the program acquires all running processes and SERVICEs through a getreporting application process function in getSystemservice (context.ACTIVITY _ SERVICE) by using a timing module of scheduledExecutionservice; discovering the survival process and service and directly skipping in a white list set by a user; discovering the alive process and service which are not in the white list set by the user, and adding the process and the service to the collection of the recentList;
s4, when the number of the recentList sets does not reach 10, waiting for newly started services or processes to be added; traversing the recentList set when the number of the recentList set reaches 10, destroying the recentList set by an am.kill background processes (record List.get (i)) method, and deleting the recentList set after the destroy is successful until all processes and services existing in the recentList set are destroyed;
and S5, repeating the above processes after the destruction is completed to make the mobile phone smoother when the user uses the mobile phone for a long time.
Further, the white list adding method is as follows: a. acquiring an APP (application) installed in a mobile phone by a user through a getInstallledPackages function in a PackageManage; b. displaying the scanned APP to a user in a list mode; c. the user actively selects the APP needing to be added to the white list.
According to the method and the device, the user manually enters the APP for cleaning, a service is customized to run in the background, the process, the service, the broadcast and the like of the APP running in the background are obtained, and a set List is used for storing. If a user wants a certain APP not to join the cleaned list, the APP can be added into the white list in the setting, and the related processes and services of the APP cannot be cleaned automatically after the APP is added into the white list. And the processes and services which are not added into the white list run in the background until the number reaches a set value, and the processes and services are destroyed as objects for automatically executing the cleaning task. The operation is simple and convenient, and the normal use of the mobile phone is not influenced. And manual closing is carried out without detecting background programs and services one by one. And the closing is thorough without residue.
The embodiments of the present invention have been described in detail with reference to the drawings, but the present invention is not limited thereto, and various changes can be made within the knowledge of those skilled in the art without departing from the gist of the present invention.
Claims (3)
1. A system optimization method for optimizing a background process in a timing mode of a mobile phone is characterized in that based on a mobile phone APP installed in advance, the APP is started by clicking launch of a mobile phone interface, and then the APP is operated to achieve system optimization of the background process.
2. The system optimization method for timing optimization of the background process of the mobile phone according to claim 1, comprising the following steps:
s1, after entering an APP, a user needs to manually add a white list which does not need automatic cleaning process and service, and the white list is set and then stored;
s2, opening an automatic cleaning function after the white list is successfully set;
s3, after the function is opened, the program acquires all running processes and services through a getRsuningAppProcesses function in getSystemService by using a timing module of scheduledExecutionService, discovers the running processes and services and does not exist in a white list set by a user, and adds the processes and services to a collection of recentLists;
s4, traversing the recentList set when the number of the recentList set reaches 10, destroying the recentList set by an am.killbackgroudprocesses method, and deleting the recentList set after the destroy is successful until all the processes and services existing in the recentList set are destroyed;
and S5, repeating the processes after the destruction is finished to enable the mobile phone to be smoother when the user uses the mobile phone for a long time.
3. The system optimization method for timing optimization of the background process of the mobile phone according to claim 2, wherein the method for adding the white list comprises the following steps: a. acquiring an APP (application) installed in a mobile phone by a user through a getInstallledPackages function in a PackageManage; b. displaying the scanned APP to a user in a list mode; c. the user actively selects the APP needing to be added to the white list.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211308743.6A CN115665311B (en) | 2022-10-25 | 2022-10-25 | System optimization method for mobile phone timing optimization background process |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211308743.6A CN115665311B (en) | 2022-10-25 | 2022-10-25 | System optimization method for mobile phone timing optimization background process |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115665311A true CN115665311A (en) | 2023-01-31 |
CN115665311B CN115665311B (en) | 2024-02-06 |
Family
ID=84991091
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211308743.6A Active CN115665311B (en) | 2022-10-25 | 2022-10-25 | System optimization method for mobile phone timing optimization background process |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115665311B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160062792A1 (en) * | 2014-08-29 | 2016-03-03 | Xiaomi Inc. | Method and terminal device for controlling background application |
CN105824663A (en) * | 2015-12-31 | 2016-08-03 | 维沃移动通信有限公司 | Background application cleaning method and mobile terminal |
CN107203417A (en) * | 2017-05-25 | 2017-09-26 | 北京猎豹移动科技有限公司 | A kind of data clearing method, relevant apparatus and electronic equipment |
CN107729088A (en) * | 2017-10-31 | 2018-02-23 | 深圳依偎控股有限公司 | A kind of application management method and system |
CN108804207A (en) * | 2017-04-28 | 2018-11-13 | 珠海全志科技股份有限公司 | A kind of process management-control method based on android system |
KR102259760B1 (en) * | 2020-11-09 | 2021-06-02 | 여동균 | System for providing whitelist based abnormal process analysis service |
CN113312591A (en) * | 2021-05-28 | 2021-08-27 | 杭州迈冲科技有限公司 | Control method and device based on Android system application white list |
-
2022
- 2022-10-25 CN CN202211308743.6A patent/CN115665311B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160062792A1 (en) * | 2014-08-29 | 2016-03-03 | Xiaomi Inc. | Method and terminal device for controlling background application |
CN105824663A (en) * | 2015-12-31 | 2016-08-03 | 维沃移动通信有限公司 | Background application cleaning method and mobile terminal |
CN108804207A (en) * | 2017-04-28 | 2018-11-13 | 珠海全志科技股份有限公司 | A kind of process management-control method based on android system |
CN107203417A (en) * | 2017-05-25 | 2017-09-26 | 北京猎豹移动科技有限公司 | A kind of data clearing method, relevant apparatus and electronic equipment |
CN107729088A (en) * | 2017-10-31 | 2018-02-23 | 深圳依偎控股有限公司 | A kind of application management method and system |
KR102259760B1 (en) * | 2020-11-09 | 2021-06-02 | 여동균 | System for providing whitelist based abnormal process analysis service |
CN113312591A (en) * | 2021-05-28 | 2021-08-27 | 杭州迈冲科技有限公司 | Control method and device based on Android system application white list |
Also Published As
Publication number | Publication date |
---|---|
CN115665311B (en) | 2024-02-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106201811B (en) | The fault recovery method and terminal of application program | |
CN112000741A (en) | Intranet and extranet data exchange system, method, device, computer equipment and medium | |
CN111049731B (en) | Instant chat application monitoring method and system | |
CN107493508A (en) | method based on Android intelligent terminal streaming media playing performance monitoring | |
CN102508768A (en) | Monitoring method and monitoring device for application program | |
CN110865851A (en) | Automatic Android application data acquisition method and system | |
CN109697112B (en) | Distributed intensive one-stop operating system and implementation method | |
CN102999566B (en) | Remove the method and apparatus of equipment use vestige | |
WO2017140154A1 (en) | Method and system for security information management based on intelligent platform | |
CN105426544B (en) | Method and device for monitoring database state | |
CN105653556B (en) | Data aging method and device | |
CN115665311A (en) | System optimization method for regularly optimizing background process of mobile phone | |
CN111475756B (en) | Information traceless exposure acquisition method and device | |
CN104202463A (en) | Call filter method and intelligent terminal | |
CN107155167A (en) | Mobile terminal and its Bluetooth pairing name class processing method and storage device | |
KR100813985B1 (en) | Data broadcasting service providing apparatus and method for filtering data broadcasting service including application among recorded data broadcasting sevices | |
CN102999565A (en) | Equipment using trace cleaning method and device | |
CN112463725B (en) | Cloud architecture log file batch processing method, cloud architecture log file batch processing device and storage medium | |
CN106535161B (en) | The method, apparatus and intelligent terminal of intelligent terminal progress intelligent dialing | |
CN112685370A (en) | Log collection method, device, equipment and medium | |
CN112988722A (en) | Hive partition table data cleaning method and device and storage medium | |
CN111083571B (en) | Television channel editing management method, device and storage medium | |
US10833939B2 (en) | Providing positive confirmation of a mobile or portable computer wipe | |
CN114422576A (en) | Session cleaning method and device, computer equipment and readable storage medium | |
CN107992363B (en) | Data processing 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |