CN106792185A - Starting-up method, opening device and Android smart machines - Google Patents
Starting-up method, opening device and Android smart machines Download PDFInfo
- Publication number
- CN106792185A CN106792185A CN201611036746.3A CN201611036746A CN106792185A CN 106792185 A CN106792185 A CN 106792185A CN 201611036746 A CN201611036746 A CN 201611036746A CN 106792185 A CN106792185 A CN 106792185A
- Authority
- CN
- China
- Prior art keywords
- broadcast
- boot
- self
- priority
- service
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/443—OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
- H04N21/4432—Powering on the client, e.g. bootstrap loading using setup parameters being stored locally or received from the server
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Stored Programmes (AREA)
Abstract
The present invention proposes a kind of starting-up method, opening device and Android smart machines, start ActivityManagerService in SystemServer processes in start process by Zygote process creations, self-defined BOOT_P is sent in FinishBooting functions or other processes by ActivityManagerService0Broadcast, to start the system service or system application of the first priority, in self-defined BOOT_P0Broadcast is sent after Preset Time, sends self-defined BOOT_P1Broadcast, self-defined BOOT_P is only second to start priority0The system service or application for starting are broadcasted, in self-defined BOOT_P1Broadcast is sent after Preset Time, send the source life ACTION_BOOT_COMPLETED broadcast for starting third-party application and/or third priority system service, the number of the system service for starting as needed, self-defined BOOT_P broadcast can also be increased, with in start process, the application or service that will start successively are started according to the order of priority, avoid numerous applications or service concentrates on synchronization startup, take the system interim card that CPU is caused, system burden is alleviated, the fluency of system operation is improve.
Description
Technical field
The present invention relates to technical field of intelligent equipment, more particularly to a kind of starting-up method, opening device and Android intelligence
Equipment.
Background technology
As the Android TVs using android system are developed rapidly, increasing TV applications meet the tendency of and
It is raw.Entertainment television has become a kind of trend, therefore television experience is particularly important, numerous TV applications (including third party
Using) in order to lift the experience property of product itself, can all take the mode of some services of starting up, the behaviour of backstage monitoring users
Make, there is provided real-time response lifts the likability of user.Because some services are started inside Init.rc, and now should
It is typically all to take monitoring system to start shooting to broadcast ACTION_BOOT_COMPLETED with the mode of starting up, so exists
In start process, numerous application starts in the time concentrated, and CPU takes at a relatively high, it is easy to cause system interim card.
The content of the invention
It is a primary object of the present invention to provide a kind of starting-up method, it is intended to which numerous applications concentrations are opened in solving start process
Dynamic, CPU usage is too high to cause the technical problem of system interim card.
To achieve the above object, the present invention proposes a kind of starting-up method, comprises the following steps:
Start ActivityManagerService in the SystemServer processes that Zygote is created;
ActivityManagerService is sent for starting making by oneself for the first priority system service or system application
Adopted BOOT_P0Broadcast;
In the self-defined BOOT_P0Broadcast after the Preset Time after sending, send for starting the second priority system
System service or the self-defined BOOT_P of system application1Broadcast;
In the self-defined BOOT_P1Broadcast send after Preset Time after, send for start third-party application and/
Or the source life ACTION_BOOT_COMPLETED broadcast of third priority system service.
Further, it is described in the self-defined BOOT_P1Broadcast is sent after Preset Time, is sent for starting the 3rd
After the step of source life ACTION_BOOT_COMPLETED of Fang Yingyong and/or third priority system service is broadcasted, also wrap
Include:
The third-party application and/or third priority system service are suitable according to the priority in receivers queues
Sequence receives the source life ACTION_BOOT_COMPLETED and broadcasts and start.
Further, the third-party application and/or third priority system service are according in receivers queues
Priority orders receive the source life ACTION_BOOT_COMPLETED and broadcast and include the step of startup:
The structure of each third-party application and/or third priority system service is preserved with array respectively, is formed
Receivers queues;
According to each third-party application and/or the structure of third priority system service, utilize
BroadcastIntentLocked carries out prioritization in receivers queues;
In real-time update receivers queues corresponding to each third-party application and/or third priority system service
Dope vector;
According to the dope vector adjustment third-party application after updating and/or third priority system service in receivers
Priority orders in queue.
Further, the element of the structure include user's frequency of use, start absolute time, Activity titles and
User's use time.
Further, the preset procedures of the Preset Time are comprised the following steps:
Detect the hardware configuration and self-defined BOOT_P of smart machine0Broadcast or self-defined BOOT_P1Broadcast the service for starting
Quantity;
Hardware configuration and self-defined BOOT_P according to smart machine0Broadcast or self-defined BOOT_P1Broadcast the service for starting
Quantity, debugs self-defined BOOT_P0Broadcast and self-defined BOOT_P1Time interval between broadcast.
Another object of the present invention is to provide a kind of opening device, the opening device includes:
ActivityManagerService starting modules, start in the SystemServer processes that Zygote is created
ActivityManagerService;
Self-defined BOOT_P0Broadcast transmission module, is sent for starting first using ActivityManagerService
Priority system service or the self-defined BOOT_P of system application0Broadcast;
Self-defined BOOT_P1Broadcast transmission module, in the self-defined BOOT_P0Broadcast is sent after Preset Time, is sent
Self-defined BOOT_P for starting the second priority system service or system application1Broadcast;And
ACTION_BOOT_COMPLETED broadcast transmission modules are given birth in source, in the self-defined BOOT_P1Broadcast sends default
After time, send the source for starting third-party application or third priority system service and give birth to ACTION_BOOT_
COMPLETED is broadcasted.
Further, the optimization device also includes:
ACTION_BOOT_COMPLETED broadcasting reception modules are given birth in source, control the third-party application and/or the 3rd preferential
Level system service receives the source life ACTION_BOOT_COMPLETED according to the priority orders in receivers queues
Broadcast and start.
Further, the source life ACTION_BOOT_COMPLETED broadcasting reception modules include:
Receivers queues form unit, preserve each third-party application and/or third priority system with array respectively
The structure of service, forms receivers queues;
Prioritization unit, according to each third-party application and/or the structure of third priority system service, utilizes
BroadcastIntentLocked carries out prioritization in receivers queues;
Dope vector updating block, each third-party application and/or third priority in real-time update receivers queues
Dope vector corresponding to system service;And
Priority orders adjustment unit, according to dope vector adjustment third-party application and/or third priority after updating
Priority orders of the system service in receivers queues.
Further, the element of the structure include user's frequency of use, start absolute time, Activity titles and
User's use time.
Further, the opening device also includes:
Detection module, detects the hardware configuration and self-defined BOOT_P of smart machine0Broadcast or self-defined BOOT_P1Broadcast
The quantity of service of startup;And
Debugging module, hardware configuration and self-defined BOOT_P according to smart machine0Broadcast or self-defined BOOT_P1Broadcast
The quantity of service of startup, debugs self-defined BOOT_P0Broadcast and self-defined BOOT_P1Time interval between broadcast.
The present invention also provides a kind of Android smart machines, and the Android smart machines include start dress as described above
Put.
Starting-up method of the invention, starts in the SystemServer processes in start process by Zygote process creations
ActivityManagerService, by ActivityManagerService in FinishBooting functions or other processes
It is middle to send self-defined BOOT_P0Broadcast, to start the system service or system application of the first priority, in self-defined BOOT_P0Extensively
Broadcast out after Preset Time, send self-defined BOOT_P1Broadcast, self-defined BOOT_P is only second to start priority0Broadcast is opened
Dynamic system service or application, in self-defined BOOT_P1After broadcast sends Preset Time, send start third-party application and/
Or the source life ACTION_BOOT_COMPLETED broadcast of third priority system service, the system service for starting as needed
How much, self-defined BOOT_P broadcast can also be increased, with the application or service that in start process, will start according to priority
Order successively started, it is to avoid numerous applications or service concentrate on synchronization startup, the system card that occupancy CPU is caused
, system burden is alleviated, improve the fluency of system operation.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with
Structure according to these accompanying drawings obtains other accompanying drawings.
Fig. 1 is the flow chart of the embodiment of starting-up method of the present invention;
Fig. 2 is the particular flow sheet of step S50 in Fig. 1;
Fig. 3 is the flow chart of the embodiment of preset procedures one of Preset Time in the present invention;
Fig. 4 is the functional block diagram of the embodiment of opening device of the present invention;
Fig. 5 is the structural representation of life ACTION_BOOT_COMPLETED broadcasting reception modules in source in Fig. 4.
Drawing reference numeral explanation:
The realization of the object of the invention, functional characteristics and advantage will be described further referring to the drawings in conjunction with the embodiments.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present invention provides a kind of starting-up method, is applied to smart machine.
Reference picture 1, Fig. 1 is the flow chart of the embodiment of starting-up method of the present invention, in the present embodiment, the starting-up method bag
Include following steps:
S10:Start ActivityManagerService in the SystemServer processes that Zygote is created;
S20:ActivityManagerService is sent for starting the first priority system service or system application
Self-defined BOOT_P0Broadcast;
S30:In the self-defined BOOT_P0Broadcast after the Preset Time after sending, send preferential for starting second
Level system service or the self-defined BOOT_P of system application1Broadcast;
S40:In the self-defined BOOT_P1Broadcast after the Preset Time after sending, sending should for starting third party
With and/or third priority system service source give birth to ACTION_BOOT_COMPLETED broadcast;
S50:The third-party application and/or third priority system service are according to preferential in receivers queues
Level order receives the source life ACTION_BOOT_COMPLETED and broadcasts and start.
The starting-up method of the present embodiment, is mainly used in the starting up's process to the smart machine based on Android platform
Optimize, during starting up, first by Zygote process creation SystemServer processes, by SystemServer
The crucial Service of process initiation, namely ActivityManagerService, in the case of normal startup
ActivityManagerService can send BOOT_COMPLETED broadcast, Huo Zheyou in FinishBooting functions
It is wide that ActivityManagerService starts FinishBooting functions transmission BOOT_COMPLETED in other functions
Broadcast, or send BOOT_COMPLETED broadcast in other processes by ActivityManagerService, it is then all of
Third-party application or system service can receive BOOT_COMPLETED broadcast and boot up startup, can so cause system card
, operation is not smooth, and key point of the invention is that the BOOT_COMPLETED for sending ActivityManagerService
Broadcast replaces with the self-defined BOOT_P broadcast for the activation system required system service of start operation, described self-defined
BOOT_P broadcast starts service self-defined driver write according to corresponding, and the correspondence system service to be started is silent according to system service
The self-defined broadcast for starting the first priority system service or system application 0 is named as BOOT_P by the priority recognized0, will start
The self-defined broadcast of the second priority system service or system application 1 is named as BOOT_P1, as needed can be to preferential level
In the self-defined broadcast BOOT_P that the Service2 settings of Service1 start2, self-defined BOOT_P1The transmission time of broadcast exists
Self-defined BOOT_P0Broadcast is sent after Preset Time, and the Preset Time regards each self-defined broadcast during starting up
Start service number and the configuration of system hardware carry out self-defining, be commonly defined as 1 second, if system hardware configuration is poor,
Or the service that self-defined broadcast starts is too much, then Preset Time can be more than 1 second, if system hardware configuration is poor, or make by oneself
The service that justice broadcast starts is less, then Preset Time can be less than 1 second, if Service0 takes the large percentage of CPU, distance hair
Send self-defined BOOT_P1The interval of broadcast is just more long, otherwise then time interval is shorter.
After system service starts necessary to system boot, FinishBooting functions or FinishBooting functions
Run function start FinishBooting functions or other processes and can send for starting third-party application and/or the 3rd excellent
The source life ACTION_BOOT_COMPLETED broadcast of first level system service, third-party application and/or third priority system service
Source life ACTION_BOOT_COMPLETED broadcast can be received to be started, third-party application and/or third priority system
In start-up course, in order to avoid concentrating startup to cause system interim card, the third party that internally can also start to needs should for service
With and/or one prioritization of third priority system service, all will also need starting up third-party application and/
Or third priority system service carries out prioritization in receivers queues, then according to each third-party application and/
Or priority orders of the third priority system service in receivers queues receive source life ACTION_BOOT_
COMPLETED broadcast is started, it is to avoid all third-party applications and/or third priority system service start simultaneously, account for
The problem of system interim card is caused with CPU.
The starting-up method of the present embodiment, opens in the SystemServer processes in start process by Zygote process creations
Dynamic ActivityManagerService, by ActivityManagerService in FinishBooting functions or
The run function of FinishBooting functions sends self-defined BOOT_P in starting FinishBooting functions or other processes0
Broadcast, to start the system service or system application of the first priority, in self-defined BOOT_P0Broadcast send Preset Time it
Afterwards, self-defined BOOT_P is sent1Broadcast, self-defined BOOT_P is only second to start priority0Broadcast the system service of startup or be
System application, in self-defined BOOT_P1Broadcast is sent after Preset Time, is sent and is started third-party application and/or third priority
System service source life ACTION_BOOT_COMPLETED broadcast, the system service for starting as needed number, can also increase
Plus self-defined BOOT_P broadcast, finally by third-party application and/or third priority system service according in receivers queues
In priority orders receive source life ACTION_BOOT_COMPLETED broadcast, in start process, will start
Using or service successively started according to the order of priority, it is to avoid numerous applications or service concentrate on synchronization and open
It is dynamic, the system interim card that CPU is caused is taken, system burden is alleviated, improve the fluency of system operation.
Reference picture 2, step S50 includes:
S51:The structure of each third-party application and/or third priority system service is preserved with array respectively, is formed
Receivers queues;
S52:According to each third-party application and/or the structure of third priority system service, utilize
BroadcastIntentLocked carries out prioritization in receivers queues;
S53:Each third-party application and/or third priority system service institute are right in real-time update receivers queues
The dope vector answered;
S54:Exist according to the dope vector adjustment third-party application after updating and/or third priority system service
Priority orders in receivers queues.
The starting-up method of the present embodiment, third-party application and/or third priority system service are according in receivers teams
When priority orders in row receive the source life ACTION_BOOT_COMPLETED broadcast, preserve every with array respectively first
One third-party application and/or the structure of third priority system service, the structure include the third-party application and/or
The start absolute time of third priority system service, Activity titles, user is excellent using the third-party application and/or the 3rd
The component of the time of first level system service and frequency, each structure of above-mentioned four kinds of information structures or array, it is then each
Third-party application and/or the corresponding array of third priority system service combine to form receivers queues, afterwards foundation
Each third-party application and/or the structure of third priority system service, are existed using broadcastIntentLocked algorithms
Prioritization is carried out in receivers queues, that is, by each third-party application and/or third priority system service
The information conducts such as user's frequency of use, start absolute time, Activity titles and user's use time
The variable of broadcastIntentLocked algorithms, considering all standard carries out priority level sequence.
To the third-party application and/or third priority system service during due to each starting up or after starting
Operation is different, in order to obtain more preferable Consumer's Experience on the premise of guarantee system smoothness when starting shooting next time, the system meeting
Each third-party application and/or the dope vector corresponding to third priority system service in real-time update receivers queues,
The operation carried out to being directed to third-party application and/or third priority system service each time is recorded, and then carries out array
The real-time update of information, finally according to the dope vector after renewal, namely each third-party application and/or third priority system
User's frequency of use of service, start shooting absolute time, Activity titles and user's use time, re-use
BroadcastIntentLocked algorithms carry out prioritization in receivers queues, with ensure frequency of use it is higher,
Start absolute time is short, and the long third-party application of use time and/or third priority system service are in opening next time
In dynamic, the source life ACTION_BOOT_COMPLETED broadcast that FinishBooting functions send is received at first.
Reference picture 3, the preset procedures of the Preset Time are comprised the following steps:
S80:Detect the hardware configuration and self-defined BOOT_P of smart machine0Broadcast or self-defined BOOT_P1What broadcast started
Quantity of service;
S90:Hardware configuration and self-defined BOOT_P according to smart machine0Broadcast or self-defined BOOT_P1What broadcast started
Quantity of service, debugs self-defined BOOT_P0Broadcast and self-defined BOOT_P1Time interval between broadcast.
In the present embodiment, the process that the Preset Time in step S30 and S40 carries out self-defining is as follows, be first powered on be
System can detect the hardware configuration and self-defined BOOT_P of smart machine0Broadcast or self-defined BOOT_P1Broadcast is opened in this start
Dynamic quantity of service, then according to the hardware configuration and BOOT_P of smart machine0Broadcast or self-defined BOOT_P1Broadcast is at this
The quantity of service started in start, attempts starting up, if video cardton, in restarting, proper extension is self-defined
BOOT_P0 is broadcasted and the time interval between self-defined BOOT_P1 broadcast, repeats to debug, it is ensured that the operation of boot system is smooth,
The time interval, namely Preset Time is commonly defined as 1 second, if system hardware configuration is poor, or self-defined broadcast starts
Service it is too many, then Preset Time can be more than 1 second, if system hardware configuration is poor, or the service that starts of self-defined broadcast compared with
Few, then Preset Time can be less than 1 second.
Reference picture 4, Fig. 4 is the functional block diagram of the embodiment of opening device of the present invention, in the present embodiment, optimization dress
Putting 100 includes:
ActivityManagerService starting modules 10, start in the SystemServer processes that Zygote is created
ActivityManagerService;
Self-defined BOOT_P0Broadcast transmission module 20, is sent for starting the using ActivityManagerService
One priority system service or the self-defined BOOT_P of system application0Broadcast;
Self-defined BOOT_P1Broadcast transmission module 30, in the self-defined BOOT_P0Broadcast send after Preset Time it
Afterwards, the self-defined BOOT_P for starting the second priority system service or system application is sent1Broadcast;
ACTION_BOOT_COMPLETED broadcast transmissions module 40 is given birth in source, in the self-defined BOOT_P1After broadcast sends
Preset Time after, send for start third-party application and/or third priority system service source give birth to ACTION_
BOOT_COMPLETED is broadcasted;
Source life ACTION_BOOT_COMPLETED broadcasting reception modules 50, control the third-party application and/or the 3rd excellent
First level system service receives the source life ACTION_BOOT_ according to the priority orders in receivers queues
COMPLETED is broadcasted and started.
The start optimization device 100 of the present embodiment, including it is ActivityManagerService starting modules 10, self-defined
BOOT_P0Broadcast transmission module 20, self-defined BOOT_P1ACTION_BOOT_COMPLETED is wide for the life of broadcast transmission module 30, source
Broadcast sending module 40, source life ACTION_BOOT_COMPLETED broadcasting reception modules 50.During starting up, first by
ActivityManagerService starting modules 10 control Zygote process creation SystemServer processes, by
The crucial Service of SystemServer process initiations, namely ActivityManagerService, in normal situation about starting
Lower ActivityManagerService can send BOOT_COMPLETED broadcast, Huo Zheyou in FinishBooting functions
It is wide that ActivityManagerService starts FinishBooting functions transmission BOOT_COMPLETED in other functions
Broadcast, or send BOOT_COMPLETED broadcast in other processes by ActivityManagerService, it is then all of
Third-party application and system service can receive BOOT_COMPLETED broadcast and boot up startup, can so cause system
Interim card, operation is not smooth, and key point of the invention is that ActivityManagerService in FinishBooting functions
Or the BOOT_COMPLETED broadcast sent in the run function or other processes of FinishBooting functions is replaced with for opening
The self-defined BOOT_P broadcast of the dynamic required system service of system boot operation, by self-defined BOOT_P0Broadcast transmission module 20
The priority given tacit consent to according to system service sends self-defined BOOT_P for the first priority system service or system application 00Extensively
Broadcast, self-defined BOOT_P1Broadcast transmission module 30 sends self-defined for the second priority system service or system application 1
BOOT_P1Broadcast, the self-defined broadcast of Service2 setting startups that as needed can be to priority inferior to Service1
BOOT_P2, self-defined BOOT_P1The transmission time of broadcast is in self-defined BOOT_P0Broadcast is sent after Preset Time, described pre-
If the time carries out self-defining depending on the size of service during starting up, if Service0 takes the large percentage of CPU, away from
From the self-defined BOOT_P of transmission1The interval of broadcast is just more long, otherwise then time interval is shorter.
After Service starts necessary to system boot, source life ACTION_BOOT_COMPLETED broadcast transmission modules
40 can control FinishBooting functions or FinishBooting functions run function start FinishBooting functions or
Give birth to ACTION_BOOT_ in the source that other processes send for starting third-party application and/or third priority system service
COMPLETED is broadcasted, and third-party application and/or third priority system service can receive the source life ACTION_BOOT_
COMPLETED broadcast is started, in third-party application and/or third priority system service in start-up course, in order to keep away
Exempt to concentrate startup to cause system interim card, also can internally to third-party application and/or third priority the system clothes for needing to start
One prioritization of business, all will also need the third-party application of starting up and/or third priority system service to exist
Prioritization is carried out in receivers queues, is then controlled often by ACTION_BOOT_COMPLETED broadcasting reception modules 50
One third-party application and/or third priority system service receive source life according to the priority orders in receivers queues
ACTION_BOOT_COMPLETED broadcast is started, it is to avoid all third-party applications and/or third priority system service
Start simultaneously, take the problem that CPU causes system interim card.
The opening device 100 of the present embodiment, by ActivityManagerService starting modules 10 in start process
Start ActivityManagerService in the SystemServer processes that Zygote is created, by self-defined BOOT_P0Extensively
Sending module 20 is broadcast using ActivityManagerService in FinishBooting functions or FinishBooting functions
Run function start FinishBooting functions or other processes in send self-defined BOOT_P0Broadcast, it is excellent to start first
The system service or system application of first level, in BOOT_P0Broadcast is sent after Preset Time, by self-defined BOOT_P1Broadcast transmission
Module 30 sends self-defined BOOT_P1Broadcast, self-defined BOOT_P is only second to start priority0Broadcast the system service for starting
Or system application, in self-defined BOOT_P1Broadcast is sent after Preset Time, wide by source life ACTION_BOOT_COMPLETED
Broadcast sending module 40 and send the source life ACTION_BOOT_ for starting third-party application and/or third priority system service
COMPLETED is broadcasted, the system Service for starting as needed number, self-defined BOOT_P broadcast can also be increased, finally
ACTION_BOOT_COMPLETED broadcasting reception modules 50 are given birth to by source and controls the third-party application and/or third priority system
System priority orders of the service in receivers queues receive the source life ACTION_BOOT_COMPLETED broadcast, with
In start process, the application that will start or service are successively started according to the order of priority, it is to avoid numerous applications or
Service concentrates on synchronization startup, takes the system interim card that CPU is caused, and alleviates system burden, improves system operation
Fluency.
Reference picture 5, the source life ACTION_BOOT_COMPLETED broadcasting reception modules 50 include:
Receivers queues form unit 51, preserve each third-party application and/or third priority system with array respectively
The structure of system service, forms receivers queues;
Prioritization unit 52, according to each third-party application and/or the structure of third priority system service, profit
Prioritization is carried out in receivers queues with broadcastIntentLocked;
Dope vector updating block 53, each third-party application and/or the 3rd preferential in real-time update receivers queues
Dope vector corresponding to level system service;
Priority orders adjustment unit 54, it is preferential according to the dope vector adjustment third-party application after updating and/or the 3rd
Priority orders of the level system service in receivers queues.
The opening device 100 of the present embodiment, ACTION_BOOT_COMPLETED broadcasting reception modules 50 are given birth in source to be included
Receivers queues form the adjustment of unit 51, prioritization unit 52, dope vector updating block 53 and priority orders
Unit 54.Receivers queues form unit 51 and are used to preserve each third-party application and/or the 3rd preferential with array respectively
The structure of level system service, the structure includes the start absolute time of the third-party application, Activity titles, user
Use the time and frequency of the third-party application and/or third priority system service, each structure of above-mentioned four kinds of information structures
The component of body or array, then each third-party application and/or the corresponding array of third priority system service are combined
To form receivers queue priorities sequencing unit 52 according to each third-party application and/or third priority system service
Structure, prioritization is carried out in receivers queues using broadcastIntentLocked algorithms, that is, will
Each third-party application and/or user's frequency of use of third priority system service, start absolute time, Activity
The information such as title and user's use time considers all standard and enters as the variable of broadcastIntentLocked algorithms
Row major grade sequence.
To the third-party application and/or third priority system service during due to each starting up or after starting
Operation is different, in order to obtain more preferable Consumer's Experience, dope vector on the premise of guarantee system smoothness when starting shooting next time
Each third-party application and/or third priority system service institute are right in the meeting real-time update receivers queues of updating block 53
The dope vector answered, the operation carried out to being directed to third-party application and/or third priority system service each time is recorded,
Then the real-time update of dope vector is carried out, priority orders adjustment unit 54 is according to the dope vector after renewal namely each
Third-party application and/or user's frequency of use of third priority system service, start absolute time, Activity titles and
User's use time, re-use broadcastIntentLocked algorithms carries out priority row in receivers queues
Sequence, to ensure that frequency of use is higher, start absolute time is short, the long third-party application of use time and/or the 3rd preferential
Level system service receives the source life ACTION_BOOT_ that FinishBooting functions send in startup next time, at first
COMPLETED is broadcasted.
Reference picture 4, the opening device 100 also includes:
Detection module 60, detects the hardware configuration and self-defined BOOT_P of smart machine0Broadcast or self-defined BOOT_P1Extensively
Broadcast the quantity of service of startup;And
Debugging module 70, hardware configuration and self-defined BOOT_P according to smart machine0Broadcast or self-defined BOOT_P1Extensively
The quantity of service of startup is broadcast, self-defined BOOT_P is debugged0Broadcast and self-defined BOOT_P1Time interval between broadcast.
In the present embodiment, the opening device 100 also includes detection module 60 and debugging module 70, and detection module 60 is used to open
The hardware configuration and self-defined BOOT_P of machine system detectio smart machine0Broadcast or self-defined BOOT_P1Broadcast is in this start
The quantity of service of startup, debugging module 70 is used for hardware configuration and BOOT_P according to smart machine0Broadcast or self-defined BOOT_
P1The quantity of service started in this start is broadcasted, self-defined BOOT_P0 broadcast and self-defined BOOT_P is debugged1Between broadcast
Time interval, during starting up, if video cardton, the proper extension self-defined BOOT_P0 in restarting
Broadcast and self-defined BOOT_P1Time interval between broadcast, repeats to debug, it is ensured that the operation of boot system is smooth, when described
Between be spaced, namely Preset Time is commonly defined as 1 second, if system hardware configuration is poor, or the service that self-defined broadcast starts
Too much, then Preset Time can be more than 1 second, if system hardware configuration is poor, or the service that self-defined broadcast starts is less, then in advance
If the time can be less than 1 second.
The present invention also provides a kind of Android smart machines, and the Android smart machines include start dress as described above
100 are put, the smart machine is the intelligent television based on Android platform.The intelligent television in start process, by
ActivityManagerService starting modules 10 start in the SystemServer processes that Zygote is created
ActivityManagerService, by self-defined BOOT_P0Broadcast transmission module 20 is utilized
ActivityManagerService starts in the run function of FinishBooting functions or FinishBooting functions
Self-defined BOOT_P is sent in FinishBooting functions or other processes0Broadcast, to start the system service of the first priority
Or system application, in BOOT_P0Broadcast is sent after Preset Time, by self-defined BOOT_P1Broadcast transmission module 30 sends and makes by oneself
Adopted BOOT_P1Broadcast, BOOT_P is only second to start priority0The system service or system application for starting are broadcasted, in BOOT_P1
Broadcast is sent after Preset Time, and giving birth to ACTION_BOOT_COMPLETED broadcast transmissions module 40 by source sends startup third party
Using and/or third priority system service source life ACTION_BOOT_COMPLETED broadcast, the system for starting as needed
Service number, self-defined BOOT_P broadcast can also be increased, finally broadcasted by source life ACTION_BOOT_COMPLETED
Receiver module 50 controls the priority of the third-party application and/or third priority system service in receivers queues
Order receives the source life ACTION_BOOT_COMPLETED broadcast, with the application or service that in start process, will start
Order according to priority is successively started, it is to avoid numerous applications or service concentrate on synchronization startup, and occupancy CPU makes
Into system interim card, alleviate the burden of intelligent television Android boot systems, improve the intelligent television system operation stream
Smooth property.
The preferred embodiments of the present invention are these are only, the scope of the claims of the invention is not thereby limited, it is every to utilize this hair
Equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills
Art field, is included within the scope of the present invention.
Claims (11)
1. a kind of starting-up method, is applied to Android smart machines, it is characterised in that comprise the following steps:
Start ActivityManagerService in the SystemServer processes that Zygote is created;
ActivityManagerService is sent for starting the self-defined of the first priority system service or system application
BOOT_P0Broadcast;
In the self-defined BOOT_P0Broadcast after the Preset Time after sending, send for starting the second priority system service
Or the self-defined BOOT_P of system application1Broadcast;
In the self-defined BOOT_P1Broadcast send after Preset Time after, send for starting third-party application and/or the
The source life ACTION_BOOT_COMPLETED broadcast of three priority systems service.
2. starting-up method as claimed in claim 1, it is characterised in that described in the self-defined BOOT_P1Broadcast sends default
After time, send the source for starting third-party application and/or third priority system service and give birth to ACTION_BOOT_
After the step of COMPLETED is broadcasted, also include:
The third-party application and/or third priority system service connect according to the priority orders in receivers queues
The source life ACTION_BOOT_COMPLETED is received to broadcast and start.
3. starting-up method as claimed in claim 2, it is characterised in that the third-party application and/or third priority system
Service receives source life ACTION_BOOT_COMPLETED broadcast simultaneously according to the priority orders in receivers queues
The step of startup, includes:
The structure of each third-party application and/or third priority system service is preserved with array respectively, receivers is formed
Queue;
According to each third-party application and/or the structure of third priority system service, utilize
BroadcastIntentLocked carries out prioritization in receivers queues;
Each third-party application and/or the array corresponding to third priority system service in real-time update receivers queues
Information;
According to the dope vector adjustment third-party application after updating and/or third priority system service in receivers queues
In priority orders.
4. starting-up method as claimed in claim 3, it is characterised in that the element of the structure include user's frequency of use,
Start absolute time, Activity titles and user's use time.
5. starting-up method as claimed in claim 1, it is characterised in that the preset procedures of the Preset Time include following step
Suddenly:
Detect the hardware configuration and self-defined BOOT_P of smart machine0Broadcast or self-defined BOOT_P1Broadcast the service number for starting
Amount;
Hardware configuration and self-defined BOOT_P according to smart machine0Broadcast or self-defined BOOT_P1Broadcast the service number for starting
Amount, debugs self-defined BOOT_P0Broadcast and self-defined BOOT_P1Time interval between broadcast.
6. a kind of opening device, it is characterised in that the opening device includes:
ActivityManagerService starting modules, start in the SystemServer processes that Zygote is created
ActivityManagerService;
Self-defined BOOT_P0Broadcast transmission module, is sent for starting the first priority using ActivityManagerService
System service or the self-defined BOOT_P of system application0Broadcast;
Self-defined BOOT_P1Broadcast transmission module, in the self-defined BOOT_P0Broadcast is sent after Preset Time, and sending is used for
Start the self-defined BOOT_P of the second priority system service or system application1Broadcast;And
ACTION_BOOT_COMPLETED broadcast transmission modules are given birth in source, in the self-defined BOOT_P1Broadcast sends Preset Time
Afterwards, send for start third-party application or third priority system service source give birth to ACTION_BOOT_COMPLETED it is wide
Broadcast.
7. opening device as claimed in claim 6, it is characterised in that the optimization device also includes:
ACTION_BOOT_COMPLETED broadcasting reception modules are given birth in source, control the third-party application and/or third priority system
System service receives the source life ACTION_BOOT_COMPLETED broadcast according to the priority orders in receivers queues
And start.
8. opening device as claimed in claim 7, it is characterised in that the source life ACTION_BOOT_COMPLETED broadcast
Receiver module includes:
Receivers queues form unit, preserve each third-party application and/or third priority system service with array respectively
Structure, formed receivers queues;
Prioritization unit, according to each third-party application and/or the structure of third priority system service, utilizes
BroadcastIntentLocked carries out prioritization in receivers queues;
Dope vector updating block, each third-party application and/or third priority system in real-time update receivers queues
The corresponding dope vector of service;And
Priority orders adjustment unit, according to dope vector adjustment third-party application and/or third priority system after updating
Service the priority orders in receivers queues.
9. opening device as claimed in claim 8, it is characterised in that the element of the structure include user's frequency of use,
Start absolute time, Activity titles and user's use time.
10. opening device as claimed in claim 6, it is characterised in that the opening device also includes:
Detection module, detects the hardware configuration and self-defined BOOT_P of smart machine0Broadcast or self-defined BOOT_P1Broadcast starts
Quantity of service;And
Debugging module, hardware configuration and self-defined BOOT_P according to smart machine0Broadcast or self-defined BOOT_P1Broadcast starts
Quantity of service, debug self-defined BOOT_P0Broadcast and self-defined BOOT_P1Time interval between broadcast.
11. a kind of Android smart machines, it is characterised in that the Android smart machines are included as claim 6-10 is any
Opening device described in.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611036746.3A CN106792185B (en) | 2016-11-15 | 2016-11-15 | Starting method, starting device and Android intelligent device |
PCT/CN2016/112813 WO2018090457A1 (en) | 2016-11-15 | 2016-12-29 | Booting method, booting device and android intelligent apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611036746.3A CN106792185B (en) | 2016-11-15 | 2016-11-15 | Starting method, starting device and Android intelligent device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106792185A true CN106792185A (en) | 2017-05-31 |
CN106792185B CN106792185B (en) | 2020-08-04 |
Family
ID=58971334
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611036746.3A Active CN106792185B (en) | 2016-11-15 | 2016-11-15 | Starting method, starting device and Android intelligent device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106792185B (en) |
WO (1) | WO2018090457A1 (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106775679A (en) * | 2016-11-30 | 2017-05-31 | 深圳天珑无线科技有限公司 | A kind of message treatment method and device |
CN107861827A (en) * | 2017-10-31 | 2018-03-30 | 努比亚技术有限公司 | Card screen detection method, mobile terminal and computer-readable recording medium |
CN108038010A (en) * | 2017-12-25 | 2018-05-15 | 青岛海信电器股份有限公司 | Android system startup stage broadcast transmission method, apparatus and terminal |
CN108196892A (en) * | 2017-12-29 | 2018-06-22 | 北京安云世纪科技有限公司 | For the method, apparatus and mobile terminal being customized to system starting process |
CN108228367A (en) * | 2017-12-29 | 2018-06-29 | 北京安云世纪科技有限公司 | A kind of method, system and mobile terminal for based on hierarchical broadcast start control |
CN112637683A (en) * | 2020-12-07 | 2021-04-09 | 青岛海信传媒网络技术有限公司 | Display equipment system optimization method and display equipment |
CN114153502A (en) * | 2020-09-08 | 2022-03-08 | 深圳Tcl新技术有限公司 | Control method of startup items, storage medium and terminal equipment |
CN114153502B (en) * | 2020-09-08 | 2024-07-05 | 深圳Tcl新技术有限公司 | Control method of starting-up start-up item, storage medium and terminal equipment |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114047961A (en) * | 2021-11-15 | 2022-02-15 | 合众新能源汽车有限公司 | Android system starting optimization method, intelligent terminal and computer readable medium |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008146204A (en) * | 2006-12-07 | 2008-06-26 | Hitachi Ltd | Service management system, service management device and service management method |
JP2010217945A (en) * | 2009-03-13 | 2010-09-30 | Panasonic Corp | Application operation coordination system |
CN102163150A (en) * | 2010-02-24 | 2011-08-24 | 腾讯科技(深圳)有限公司 | System starting method and apparatus |
CN102298532A (en) * | 2011-09-15 | 2011-12-28 | 奇智软件(北京)有限公司 | Startup-item-based management method and device |
CN102707966A (en) * | 2012-04-12 | 2012-10-03 | 腾讯科技(深圳)有限公司 | Method and device for acceleratively starting operating system, and method, device and terminal for generating prefetched information |
CN102830996A (en) * | 2012-08-08 | 2012-12-19 | 广东欧珀移动通信有限公司 | Fast boot method of handheld device |
CN103064705A (en) * | 2012-12-18 | 2013-04-24 | 北京奇虎科技有限公司 | Method and device for starting processing of computer system |
US8452949B1 (en) * | 2009-05-28 | 2013-05-28 | Cms Products, Inc. | Optical boot to eliminate changing BIOS to boot externally attached storage device |
US20150212825A1 (en) * | 2014-01-28 | 2015-07-30 | Hyundai Mobis Co., Ltd. | System and method for booting application of terminal |
CN105302611A (en) * | 2015-11-13 | 2016-02-03 | 中标软件有限公司 | Method and system for starting computer system under Linux |
CN105549958A (en) * | 2015-12-02 | 2016-05-04 | 海信集团有限公司 | Embedded system starting method and intelligent terminal |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103488495A (en) * | 2013-08-13 | 2014-01-01 | 广东欧珀移动通信有限公司 | Method for accelerating startup by dynamically adjusting startup preloaded resources |
CN105302588A (en) * | 2014-07-09 | 2016-02-03 | 联想移动通信科技有限公司 | Terminal application loading method and apparatus and terminal |
-
2016
- 2016-11-15 CN CN201611036746.3A patent/CN106792185B/en active Active
- 2016-12-29 WO PCT/CN2016/112813 patent/WO2018090457A1/en active Application Filing
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008146204A (en) * | 2006-12-07 | 2008-06-26 | Hitachi Ltd | Service management system, service management device and service management method |
JP2010217945A (en) * | 2009-03-13 | 2010-09-30 | Panasonic Corp | Application operation coordination system |
US8452949B1 (en) * | 2009-05-28 | 2013-05-28 | Cms Products, Inc. | Optical boot to eliminate changing BIOS to boot externally attached storage device |
CN102163150A (en) * | 2010-02-24 | 2011-08-24 | 腾讯科技(深圳)有限公司 | System starting method and apparatus |
CN102298532A (en) * | 2011-09-15 | 2011-12-28 | 奇智软件(北京)有限公司 | Startup-item-based management method and device |
CN102707966A (en) * | 2012-04-12 | 2012-10-03 | 腾讯科技(深圳)有限公司 | Method and device for acceleratively starting operating system, and method, device and terminal for generating prefetched information |
CN102830996A (en) * | 2012-08-08 | 2012-12-19 | 广东欧珀移动通信有限公司 | Fast boot method of handheld device |
CN103064705A (en) * | 2012-12-18 | 2013-04-24 | 北京奇虎科技有限公司 | Method and device for starting processing of computer system |
US20150212825A1 (en) * | 2014-01-28 | 2015-07-30 | Hyundai Mobis Co., Ltd. | System and method for booting application of terminal |
KR20150089660A (en) * | 2014-01-28 | 2015-08-05 | 현대모비스 주식회사 | The System and Method for Booting the Application of the Terminal |
CN105302611A (en) * | 2015-11-13 | 2016-02-03 | 中标软件有限公司 | Method and system for starting computer system under Linux |
CN105549958A (en) * | 2015-12-02 | 2016-05-04 | 海信集团有限公司 | Embedded system starting method and intelligent terminal |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106775679A (en) * | 2016-11-30 | 2017-05-31 | 深圳天珑无线科技有限公司 | A kind of message treatment method and device |
CN107861827A (en) * | 2017-10-31 | 2018-03-30 | 努比亚技术有限公司 | Card screen detection method, mobile terminal and computer-readable recording medium |
CN107861827B (en) * | 2017-10-31 | 2021-05-21 | 努比亚技术有限公司 | Card screen detection method, mobile terminal and computer readable storage medium |
CN108038010A (en) * | 2017-12-25 | 2018-05-15 | 青岛海信电器股份有限公司 | Android system startup stage broadcast transmission method, apparatus and terminal |
CN108196892A (en) * | 2017-12-29 | 2018-06-22 | 北京安云世纪科技有限公司 | For the method, apparatus and mobile terminal being customized to system starting process |
CN108228367A (en) * | 2017-12-29 | 2018-06-29 | 北京安云世纪科技有限公司 | A kind of method, system and mobile terminal for based on hierarchical broadcast start control |
CN108196892B (en) * | 2017-12-29 | 2021-02-23 | 北京安云世纪科技有限公司 | Method and device for customizing system starting process and mobile terminal |
CN108228367B (en) * | 2017-12-29 | 2021-07-27 | 北京安云世纪科技有限公司 | Method, system and mobile terminal for starting control based on hierarchical broadcast |
CN114153502A (en) * | 2020-09-08 | 2022-03-08 | 深圳Tcl新技术有限公司 | Control method of startup items, storage medium and terminal equipment |
CN114153502B (en) * | 2020-09-08 | 2024-07-05 | 深圳Tcl新技术有限公司 | Control method of starting-up start-up item, storage medium and terminal equipment |
CN112637683A (en) * | 2020-12-07 | 2021-04-09 | 青岛海信传媒网络技术有限公司 | Display equipment system optimization method and display equipment |
Also Published As
Publication number | Publication date |
---|---|
WO2018090457A1 (en) | 2018-05-24 |
CN106792185B (en) | 2020-08-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106792185A (en) | Starting-up method, opening device and Android smart machines | |
US11462191B2 (en) | Methods, systems, and media for managing output of an HDMI source | |
CN105979375B (en) | A kind of starting method and device of smart television | |
CN108513154A (en) | Intelligent home furnishing control method, smart television based on smart television and storage medium | |
CN109286854B (en) | WiFi network-based network streaming media jam detection and optimization system and method | |
US20190215558A1 (en) | Television video interception method and device | |
CN103634556B (en) | Information transmission method, information receiving method and electronic apparatus | |
CN112350981A (en) | Method, device and system for switching communication protocol | |
US20100039960A1 (en) | Wireless Communication Device, Program, Wireless Communication Method, and Wireless Communication System | |
CN111694625A (en) | Method and equipment for projecting screen to vehicle machine by vehicle box | |
CN105282611A (en) | Child audience monitoring system and method | |
CN104219544B (en) | The dynamic dispatching method and system of IPTV service resource | |
WO2022268068A1 (en) | Wireless communication method and apparatus, electronic device, and readable storage medium | |
CN113660653B (en) | Transmission method and device and electronic equipment | |
CN105830418A (en) | Interface sharing method and terminal device | |
CN112911325B (en) | Method and device for recovering inter-live-broadcast room connection | |
CN105025373B (en) | Television set, tele-control system and its control method | |
CN105407452A (en) | Method and system for controlling data flow in Bluetooth sharing network | |
CN107431524A (en) | A kind of antenna allocation method and terminal | |
US8760512B2 (en) | Wireless video transmission device and wireless video reception device | |
CN106254810A (en) | A kind of video call method and device | |
CN112929065B (en) | Electronic equipment control method and device and electronic equipment | |
CN109963170A (en) | Series flow system and its backup method with redundant mechanism | |
CN108924875A (en) | priority setting method, device, user equipment and storage medium | |
CN108196816A (en) | Put out music control method, device and the computer storage media under screen state |
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 |