CN108228367B - Method, system and mobile terminal for starting control based on hierarchical broadcast - Google Patents

Method, system and mobile terminal for starting control based on hierarchical broadcast Download PDF

Info

Publication number
CN108228367B
CN108228367B CN201711487271.4A CN201711487271A CN108228367B CN 108228367 B CN108228367 B CN 108228367B CN 201711487271 A CN201711487271 A CN 201711487271A CN 108228367 B CN108228367 B CN 108228367B
Authority
CN
China
Prior art keywords
application
level
time
launch
applications
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711487271.4A
Other languages
Chinese (zh)
Other versions
CN108228367A (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.)
Beijing Anyun Century Technology Co Ltd
Original Assignee
Beijing Anyun Century Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Anyun Century Technology Co Ltd filed Critical Beijing Anyun Century Technology Co Ltd
Priority to CN201711487271.4A priority Critical patent/CN108228367B/en
Publication of CN108228367A publication Critical patent/CN108228367A/en
Application granted granted Critical
Publication of CN108228367B publication Critical patent/CN108228367B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues

Abstract

The invention discloses a method for starting control based on hierarchical broadcasting, which comprises the following steps: registering system services which need to be loaded when a system is started and loading the registered system services; in response to the completion of the loading of the system service, determining a first starting sequence of a plurality of applications which are requested to be automatically started according to the static configuration file, and acquiring the starting time consumption of each application in the plurality of applications; analyzing the dynamic running file to obtain a time weighting factor, modifying the starting time consumption of the applications based on the time weighting factor, and sequencing the applications based on the modified starting time consumption to determine a second starting sequence; and determining a launch level for each of the plurality of applications according to the second launch order, hierarchically broadcasting a notification message indicating system launch to the plurality of applications based on the launch level, such that each application can retrieve the notification message according to the launch level to enable launch control for the plurality of applications.

Description

Method, system and mobile terminal for starting control based on hierarchical broadcast
Technical Field
The invention relates to the technical field of application starting of mobile terminals, in particular to a method and a system for starting control based on hierarchical broadcasting and a mobile terminal.
Background
With the wide popularization and application of intelligent equipment, the intelligent equipment loaded with the android system also increasingly enters the lives of people. With the popularization and development of internet applications, mobile applications have increasingly more influence on the life of people, and the number of various applications is increasing day by day. In the boot startup procedure of the android system in the prior art, system services to be loaded are registered first, and the registered system services are loaded.
In the prior art, after the system service is loaded, the system start-up completion message is notified to all applications in a broadcast manner, and each application starts up the application after receiving the broadcast of the system start-up completion. Because all applications are started simultaneously and the applications often need a lot of initialization work in the starting process, the applications are easy to crash in the starting process under the influence of software and hardware environments, and the terminal devices such as mobile phones and the like run slowly or are stuck after being started. The problem of slow start-up of such terminal devices becomes more and more serious as the number of applications increases.
Therefore, a technique is needed to control the launching of applications based on hierarchical broadcasting.
Disclosure of Invention
The invention provides a method, a system and a mobile terminal for starting control based on hierarchical broadcasting, which are used for controlling the starting of terminal application.
In order to solve the above problem, there is provided a method for start-up control based on hierarchical broadcasting, the method including:
registering system services which need to be loaded when a system is started and loading the registered system services;
in response to the completion of the loading of the system service, determining a first starting sequence of a plurality of applications which are requested to be automatically started according to a static configuration file, and acquiring the starting time consumption of each application in the plurality of applications;
analyzing the dynamic running file to obtain a time weighting factor, modifying the starting time consumption of the applications based on the time weighting factor, and sequencing the plurality of applications based on the modified starting time consumption to determine a second starting sequence; and
determining a launch level for each of the plurality of applications according to a second launch order, and broadcasting a notification message indicating system launch to the plurality of applications hierarchically based on the launch level, such that each application can retrieve the notification message according to the launch level to enable launch control for the plurality of applications.
Preferably, the static configuration file includes a plurality of triplets, and the format of each triplet is < start sequence number, application identifier, and start time consumption >.
Preferably, the first starting sequence of the plurality of applications requesting automatic start is determined according to the starting sequence numbers.
Preferably, the dynamic run file comprises a plurality of duplets, and the format of each duplet is < application identification, time weighting factor >.
Preferably, the modifying the starting time consumption of the application based on the time weighting factor comprises: the startup elapsed times and the time weighting factors belonging to the same application are summed to generate a modified startup elapsed time.
Preferably, the application identification is used to determine the time consumption and the time weighting factor of the start-up belonging to the same application.
Preferably, the temporal weighting factor is positive, negative or zero.
Preferably, when the application requesting the automatic start is a malicious application, the time weighting factor is a time maximum of a positive number.
Preferably, when the application requesting automatic start is a suspected malicious application, the time weighting factor is set to a positive time delay value, and the time delay value can enable the start time of the application requesting automatic start to be later than the start time of the monitoring application.
Preferably, the time weighting factor is set to a negative time reduction value when the application requesting the automatic start is a priority application.
Preferably, the sorting the plurality of applications based on the modified launch time to determine a second launch order comprises: the plurality of applications are sorted based on an ascending order of modified launch elapsed times to determine a second launch order.
Preferably, the activation level comprises: a priority boot level, a normal boot level, a delayed boot level, and a prohibited boot level.
Preferably, the broadcasting of the notification messages indicating system startup hierarchically to the plurality of applications based on the startup level comprises: a notification message indicating system startup is broadcast to applications of a priority startup level.
Preferably, the notification message indicating system start is broadcast to the application of the normal start level a predetermined time after the notification message indicating system start is broadcast to the application of the priority start level.
Preferably, upon determining that the application of the priority boot level and the application of the normal boot level have all been booted, a notification message indicating system boot is broadcast to the application of the delayed boot level.
Preferably, the method further comprises not broadcasting a notification message indicating system boot to the application of the prohibited boot level.
Preferably, before registering the system service that needs to be loaded at system startup, the method further includes: a user-level initial process is created.
Preferably, before creating the user-level initial process, the method further includes: in response to the user device powering up, the boot chip function reads the boot program from the read only memory and loads the boot program into the memory.
Preferably, after the boot program is loaded into the random access memory, the boot program initializes the stack and hardware devices required for running the kernel program.
Preferably, after the initialization, a kernel program is run, which sets up the cache, sets up the protected memory, sets up the plan list, and loads the drivers, and creates a user-level initial process.
According to another aspect of the present invention, there is provided a system for start-up control based on hierarchical broadcasting,
the system comprises:
the loading unit registers system services which need to be loaded when the system is started and loads the registered system services;
the system comprises an acquisition unit, a processing unit and a control unit, wherein the acquisition unit is used for determining a first starting sequence of a plurality of applications which request automatic starting according to a static configuration file in response to the completion of the loading of system services, and acquiring the starting time consumption of each application in the plurality of applications;
the processing unit is used for analyzing the dynamic running file to obtain a time weighting factor, modifying the starting consumed time of the applications based on the time weighting factor, and sequencing the plurality of applications based on the modified starting consumed time to determine a second starting sequence; and
and a broadcasting unit which determines a start level for each of the plurality of applications according to a second start order, and hierarchically broadcasts a notification message indicating system start to the plurality of applications based on the start level, so that each application can acquire the notification message according to the start level to implement start control for the plurality of applications.
Preferably, the static configuration file includes a plurality of triplets, and the format of each triplet is < start sequence number, application identifier, and start time consumption >.
Preferably, the obtaining unit determines a first starting order of the plurality of applications requested to be automatically started according to the starting sequence numbers.
Preferably, the dynamic run file comprises a plurality of duplets, and the format of each duplet is < application identification, time weighting factor >.
Preferably, the modifying, by the processing unit, the start-up elapsed time of the application based on the time weighting factor includes: the processing unit sums the startup elapsed time and the time weighting factor belonging to the same application to generate a modified startup elapsed time.
Preferably, the processing unit determines the starting time consumption and the time weighting factor belonging to the same application by using the application identification.
Preferably, the temporal weighting factor is positive, negative or zero.
Preferably, when the application requesting the automatic start is a malicious application, the time weighting factor is a time maximum of a positive number.
Preferably, when the application requesting automatic start is a suspected malicious application, the time weighting factor is set to a positive time delay value, and the time delay value can enable the start time of the application requesting automatic start to be later than the start time of the monitoring application.
Preferably, the time weighting factor is set to a negative time reduction value when the application requesting the automatic start is a priority application.
Preferably, the processing unit sorting the plurality of applications based on the modified launch time to determine a second launch order comprises: the processing unit orders the plurality of applications based on an ascending order of modified launch elapsed times to determine a second launch order.
Preferably, the activation level comprises: a priority boot level, a normal boot level, a delayed boot level, and a prohibited boot level.
Preferably, the broadcasting unit hierarchically broadcasting the notification message indicating system start-up to the plurality of applications based on the start-up level includes: the broadcasting unit broadcasts a notification message indicating system startup to an application of a priority startup level.
Preferably, the broadcasting unit broadcasts the notification message indicating the system start to the application of the normal start level a predetermined time after broadcasting the notification message indicating the system start to the application of the priority start level.
Preferably, the broadcasting unit broadcasts a notification message indicating system startup to the application of the delayed startup level when it is determined that the application of the priority startup level and the application of the normal startup level have all been started.
Preferably, the broadcasting unit does not broadcast a notification message indicating system startup to an application of the startup disabled level.
Preferably, the system further comprises an initialization unit for creating a user-level initial process.
Preferably, the initialization unit is responsive to the user equipment being powered on, the boot chip function reading a boot program from the read only memory and loading the boot program into the memory.
Preferably, after the boot program is loaded into the random access memory, the initialization unit initializes the stack and the hardware device required for running the kernel program by the boot program.
Preferably, after the initialization unit initializes, a kernel program is run, the kernel program sets a cache, sets a protected memory, sets a plan list, and loads a driver, and creates a user-level initial process.
According to another aspect of the present invention there is provided a mobile terminal comprising or adapted to carry out the system of any of the above.
According to the technical scheme, the first starting sequence of the automatically started applications is determined according to the static configuration file, and the starting time consumption of each application in the multiple applications is obtained. In the application starting process, when the application is found to be a slow application or a malicious application which is started and run, the time weighting factor of the corresponding application is obtained through the dynamic running file, the starting time consumption time of the application is modified according to the time weighting factor, and the starting of the plurality of applications is reordered based on the modified starting time consumption so as to determine a second starting sequence. The technical scheme of the invention determines the starting level for each application in the plurality of applications according to the second starting sequence, and broadcasts the notification message group indicating the system starting to the plurality of applications based on the starting level, so that each application can acquire the notification message in sequence according to the confirmed starting level. According to the technical scheme, the application which obtains the broadcast firstly is started and then the application which obtains the broadcast is started by carrying out the classified broadcast on the starting, so that the problem that the system is slow to run or is blocked when all the applications are started simultaneously is avoided.
Drawings
A more complete understanding of exemplary embodiments of the present invention may be had by reference to the following drawings in which:
fig. 1 is a flowchart of a method for start-up control based on hierarchical broadcasting according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a system for start-up control based on hierarchical broadcasting according to an embodiment of the present invention; and
fig. 3 is a diagram illustrating start-up control based on hierarchical broadcasting according to an embodiment of the present invention.
Detailed Description
The exemplary embodiments of the present invention will now be described with reference to the accompanying drawings, however, the present invention may be embodied in many different forms and is not limited to the embodiments described herein, which are provided for complete and complete disclosure of the present invention and to fully convey the scope of the present invention to those skilled in the art. The terminology used in the exemplary embodiments illustrated in the accompanying drawings is not intended to be limiting of the invention. In the drawings, the same units/elements are denoted by the same reference numerals.
Unless otherwise defined, terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. Further, it will be understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and will not be interpreted in an idealized or overly formal sense.
Fig. 1 is a flowchart of a method for start-up control based on hierarchical broadcasting according to an embodiment of the present invention. According to the method for performing starting control based on hierarchical broadcasting, the first starting sequence of the automatically started applications is determined according to the static configuration file, and the starting time consumption of each application in the plurality of applications is obtained. In the application starting process, when the application is found to be a slow application or a malicious application which is started and run, the time weighting factor of the corresponding application is obtained through the dynamic running file, the starting time consumption time of the application is modified according to the time weighting factor, and the starting of the plurality of applications is reordered based on the modified starting time consumption so as to determine a second starting sequence. The method and the device determine the starting level for each application in the plurality of applications according to the second starting sequence, and broadcast the notification message group indicating the system starting to the plurality of applications based on the starting level, so that each application can acquire the notification message in sequence according to the confirmed starting level. A method 100 for start-up control based on hierarchical broadcasting as shown in fig. 1 includes:
preferably, in step 101: registering system services which need to be loaded when the system is started and loading the registered system services.
Preferably, before registering the system service that needs to be loaded at system startup, the method further includes: a user-level initial process is created. Before creating the user-level initial process, the method further comprises the following steps: in response to the user device powering up, the boot chip function reads the boot program from the read only memory and loads the boot program into the memory. After loading the boot program into the random access memory, the boot program initializes the stack and hardware devices needed to run the kernel program. After initialization, the kernel program is run, which sets the cache, sets the protected memory, sets the plan list, and loads the drivers, and creates a user-level initial process.
In this application, when power is pressed, the boot chip function starts reading the boot program from the predefined ROM and loading the boot program into the memory, and then executes.
Preferably, at step 102: in response to the loading of the system service being completed, a first starting sequence of the plurality of applications requesting automatic starting is determined according to the static configuration file, and a starting time consumption of each of the plurality of applications is obtained. Preferably, the static configuration file includes a plurality of triplets, and the format of each triplet is < start sequence number, application identification, start time consumption >. Preferably, the first start-up sequence of the plurality of applications requesting the automatic start-up is determined according to the start-up sequence numbers.
According to the method and the device, after the system service loading is completed, the first starting sequence of the multiple applications requested to be automatically started is confirmed according to the static configuration file, the starting sequence number, the starting identifier and the starting time consumption of each application in the multiple applications are obtained, and the first starting sequence of the multiple applications requested to be started is confirmed according to the starting sequence numbers. If the static configuration file of the mobile phone assistant of the application 360 comprises <2, ID1002 and 75ms >, the static configuration file of the browser 360 comprises <3, ID1003 and 300ms >, the static configuration file of the mobile phone guard 360 comprises <1, ID1001 and 15ms >, and the static configuration file of the desktop 360 comprises <4, ID1004 and 230ms >, the first starting sequence of the above 4 applications is as follows: 360 mobile guards, 360 mobile assistants, 360 browser static profiles and 360 desktops. The starting time of the 360-degree mobile phone guard is 15ms, the starting time of the 360-degree mobile phone assistant is 75ms, the starting time of the 360-degree browser is 300ms, and the starting time of the 360-degree desktop is 230 ms.
Preferably, in step 103: the dynamic run file is parsed to obtain a temporal weighting factor, the startup elapsed times of the applications are modified based on the temporal weighting factor, and the plurality of applications are ranked based on the modified startup elapsed times to determine a second startup order.
Preferably, the dynamic run file comprises a plurality of tuples, each tuple having the format < application identification, temporal weighting factor >. Preferably, modifying the startup elapsed time of the application based on the temporal weighting factor comprises: the startup elapsed times and the time weighting factors belonging to the same application are summed to generate a modified startup elapsed time. Preferably, the application identification is used to determine the time consumption and the time weighting factor of the start-up belonging to the same application. Preferably, the temporal weighting factor is positive, negative or zero. Preferably, the temporal weighting factor is a positive maximum in time when the application requesting the automatic launch is a malicious application.
In the application, after the application is started, when it is found that the application is time-consuming to start, or malicious, a time weighting factor in a binary group in a corresponding application in a dynamic file is determined according to an application identifier, and the time weighting factor may be 50ms, 100ms, -100ms, 0ms, and the like. For example, the QQ time weighting factor is determined to be 200ms, the 360 cell phone guard time weighting factor is determined to be-10 ms, and the malicious application time weighting factor is determined to be a time maximum of a positive number of 8000ms or greater.
Preferably, when the application requesting the automatic start is a suspected malicious application, the time weighting factor is set to a positive time delay value, and the time delay value can enable the start time of the application requesting the automatic start to be later than the start time of the monitoring application. In the application, for a suspected malicious application, the time weighting factor of the suspected malicious application is set to a positive time delay value, for example, the time weighting factor of the application a is set to 200ms, 500ms, 2000ms, and the like, and the time delay value enables the starting time of the application requesting automatic starting to be later than the starting time of the monitoring application.
Preferably, the time weighting factor is set to a negative time reduction value when the application requesting the automatic start is a priority application. In the present application, for the priority application, the time weighting factor applied preferentially is set to a negative time reduction value, for example, the time weighting factor applied by B is set to-100 ms, -500ms, -2000ms, etc.
Preferably, the sorting the plurality of applications based on the modified launch time to determine the second launch order comprises: the plurality of applications are sorted based on an ascending order of modified launch elapsed times to determine a second launch order. In the application, based on the modified start-up time consumption of the application, for example, the time weighting factor of the QQ is determined to be 200ms, the start-up time consumption of the QQ is increased by 200 ms; determining the time weighting factor of the 360 mobile phone guard as-10 ms, and reducing the starting time of the 360 mobile phone guard by 10 ms; the plurality of applications are sorted based on the modified ascending order of the launch elapsed times to determine a second launch order.
Preferably, at step 104: determining a launch level for each of the plurality of applications according to the second launch order, and broadcasting a notification message indicating system launch to the plurality of applications hierarchically based on the launch level, such that each application can retrieve the notification message according to the launch level to enable launch control for the plurality of applications. Preferably, the activation level comprises: a priority boot level, a normal boot level, a delayed boot level, and a prohibited boot level. Preferably, broadcasting a notification message indicating system startup hierarchically to a plurality of applications based on the startup level comprises: a notification message indicating system startup is broadcast to applications of a priority startup level. Preferably, the notification message indicating system start is broadcast to the application of the normal start level a predetermined time after the notification message indicating system start is broadcast to the application of the priority start level. Preferably, the notification message indicating the system start is broadcast to the delayed start level application when it is determined that the priority start level application and the normal start level application have all been started.
In this application, the division of the start-up level for each of the plurality of applications according to the second start-up sequence is: the priority of starting level, such as 360 mobile phone guards and the like; a common boot level, such as 360 cell phone assistant; a delayed launch level, such as 360 browsers; the level of activation, such as malicious applications, is disabled. The notification message indicating system startup is broadcast to a plurality of applications hierarchically based on the startup level, so that each application can acquire the notification message according to the startup level to realize startup control for the plurality of applications. For example, the notification message indicating the system start is firstly broadcast to the application of the priority start level, and the notification message indicating the system start is broadcast to the application of the normal start level at a predetermined time after the notification message indicating the system start is broadcast to the application of the priority start level. Upon determining that both the application of the priority launch level and the application of the normal launch level have been launched, a notification message indicating system launch is broadcast to the application of the delayed launch level. The present application illustrates a hierarchical broadcast: the method comprises the steps of firstly broadcasting a notification message indicating system starting to a 360-degree mobile phone guard with a priority starting level, and broadcasting the notification message indicating system starting to a 360-degree mobile phone assistant with a common starting level in a preset time after the notification message indicating system starting is broadcast to an application with a priority starting level. Upon determining that the application of the priority launch level and the application of the normal launch level have all been launched, a notification message indicating system launch is broadcast to the 360 browsers of the delayed launch level.
Preferably, the method further comprises not broadcasting a notification message indicating system boot to the application of the prohibited boot level. In the application, for the application at the prohibited starting level, such as malicious application, the notification message indicating the system starting is not broadcasted to the malicious application or other types of applications at the prohibited starting level.
Fig. 2 is a system configuration diagram for start-up control based on hierarchical broadcasting according to an embodiment of the present invention. According to the system for performing start control based on hierarchical broadcasting, the first start sequence of the automatically started applications is determined according to the static configuration file, and the start time of each application in the plurality of applications is acquired. In the application starting process, when the application is found to be a slow application or a malicious application which is started and run, the time weighting factor of the corresponding application is obtained through the dynamic running file, the starting time consumption time of the application is modified according to the time weighting factor, and the starting of the plurality of applications is reordered based on the modified starting time consumption so as to determine a second starting sequence. The method and the device determine the starting level for each application in the plurality of applications according to the second starting sequence, and broadcast the notification message group indicating the system starting to the plurality of applications based on the starting level, so that each application can acquire the notification message in sequence according to the confirmed starting level. A system 200 for start-up control based on hierarchical broadcasting as shown in fig. 2 includes:
the loading unit 201 registers a system service that needs to be loaded when the system is started and loads the registered system service.
Preferably, the system further comprises an initialization unit for creating a user-level initial process. The initialization unit responds to the user equipment being powered on, and the boot chip function reads the boot program from the read-only memory and loads the boot program into the memory. After the boot program is loaded into the random access memory, the initialization unit boot program initializes the stack and hardware devices required for running the kernel program. After the initialization unit initializes, a kernel program is run, the kernel program sets a cache, sets a protected memory, sets a plan list, and loads a driver, and creates a user-level initial process.
In this application, when power is pressed, the boot chip function starts reading the boot program from the predefined ROM and loading the boot program into the memory, and then executes.
The obtaining unit 202, in response to the completion of the loading of the system service, determines a first start order of the plurality of applications that request automatic start according to the static configuration file, and obtains a start time consumption of each of the plurality of applications. Preferably, the static configuration file includes a plurality of triplets, and the format of each triplet is < start sequence number, application identification, start time consumption >. Preferably, the acquisition unit determines a first start order of the plurality of applications that request automatic start, based on the start sequence number.
According to the method and the device, after the system service loading is completed, the first starting sequence of the multiple applications requested to be automatically started is confirmed according to the static configuration file, the starting sequence number, the starting identifier and the starting time consumption of each application in the multiple applications are obtained, and the first starting sequence of the multiple applications requested to be started is confirmed according to the starting sequence numbers. If the static configuration file of the mobile phone assistant of the application 360 comprises <2, ID1002 and 75ms >, the static configuration file of the browser 360 comprises <3, ID1003 and 300ms >, the static configuration file of the mobile phone guard 360 comprises <1, ID1001 and 15ms >, and the static configuration file of the desktop 360 comprises <4, ID1004 and 230ms >, the first starting sequence of the above 4 applications is as follows: 360 mobile guards, 360 mobile assistants, 360 browser static profiles and 360 desktops. The starting time of the 360-degree mobile phone guard is 15ms, the starting time of the 360-degree mobile phone assistant is 75ms, the starting time of the 360-degree browser is 300ms, and the starting time of the 360-degree desktop is 230 ms.
The processing unit 203 parses the dynamic running file to obtain a time weighting factor, modifies the startup time consumption of the applications based on the time weighting factor, and sorts the plurality of applications based on the modified startup time consumption to determine a second startup order. Preferably, the dynamic run file comprises a plurality of tuples, each tuple having the format < application identification, temporal weighting factor >. Preferably, the modifying, by the processing unit, the start-up elapsed time of the application based on the temporal weighting factor includes: the processing unit sums the startup elapsed time and the time weighting factor belonging to the same application to generate a modified startup elapsed time. Preferably, the processing unit determines the start-up time consumption and the time weighting factor belonging to the same application by using the application identification. Preferably, the temporal weighting factor is positive, negative or zero. Preferably, the temporal weighting factor is a positive maximum in time when the application requesting the automatic launch is a malicious application.
In the application, after the application is started, when it is found that the application is time-consuming to start, or malicious, a time weighting factor in a binary group in a corresponding application in a dynamic file is determined according to an application identifier, and the time weighting factor may be 50ms, 100ms, -100ms, 0ms, and the like. For example, the QQ time weighting factor is determined to be 200ms, the 360 cell phone guard time weighting factor is determined to be-10 ms, and the malicious application time weighting factor is determined to be a time maximum of a positive number of 8000ms or greater.
Preferably, when the application requesting the automatic start is a suspected malicious application, the time weighting factor is set to a positive time delay value, and the time delay value can enable the start time of the application requesting the automatic start to be later than the start time of the monitoring application. In the application, for a suspected malicious application, the time weighting factor of the suspected malicious application is set to a positive time delay value, for example, the time weighting factor of the application a is set to 200ms, 500ms, 2000ms, and the like, and the time delay value enables the starting time of the application requesting automatic starting to be later than the starting time of the monitoring application.
Preferably, the time weighting factor is set to a negative time reduction value when the application requesting the automatic start is a priority application. In the present application, for the priority application, the time weighting factor applied preferentially is set to a negative time reduction value, for example, the time weighting factor applied by B is set to-100 ms, -500ms, -2000ms, etc.
Preferably, the processing unit sorting the plurality of applications based on the modified launch time to determine the second launch order comprises: the processing unit orders the plurality of applications based on the modified ascending order of the launch elapsed times to determine a second launch order. In the application, based on the modified start-up time consumption of the application, for example, the time weighting factor of the QQ is determined to be 200ms, the start-up time consumption of the QQ is increased by 200 ms; determining the time weighting factor of the 360 mobile phone guard as-10 ms, and reducing the starting time of the 360 mobile phone guard by 10 ms; the plurality of applications are sorted based on the modified ascending order of the launch elapsed times to determine a second launch order.
And a broadcasting unit 204 which determines a start level for each of the plurality of applications according to the second start order, hierarchically broadcasts a notification message indicating system start to the plurality of applications based on the start level, so that each application can acquire the notification message according to the start level to implement start control for the plurality of applications. Preferably, the activation level comprises: a priority boot level, a normal boot level, a delayed boot level, and a prohibited boot level. Preferably, the broadcasting unit hierarchically broadcasting the notification message indicating the system start-up to the plurality of applications based on the start-up level includes: the broadcasting unit broadcasts a notification message indicating system startup to an application of a priority startup level. Preferably, the broadcasting unit broadcasts the notification message indicating the system start to the application of the normal start level a predetermined time after broadcasting the notification message indicating the system start to the application of the priority start level. Preferably, the broadcasting unit broadcasts a notification message indicating system startup to the application of the delayed startup level when it is determined that the application of the priority startup level and the application of the normal startup level have all been started.
In this application, the division of the start-up level for each of the plurality of applications according to the second start-up sequence is: the priority of starting level, such as 360 mobile phone guards and the like; a common boot level, such as 360 cell phone assistant; a delayed launch level, such as 360 browsers; the level of activation, such as malicious applications, is disabled. The notification message indicating system startup is broadcast to a plurality of applications hierarchically based on the startup level, so that each application can acquire the notification message according to the startup level to realize startup control for the plurality of applications. For example, the notification message indicating the system start is firstly broadcast to the application of the priority start level, and the notification message indicating the system start is broadcast to the application of the normal start level at a predetermined time after the notification message indicating the system start is broadcast to the application of the priority start level. Upon determining that both the application of the priority launch level and the application of the normal launch level have been launched, a notification message indicating system launch is broadcast to the application of the delayed launch level. The present application illustrates a hierarchical broadcast: the method comprises the steps of firstly broadcasting a notification message indicating system starting to a 360-degree mobile phone guard with a priority starting level, and broadcasting the notification message indicating system starting to a 360-degree mobile phone assistant with a common starting level in a preset time after the notification message indicating system starting is broadcast to an application with a priority starting level. Upon determining that the application of the priority launch level and the application of the normal launch level have all been launched, a notification message indicating system launch is broadcast to the 360 browsers of the delayed launch level.
Preferably, the broadcasting unit does not broadcast a notification message indicating system startup to an application of the prohibited startup level. In the application, for the application at the prohibited starting level, such as malicious application, the notification message indicating the system starting is not broadcasted to the malicious application or other types of applications at the prohibited starting level.
Preferably, the embodiment of the present invention provides a mobile terminal including or used for executing a system for performing start-up control based on hierarchical broadcasting, for example.
Fig. 3 is a diagram illustrating start-up control based on hierarchical broadcasting according to an embodiment of the present invention. As shown in fig. 3, the applications a-T have a first start-up sequence of 20 applications sorted by time spent starting. The application can be classified, for example, the application A-application F with the starting time not more than 200ms is divided into a priority starting level, the application G-application M with the starting time not more than 500ms is divided into a common starting level, the application N-application R with the starting time not more than 3000ms is divided into a delayed starting level, and the application S-application T with the starting time more than 3000ms is divided into a prohibited starting level. Acquiring an application A-application T time weighting factor, modifying the application starting time consumption by using the application time weighting factor, acquiring the modified starting time consumption, and sequencing the starting sequence according to the modified starting time consumption in an ascending order to acquire a second starting sequence of the application A-application T. The method comprises the steps of firstly broadcasting a notification message indicating system starting to an application with a priority starting level, for example, firstly broadcasting the notification message indicating system starting to an application which consumes no more than 200ms in starting; broadcasting the notification message indicating the system start to the application at the common start level in a preset time after the notification message indicating the system start is broadcast to the application at the priority start level, for example, broadcasting the notification message indicating the system start to the application which takes no more than 500ms to start; when determining that the applications at the priority starting level and the applications at the ordinary starting level are all started, broadcasting a notification message indicating system starting to the applications at the delayed starting level, for example, broadcasting the notification message indicating system starting to the applications which take less than 3000ms for starting; the application does not broadcast the notification message indicating the system start to the application of the prohibited start level, for example, the notification message indicating the system start is not broadcast to the application which takes more than 3000ms for starting. According to the method and the device, the starting level can be adjusted according to the condition of system resources, for example, when the system runs well or the number of started applications is not large, the applications which are started for less than 500ms or are started for longer time can be divided into the applications with the priority starting level. Or when the system runs slowly or the number of started applications is large, the applications which take less than 100ms to start or less to start can be classified as priority starting level applications. The division standard of the common starting level, the delayed starting level and the prohibited starting level can also be adjusted according to the actual running condition of the system, namely, the division standard of starting time consumption is increased or reduced.
The invention has been described with reference to a few embodiments. However, other embodiments of the invention than the one disclosed above are equally possible within the scope of the invention, as would be apparent to a person skilled in the art from the appended patent claims.
Generally, all terms used in the claims are to be interpreted according to their ordinary meaning in the technical field, unless explicitly defined otherwise herein. All references to "a/an/the [ device, component, etc ]" are to be interpreted openly as referring to at least one instance of said device, component, etc., unless explicitly stated otherwise. The steps of any system disclosed herein do not have to be performed in the exact order disclosed, unless explicitly stated.

Claims (31)

1. A method for start-up control based on hierarchical broadcasting, the method comprising:
registering system services which need to be loaded when a system is started and loading the registered system services;
in response to the completion of the loading of the system service, determining a first starting sequence of a plurality of applications which are requested to be automatically started according to a static configuration file, and acquiring the starting time consumption of each application in the plurality of applications;
analyzing the dynamic running file to obtain a time weighting factor, modifying the starting time consumption of the applications based on the time weighting factor, and sequencing the plurality of applications based on the modified starting time consumption to determine a second starting sequence; and
determining a launch level for each of the plurality of applications according to a second launch order, hierarchically broadcasting a notification message indicating system launch to the plurality of applications based on the launch level, such that each application can retrieve the notification message according to the launch level to enable launch control for the plurality of applications;
the modifying the starting time consumption of the application based on the time weighting factor comprises the following steps: summing the launch time and the time weighting factors belonging to the same application to generate a modified launch time;
determining starting time consumption and time weighting factors belonging to the same application by using the application identification;
the sorting the plurality of applications based on the modified launch time to determine a second launch order comprises: sorting the plurality of applications based on an ascending order of modified launch times to determine a second launch order;
when the application requesting automatic starting is a malicious application, the time weighting factor is the maximum time value of a positive number;
the time weighting factor is set to a negative time reduction value when the application requesting the automatic start is a priority application.
2. The method of claim 1, wherein the static configuration file comprises a plurality of triples, each triplet having a format of < start sequence number, application identification, time-to-start >.
3. The method of claim 2, determining a first launch order for the plurality of applications requesting automatic launch based on a launch order number.
4. The method of claim 1 or 2, wherein the dynamic run file comprises a plurality of duplets, each duplet having a format of < application identification, temporal weighting factor >.
5. The method of claim 4, the temporal weighting factor being a positive number, a negative number, or zero.
6. The method of claim 5, wherein the time weighting factor is set to a positive time delay value that enables the application requesting automatic launch to be launched later than the launch time of the monitoring application when the application requesting automatic launch is a suspected malicious application.
7. The method of claim 1, the launch level comprising: a priority boot level, a normal boot level, a delayed boot level, and a prohibited boot level.
8. The method of claim 7, the hierarchically broadcasting notification messages to the plurality of applications indicating system startup based on the startup level comprising: a notification message indicating system startup is broadcast to applications of a priority startup level.
9. The method of claim 8, broadcasting the notification message indicating system startup to the application of the normal startup level a predetermined time after broadcasting the notification message indicating system startup to the application of the priority startup level.
10. The method of claim 8, upon determining that the application of the priority launch level and the application of the normal launch level have all been launched, broadcasting a notification message indicating system launch to the application of the delayed launch level.
11. The method of any of claims 7-9, further comprising not broadcasting a notification message indicating system startup to an application at a prohibited startup level.
12. The method of claim 1, further comprising, prior to registering system services that need to be loaded at system startup: a user-level initial process is created.
13. The method of claim 12, prior to creating the user-level initial process, further comprising: in response to the user device powering up, the boot chip function reads the boot program from the read only memory and loads the boot program into the memory.
14. The method of claim 13, after loading the boot program into random memory, the boot program initializes the stack and hardware devices needed to run a kernel program.
15. The method of claim 14, after the initialization, running a kernel program that sets up caches, sets protected memory, sets up a plan list, and loads drivers, and creates a user-level initial process.
16. A system for start-up control based on hierarchical broadcasting, the system comprising:
the loading unit registers system services which need to be loaded when the system is started and loads the registered system services;
the system comprises an acquisition unit, a processing unit and a control unit, wherein the acquisition unit is used for determining a first starting sequence of a plurality of applications which request automatic starting according to a static configuration file in response to the completion of the loading of system services, and acquiring the starting time consumption of each application in the plurality of applications;
the processing unit is used for analyzing the dynamic running file to obtain a time weighting factor, modifying the starting consumed time of the applications based on the time weighting factor, and sequencing the plurality of applications based on the modified starting consumed time to determine a second starting sequence; and
a broadcasting unit that determines a start level for each of the plurality of applications according to a second start order, hierarchically broadcasts a notification message indicating system start to the plurality of applications based on the start level, so that each application can acquire the notification message according to the start level to implement start control for the plurality of applications;
the modification of the application startup time consumption by the processing unit based on the time weighting factor comprises the following steps: the processing unit sums the startup elapsed time and the time weighting factor belonging to the same application to generate a modified startup elapsed time;
wherein the processing unit determines a starting time consumption and a time weighting factor belonging to the same application by using the application identification;
the processing unit ordering the plurality of applications based on the modified launch time to determine a second launch order comprises: the processing unit sorts the plurality of applications based on an ascending order of modified launch elapsed times to determine a second launch order;
when the application requesting automatic starting is a malicious application, the time weighting factor is the maximum time value of a positive number;
the time weighting factor is set to a negative time reduction value when the application requesting the automatic start is a priority application.
17. The system of claim 16, wherein the static configuration file comprises a plurality of triples, each triplet having a format of < start sequence number, application identification, time-to-start >.
18. The system according to claim 17, wherein the obtaining unit determines a first start-up sequence of the plurality of applications requested to be automatically started up according to a start-up sequence number.
19. The system of claim 16 or 17, wherein the dynamic run file comprises a plurality of duplets, each duplet having a format of < application identification, temporal weighting factor >.
20. The system of claim 19, the temporal weighting factor is positive, negative, or zero.
21. The system of claim 19, wherein the time weighting factor is set to a positive time delay value that enables the application requesting automatic launch to be launched later than the launch time of the monitoring application when the application requesting automatic launch is a suspected malicious application.
22. The system of claim 17, the boot level comprising: a priority boot level, a normal boot level, a delayed boot level, and a prohibited boot level.
23. The system of claim 22, the broadcasting unit to broadcast notification messages indicating system startup to the plurality of applications hierarchically based on the startup level comprises: the broadcasting unit broadcasts a notification message indicating system startup to an application of a priority startup level.
24. The system of claim 23, the broadcasting unit broadcasts the notification message indicating the system start to the application of the general start level a predetermined time after broadcasting the notification message indicating the system start to the application of the priority start level.
25. The system of claim 24, the broadcasting unit broadcasts a notification message indicating system startup to an application of a delayed startup level upon determining that the application of the priority startup level and the application of the normal startup level have all been started.
26. The system according to any one of claims 23 to 25, wherein the broadcasting unit does not broadcast a notification message indicating system startup to an application of a startup disabled level.
27. The system of claim 16, further comprising an initialization unit to create a user-level initial process.
28. The system of claim 27, the initialization unit to, in response to a user device being powered on, boot chip functionality to read a boot program from read only memory and load the boot program into memory.
29. The system according to claim 28, wherein the initialization unit initializes a stack and hardware devices required for running a kernel program by the boot program after loading the boot program into a random access memory.
30. The system of claim 29, upon initialization by the initialization unit, running a kernel program that sets up caches, sets protected memory, sets up a schedule list, and loads drivers, and creates a user-level initial process.
31. A mobile terminal comprising or being adapted to carry out the system according to any of claims 16-30.
CN201711487271.4A 2017-12-29 2017-12-29 Method, system and mobile terminal for starting control based on hierarchical broadcast Active CN108228367B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711487271.4A CN108228367B (en) 2017-12-29 2017-12-29 Method, system and mobile terminal for starting control based on hierarchical broadcast

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711487271.4A CN108228367B (en) 2017-12-29 2017-12-29 Method, system and mobile terminal for starting control based on hierarchical broadcast

Publications (2)

Publication Number Publication Date
CN108228367A CN108228367A (en) 2018-06-29
CN108228367B true CN108228367B (en) 2021-07-27

Family

ID=62647519

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711487271.4A Active CN108228367B (en) 2017-12-29 2017-12-29 Method, system and mobile terminal for starting control based on hierarchical broadcast

Country Status (1)

Country Link
CN (1) CN108228367B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109783159B (en) * 2019-01-24 2022-03-29 武汉瓯越网视有限公司 Application starting method and device based on configuration information
CN110262847B (en) * 2019-05-14 2022-05-20 百度(中国)有限公司 Application program starting acceleration method and device and machine-readable storage medium
CN113055277B (en) * 2021-03-10 2023-04-25 维沃移动通信有限公司 Message notification method, device and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002351677A (en) * 2001-05-29 2002-12-06 Kawasaki Steel Systems R & D Corp System for controlling execution order of application program
CN104252363A (en) * 2013-06-25 2014-12-31 上海博泰悦臻电子设备制造有限公司 Rapid starting method for vehicle-mounted system based on Android system
CN104360885A (en) * 2014-11-18 2015-02-18 深圳市中兴移动通信有限公司 Start control method, start control device and start control terminal
CN106484473A (en) * 2016-09-29 2017-03-08 Tcl集团股份有限公司 A kind of application starts method and apparatus
CN106792185A (en) * 2016-11-15 2017-05-31 深圳Tcl数字技术有限公司 Starting-up method, opening device and Android smart machines
CN106874085A (en) * 2017-01-09 2017-06-20 深圳市金立通信设备有限公司 A kind of management method and terminal for opening application certainly
CN107402790A (en) * 2017-07-31 2017-11-28 广东欧珀移动通信有限公司 Startup method, apparatus, storage medium and the terminal of application program

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002351677A (en) * 2001-05-29 2002-12-06 Kawasaki Steel Systems R & D Corp System for controlling execution order of application program
CN104252363A (en) * 2013-06-25 2014-12-31 上海博泰悦臻电子设备制造有限公司 Rapid starting method for vehicle-mounted system based on Android system
CN104360885A (en) * 2014-11-18 2015-02-18 深圳市中兴移动通信有限公司 Start control method, start control device and start control terminal
CN106484473A (en) * 2016-09-29 2017-03-08 Tcl集团股份有限公司 A kind of application starts method and apparatus
CN106792185A (en) * 2016-11-15 2017-05-31 深圳Tcl数字技术有限公司 Starting-up method, opening device and Android smart machines
CN106874085A (en) * 2017-01-09 2017-06-20 深圳市金立通信设备有限公司 A kind of management method and terminal for opening application certainly
CN107402790A (en) * 2017-07-31 2017-11-28 广东欧珀移动通信有限公司 Startup method, apparatus, storage medium and the terminal of application program

Also Published As

Publication number Publication date
CN108228367A (en) 2018-06-29

Similar Documents

Publication Publication Date Title
CN108228367B (en) Method, system and mobile terminal for starting control based on hierarchical broadcast
EP3514684A1 (en) Memory recovery method and apparatus
US10146582B2 (en) Method for assigning priority to multiprocessor tasks and electronic device supporting the same
CN103220783B (en) Many SIM paging method of reseptance and system
CN106201740A (en) Broadcast message management method, device and equipment
CN106202427B (en) Application processing method and device and computer storage medium
CN108196892B (en) Method and device for customizing system starting process and mobile terminal
CN110262878B (en) Timed task processing method, device, equipment and computer readable storage medium
CN109901881A (en) Plug-in loading method, device, computer equipment and the storage medium of application program
CN103064705B (en) Computer system starting processing method and device
CN113791867B (en) Method and application for adjusting KVM virtual machine service process priority
CN109951549B (en) Network page access method and device and computer readable storage medium
US20220179680A1 (en) Application state control method apparatus, and terminal and computer-readable storage medium
CN111611028B (en) Method for starting application program of vehicle-mounted information entertainment system and electronic equipment
CN113439252B (en) Terminal control method and device, storage medium and electronic equipment
CN110851328B (en) Method for detecting abnormal power failure of password card in PKCS #11 application
CN108121577A (en) A kind of method, equipment and mobile terminal for being optimized to system operation
CN110244974B (en) Application program maintenance control method, device, server, terminal and storage medium
CN113572701A (en) Service interface flow control method, device, equipment and storage medium
CN112559063A (en) CPU switching method and device, intelligent terminal and storage medium
CN107783825B (en) Multi-background process starting method and device for mobile terminal and mobile terminal
CN111309385B (en) Interrupt awakening method and device, electronic equipment and readable storage medium
CN112817746B (en) CPU power adjusting method, device, equipment and readable storage medium
CN114997187B (en) Method for recommending translation service and electronic equipment
CN117177233A (en) Method, system and device for monitoring Internet of things card

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