CN102855148A - Android-based startup management method - Google Patents

Android-based startup management method Download PDF

Info

Publication number
CN102855148A
CN102855148A CN2012102743457A CN201210274345A CN102855148A CN 102855148 A CN102855148 A CN 102855148A CN 2012102743457 A CN2012102743457 A CN 2012102743457A CN 201210274345 A CN201210274345 A CN 201210274345A CN 102855148 A CN102855148 A CN 102855148A
Authority
CN
China
Prior art keywords
broadcasting
android
management method
finished
method based
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2012102743457A
Other languages
Chinese (zh)
Inventor
胡展鸿
龙振海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN2012102743457A priority Critical patent/CN102855148A/en
Publication of CN102855148A publication Critical patent/CN102855148A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention relates to an Android-based startup management method. The method comprises the following steps of: (101) finishing system initialization; (102) starting and transmitting system initialization finish broadcasting through mobile management service; (103) acquiring a receiver object list of the registered and received system initialization finish broadcasting for package management service through the mobile management service; (104) starting to transmit the system initialization finish broadcasting; (105) traversing the receiver object list and processing each object in the list according to pre-configuration or definition, if startup is allowed, starting corresponding application or progress, transmitting the broadcasting to an allowed object, and calling back an onReceive method, and if the startup is not allowed, jumping over the unallowed object; and (106) finishing the broadcasting through the system initialization. According to the method, the startup speed is effectively improved, and the system resources of mobile phones are saved.

Description

A kind of power-on management method based on Android
Technical field
The present invention relates to Android (Android) operating system and application thereof, be specifically related to the power-on management method based on Android.
Background technology
At present, after the completion system initialization of Android system, can send a system initialization and finish broadcasting (ACTION_BOOT_COMPLETE broadcasting) and notify those whether start is finished interested application.Therefore, if an application want the service of deactivation oneself after start or do some other things, it only need to do three steps:
(1) in the code of application software, realizes a static receiver (Receiver);
(2) this Receiver is registered as ACTION_BOOT_COMPLETE is broadcasted interested object;
(3) when ACTION_BOOT_COMPLETE sends to this Receiver, the process of application will be created this moment, and the onReceive () method among this Receiver will be called back, and realizes any function in this method.
As seen, the start self-starting of realize using in the Android system is so light, and the numerous softwares on the market all want to do some things behind the starting up, and such as 91 assistants, the startup process goes to upgrade the application market resource after the start; And for example virus killing scanning etc. is done in 360 security guards self-starting after start.Different software is all being abused this mechanism of Android for oneself wish.
The process of Android handset starting has system initialization, the system software initialization.And the transmission of ACTION_BOOT_COMPLETE broadcasting, it only is a complete milestone of system initialization, numerous system softwares arranges module (Settings.apk) etc. such as system state hurdle (System Ui.apk), phone module (Phone.apk), information module (Mms.apk), system and also can be chosen in as required and receive the initial work of carrying out data after the ACTION_BOOT_COMPLETE broadcasting.
Therefore third party software and system software in the identical time period, fall over each other do initial work in, the phenomenon that we are easy to see is exactly: after the start, screen has obviously entered desktop, but system card gets very severe, click application icon without response, stir the desktop menu page without response ... after all, the processor of mobile phone, memory source is limited, more software is being done the start self-starting, system is just busier so, Deng all application software all the starting up complete after, it is similar that the resource of system has exhausted, and have so rule of a linear growth, and the software of start self-starting is more, on time will be longer, and the problem of appearance is just more.The author once met the loom of some problem feedbacks in systems development process, starting up's software reaches up to a hundred, therefore start process has ANR (the Application not response of high probability, use without response) phenomenon, the reason that causes ANR is divided into two kinds usually: (1) processor is busy, (2) application program is not finished work at the processor of regulation in the time), whether each third party software must startup can not in start, why can not this right to choose be given the user? but the Android system does not also have such method or this method to be disclosed at present.
Summary of the invention
The technical issues that need to address of the present invention are, how a kind of power-on management method based on Android is provided, and can limit self-starting and use, and effectively improve starting up speed, save cell phone system resources.
Above-mentioned technical matters of the present invention solves like this: make up a kind of power-on management method based on Android, specifically may further comprise the steps:
101) system initialization is complete;
102) broadcasting is finished in the initialization of campaign management services startup transmitting system;
103) campaign management services is managed receiver object (Receiver) tabulation that broadcasting is finished in the registered receiving system initialization of service acquisition to assuring;
104) broadcasting is finished in the initialization of beginning transmitting system;
105) traversal receiver list object and according to each object in pre-configured or the described tabulation of definition process: start if allow, then correspondence application or process initiation are got up, and broadcast transmission is allowed in the object to this, adjust back its onReceive () method; If do not allow to start, then skip this and do not allow object;
106) system initialization is finished broadcasting.
According to the power-on management method based on Android provided by the invention, the onReceive () method of definition Receiver object realizes various functions.
According to the power-on management method based on Android provided by the invention, described step 101) occur in the start or restart after.
According to the power-on management method based on Android provided by the invention, described step 105) in the configuration or the definition be kept in system or the user-defined database.
According to the power-on management method based on Android provided by the invention, this management method also comprises pre-configured or the definition step:
401) enter or enter starting up's item configuration according to authority;
402) list corresponding the application or process list of receiver object that broadcasting is finished in current all registered receiving system initialization;
403) each application of definition or modification or process allow or do not allow to start and preservation.
According to the power-on management method based on Android provided by the invention, described step 106) afterwards system enter desktop programs.
According to the power-on management method based on Android provided by the invention, corresponding campaign management services is ActivityManagerService in the existing version Android system, it is PackageManagerService that correspondence is assured the reason service, and it is ACTION_BOOT_COMPLETE that broadcasting is finished in the correspondence system initialization.
Power-on management method based on Android provided by the invention especially is applied to smart mobile phone, has the following advantages than prior art:
1, promotes the starting up speed of Android mobile phone or other equipment;
2, make things convenient for the user to configure the starting up and use, improve the user and experience;
3, save system resource for start process.
Description of drawings
Further the present invention is described in detail below in conjunction with the drawings and specific embodiments:
Fig. 1 is the program circuit schematic diagram of the power-on management software on the preferred specific embodiment Android of the present invention smart mobile phone.
Embodiment
As shown in Figure 1, the power-on management software program on the preferred specific embodiment Android of the present invention smart mobile phone specifically may further comprise the steps:
301) open or restart smart mobile phone;
302) system initialization is complete, notice ActivityManagerService;
303) campaign management services ActivityManagerService takes up to send ACTION_BOOT_COMPLETE broadcasting;
304) campaign management services ActivityManagerService at this time will inquire about to PackageManagerService, requires to return the receiver tabulation List of registered ACTION_BOOT_COMPLETE broadcast reception.
305) after taking the List that returns, ActivityManagerService just begins the List object is carried out broadcast transmission;
306) traversal List takes out N receiver object among the List;
307) inquiry starting up item configuration database judges that according to the record of database the application software at this receiver place starts when whether being forbidden starting shooting by the user.If allow, then the process initiation with this software gets up, and with broadcast transmission to this receiver, adjust back its onReceive () method; If do not allow, then skip the startup of this software process is processed, do not send the receiver that is broadcast to this software, get back in the List traversal, take out next receiver object;
308) judge whether the List traversal is finished, if also have object not to be sent, continue to send broadcasting, otherwise broadcast transmission is complete;
309) system enters into after the desktop programs, and the user can select whether to configure starting up's item.If configuration starting up item, then enter starting up's item supervisory routine, by selecting, obtain forbidding starting up's software collection, at last configuration result is saved in database, next time start or restart in, whether which software of startup item configuration determination that ActivityManagerService just can preserve according to this database can the starting up;
(10) finish.
At last, the above only is preferred embodiment of the present invention, and all equalizations of doing according to claim scope of the present invention change and modify, and all should belong to the covering scope of claim of the present invention.

Claims (6)

1. the power-on management method based on Android is characterized in that, specifically may further comprise the steps:
101) system initialization is complete;
102) broadcasting is finished in the initialization of campaign management services startup transmitting system;
103) campaign management services is managed the receiver list object that broadcasting is finished in the registered receiving system initialization of service acquisition to assuring;
104) broadcasting is finished in the initialization of beginning transmitting system;
105) traversal receiver list object and according to each object in pre-configured or the described tabulation of definition process: start if allow, then correspondence application or process initiation are got up, and broadcast transmission is allowed in the object to this, adjust back its onReceive () method; If do not allow to start, then skip this and do not allow object;
106) system initialization is finished broadcasting.
2. described power-on management method based on Android according to claim 1 is characterized in that described step 101) occur in start or restart after.
3. described power-on management method based on Android according to claim 1 is characterized in that described step 105) in configuration or definition be kept in system or the user-defined database.
4. described power-on management method based on Android according to claim 3 is characterized in that, this management method also comprises pre-configured or the definition step:
401) enter or enter starting up's item configuration according to authority;
402) list corresponding the application or process list of receiver object that broadcasting is finished in current all registered receiving system initialization;
403) each application of definition or modification or process allow or do not allow to start and preservation.
5. described power-on management method based on Android according to claim 1 is characterized in that described step 106) afterwards system enter desktop programs.
6. each described power-on management method based on Android according to claim 1-5, it is characterized in that, corresponding campaign management services is ActivityManagerService, it is PackageManagerService that correspondence is assured the reason service, and it is ACTION_BOOT_COMPLETE that broadcasting is finished in the correspondence system initialization.
CN2012102743457A 2012-08-02 2012-08-02 Android-based startup management method Pending CN102855148A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012102743457A CN102855148A (en) 2012-08-02 2012-08-02 Android-based startup management method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012102743457A CN102855148A (en) 2012-08-02 2012-08-02 Android-based startup management method

Publications (1)

Publication Number Publication Date
CN102855148A true CN102855148A (en) 2013-01-02

Family

ID=47401757

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012102743457A Pending CN102855148A (en) 2012-08-02 2012-08-02 Android-based startup management method

Country Status (1)

Country Link
CN (1) CN102855148A (en)

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103345408A (en) * 2013-06-26 2013-10-09 深圳市金立通信设备有限公司 Terminal starting-up accelerating method and terminal
CN103488509A (en) * 2013-09-22 2014-01-01 深圳市同洲电子股份有限公司 Method and device for starting application program
CN103577196A (en) * 2013-11-15 2014-02-12 北京奇虎科技有限公司 Method and device for hiding application program
CN103617078A (en) * 2013-11-22 2014-03-05 北京奇虎科技有限公司 Method and device for managing active components
CN103744503A (en) * 2014-01-08 2014-04-23 广州市久邦数码科技有限公司 Method and system for prohibiting automatic running of applications after boot
CN103823699A (en) * 2014-02-27 2014-05-28 广州视源电子科技股份有限公司 Method and device for controlling self-starting of application program
CN103974124A (en) * 2013-01-30 2014-08-06 中国科学院声学研究所 Method and system for downloading and managing broadcast applications and based on android platform
CN104077521A (en) * 2013-03-25 2014-10-01 联想(北京)有限公司 Information processing method and device
CN105516487A (en) * 2015-12-04 2016-04-20 上海斐讯数据通信技术有限公司 Broadcast receiving method, system and equipment
CN105955791A (en) * 2016-06-28 2016-09-21 浪潮软件集团有限公司 Method and device for starting designated target
CN106022099A (en) * 2016-05-16 2016-10-12 上海传英信息技术有限公司 Application self-starting management apparatus and method
CN106096392A (en) * 2016-06-02 2016-11-09 北京元心科技有限公司 Mobile terminal, application program starting control method and device
CN106126216A (en) * 2016-06-17 2016-11-16 广州恒业软件科技有限公司 A kind of acceleration starting-up method based on Android system and system thereof
CN106598600A (en) * 2016-12-15 2017-04-26 青岛海信移动通信技术股份有限公司 Startup guide information display method and terminal device
CN106708637A (en) * 2017-03-10 2017-05-24 广东欧珀移动通信有限公司 Startup broadcast sending method and apparatus, and terminal
CN106791035A (en) * 2016-11-29 2017-05-31 深圳天珑无线科技有限公司 The sending control method and device of start broadcast
CN106851014A (en) * 2017-03-10 2017-06-13 广东欧珀移动通信有限公司 Adjust method, device and the terminal of broadcast message queue
CN106919460A (en) * 2017-03-10 2017-07-04 广东欧珀移动通信有限公司 A kind of method for controlling broadcast transmission, device and mobile terminal
CN108038010A (en) * 2017-12-25 2018-05-15 青岛海信电器股份有限公司 Android system startup stage broadcast transmission method, apparatus and terminal
CN109032811A (en) * 2018-06-27 2018-12-18 北京金山安全软件有限公司 Data monitoring method and device and electronic equipment
CN110209513A (en) * 2019-06-06 2019-09-06 北京金山安全软件有限公司 Broadcast registration method, device, equipment and medium of application program
CN110609710A (en) * 2018-06-15 2019-12-24 深圳Tcl新技术有限公司 Android system starting speed control method, intelligent device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102012832A (en) * 2010-12-14 2011-04-13 Tcl集团股份有限公司 Method and device for accelerating starting Android system
US20110154328A1 (en) * 2009-12-21 2011-06-23 Samsung Electronics Co., Ltd. Virtualization Apparatus and Method
CN102207881A (en) * 2011-07-07 2011-10-05 电子科技大学 Quick operation system start-up method based on Android

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110154328A1 (en) * 2009-12-21 2011-06-23 Samsung Electronics Co., Ltd. Virtualization Apparatus and Method
CN102012832A (en) * 2010-12-14 2011-04-13 Tcl集团股份有限公司 Method and device for accelerating starting Android system
CN102207881A (en) * 2011-07-07 2011-10-05 电子科技大学 Quick operation system start-up method based on Android

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
汪永松: "《Android平台开发之旅 第2版》", 31 March 2012, 机械工业出版社 *
王卫华: "管理安卓自启动程序", 《电脑迷》 *

Cited By (32)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103974124B (en) * 2013-01-30 2017-02-08 中国科学院声学研究所 Method and system for downloading and managing broadcast applications and based on android platform
CN103974124A (en) * 2013-01-30 2014-08-06 中国科学院声学研究所 Method and system for downloading and managing broadcast applications and based on android platform
CN104077521A (en) * 2013-03-25 2014-10-01 联想(北京)有限公司 Information processing method and device
CN104077521B (en) * 2013-03-25 2017-11-24 联想(北京)有限公司 Information processing method and device
CN103345408A (en) * 2013-06-26 2013-10-09 深圳市金立通信设备有限公司 Terminal starting-up accelerating method and terminal
CN103488509A (en) * 2013-09-22 2014-01-01 深圳市同洲电子股份有限公司 Method and device for starting application program
CN103577196A (en) * 2013-11-15 2014-02-12 北京奇虎科技有限公司 Method and device for hiding application program
CN103617078A (en) * 2013-11-22 2014-03-05 北京奇虎科技有限公司 Method and device for managing active components
CN103744503A (en) * 2014-01-08 2014-04-23 广州市久邦数码科技有限公司 Method and system for prohibiting automatic running of applications after boot
CN103823699A (en) * 2014-02-27 2014-05-28 广州视源电子科技股份有限公司 Method and device for controlling self-starting of application program
CN105516487A (en) * 2015-12-04 2016-04-20 上海斐讯数据通信技术有限公司 Broadcast receiving method, system and equipment
CN105516487B (en) * 2015-12-04 2019-07-16 上海斐讯数据通信技术有限公司 Broadcast receiving method, system and equipment
CN106022099A (en) * 2016-05-16 2016-10-12 上海传英信息技术有限公司 Application self-starting management apparatus and method
CN106096392B (en) * 2016-06-02 2019-05-10 北京元心科技有限公司 Mobile terminal, application program starting control method and device
CN106096392A (en) * 2016-06-02 2016-11-09 北京元心科技有限公司 Mobile terminal, application program starting control method and device
CN106126216B (en) * 2016-06-17 2019-04-16 广州久邦世纪科技有限公司 One kind acceleration starting-up method based on android system and its system
CN106126216A (en) * 2016-06-17 2016-11-16 广州恒业软件科技有限公司 A kind of acceleration starting-up method based on Android system and system thereof
CN105955791A (en) * 2016-06-28 2016-09-21 浪潮软件集团有限公司 Method and device for starting designated target
CN106791035A (en) * 2016-11-29 2017-05-31 深圳天珑无线科技有限公司 The sending control method and device of start broadcast
CN106598600A (en) * 2016-12-15 2017-04-26 青岛海信移动通信技术股份有限公司 Startup guide information display method and terminal device
CN106851014A (en) * 2017-03-10 2017-06-13 广东欧珀移动通信有限公司 Adjust method, device and the terminal of broadcast message queue
WO2018161574A1 (en) * 2017-03-10 2018-09-13 广东欧珀移动通信有限公司 Startup broadcast sending method and device, storage medium, and terminal
CN106919460A (en) * 2017-03-10 2017-07-04 广东欧珀移动通信有限公司 A kind of method for controlling broadcast transmission, device and mobile terminal
US11048568B2 (en) 2017-03-10 2021-06-29 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Broadcast sending control method and apparatus, storage medium, and electronic device
CN106708637A (en) * 2017-03-10 2017-05-24 广东欧珀移动通信有限公司 Startup broadcast sending method and apparatus, and terminal
CN108038010A (en) * 2017-12-25 2018-05-15 青岛海信电器股份有限公司 Android system startup stage broadcast transmission method, apparatus and terminal
CN110609710B (en) * 2018-06-15 2021-11-09 深圳Tcl新技术有限公司 Android system starting speed control method, intelligent device and storage medium
CN110609710A (en) * 2018-06-15 2019-12-24 深圳Tcl新技术有限公司 Android system starting speed control method, intelligent device and storage medium
CN109032811A (en) * 2018-06-27 2018-12-18 北京金山安全软件有限公司 Data monitoring method and device and electronic equipment
CN109032811B (en) * 2018-06-27 2021-05-14 北京金山安全软件有限公司 Data monitoring method and device and electronic equipment
CN110209513B (en) * 2019-06-06 2021-06-22 北京金山安全软件有限公司 Broadcast registration method, device, equipment and medium of application program
CN110209513A (en) * 2019-06-06 2019-09-06 北京金山安全软件有限公司 Broadcast registration method, device, equipment and medium of application program

Similar Documents

Publication Publication Date Title
CN102855148A (en) Android-based startup management method
CN108121568B (en) APP calling method and device, electronic equipment and readable storage medium
US8204488B2 (en) Web content distribution to personal cellular telecommunications devices
US20120222120A1 (en) Malware detection method and mobile terminal realizing the same
US20150256352A1 (en) Method and device for sharing content between different terminals
CN107436816B (en) Message delivery control method, system and terminal
CN110035004B (en) User name card sharing method, friend adding method and related device
CN104935744A (en) Verification code display method, verification code display device and mobile terminal
CN104092723A (en) File downloading method, device and system
CN103581111A (en) Communication method and system
CN103345696A (en) Display method, device and mobile terminal of pushing information
CN104239317A (en) Method and device for compiling pictures in browser
CN106953852B (en) Registration method and device of broadcast receiver and terminal equipment
CN114237840A (en) Resource interaction method, device, terminal and storage medium
CN103020528A (en) Display method and display device for malicious acts of applications
CN103607431A (en) Mobile terminal resource processing method, apparatus and equipment thereof
CN104516890A (en) Business processing method, business processing device and electronic equipment
CN111338710A (en) Application program control method and device, electronic equipment and storage medium
CN106411718B (en) Data synchronization method and device based on instant messaging application
CN104426685A (en) Information management method and apparatus
CN105897567B (en) A kind of method and device of information sharing
WO2022247934A1 (en) Paging method and device, electronic device, and storage medium
CN102053917B (en) Smart card capable of reducing memory footprint and instruction processing method thereof
CN114840194A (en) Code and operating system generation method and device, server and electronic equipment
CN104346228A (en) Application program sharing method and terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20130102