CN109445994A - Starting processing method, device, terminal device and storage medium - Google Patents
Starting processing method, device, terminal device and storage medium Download PDFInfo
- Publication number
- CN109445994A CN109445994A CN201811340203.XA CN201811340203A CN109445994A CN 109445994 A CN109445994 A CN 109445994A CN 201811340203 A CN201811340203 A CN 201811340203A CN 109445994 A CN109445994 A CN 109445994A
- Authority
- CN
- China
- Prior art keywords
- terminal device
- threshold value
- time threshold
- reboot time
- booting
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1415—Saving, restoring, recovering or retrying at system level
- G06F11/1441—Resetting or repowering
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Quality & Reliability (AREA)
- Stored Programmes (AREA)
Abstract
The embodiment of the present application discloses a kind of starting processing method, device, terminal device and storage medium, this method, and when this programme detects power-on event, setting starting up, which indicates, carries out timing;Reboot time threshold value is obtained, the reboot time threshold value is determined according at least one of the booting number of terminal device, the application program of installation and system upgrade parameter;If booting end mark is not detected in the reboot time threshold value, the terminal device is restarted, avoid in start process and the case where card cartoon picture occur, improve booting efficiency.
Description
Technical field
The invention relates to computer technology more particularly to a kind of starting processing method, device, terminal device and deposit
Storage media.
Background technique
With the raising of terminal device popularity, more and more users' using terminal equipment executes various function
Can be to meet self-demand, such as using terminal equipment reads text, viewing video, listens to music, plays game.
Terminal device during having been at boot animation if there is certain abnormal factors, is thus led when restarting
Cause is unable to complete successfully start process, in the prior art, setting detect thread by way of come monitor system boot process with
Realize smoothly booting, however this kind of mode needs to improve there are design defect.
Summary of the invention
This application provides a kind of starting processing method, device, terminal device and storage mediums, avoid in start process
There is the case where card cartoon picture, improves booting efficiency.
In a first aspect, the embodiment of the present application provides a kind of starting processing method, comprising:
When detecting power-on event, setting starting up, which indicates, carries out timing;
Reboot time threshold value is obtained, the reboot time threshold value is according to the booting number of terminal device, the application journey of installation
At least one of sequence and system upgrade parameter determine;
If booting end mark is not detected in the reboot time threshold value, the terminal device is restarted.
Second aspect, the embodiment of the present application also provides a kind of boot treatment devices, comprising:
Traffic sign placement module, when for detecting power-on event, setting starting up, which indicates, carries out timing;
Threshold value obtains module, for obtaining reboot time threshold value, booting of the reboot time threshold value according to terminal device
At least one of number, the application program of installation and system upgrade parameter determine;
Module is restarted, if restarted described for booting end mark to be not detected in the reboot time threshold value
Terminal device.
The third aspect, the embodiment of the present application also provides a kind of terminal devices, comprising: processor, memory and storage
On a memory and the computer program that can run on a processor, the processor are realized such as when executing the computer program
Starting processing method described in the embodiment of the present application.
Fourth aspect, the embodiment of the present application also provides a kind of storage medium comprising terminal device executable instruction, institutes
Terminal device executable instruction is stated when being executed by terminal device processor for executing booting described in the embodiment of the present application
Reason method.
In the present solution, setting starting up, which indicates, carries out timing when detecting power-on event;Reboot time threshold value is obtained,
In the booting number of the reboot time threshold value foundation terminal device, the application program and system upgrade parameter of installation at least
A kind of determination;If booting end mark is not detected in the reboot time threshold value, restarts the terminal device, avoid
There is the case where card cartoon picture in start process, improves booting efficiency.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other
Feature, objects and advantages will become more apparent upon:
Fig. 1 is a kind of flow chart of starting processing method provided by the embodiments of the present application;
Fig. 2 is the flow chart of another starting processing method provided by the embodiments of the present application;
Fig. 3 is the flow chart of another starting processing method provided by the embodiments of the present application;
Fig. 4 is the flow chart of another starting processing method provided by the embodiments of the present application;
Fig. 5 is a kind of structural block diagram of boot treatment device provided by the embodiments of the present application;
Fig. 6 is a kind of structural schematic diagram of terminal device provided by the embodiments of the present application.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is for explaining the application, rather than the restriction to the application.It also should be noted that for the ease of retouching
It states, part relevant to the application is illustrated only in attached drawing rather than entire infrastructure.
Fig. 1 is a kind of flow chart of starting processing method provided by the embodiments of the present application, is applicable to opening for terminal device
Machine processing, this method can be executed by terminal device provided by the embodiments of the present application, the boot treatment device of the terminal device
The mode that software and/or hardware can be used is realized, as shown in Figure 1, concrete scheme provided in this embodiment is as follows:
Step S101, when detecting power-on event, setting starting up, which indicates, carries out timing.
Terminal device according to electrifying condition can be divided into shutdown and booting two states, power-on event can be terminal device by
The event triggered after power key is pressed under off-mode, or touching when power key is restarted is pressed under open state for terminal device
The event of hair.Such as: meeting automatic shutdown after the battery capacity deficiency in terminal device after recharging, can turn back on;User
When Caton occurs in using terminal equipment, terminal device realization can be restarted manually and is turned back on;Terminal device completes system liter
It can be automatically closed and restart after grade.
In terminal device start-up course, by taking the terminal device for loading android system as an example, system since ROM open
Dynamic, then bootload program to RAM executes bootstrap, and external RAM is detected in bootstrap operational process and carries out second
The program in stage loads, and completes the work such as setting network, memory, and build kernel running environment, builds in kernel running environment
After, execute setting caching, protected storage, list of schedules, load driver etc., the activation system after kernel loaded
First process (init process) and accordingly show boot animation, wherein the init process parses init.rc script and constructs
System initial launch form, during boot animation display, other most of service routines of system are in the init.rc script
Middle record is simultaneously consecutively initiated.Wherein, system service (system_server) is in start-up course early period, system_server meeting
It is in congestion situations for some reason, and detects system_server obstruction and mainly passes through system_server
Watchdog thread is detected, in the case where the preliminary stage watchdog thread of start process does not create also, if
System_server is in congestion situations for some reason, can not continue subsequent starting procedure, watchdog thread always
It does not create also, can not detect this congestion situations, will cause card boot animation always cannot be started up the case where entering desktop.
In one embodiment, when detecting power-on event, setting starting up, which indicates, carries out timing, starting up mark
Aim at be switched on the initial stage be set, illustratively, the power-on event can be system ROM starting event or RAM execute
Bootstrap event or to detect power command etc. that power key is pressed, the specific opportunity that active flag is arranged can
To be that kernel is completed after loading, or in init executive process, the program of the application can be the preparatory compiling in write-in ROM
The program of implantation.Start to carry out timing accordingly after starting up's mark is set, starting up mark (is such as defined as
BootValue it) can be indicated with preset number code, such as 1 or 0, illustratively, can be and detecting that bootValue is raw
At or bootValue value be 1 when start carry out clock timing.
Step S102, reboot time threshold value, the booting number of the reboot time threshold value foundation terminal device, installation are obtained
Application program and at least one of system upgrade parameter determine.
In one embodiment, reboot time threshold value is the parameter whether characterization needs controlling terminal equipment to be restarted,
Reboot time threshold value according to the booting number of terminal device, the application program of installation and in system upgrade parameter at least one
Kind determines.Its not immobilize, but the different conditions and service condition according to terminal device and update.Wherein, terminal
The booting number of equipment includes 0 time, 1 time, it is 2 inferior, the application program of installation is the third party's APP program installed in terminal device
And/or system is from tape program, whether system upgrade parameter includes full dose upgrade parameter, increment upgrade parameter, currently upgrades and finish.
If booting end mark step S103, is not detected in the reboot time threshold value, the terminal is restarted
Equipment.
Wherein, booting end mark is to characterize the mark that terminal device is smoothly switched on illustratively to can be and detecting
The mark being configured after broadcast (android.intent.action.BOOT_COMPLETED) is completed in booting, can also be inspection
It measures when booting screen locking picture is opened (as the isScreenOn method detection by PowerManager determines whether to enter screen locking
Picture) mark that is configured.In one embodiment, if detecting that start process terminates, booting end mark is set,
Illustratively, parameter bootComoleted can be such as generated, also can be used can open by the way of generating booting end mark
The mode of the different set numerical value of machine active flag be configured (such as starting up's flag set be 1, be switched on end mark set
For 0).In one embodiment, which can be 2 minutes, carry out timing if indicated from setting starting up
Booting end mark is not detected within 2 minutes afterwards, then determines that it is booting exception, restart terminal device accordingly.
As shown in the above, it is just switched in such a way that setting starting up indicates and carries out timing in start process
The short time consumption of process is restarted if the time is more than certain value, avoids and be stuck in out in terminal device start process
Machine picture causes to be continuously in the problem of wait state can not be successfully booting and cannot be restarted automatically due to abnormal, improves
Be switched on efficiency, wherein starting up mark is configured after detecting power-on event one, when the processing of the power-on event
Sequence optimizes starting procedure before system service program starting.
Fig. 2 is the flow chart of another starting processing method provided by the embodiments of the present application, optionally, is opened in the setting
Before machine active flag, further includes: the quantity for determining the application program installed in the terminal device, according to the application program
Quantity determine reboot time threshold value and recorded.As shown in Fig. 2, technical solution is specific as follows:
Step S201, the quantity for determining the application program installed in the terminal device, the number according to the application program
It measures and determines reboot time threshold value and recorded.
In one embodiment, the length of reboot time threshold value is true according to the quantity for the application program installed in terminal device
It is fixed.Wherein, the quantity of different application programs generates Different Effects to the starting time of terminal device.Illustratively, such as following table
It is shown:
Quantity n | n<10 | 10≤n<20 | 20≤n<30 | 30≤n |
Reboot time threshold value | 120 seconds | 140 seconds | 160 seconds | 180 seconds |
In one embodiment, when the quantity for detecting application program changes, as journey is applied in user's batch unloading
Sequence, or after multiple application programs are newly installed, redefine the reboot time threshold value accordingly and recorded, subsequent heavy
Booting exception, stuck judgement are made whether during opening.
Step S202, when detecting power-on event, setting starting up, which indicates, carries out timing.
Step S203, reboot time threshold value is obtained.
It should be noted that the step of acquisition reboot time threshold value, can be before step S202, herein without limitation.
Step S204, open state is obtained.
Wherein, open state includes booting end state and boot treatment state, illustratively, when getting terminal device
It into locking screen interface or detects that booting terminates broadcast, then can determine that terminal device start process terminates, if terminal device
Not entering locking screen interface or booting is not detected terminates broadcast, then can determine that terminal device is in boot treatment state.
Step S205, judge whether start process terminates, if so, S206 is thened follow the steps, it is no to then follow the steps S207.
Step S206, setting booting end mark, stops timing.
Step S207, judge whether timing time is greater than reboot time threshold value, if so, S208 is thened follow the steps, if
It is no, then follow the steps S204.
Step S208, restart terminal device.
It can be seen from the above, the quantity of the application program according to installing terminal equipment determines restarting terminal device time threshold,
Booting efficiency is further improved, is avoided since program load causes start process to be slowly identified as the abnormal progress that is switched on
The problem of restarting.
Fig. 3 is the flow chart of another starting processing method provided by the embodiments of the present application, optionally, is opened in the setting
Before machine active flag, further includes: after terminal device starting, if detecting software upgrade events, according to described in
The upgrading type of software upgrade events determines reboot time threshold value and is recorded.As shown in figure 3, technical solution is specific as follows:
Step S301, after terminal device starts, if detecting software upgrade events, according to the software liter
The upgrading type of grade event determines reboot time threshold value and is recorded.
In one embodiment, the upgrading class if detecting software upgrade events, according to the software upgrade events
Type determines reboot time threshold value and is recorded.Wherein, upgrading type includes the third party application liter of system upgrade, installation
Grade, system upgrade include increment upgrading and full dose upgrading again.It is poor that influence of the different upgrading types to starting up's time exists
Different, the determination of specific reboot time threshold value can be in original reboot time threshold value (or to default reboot time threshold value)
On the basis of increase corresponding duration, can also be and specific reboot time threshold value is directly determined according to the upgrade case of terminal device
Numerical value, by taking the first situation as an example, for details, reference can be made to following tables:
Upgrade type | Increment upgrading | Full dose upgrading | Third-party application upgrading |
Reboot time threshold value | Default value+20 seconds | Default value+40 seconds | Default value+15 seconds |
Illustratively, the default value on this in table can be 110 seconds.
Step S302, when detecting power-on event, setting starting up, which indicates, carries out timing.
Step S303, reboot time threshold value is obtained.
It should be noted that the step of acquisition reboot time threshold value, can be before step S302, herein without limitation.
Step S304, open state is obtained.
Step S305, judge whether start process terminates, if so, S306 is thened follow the steps, it is no to then follow the steps S307.
Step S306, setting booting end mark, stops timing.
Step S307, judge whether timing time is greater than reboot time threshold value, if so, S308 is thened follow the steps, if
It is no, then follow the steps S304.
Step S308, restart terminal device.
It can be seen from the above, the upgrade case according to terminal device system and the application program of installation determines reboot time threshold
Value is avoided and needs to carry out software variation optimization after being restarted due to program upgrading and then extend the available machine time, leads to start process
Slowly it is identified as booting abnormal the problem of being restarted.
In one embodiment, after detecting restarting terminal device, reboot time threshold value is redefined.Specifically
, it is restarted automatically if it is terminal device caused by software upgrade events, after restarting, replying reboot time threshold value is
Numerical value before software upgrading realizes that reboot time threshold value is adjusted according to the dynamic of the upgrading situation of different terminal devices.
Fig. 4 is the flow chart of another starting processing method provided by the embodiments of the present application, optionally, the reboot time
Threshold value determines packet according at least one of the booting number of terminal device, the application program of installation and system upgrade parameter
Include: whether foundation terminal device be the quantity for the application program for first powering on, installing and be first powering on after upgrading
Determine reboot time threshold value.As shown in figure 4, technical solution is specific as follows:
Step S401, whether it is the quantity for the application program for first powering on, installing and whether is liter according to terminal device
Determining reboot time threshold value is first powered on after grade.
When in one embodiment, for the booting of a large amount of test machines and the terminal device for the user for participating in data exchange
Between and corresponding whether be the quantity for the application program for first powering on, installing and whether be the feelings such as to first power on after upgrading
Condition determines the different corresponding reboot time threshold values of terminal device booting situation.Specifically, by obtain starting up mark and
Time interval when booting end mark is set is to determine the available machine time, correspondingly, obtaining corresponding to the secondary available machine time
Whether whether terminal device be the quantity for the application program for first powering on, installing and be the different ginsengs such as to first power on after upgrading
Situation is measured finally to determine suitable reboot time threshold value corresponding in different parameters.Illustratively, it is assumed that have 3 surveys
Try equipment, respectively equipment 1, equipment 2 and equipment 3, wherein equipment 1 is to first power on, and the number of applications of installation is 15, equipment 2
The number of applications of installation is 15, non-to first power on nor first power on after upgrading, and equipment 3 is to first power on after upgrading, installation
Number of applications is 15, and the corresponding available machine time is respectively 120 seconds, 80 seconds, 100 seconds, thus can determine that and is in number of applications
In the case where 15, reboot time threshold value when first powering on can be 130 seconds, and (available machine time slightly higher than tested is kept away
Exempt from accidentally to restart), in the case where number of applications is 15, corresponding reboot time threshold value is first powered on after upgrading be can be 110 seconds.
It should be noted that the explanation of the being given for example only property of example, in the case where obtaining large amount of data information, can for whether
It for the quantity of application program that first powers on, install and whether is that different situations such as first power on after upgrading provide more adduction
The reboot time threshold value that reason, diversification determine optionally can generate mapping table after acquiring mass data, work as being directed to
Preceding terminal device carries out the timing really of reboot time threshold value, can be according to the different parameters recorded in the mapping table (headed by no
It is secondary booting, installation application program quantity and whether be upgrading after first powering on) control present terminal equipment reality
Parameter (quantity 40 of such as non-application program for first powering on, being switched on after non-upgrading, installing) provides corresponding reboot time threshold value.
In one embodiment, by obtaining the application list of terminal device, and remember according in the application list
The quantity of the application program of record determines the quantity for the application program that terminal device is currently installed on;For whether be upgrading after for the first time
The determination of booting illustratively obtains the version model of terminal device, corresponding to mark after the version model changes
To be first powered on after upgrading;For whether being the determination first powered on, can when terminal device dispatches from the factory labeled as first powering on,
After first powering on, corresponding label is to first power on.It should be noted that determining whether terminal device is to open for the first time
Machine, installation application program quantity and whether be upgrading after the mode first powered on be not limited to aforesaid way, it is above-mentioned
The merely illustrative effect of mode, does not constitute the restriction to the application.
Step S402, when detecting power-on event, setting starting up, which indicates, carries out timing.
Step S403, reboot time threshold value is obtained.
It should be noted that the step of acquisition reboot time threshold value, can be before step S402, herein without limitation.
Step S404, open state is obtained.
Step S405, judge whether start process terminates, if so, S406 is thened follow the steps, it is no to then follow the steps S407.
Step S406, setting booting end mark, stops timing.
Step S407, judge whether timing time is greater than reboot time threshold value, if so, S408 is thened follow the steps, if
It is no, then follow the steps S404.
Step S408, restart terminal device.
It can be seen from the above, being provided by available machine time of the big data analysis multiple terminal devices under different parameter situations
Reasonable reboot time threshold value is used for the determination of present terminal equipment reboot time threshold value, and the determination of reboot time threshold value is more smart
Really, booting efficiency is improved, avoids and accidentally restarts, and is restarted at the first time in the event of an anomaly.
Fig. 5 is a kind of structural block diagram of boot treatment device provided by the embodiments of the present application, and the device is above-mentioned for executing
The starting processing method that embodiment provides, has the corresponding functional module of execution method and beneficial effect.As shown in figure 5, the dress
Set and specifically include: traffic sign placement module 101, threshold value obtain module 102 and restart module 103, wherein
Traffic sign placement module 101, when for detecting power-on event, setting starting up, which indicates, carries out timing.
In one embodiment, when detecting power-on event, setting starting up, which indicates, carries out timing, starting up mark
Aim at be switched on the initial stage be set, illustratively, the power-on event can be system ROM starting event or RAM execute
Bootstrap event or to detect power command etc. that power key is pressed, the specific opportunity that active flag is arranged can
To be that kernel is completed after loading, or in init executive process, the program of the application can be the preparatory compiling in write-in ROM
The program of implantation.Start to carry out timing accordingly after starting up's mark is set, starting up mark (is such as defined as
BootValue it) can be indicated with preset number code, such as 1 or 0, illustratively, can be and detecting that bootValue is raw
At or bootValue value be 1 when start carry out clock timing.
Threshold value obtains module 102, and for obtaining reboot time threshold value, the reboot time threshold value is opened according to terminal device
At least one of machine number, the application program of installation and system upgrade parameter determine.
In one embodiment, reboot time threshold value is the parameter whether characterization needs controlling terminal equipment to be restarted,
Reboot time threshold value according to the booting number of terminal device, the application program of installation and in system upgrade parameter at least one
Kind determines.Its not immobilize, but the different conditions and service condition according to terminal device and update.Wherein, terminal
The booting number of equipment includes 0 time, 1 time, it is 2 inferior, the application program of installation is the third party's APP program installed in terminal device
And/or system is from tape program, whether system upgrade parameter includes full dose upgrade parameter, increment upgrade parameter, currently upgrades and finish.
Module 103 is restarted, if restarting institute for booting end mark to be not detected in the reboot time threshold value
State terminal device.
Wherein, booting end mark is to characterize the mark that terminal device is smoothly switched on illustratively to can be and detecting
The mark being configured after broadcast (android.intent.action.BOOT_COMPLETED) is completed in booting, can also be inspection
It measures when booting screen locking picture is opened (as the isScreenOn method detection by PowerManager determines whether to enter screen locking
Picture) mark that is configured.In one embodiment, if detecting that start process terminates, booting end mark is set,
Illustratively, parameter bootComoleted can be such as generated, also can be used can open by the way of generating booting end mark
The mode of the different set numerical value of machine active flag be configured (such as starting up's flag set be 1, be switched on end mark set
For 0).In one embodiment, which can be 2 minutes, carry out timing if indicated from setting starting up
Booting end mark is not detected within 2 minutes afterwards, then determines that it is booting exception, restart terminal device accordingly.
As shown in the above, it is just switched in such a way that setting starting up indicates and carries out timing in start process
The short time consumption of process is restarted if the time is more than certain value, avoids and be stuck in out in terminal device start process
Machine picture causes to be continuously in the problem of wait state can not be successfully booting and cannot be restarted automatically due to abnormal, improves
Be switched on efficiency, wherein starting up mark is configured after detecting power-on event one, when the processing of the power-on event
Sequence optimizes starting procedure before system service program starting.
In a possible embodiment, the traffic sign placement module 101 is also used to:
After the acquisition reboot time threshold value, if detecting that start process terminates, booting end mark is set,
Wherein, the time interval of the setting time of starting up's mark and the booting end mark is less than the reboot time threshold
Value.
In a possible embodiment, further include threshold setting module 104, be used for:
Before setting starting up mark, the quantity for the application program installed in the terminal device is determined, according to
Reboot time threshold value is determined according to the quantity of the application program and is recorded.
In a possible embodiment, the threshold setting module 104 is specifically used for:
Before setting starting up mark, after terminal device starting, if detecting software upgrading thing
Part then determines reboot time threshold value according to the upgrading type of the software upgrade events and is recorded.
In a possible embodiment, the threshold setting module 104 is specifically used for:
In the determining reboot time threshold value and after being recorded, after detecting the restarting terminal device,
Redefine reboot time threshold value.
In a possible embodiment, the threshold setting module 104 is specifically used for:
According to terminal device whether be the application program for first powering on, install quantity and whether be upgrade after for the first time
It is switched on and determines reboot time threshold value.
In a possible embodiment, the threshold setting module 104 is specifically used for:
Determine terminal device whether be the application program for first powering on, installing quantity and whether be upgrading after for the first time
Booting;
Obtain mapping table, according to the terminal device whether be the quantity for the application program for first powering on, installing with
It and whether is that first powering on after upgrading determines reboot time threshold value with the mapping table, wherein the mapping table
Whether record is whether the quantity for the application program for first powering on, installing and is to first power on corresponding difference after upgrading
Reboot time threshold value, the mapping table records according to the available machine time of at least two terminal devices of acquisition and determines.
The present embodiment provides a kind of terminal device on the basis of the various embodiments described above, and Fig. 6 is that the embodiment of the present application mentions
The structural schematic diagram of a kind of terminal device supplied, as shown in fig. 6, the terminal device 200 includes: memory 201, processor
(Central Processing Unit, CPU) 202, Peripheral Interface 203, RF (Radio Frequency, radio frequency) circuit 205,
Voicefrequency circuit 206, loudspeaker 211, power management chip 208, input/output (I/O) subsystem 209, touch screen 212, Wifi
Module 213, other input/control devicess 210 and outside port 204, these components pass through one or more communication bus or
Signal wire 207 communicates.
It should be understood that graphic terminal 200 is only an example of terminal device, and terminal device 200
It can have than shown in the drawings more or less component, can combine two or more components, or can be with
It is configured with different components.Various parts shown in the drawings can include one or more signal processings and/or dedicated
It is realized in the combination of hardware, software or hardware and software including integrated circuit.
Below just the terminal device provided in this embodiment for boot treatment be described in detail, the terminal device with
For smart phone.
Memory 201, the memory 201 can be accessed by CPU202, Peripheral Interface 203 etc., and the memory 201 can
It can also include nonvolatile memory to include high-speed random access memory, such as one or more disk memory,
Flush memory device or other volatile solid-state parts.
The peripheral hardware that outputs and inputs of equipment can be connected to CPU202 and deposited by Peripheral Interface 203, the Peripheral Interface 203
Reservoir 201.
I/O subsystem 209, the I/O subsystem 209 can be by the input/output peripherals in equipment, such as touch screen 212
With other input/control devicess 210, it is connected to Peripheral Interface 203.I/O subsystem 209 may include 2091 He of display controller
For controlling one or more input controllers 2092 of other input/control devicess 210.Wherein, one or more input controls
Device 2092 processed receives electric signal from other input/control devicess 210 or sends electric signal to other input/control devicess 210,
Other input/control devicess 210 may include physical button (push button, rocker buttons etc.), dial, slide switch, behaviour
Vertical pole clicks idler wheel.It is worth noting that input controller 2092 can with it is following any one connect: keyboard, infrared port,
The indicating equipment of USB interface and such as mouse.
Touch screen 212, the touch screen 212 are the input interface and output interface between user terminal and user, can
It is shown to user depending on output, visual output may include figure, text, icon, video etc..
Display controller 2091 in I/O subsystem 209 receives electric signal from touch screen 212 or sends out to touch screen 212
Electric signals.Touch screen 212 detects the contact on touch screen, and the contact that display controller 2091 will test is converted to and is shown
The interaction of user interface object on touch screen 212, i.e. realization human-computer interaction, the user interface being shown on touch screen 212
Object can be the icon of running game, the icon for being networked to corresponding network etc..It is worth noting that equipment can also include light
Mouse, light mouse are the extensions for the touch sensitive surface for not showing the touch sensitive surface visually exported, or formed by touch screen.
RF circuit 205 is mainly used for establishing the communication of mobile phone Yu wireless network (i.e. network side), realizes mobile phone and wireless network
The data receiver of network and transmission.Such as transmitting-receiving short message, Email etc..Specifically, RF circuit 205 receives and sends RF letter
Number, RF signal is also referred to as electromagnetic signal, and RF circuit 205 converts electrical signals to electromagnetic signal or electromagnetic signal is converted to telecommunications
Number, and communicated by the electromagnetic signal with communication network and other equipment.RF circuit 205 may include for executing
The known circuit of these functions comprising but it is not limited to antenna system, RF transceiver, one or more amplifiers, tuner, one
A or multiple oscillators, digital signal processor, CODEC (COder-DECoder, coder) chipset, user identifier mould
Block (Subscriber Identity Module, SIM) etc..
Voicefrequency circuit 206 is mainly used for receiving audio data from Peripheral Interface 203, which is converted to telecommunications
Number, and the electric signal is sent to loudspeaker 211.
Loudspeaker 211 is reduced to sound for mobile phone to be passed through RF circuit 205 from the received voice signal of wireless network
And the sound is played to user.
Power management chip 208, the hardware for being connected by CPU202, I/O subsystem and Peripheral Interface are powered
And power management.
It is arbitrarily real that the application can be performed in the boot treatment device and terminal device of the terminal device provided in above-described embodiment
The starting processing method for applying terminal device provided by example has and executes the corresponding functional module of this method and beneficial effect.Not
The technical detail of detailed description in the above-described embodiments, reference can be made to the booting of terminal device provided by the application any embodiment
Processing method.
The embodiment of the present application also provides a kind of storage medium comprising terminal device executable instruction, and the terminal device can
It executes instruction when being executed by terminal device processor for executing a kind of starting processing method, this method comprises:
When detecting power-on event, setting starting up, which indicates, carries out timing;
Reboot time threshold value is obtained, the reboot time threshold value is according to the booting number of terminal device, the application journey of installation
At least one of sequence and system upgrade parameter determine;
If booting end mark is not detected in the reboot time threshold value, the terminal device is restarted.
In a possible embodiment, after the acquisition reboot time threshold value, further includes:
If detecting that start process terminates, booting end mark is set, wherein starting up mark and described
The time interval of the setting time for the end mark that is switched on is less than the reboot time threshold value.
In a possible embodiment, before setting starting up mark, further includes:
The quantity for determining the application program installed in the terminal device, the quantity determination according to the application program are restarted
Time threshold is simultaneously recorded.
In a possible embodiment, before setting starting up mark, further includes:
After terminal device starting, if detecting software upgrade events, according to the software upgrade events
Upgrading type determines reboot time threshold value and is recorded.
In a possible embodiment, in the determining reboot time threshold value and after being recorded, further includes:
After detecting the restarting terminal device, reboot time threshold value is redefined.
In a possible embodiment, booting number according to terminal device of the reboot time threshold value, answering of installing
Include: with the determination of at least one of program and system upgrade parameter
According to terminal device whether be the application program for first powering on, install quantity and whether be upgrade after for the first time
It is switched on and determines reboot time threshold value.
In a possible embodiment, whether the foundation terminal device is the application program for first powering on, installing
Quantity and whether be upgrading after the determining reboot time threshold value that first powers on include:
Determine terminal device whether be the application program for first powering on, installing quantity and whether be upgrading after for the first time
Booting;
Obtain mapping table, according to the terminal device whether be the quantity for the application program for first powering on, installing with
It and whether is that first powering on after upgrading determines reboot time threshold value with the mapping table, wherein the mapping table
Whether record is whether the quantity for the application program for first powering on, installing and is to first power on corresponding difference after upgrading
Reboot time threshold value, the mapping table records according to the available machine time of at least two terminal devices of acquisition and determines.
Storage medium --- any various types of memory devices or storage equipment.Term " storage medium " is intended to wrap
It includes: install medium, such as CD-ROM, floppy disk or magnetic tape equipment;Computer system memory or random access memory, such as
DRAM, DDR RAM, SRAM, EDO RAM, Lan Basi (Rambus) RAM etc.;Nonvolatile memory, such as flash memory, magnetic medium
(such as hard disk or optical storage);Register or the memory component of other similar types etc..Storage medium can further include other
Memory of type or combinations thereof.In addition, storage medium can be located at program in the first computer system being wherein performed,
Or can be located in different second computer systems, second computer system is connected to the by network (such as internet)
One computer system.Second computer system can provide program instruction to the first computer for executing." storage is situated between term
Matter " may include may reside in different location (such as by network connection different computer systems in) two or
More storage mediums.Storage medium can store the program instruction that can be performed by one or more processors and (such as implement
For computer program).
Certainly, a kind of storage medium comprising computer executable instructions, computer provided by the embodiment of the present application
The starting processing method operation that executable instruction is not limited to the described above, can also be performed provided by the application any embodiment
Relevant operation in starting processing method.
Note that above are only the preferred embodiment and institute's application technology principle of the application.It will be appreciated by those skilled in the art that
The application is not limited to specific embodiment described here, be able to carry out for a person skilled in the art it is various it is apparent variation,
The protection scope readjusted and substituted without departing from the application.Therefore, although being carried out by above embodiments to the application
It is described in further detail, but the application is not limited only to above embodiments, in the case where not departing from the application design, also
It may include more other equivalent embodiments, and scope of the present application is determined by the scope of the appended claims.
Claims (10)
1. starting processing method characterized by comprising
When detecting power-on event, setting starting up, which indicates, carries out timing;
Obtain reboot time threshold value, the reboot time threshold value according to the booting number of terminal device, installation application program with
And at least one of system upgrade parameter determines;
If booting end mark is not detected in the reboot time threshold value, the terminal device is restarted.
2. the method according to claim 1, wherein after the acquisition reboot time threshold value, further includes:
If detecting that start process terminates, booting end mark is set, wherein starting up's mark and the booting
The time interval of the setting time of end mark is less than the reboot time threshold value.
3. the method according to claim 1, wherein before setting starting up mark, further includes:
The quantity for determining the application program installed in the terminal device, the quantity according to the application program determine reboot time
Threshold value is simultaneously recorded.
4. the method according to claim 1, wherein before setting starting up mark, further includes:
Upgrading after terminal device starting, if detecting software upgrade events, according to the software upgrade events
Type determines reboot time threshold value and is recorded.
5. according to the method described in claim 4, it is characterized in that, in the determining reboot time threshold value and carrying out recording it
Afterwards, further includes:
After detecting the restarting terminal device, reboot time threshold value is redefined.
6. the method according to claim 1, wherein booting time of the reboot time threshold value according to terminal device
Number, the application program of installation and the determination of at least one of system upgrade parameter include:
Whether whether foundation terminal device be the quantity for the application program for first powering on, installing and be first powering on after upgrading
Determine reboot time threshold value.
7. according to the method described in claim 6, it is characterized in that, whether the foundation terminal device is to first power on, install
Application program quantity and whether be upgrading after the determining reboot time threshold value that first powers on include:
Determine whether terminal device is the quantity for the application program for first powering on, installing and whether is opening after upgrading for the first time
Machine;
Whether acquisition mapping table is the quantity for the application program for first powering on, installing according to the terminal device and is
It is no to determine reboot time threshold value with the mapping table for first powering on after upgrading, wherein the mapping table record
Whether for the quantity of application program that first powers on, install and whether be different weights corresponding to first powering on after upgrading
Time threshold is opened, the mapping table is recorded according to the available machine time of at least two terminal devices of acquisition and determined.
8. boot treatment device characterized by comprising
Traffic sign placement module, when for detecting power-on event, setting starting up, which indicates, carries out timing;
Threshold value obtains module, for obtaining reboot time threshold value, the reboot time threshold value according to terminal device booting number,
At least one of application program and system upgrade parameter of installation determine;
Module is restarted, if restarting the terminal for booting end mark to be not detected in the reboot time threshold value
Equipment.
9. a kind of terminal device, comprising: processor, memory and storage are on a memory and the meter that can run on a processor
Calculation machine program, which is characterized in that the processor is realized when executing the computer program such as any one of claim 1-7 institute
The starting processing method stated.
10. a kind of storage medium comprising terminal device executable instruction, which is characterized in that the terminal device executable instruction
When being executed by terminal device processor for executing such as starting processing method of any of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811340203.XA CN109445994A (en) | 2018-11-12 | 2018-11-12 | Starting processing method, device, terminal device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811340203.XA CN109445994A (en) | 2018-11-12 | 2018-11-12 | Starting processing method, device, terminal device and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109445994A true CN109445994A (en) | 2019-03-08 |
Family
ID=65552217
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811340203.XA Pending CN109445994A (en) | 2018-11-12 | 2018-11-12 | Starting processing method, device, terminal device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109445994A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110139194A (en) * | 2019-05-29 | 2019-08-16 | 惠州市德赛西威汽车电子股份有限公司 | A kind of car audio system crash processing method |
CN112301633A (en) * | 2019-07-29 | 2021-02-02 | 青岛海尔洗衣机有限公司 | Control method of clothes treatment equipment |
WO2021175194A1 (en) * | 2020-03-04 | 2021-09-10 | 京东方科技集团股份有限公司 | Method for timed startup of terminal, and terminal |
CN113535240A (en) * | 2020-04-17 | 2021-10-22 | 深圳Tcl数字技术有限公司 | Exiting method of boot animation, storage medium and terminal equipment |
CN115061752A (en) * | 2022-06-28 | 2022-09-16 | 展讯通信(上海)有限公司 | Terminal equipment restarting method and device |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7783875B2 (en) * | 2005-07-01 | 2010-08-24 | Hewlett-Packard Development Company, L.P. | System boot optimizer |
CN102609274A (en) * | 2011-01-21 | 2012-07-25 | 青岛海信电器股份有限公司 | Quick system start and running method and television set |
CN103513996A (en) * | 2012-06-21 | 2014-01-15 | Tcl集团股份有限公司 | Android system recovery method of terminal equipment and terminal equipment |
CN104679548A (en) * | 2013-12-03 | 2015-06-03 | 联想(北京)有限公司 | Information processing method and electronic equipment |
US20160124741A1 (en) * | 2014-10-29 | 2016-05-05 | Oracle International Corporation | Orchestration of software applications upgrade using automatic hang detection |
CN106095503A (en) * | 2016-06-13 | 2016-11-09 | 广东欧珀移动通信有限公司 | The starting-up method of intelligent terminal and system |
CN106126377A (en) * | 2016-07-04 | 2016-11-16 | 广东欧珀移动通信有限公司 | The method and device of system start-up |
CN106791090A (en) * | 2016-12-20 | 2017-05-31 | 广东欧珀移动通信有限公司 | A kind of mobile terminal restarts control method, device and mobile terminal |
-
2018
- 2018-11-12 CN CN201811340203.XA patent/CN109445994A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7783875B2 (en) * | 2005-07-01 | 2010-08-24 | Hewlett-Packard Development Company, L.P. | System boot optimizer |
CN102609274A (en) * | 2011-01-21 | 2012-07-25 | 青岛海信电器股份有限公司 | Quick system start and running method and television set |
CN103513996A (en) * | 2012-06-21 | 2014-01-15 | Tcl集团股份有限公司 | Android system recovery method of terminal equipment and terminal equipment |
CN104679548A (en) * | 2013-12-03 | 2015-06-03 | 联想(北京)有限公司 | Information processing method and electronic equipment |
US20160124741A1 (en) * | 2014-10-29 | 2016-05-05 | Oracle International Corporation | Orchestration of software applications upgrade using automatic hang detection |
CN106095503A (en) * | 2016-06-13 | 2016-11-09 | 广东欧珀移动通信有限公司 | The starting-up method of intelligent terminal and system |
CN106126377A (en) * | 2016-07-04 | 2016-11-16 | 广东欧珀移动通信有限公司 | The method and device of system start-up |
CN106791090A (en) * | 2016-12-20 | 2017-05-31 | 广东欧珀移动通信有限公司 | A kind of mobile terminal restarts control method, device and mobile terminal |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110139194A (en) * | 2019-05-29 | 2019-08-16 | 惠州市德赛西威汽车电子股份有限公司 | A kind of car audio system crash processing method |
CN112301633A (en) * | 2019-07-29 | 2021-02-02 | 青岛海尔洗衣机有限公司 | Control method of clothes treatment equipment |
WO2021175194A1 (en) * | 2020-03-04 | 2021-09-10 | 京东方科技集团股份有限公司 | Method for timed startup of terminal, and terminal |
CN113535240A (en) * | 2020-04-17 | 2021-10-22 | 深圳Tcl数字技术有限公司 | Exiting method of boot animation, storage medium and terminal equipment |
CN115061752A (en) * | 2022-06-28 | 2022-09-16 | 展讯通信(上海)有限公司 | Terminal equipment restarting method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109445994A (en) | Starting processing method, device, terminal device and storage medium | |
CN108388431B (en) | Control method and device for hot update of application program, storage medium and mobile terminal | |
US8522004B2 (en) | Method and system for power management for a handheld mobile electronic device executing-in-place an application kernel from execute-in-place non-volatile memory (XIP NVM) | |
CN104951335B (en) | The processing method and processing device of application program installation kit | |
CN109375937A (en) | Method for upgrading system, device, terminal device and storage medium | |
CN105676993A (en) | Method and device for saving electric quantity and electronic equipment | |
US20190034074A1 (en) | Method for recognizing a screen-off gesture, and storage medium and terminal thereof | |
CN109542744A (en) | Detect method, apparatus, storage medium and the terminal of terminal booting abnormal problem | |
CN107800865B (en) | Electronic device and method for displaying time information in low power state | |
CN107402713B (en) | Accelerate method, apparatus, storage medium and the mobile terminal of the processing of blank screen gesture | |
CN107479700B (en) | Black screen gesture control method and device, storage medium and mobile terminal | |
CN110968508B (en) | Method, device, terminal and storage medium for determining loading time of applet | |
CN113474756A (en) | Application processing method and device, storage medium and electronic equipment | |
CN106504026A (en) | A kind of data capture method and device | |
CN108038010A (en) | Android system startup stage broadcast transmission method, apparatus and terminal | |
WO2019101107A1 (en) | System notification service control method, apparatus, terminal device, and storage medium | |
CN107943270A (en) | Control method, device and the storage medium and mobile terminal of application service | |
CN107885588B (en) | Application service control method and device, storage medium and mobile terminal | |
US10430236B2 (en) | Electronic device and method for resuming process thereof | |
CN111399874A (en) | System upgrading method and device, storage medium and intelligent wearable device | |
CN114647550A (en) | Process control method, device, storage medium and electronic equipment | |
CN107277906B (en) | Mode selecting method, device, terminal and computer readable storage medium | |
CN112579369B (en) | Multithreading brushing system, method, device, equipment and storage medium | |
CN106843440B (en) | A kind of mobile terminal restarts control method, device and mobile terminal | |
CN107943268B (en) | Scheduling job control method, device, terminal equipment and storage medium |
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 |