CN103092691B - A kind of process management method and administrative unit of Android system - Google Patents

A kind of process management method and administrative unit of Android system Download PDF

Info

Publication number
CN103092691B
CN103092691B CN201310024668.5A CN201310024668A CN103092691B CN 103092691 B CN103092691 B CN 103092691B CN 201310024668 A CN201310024668 A CN 201310024668A CN 103092691 B CN103092691 B CN 103092691B
Authority
CN
China
Prior art keywords
priority
android system
management
threshold value
hangs
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.)
Expired - Fee Related
Application number
CN201310024668.5A
Other languages
Chinese (zh)
Other versions
CN103092691A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201310024668.5A priority Critical patent/CN103092691B/en
Publication of CN103092691A publication Critical patent/CN103092691A/en
Application granted granted Critical
Publication of CN103092691B publication Critical patent/CN103092691B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

  • Telephone Function (AREA)

Abstract

The present invention relates to Android system correlative technology fields, more particularly to the process management method and administrative unit of a kind of Android system, the process management method of the Android system, it is characterized in that, include: the priority for detecting the process of the Android system, if the priority of the process, which meets, hangs up strategy, hangs up the process, if the priority of the process meets recovery policy, restore the process.The process management method and administrative unit of a kind of Android system of the invention, by hanging up the lower process of priority, rogue program running background is on the one hand prevented, backstage consumes electricity, flow or the critical data for stealing or damaging user, save electricity, mobile phone continuation of the journey is improved, user effort is reduced, the speed that another aspect process is hung up and restored is all very fast, reduce the wasting of resources of process of rebuilding, intelligence is convenient, promotes user experience, experiences high-tech feeling.

Description

A kind of process management method and administrative unit of Android system
Technical field
The present invention relates to Android system correlative technology field, a kind of process management method more particularly to Android system and Administrative unit.
Background technique
The backstage of Android is without any restrictions at present, can from the background run dumbly always, in user without discovering In the case of deplete electric power or flow, while also having the problem above safety, i.e., malicious third parties software is executed on backstage and stolen The operation such as flow.
Many process management methods are all simple and crudely to kill process, so to damage user experience, are reduced again The expense for creating the process, the expense for creating a null process includes creation process itself, and loads in the application and include Resources.arsc, these are all than relatively time-consuming.
Summary of the invention
The present invention provides the process management method and administrative unit of a kind of Android system, to solve the prior art to Android system The technical issues of process is only simply killed in the management of process of system, leads to the waste for re-creating process resource.
A kind of process management method of Android system, comprising:
The priority of the process of the Android system is detected, if the priority of the process, which meets, hangs up strategy, is hung It plays the process and restores the process if the priority of the process meets recovery policy.
Further, the hang-up strategy are as follows: the priority of the process is less than or equal to preset hang-up threshold value.
Further, the recovery policy are as follows: the process is suspended, and the priority of the process is higher than preset extension Play threshold value.
Further, the priority of the process is judged according to the ADJ value of the process.
Further, the method specifically includes:
The request of response starting background process management, opens background process management;
Threshold value is hung up in setting;
Timing detects the priority of the process of the Android system, if the priority of the process, which meets, hangs up strategy, The process is then hung up, if the priority of the process meets recovery policy, restores the process;
The request of background process management is closed in response, closes background process management, and restore all processes being suspended.
A kind of management of process unit of Android system, the management of process unit include:
Priority detection module, the priority of the process for detecting the Android system;
Process suspension module hangs up the process if the priority for the process, which meets, is hung up strategy;
Process resumption module restores the process if the priority for the process meets recovery policy.
Further, the hang-up strategy are as follows: the priority of the process is less than or equal to preset hang-up threshold value.
Further, the recovery policy are as follows: the process is suspended, and the priority of the process is higher than preset extension Play threshold value.
Further, the priority of the process is judged according to the ADJ value of the process.
Further, the management of process unit further include:
Starting module opens background process management for responding the request of starting background process management;
Threshold setting module hangs up threshold value for being arranged;
Closedown module closes background process management, and restore all quilts for responding the request for closing background process management The process of hang-up.
The process management method and administrative unit of a kind of Android system of the invention, by hang up priority it is lower into On the one hand journey prevents rogue program running background, backstage consumes electricity, flow or the critical data for stealing or damaging user, Electricity is saved, mobile phone continuation of the journey is improved, reduces user effort, the speed that another aspect process is hung up and restored is all very fast, reduces The wasting of resources of process of rebuilding, intelligence is convenient, promotes user experience, experiences high-tech feeling.
Detailed description of the invention
Fig. 1 is a kind of work flow diagram of the process management method of Android system of the invention;
Fig. 2 is a kind of structural module diagram of the management of process unit of Android system of the invention.
Fig. 3 is the work flow diagram of an example of the invention.
Specific embodiment
The present invention will be further described in detail in the following with reference to the drawings and specific embodiments.
It is as shown in Figure 1 a kind of work flow diagram of the process management method of Android system of the invention, comprising:
Step S101 detects the priority of the process of the Android system;
Step S102 hangs up the process if the priority of the process, which meets, hangs up strategy;
Step S103 restores the process if the priority of the process meets recovery policy.
Wherein, step S102 and step S103 can be parallel execution, or sequence executes.
Wherein, the hang-up strategy are as follows: the priority of the process is less than or equal to preset hang-up threshold value.
The recovery policy are as follows: the process is suspended, and the priority of the process is higher than preset hang-up threshold value.
The priority of process, those of ordinary skill in the art can select different parameters to sentence according to different situations It is disconnected.The priority of the process is judged according to the ADJ value of the process in one of the embodiments,.
It is illustrated in figure 2 a kind of structural module diagram of the management of process unit of Android system, the management of process unit packet It includes:
Priority detection module 210, the priority of the process for detecting the Android system;
Process suspension module 220 hangs up the process if the priority for the process, which meets, is hung up strategy;
Process resumption module 230 restores the process if the priority for the process meets recovery policy.
Wherein, the hang-up strategy are as follows: the priority of the process is less than or equal to preset hang-up threshold value.
Wherein, the recovery policy are as follows: the process is suspended, and the priority of the process is higher than preset hang-up threshold Value.
In one embodiment, the priority of the process is judged according to the ADJ value of the process
Wherein, the management of process unit further include:
Starting module 240 opens background process management for responding the request of starting background process management;
Threshold setting module 250 hangs up threshold value for being arranged;
Closedown module 260 closes background process management, and restore institute for responding the request for closing background process management There is the process being suspended.
As an example, the value of adj is described as follows shown in table in OOM in Android.
Strategy is hung up to need to meet condition:
App.curAdj >=ProcessManageHandler.CRITICAL_APP_ADJ(is the backstage for needing to manage Process, process priority is relatively low, and ProcessManageHandler.CRITICAL_APP_ADJ value is currently 7, can be set For other ideal values).
Recovery policy needs to meet condition:
App.curAdj < ProcessManageHandler.CRITICAL_APP_ADJ(be need the backstage that manages into Journey, such as the process being suspended according to strategy is hung up, and the process priority is relatively high, ProcessManageHandler.CRITICAL_APP_ADJ value is currently 7, can be set to other ideal values).
It is illustrated in figure 3 a kind of work flow diagram of one example of process management method of Android system of the invention, is wrapped It includes:
Step S301, the request of response starting background process management, opens background process management.
Step S302, the value that ProcessManageHandler.CRITICAL_APP_ADJ is arranged is desired value, default It is to hang up threshold value for 7, ProcessManageHandler.CRITICAL_APP_ADJ.
Step S303,.
Step S304, process status change, and android system adjusts the adj value applied accordingly, restore when meeting When policy condition, the corresponding process of background process managing to resume.
Step S305 closes background process management, restores all and is suspended process, is at non-suspended state.
Above-mentioned steps S303 is synchronous execute with step S304.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously Limitations on the scope of the patent of the present invention therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to guarantor of the invention Protect range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.

Claims (2)

1. a kind of process management method of Android system characterized by comprising
The request of response starting background process management, opens background process management;
Threshold value is hung up in setting;
Timing detects the priority of the process of the Android system, if the priority of the process, which meets, hangs up strategy, hangs The process is played, the priority of the process is judged according to the ADJ value of the process;
When process status changes, corresponding ADJ value is adjusted;
If the priority of the process meets recovery policy, restore the process;
The hang-up strategy is that the priority of the process is less than or equal to preset hang-up threshold value;
The recovery policy is that the process is suspended, and the priority of the process is higher than preset hang-up threshold value;
The request of background process management is closed in response, closes background process management, and restore all processes being suspended.
2. a kind of management of process unit of Android system, which is characterized in that the management of process unit includes:
Starting module opens background process management for responding the request of starting background process management;
Threshold setting module hangs up threshold value for being arranged;
Priority detection module, the priority of the process for detecting the Android system;
Process suspension module hangs up the process, the process if the priority for the process, which meets, is hung up strategy Priority judged according to the ADJ value of the process;
Process resumption module, for when process status changes, adjusting corresponding ADJ value;If the process is preferential Grade meets recovery policy, then restores the process;
The hang-up strategy are as follows: the priority of the process is less than or equal to preset hang-up threshold value;
The recovery policy are as follows: the process is suspended, and the priority of the process is higher than preset hang-up threshold value;Close mould Block closes background process management, and restore all processes being suspended for responding the request for closing background process management.
CN201310024668.5A 2013-01-23 2013-01-23 A kind of process management method and administrative unit of Android system Expired - Fee Related CN103092691B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310024668.5A CN103092691B (en) 2013-01-23 2013-01-23 A kind of process management method and administrative unit of Android system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310024668.5A CN103092691B (en) 2013-01-23 2013-01-23 A kind of process management method and administrative unit of Android system

Publications (2)

Publication Number Publication Date
CN103092691A CN103092691A (en) 2013-05-08
CN103092691B true CN103092691B (en) 2019-03-01

Family

ID=48205301

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310024668.5A Expired - Fee Related CN103092691B (en) 2013-01-23 2013-01-23 A kind of process management method and administrative unit of Android system

Country Status (1)

Country Link
CN (1) CN103092691B (en)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103399785B (en) * 2013-07-25 2016-10-05 华南理工大学 A kind of improved method of Android onboard system management of process
CN104679581B (en) * 2013-12-03 2018-06-15 腾讯科技(深圳)有限公司 The method and device of running background program
CN104199669B (en) * 2014-09-12 2017-12-15 北京奇虎科技有限公司 The method and device being managed to the process of application program
CN104199731B (en) * 2014-09-12 2018-02-06 北京奇虎科技有限公司 The method and device being managed to the process of application program
CN106055365B (en) * 2016-05-31 2019-10-25 Oppo广东移动通信有限公司 A kind of closing application program method and apparatus
CN106095492B (en) * 2016-05-31 2017-11-07 广东欧珀移动通信有限公司 The method for closing and device of a kind of application program
CN106020910B (en) * 2016-05-31 2017-11-17 广东欧珀移动通信有限公司 The method for closing and device of a kind of application program
CN106775652A (en) * 2016-11-24 2017-05-31 武汉斗鱼网络科技有限公司 The method and device waken up to the application program of terminal
CN106951291A (en) * 2017-03-28 2017-07-14 努比亚技术有限公司 Application program accelerates to start method and device
CN107092524A (en) * 2017-05-11 2017-08-25 北京奇虎科技有限公司 Method, device and the terminal device of process initiation
CN107390670A (en) * 2017-06-27 2017-11-24 深圳市爱培科技术股份有限公司 Android system resource control method, storage medium and intelligent terminal
CN109324878A (en) * 2018-09-20 2019-02-12 郑州云海信息技术有限公司 A kind of control method and relevant device of process CPU usage
CN111666120A (en) * 2019-03-07 2020-09-15 阿里巴巴集团控股有限公司 Terminal control method and device
CN110096347A (en) * 2019-03-29 2019-08-06 努比亚技术有限公司 A kind of process back-stage management method, terminal and computer readable storage medium
CN110691401B (en) * 2019-08-28 2021-04-09 华为技术有限公司 System application management method and device
CN111930481B (en) * 2020-07-16 2024-06-18 重庆帮企科技集团有限公司 Android system-based process priority improving method and device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101694631A (en) * 2009-09-30 2010-04-14 曙光信息产业(北京)有限公司 Real-time operation dispatching system and method thereof

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101977359B (en) * 2010-09-26 2013-11-27 北京握奇数据系统有限公司 Method and device for processing mobile data service
CN102289616A (en) * 2011-06-30 2011-12-21 北京邮电大学 Method and system for guarding against malicious system resource invasion in mobile intelligent terminal
CN102833166B (en) * 2012-08-28 2017-02-08 广东欧珀移动通信有限公司 Method and device for data flow distribution and mobile communication terminal

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101694631A (en) * 2009-09-30 2010-04-14 曙光信息产业(北京)有限公司 Real-time operation dispatching system and method thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
安卓Android的内存管理原理解析;无;《https://jingyan.baidu.com/article/456c463b860e120a583144de.html》;20120329;1-10段

Also Published As

Publication number Publication date
CN103092691A (en) 2013-05-08

Similar Documents

Publication Publication Date Title
CN103092691B (en) A kind of process management method and administrative unit of Android system
US9477527B2 (en) Resource optimization method and apparatus
JP6577597B2 (en) Terminal control method and apparatus, and terminal
EP2765481B1 (en) Mobile terminal and method for adjusting operation load of mobile terminal
CN102355667B (en) Application program network connection control method and system in mobile intelligent terminal system
US11265291B2 (en) Malicious packet filtering by a hypervisor
CN110519306B (en) Equipment access control method and device of Internet of things
US8533506B2 (en) System wakeup on wireless network messages
JP2013520945A5 (en)
CN107329559A (en) A kind of application control method, device, terminal and storage medium
CN102855430A (en) Process blacklist and whitelist control method based on Windows system
CN105141571A (en) Distributed virtual firewall device and method
CN104135799B (en) The control method of breath light and intelligent terminal
WO2012065374A1 (en) Method and device for controlling on/off of data link
CN105260004A (en) Screen rotating method and system for android system terminal
CA2862046A1 (en) Method and device for prompting program uninstallation
CN104992116B (en) Monitoring method based on intent sniffer and system
CN105242964A (en) Application operation monitoring method and system
WO2014206172A1 (en) Switching between untrusted environment and trusted environment in mobile device
CN102761485B (en) Method and system for processing connections by network equipment
CN102387029B (en) System and method for automatically saving equipment configuration information
CN103701870A (en) Method for reducing power consumption generated in connection of desktop cloud terminal and server
CN104345862B (en) A kind of information processing method and electronic equipment
CN105354486A (en) Operation control method, operation control system and terminal
CN104572240B (en) Control method and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190301