CN105975304A - Restarting method and apparatus for mobile device - Google Patents

Restarting method and apparatus for mobile device Download PDF

Info

Publication number
CN105975304A
CN105975304A CN201610284855.0A CN201610284855A CN105975304A CN 105975304 A CN105975304 A CN 105975304A CN 201610284855 A CN201610284855 A CN 201610284855A CN 105975304 A CN105975304 A CN 105975304A
Authority
CN
China
Prior art keywords
mobile device
reboot operation
hardware
target information
reboot
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610284855.0A
Other languages
Chinese (zh)
Inventor
孔志强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications 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 Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201610284855.0A priority Critical patent/CN105975304A/en
Publication of CN105975304A publication Critical patent/CN105975304A/en
Pending legal-status Critical Current

Links

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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/52Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems during program execution, e.g. stack integrity ; Preventing unwanted data erasure; Buffer overflow

Abstract

Embodiments of the invention provide a restarting method and apparatus for a mobile device. The method comprises the steps of calling a sensor to detect target information when a first target operation for a power key of the mobile device is detected; performing legality check on a restarting operation according to the target information; and when it is determined that the restarting operation is legal, performing hardware restarting on the mobile device. Due to the situation that the restarting operation is triggered due to misoperation, generally the legality check cannot be passed and the hardware restarting cannot be carried out, so that the probability of false restarting due to the misoperation can be reduced through the legality check.

Description

The method for restarting of a kind of mobile device and device
Technical field
The present invention relates to the technical field of mobile device, particularly relate to the method for restarting of a kind of mobile device Rebooting device with a kind of mobile device.
Background technology
Along with the development of science and technology, the such as mobile device such as mobile phone, panel computer the work of people, study, The utilization rate of each side such as daily exchange is more and more higher.
During the use of mobile device, due to many reasons, such as, possibility is used for a long time Cause protocol stack abnormal state and cannot normal talking, some application exist RAM leakage problem, some The reasons such as Resident Process committed memory amount is excessive, some resource shared by service cannot reclaim, make system Internal memory surplus more and more less, system response can be increasingly slower, even crashes, and these problems generally may be used With by restarting solution.
Cannot be properly functioning due to system possibly in above-mentioned situation, therefore, restart and be generally based on secondary or physical bond Trigger.
But, due to the portability of mobile device, user is often carried with, do not use time Time is placed in pocket, knapsack, and secondary or physical bond is easy to be pressed by hard thing, is susceptible to restart by mistake.
Summary of the invention
In view of the above problems, in order to solve the above-mentioned problem being susceptible to and restarting by mistake, the embodiment of the present invention carries Method for restarting and the rebooting device of corresponding a kind of mobile device of a kind of mobile device are gone out.
In order to solve the problems referred to above, the embodiment of the invention discloses the method for restarting of a kind of mobile device, bag Include:
When the first object power key for mobile device being detected operates, call sensor detection mesh Mark information;
According to described target information, reboot operation is carried out legitimacy inspection;
When determining that reboot operation is legal, described mobile device is carried out hardware and restarts.
Preferably, also include:
When determining that reboot operation is illegal, forbid that described mobile device is carried out hardware restarts.
Preferably, also include:
When the second object run for described power key being detected, recover described mobile device is carried out Hardware is restarted.
Preferably, also include:
When three object run for described power key being detected, information is restarted in display;
When detecting for the described determination operation restarting information, to described mobile device it is System is restarted.
Preferably, described sensor includes that range sensor, described target information include distance value;
Described step reboot operation being carried out legitimacy inspection according to described target information includes:
Judge that whether described distance value is more than the distance threshold preset;
If, it is determined that reboot operation is legal;
If not, it is determined that reboot operation is illegal.
Preferably, when described first object operates and exceedes default first for the time pressing described power key Between the operation of threshold value;
Described second object run is the operation unclamping described power key;
Described 3rd object run is the time pressing described power key to exceed the second default time threshold Operation, described second time threshold be less than described very first time threshold value.
The embodiment of the invention also discloses the rebooting device of a kind of mobile device, including:
Target information acquisition module, for grasping at the first object secondary or physical bond for mobile device being detected When making, call sensor detection target information;
Legitimacy inspection module, for carrying out legitimacy inspection according to described target information to reboot operation;
Hardware restarts module, for when determining that reboot operation is legal, described mobile device is carried out hardware Restart.
Preferably, also include:
Hardware restarts disabled module, for when determining that reboot operation is illegal, forbids described mobile device Carry out hardware to restart.
Preferably, also include:
Hardware restarts recovery module, is used for when the second object run for described secondary or physical bond being detected, Recover that described mobile device is carried out hardware to restart.
Preferably, also include:
Restart information display module, for the 3rd object run for described secondary or physical bond being detected Time, information is restarted in display;
System reboot restarts module, for detecting for the described determination operation restarting information Time, described mobile device is carried out system reboot.
Preferably, described sensor includes that range sensor, described target information include distance value;
Described legitimacy inspection module includes:
Distance Judgment submodule, for judging that whether described distance value is more than the distance threshold preset;If so, Then call first and determine submodule, if it is not, then call second to determine submodule;
First determines submodule, is used for determining that reboot operation is legal;
Second determines submodule, is used for determining that reboot operation is illegal.
Preferably, when described first object operates and exceedes default first for the time pressing described power key Between the operation of threshold value;
Described second object run is the operation unclamping described power key;
Described 3rd object run is the time pressing described power key to exceed the second default time threshold Operation, described second time threshold be less than described very first time threshold value.
The embodiment of the present invention includes advantages below:
The embodiment of the present invention is operated for the first object of the secondary or physical bond of mobile device by detection, is being intended to When triggering reboot operation, call the target information that sensor acquisition is relevant, residing for record current mobile device Environmental information, according to the behavioural habits of user, and then based on this target information, reboot operation is closed Method verifies, it is judged that whether this reboot operation is triggered by user, however, it is determined that the bigger probability of reboot operation is for using When family is triggered, determine that reboot operation is verified by legitimacy, and then mobile device is carried out hardware restart, Owing to triggering the situation of reboot operation because of maloperation, typically cannot be verified by legitimacy, and cannot enter Row hardware is restarted, and therefore, can reduce, by legitimacy verification, the probability occurring by mistake to restart because of maloperation.
The embodiment of the present invention is if it is determined that the bigger probability of reboot operation is maloperation, it is determined that reboot operation can not Verified by legitimacy, during for triggering reboot operation because of maloperation, be temporarily disabled hardware and restart Function, trigger reboot operation because of maloperation until getting rid of, it is ensured that the practicality that hardware is restarted.
Accompanying drawing explanation
Fig. 1 is the flow chart of steps of the method for restarting embodiment 1 of a kind of mobile device of the present invention;
Fig. 2 is the flow chart of steps of the method for restarting embodiment 2 of a kind of mobile device of the present invention;
Fig. 3 is the flow chart of steps of the method for restarting embodiment 3 of a kind of mobile device of the present invention;
Fig. 4 is a kind of exemplary plot restarting information of the present invention;
Fig. 5 is the structured flowchart of the rebooting device embodiment 1 of a kind of mobile device of the present invention;
Fig. 6 is the structured flowchart of the rebooting device embodiment 2 of a kind of mobile device of the present invention;
Fig. 7 is the structured flowchart of the rebooting device embodiment 3 of a kind of mobile device of the present invention.
Detailed description of the invention
Understandable, below in conjunction with the accompanying drawings for enabling the above-mentioned purpose of the present invention, feature and advantage to become apparent from The present invention is further detailed explanation with detailed description of the invention.
With reference to Fig. 1, it is shown that the steps flow chart of the method for restarting embodiment of a kind of mobile device of the present invention Figure, specifically may include steps of:
Step 101, when the first object power key for mobile device being detected operates, calls biography Sensor detection target information;
Step 102, carries out legitimacy inspection according to described target information to reboot operation;
Step 103, when determining that reboot operation is legal, carries out hardware to described mobile device and restarts.
In implementing, the embodiment of the present invention can be applied in a mobile device, such as, mobile phone, flat Plate computer, personal digital assistant, wearable device (such as glasses, wrist-watch etc.) etc..
The operating system of these mobile devices can include Android (Android), IOS, Windows Phone, Windows etc..
For making those skilled in the art be more fully understood that the embodiment of the present invention, in this manual, will Android illustrates as a kind of example of operating system.
Additionally, these mobile devices are configured with one or more secondary or physical bond and one or more sensor.
Wherein, this secondary or physical bond can include power key, volume key, shooting key etc., and this sensor is permissible Including light sensor, range sensor, gravity sensor, luminance sensor, acceleration transducer, Pressure transducer, fingerprint sensor, electronic compass etc., this is not any limitation as by the embodiment of the present invention.
The application embodiment of the present invention, can pre-set the first object operation of secondary or physical bond, to carry out hardware Restart.
It should be noted that this secondary or physical bond can be single physical key (such as power key), it is also possible to be many The combination (such as power key and volume key) of individual secondary or physical bond, this is not any limitation as by the embodiment of the present invention.
When pressing this secondary or physical bond, the key-press event of correspondence typically can be triggered, such as, in Android system In system, press power key, KeyEvent.KEYCODE_POWER event can be triggered, press Volume key (includes key, lower key), can trigger KeyEvent.KEYCODE_VOLUME_UP Event or KeyEvent.ACTION_DOWN event, etc..
According to the key-press event listened to, it can be determined that the secondary or physical bond triggered, and then determine for this thing The operation of reason key, as clicked, double-clicking, long by etc., to determine whether the first object operation set.
In embodiments of the present invention, however, it is determined that the first object for secondary or physical bond operates, then can call biography Sensor detection target information, the environmental information that record mobile device is presently in.
Judge that reboot operation is the most legal according to this environmental information, if being triggered reboot operation by user, it is believed that Legal, if not being triggered reboot operation by user, belong to maloperation, it is believed that illegal.
Such as, user, when triggering reboot operation, generally faces mobile device, if range sensor detection The distance value arrived is relatively big, is probably the most greatly and is triggered reboot operation by user, it may be determined that reboot operation is closed Method, otherwise, is probably more greatly maloperation, it may be determined that reboot operation is illegal.
The most such as, user, when triggering reboot operation, is typically in the bright ring border that light is more sufficient, If the intensity of the light that light sensor detects higher (intensity threshold such as larger than preset), brightness sensing The brightness value that device detects is higher (luminance threshold such as larger than preset), then it is assumed that mobile device is in bright In environment, it is probably more greatly and is triggered reboot operation by user, it may be determined that reboot operation is legal, otherwise, It is probably more greatly maloperation, it may be determined that reboot operation is illegal.
The most such as, user is when triggering reboot operation, in order to be clearly actively to trigger, and can be with bigger Power presses certain position, if the higher (pressure threshold such as larger than preset of the force value that pressure transducer detects Value), it is probably more greatly and is triggered reboot operation by user, it may be determined that reboot operation is legal, otherwise, relatively It is probably greatly maloperation, it may be determined that reboot operation is illegal.
Certainly, the inspection of above-mentioned legitimacy is intended only as example, when implementing the embodiment of the present invention, and Ke Yigen Arranging the inspection of other legitimacies according to practical situation, this is not any limitation as by the embodiment of the present invention.It addition, remove Outside the inspection of above-mentioned legitimacy, those skilled in the art can also use other legitimacy according to actual needs Inspection, this is not any limitation as by the embodiment of the present invention.
If having passed through legitimacy verification, then can be to power management (PMIC, the Power of mobile device Management IC) hardware configuration be configured, restart so that mobile device is carried out hardware.
The embodiment of the present invention is operated for the first object of the secondary or physical bond of mobile device by detection, is being intended to When triggering reboot operation, call the target information that sensor acquisition is relevant, residing for record current mobile device Environmental information, according to the behavioural habits of user, and then based on this target information, reboot operation is closed Method verifies, it is judged that whether this reboot operation is triggered by user, however, it is determined that the bigger probability of reboot operation is for using When family is triggered, determine that reboot operation is verified by legitimacy, and then mobile device is carried out hardware restart, Owing to triggering the situation of reboot operation because of maloperation, typically cannot be verified by legitimacy, and cannot enter Row hardware is restarted, and therefore, can reduce, by legitimacy verification, the probability occurring by mistake to restart because of maloperation.
With reference to Fig. 2, it is shown that the step stream of the method for restarting embodiment 2 of a kind of mobile device of the present invention Cheng Tu, specifically may include steps of:
Step 201, when the first object secondary or physical bond for mobile device being detected operates, calls biography Sensor detection target information;
In an example of the embodiment of the present invention, if secondary or physical bond is power key, then first object operation can Think that pressing time of power key exceedes the operation of default very first time threshold value (such as 5 seconds).
Step 202, carries out legitimacy inspection according to described target information to reboot operation;
In embodiments of the present invention, sensor includes that range sensor, target information include distance value;
Then may determine that whether distance value is more than the distance threshold preset;
If, then it represents that do not have barrier, mobile device not to be blocked in short distance before mobile device, Meeting user operation habits, greater probability is that user's handheld mobile device carries out operating and triggering restarting behaviour Make, it may be determined that reboot operation is legal;
If not, then it represents that have barrier, mobile device to be blocked in short distance before mobile device, be not inconsistent Closing user operation habits, greater probability is maloperation, it may be determined that reboot operation is illegal.
In implementing, range sensor generally uses " time-of-flight method " (flying time), the most logical Cross and launch the shortest and measure this light pulse from being transmitted into the time being reflected by the object, during by surveying Between interval calculate the distance between object:
L=C*t/2;
Wherein, L represents that distance value, C represent that the light velocity, t represent that light pulse is between launching and receiving Time difference.
Certainly, in order to improve the degree of accuracy of distance value, light pulse can be measured between launching and receiving Time difference, takes its mean value calculation distance value.
Step 203, when determining that reboot operation is legal, carries out hardware to described mobile device and restarts;
When carrying out hardware and restarting, can adjust in the depositor of PMIC and arrange as follows:
Config_reset(type,timer,enable)
Wherein, type, type, including hard_reset (cold start-up), warm_reset (thermal starting), Powerdown (shuts down);
Timer, intervalometer;
Enable, restarts function if arranged, then value is 1;If cancelling and restarting function, then value is 0.
Such as, arranging of the depositor of PMIC can be Config_reset (hard_reset, 10,1), i.e. Cold start-up is carried out after 10 seconds.
Step 204, when determining that reboot operation is illegal, forbids that described mobile device is carried out hardware restarts;
If it is determined that reboot operation is illegal, i.e. reboot operation is maloperation, then can be to mobile device The hardware configuration of PMIC is configured, and restarts function disabling hardware.
Such as, arranging of the depositor of PMIC can be Config_reset (0,0,0).
Step 205, when the second object run for described secondary or physical bond being detected, recovers described shifting Dynamic equipment carries out hardware and restarts.
In embodiments of the present invention, can be according to the key-press event listened to, it can be determined that the thing triggered Reason key, and then determines the operation for this secondary or physical bond, as clicked, double-clicking, long by etc., to judge to be No the second object run for setting.
In an example of the embodiment of the present invention, if secondary or physical bond is power key, then the second object run Can be the operation unclamping power key, shift because of the movement of user as pressed the hard thing of power key, unclamp Power key.
If the second object run for secondary or physical bond being detected, then it represents that triggers because of maloperation restarts behaviour Stop, hardware can be recovered and restart.
Such as, the setting of the depositor of PMIC could be arranged to Config_reset (0,0,1).
The embodiment of the present invention is if it is determined that the bigger probability of reboot operation is maloperation, it is determined that reboot operation can not Verified by legitimacy, during for triggering reboot operation because of maloperation, be temporarily disabled hardware and restart Function, trigger reboot operation because of maloperation until getting rid of, it is ensured that the practicality that hardware is restarted.
With reference to Fig. 3, it is shown that the step stream of the method for restarting embodiment 3 of a kind of mobile device of the present invention Cheng Tu, specifically may include steps of:
Step 301, when three object run for described secondary or physical bond being detected, prompting is restarted in display Information;
The application embodiment of the present invention, can pre-set the 3rd object run of secondary or physical bond, to carry out system Restart.
According to the key-press event listened to, it can be determined that the secondary or physical bond triggered, and then determine for this thing The operation of reason key, as clicked, double-clicking, long by etc., to determine whether the 3rd object run set.
In an example of the embodiment of the present invention, if secondary or physical bond is power key, then the 3rd object run can Think that pressing time of power key exceedes the operation of the second default time threshold.
If the 3rd object run for secondary or physical bond being detected, then can show and restart information, prompting Whether user restarts.
Certainly, in addition to restarting information, it is also possible to generate other information, such as shutdown information Deng, this is not any limitation as by the embodiment of the present invention.
Such as, as shown in Figure 4, can generate restart information " restart ", shut down prompting letter Breath " closedown power supply ".
Step 302, when detecting for the described determination operation restarting information, to described movement Equipment carries out system reboot;
In the embodiment of the present invention, if the determination that user triggers for restarting information operates, as clicked on such as " restarting " shown in Fig. 4, then can restart system.
Certainly, if detecting, the determination for restarting information operates, as clicked on " pass as shown in Figure 4 Close power supply ", then can close power supply (being commonly called as shutdown).
Such as, in android system, system weight can be carried out by one or more following modes Open:
1, broadcast;
Broadcast is one of basic module of Android, namely broadcasts.
Android system inherently contains much broadcast, at every moment registration in monitoring system Each is broadcasted and is ready to response operation.
Wherein, be just related to restart broadcasts as Intent.ACTION_REBOOT, by sending this Broadcast, Android just can broadcast, and responds the operation restarted in automatic reception.
2, sh file is run;
It is /init that first application program is called in the meeting called after Android startup file system, this file one Individual critically important content has resolved init.rc and init.xxx.rc exactly, then performs parsing of task. And init.rc, some simple initialization operations can be carried out in the initialization procedure of system.
Therefore, it can write the sh script file restarted, resolved by system init, perform corresponding weight Open operation.
3, Linux-shell is called;
This java class of Runtime may be employed to call and perform shell-command, and Android Virtual machine is to support Linux-shell language, therefore, it can utilize Runtime to perform the shell restarted Order, performs corresponding reboot operation.
Certainly, the mode that said system is restarted is intended only as example, when implementing the embodiment of the present invention, and can To arrange in the way of other system restarts according to practical situation, this is not any limitation as by the embodiment of the present invention. It addition, in addition to the mode that said system is restarted, those skilled in the art can also adopt according to actual needs By the mode of other system reboot, this is not any limitation as by the embodiment of the present invention.
Step 303, when the first object secondary or physical bond for mobile device being detected operates, calls biography Sensor detection target information;
In an example of the embodiment of the present invention, if secondary or physical bond is power key, then first object operation can Think that pressing time of power key exceedes the operation of default very first time threshold value.
Wherein, the second time threshold (such as 3 seconds) can be less than very first time threshold value (such as 5 seconds).
Step 304, carries out legitimacy inspection according to described target information to reboot operation;
Step 305, when determining that reboot operation is legal, carries out hardware to described mobile device and restarts.
It should be noted that for embodiment of the method, in order to be briefly described, therefore it is all expressed as one it be The combination of actions of row, but those skilled in the art should know, and the embodiment of the present invention is not by described The restriction of sequence of movement because according to the embodiment of the present invention, some step can use other orders or Person is carried out simultaneously.Secondly, those skilled in the art also should know, embodiment described in this description Belong to preferred embodiment, necessary to the involved action not necessarily embodiment of the present invention.
With reference to Fig. 5, it is shown that the structural frames of the rebooting device embodiment 1 of a kind of mobile device of the present invention Figure, specifically can include such as lower module:
Target information acquisition module 501, for detecting the first mesh of the secondary or physical bond for mobile device During mark operation, call sensor detection target information;
Legitimacy inspection module 502, for carrying out legitimacy inspection according to described target information to reboot operation Test;
Hardware restarts module 503, for when determining that reboot operation is legal, carries out described mobile device Hardware is restarted.
With reference to Fig. 6, it is shown that the structural frames of the rebooting device embodiment 2 of a kind of mobile device of the present invention Figure, specifically can include such as lower module:
Target information acquisition module 601, for detecting the first mesh of the secondary or physical bond for mobile device During mark operation, call sensor detection target information;
Legitimacy inspection module 602, for carrying out legitimacy inspection according to described target information to reboot operation Test;
Hardware restarts module 603, for when determining that reboot operation is legal, carries out described mobile device Hardware is restarted;
Hardware restarts disabled module 604, for when determining that reboot operation is illegal, forbids described movement Equipment carries out hardware and restarts;
Hardware restarts recovery module 605, for the second object run for described secondary or physical bond being detected Time, recover that described mobile device is carried out hardware and restart.
In one embodiment of the invention, described sensor includes range sensor, described target information Including distance value;
Described legitimacy inspection module 602 can include following submodule:
Distance Judgment submodule, for judging that whether described distance value is more than the distance threshold preset;If so, Then call first and determine submodule, if it is not, then call second to determine submodule;
First determines submodule, is used for determining that reboot operation is legal;
Second determines submodule, is used for determining that reboot operation is illegal.
In an example of the embodiment of the present invention, described secondary or physical bond is power key;
The operation of described first object is the time pressing described power key to exceed default very first time threshold value Operation;
Described second object run is the operation unclamping described power key.
With reference to Fig. 7, it is shown that the structural frames of the rebooting device embodiment 3 of a kind of mobile device of the present invention Figure, specifically can include such as lower module:
Restart information display module 701, for the 3rd target for described secondary or physical bond being detected During operation, information is restarted in display;
System reboot restarts module 702, for detecting for the described determination behaviour restarting information When making, described mobile device is carried out system reboot;
Target information acquisition module 703, for detecting the first mesh of the secondary or physical bond for mobile device During mark operation, call sensor detection target information;
Legitimacy inspection module 704, for carrying out legitimacy inspection according to described target information to reboot operation Test;
Hardware restarts module 705, for when determining that reboot operation is legal, carries out described mobile device Hardware is restarted.
In an example of the embodiment of the present invention, described secondary or physical bond is power key;
The operation of described first object is the time pressing described power key to exceed default very first time threshold value Operation;
Described 3rd object run is the time pressing described power key to exceed the second default time threshold Operation, described second time threshold be less than described very first time threshold value.
For device embodiment, due to itself and embodiment of the method basic simlarity, so the comparison described Simply, relevant part sees the part of embodiment of the method and illustrates.
Each embodiment in this specification all uses the mode gone forward one by one to describe, and each embodiment stresses Be all the difference with other embodiments, between each embodiment, identical similar part sees mutually ?.
Those skilled in the art are it should be appreciated that the embodiment of the embodiment of the present invention can be provided as method, dress Put or computer program.Therefore, the embodiment of the present invention can use complete hardware embodiment, completely Software implementation or the form of the embodiment in terms of combining software and hardware.And, the embodiment of the present invention Can use and can be situated between with storage at one or more computers wherein including computer usable program code The upper computer journey implemented of matter (including but not limited to disk memory, CD-ROM, optical memory etc.) The form of sequence product.
The embodiment of the present invention is with reference to method according to embodiments of the present invention, terminal unit (system) and meter The flow chart of calculation machine program product and/or block diagram describe.It should be understood that can be by computer program instructions Each flow process in flowchart and/or block diagram and/or square frame and flow chart and/or square frame Flow process in figure and/or the combination of square frame.Can provide these computer program instructions to general purpose computer, The processor of special-purpose computer, Embedded Processor or other programmable data processing terminal equipment is to produce One machine so that performed by the processor of computer or other programmable data processing terminal equipment Instruction produce for realizing at one flow process of flow chart or multiple flow process and/or one square frame of block diagram or The device of the function specified in multiple square frames.
These computer program instructions may be alternatively stored in and computer or other programmable datas can be guided to process In the computer-readable memory that terminal unit works in a specific way so that be stored in this computer-readable Instruction in memorizer produces the manufacture including command device, and this command device realizes flow chart one The function specified in flow process or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded into computer or other programmable data processing terminals set Standby upper so that on computer or other programmable terminal equipment, to perform sequence of operations step in terms of producing The process that calculation machine realizes, thus the instruction performed on computer or other programmable terminal equipment provides and uses In realizing in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame The step of the function specified.
Although having been described for the preferred embodiment of the embodiment of the present invention, but those skilled in the art being once Know basic creative concept, then these embodiments can be made other change and amendment.So, Claims are intended to be construed to include preferred embodiment and fall into the institute of range of embodiment of the invention There are change and amendment.
Finally, in addition it is also necessary to explanation, in this article, the relational terms of such as first and second or the like It is used merely to separate an entity or operation with another entity or operating space, and not necessarily requires Or imply relation or the order that there is any this reality between these entities or operation.And, art Language " includes ", " comprising " or its any other variant are intended to comprising of nonexcludability, so that Process, method, article or terminal unit including a series of key elements not only include those key elements, and Also include other key elements being not expressly set out, or also include for this process, method, article or The key element that person's terminal unit is intrinsic.In the case of there is no more restriction, statement " include one It is individual ... " key element that limits, it is not excluded that including the process of described key element, method, article or end End equipment there is also other identical element.
Method for restarting and the weight of a kind of mobile device to a kind of mobile device provided by the present invention above Opening device, is described in detail, and specific case used herein is to the principle of the present invention and embodiment party Formula is set forth, and the explanation of above example is only intended to help to understand method and the core thereof of the present invention Thought;Simultaneously for one of ordinary skill in the art, according to the thought of the present invention, it is being embodied as All will change in mode and range of application, in sum, it is right that this specification content should not be construed as The restriction of the present invention.

Claims (10)

1. the method for restarting of a mobile device, it is characterised in that including:
When the first object power key for mobile device being detected operates, call sensor detection mesh Mark information;
According to described target information, reboot operation is carried out legitimacy inspection;
When determining that reboot operation is legal, described mobile device is carried out hardware and restarts.
Method the most according to claim 1, it is characterised in that also include:
When determining that reboot operation is illegal, forbid that described mobile device is carried out hardware restarts.
Method the most according to claim 2, it is characterised in that also include:
When the second object run for described power key being detected, recover described mobile device is carried out Hardware is restarted.
4. according to the method described in claim 1 or 2 or 3, it is characterised in that also include:
When three object run for described power key being detected, information is restarted in display;
When detecting for the described determination operation restarting information, to described mobile device it is System is restarted.
5. according to the method described in claim 1 or 2 or 3, it is characterised in that described sensor bag Including range sensor, described target information includes distance value;
Described step reboot operation being carried out legitimacy inspection according to described target information includes:
Judge that whether described distance value is more than the distance threshold preset;
If, it is determined that reboot operation is legal;
If not, it is determined that reboot operation is illegal.
Method the most according to claim 4, it is characterised in that
The operation of described first object is the time pressing described power key to exceed default very first time threshold value Operation;
Described second object run is the operation unclamping described power key;
Described 3rd object run is the time pressing described power key to exceed the second default time threshold Operation, described second time threshold be less than described very first time threshold value.
7. the rebooting device of a mobile device, it is characterised in that including:
Target information acquisition module, for grasping at the first object secondary or physical bond for mobile device being detected When making, call sensor detection target information;
Legitimacy inspection module, for carrying out legitimacy inspection according to described target information to reboot operation;
Hardware restarts module, for when determining that reboot operation is legal, described mobile device is carried out hardware Restart.
Device the most according to claim 7, it is characterised in that also include:
Hardware restarts disabled module, for when determining that reboot operation is illegal, forbids described mobile device Carry out hardware to restart.
Device the most according to claim 8, it is characterised in that also include:
Hardware restarts recovery module, is used for when the second object run for described secondary or physical bond being detected, Recover that described mobile device is carried out hardware to restart.
10. according to the method described in claim 7 or 8 or 9, it is characterised in that described sensor bag Including range sensor, described target information includes distance value;
Described legitimacy inspection module includes:
Distance Judgment submodule, for judging that whether described distance value is more than the distance threshold preset;If so, Then call first and determine submodule, if it is not, then call second to determine submodule;
First determines submodule, is used for determining that reboot operation is legal;
Second determines submodule, is used for determining that reboot operation is illegal.
CN201610284855.0A 2016-04-29 2016-04-29 Restarting method and apparatus for mobile device Pending CN105975304A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610284855.0A CN105975304A (en) 2016-04-29 2016-04-29 Restarting method and apparatus for mobile device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610284855.0A CN105975304A (en) 2016-04-29 2016-04-29 Restarting method and apparatus for mobile device

Publications (1)

Publication Number Publication Date
CN105975304A true CN105975304A (en) 2016-09-28

Family

ID=56993855

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610284855.0A Pending CN105975304A (en) 2016-04-29 2016-04-29 Restarting method and apparatus for mobile device

Country Status (1)

Country Link
CN (1) CN105975304A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106534512A (en) * 2016-11-02 2017-03-22 惠州Tcl移动通信有限公司 Mobile terminal forced restart mode switching method and system
CN108292336A (en) * 2016-10-08 2018-07-17 华为技术有限公司 A kind of fingerprint collecting method and terminal
CN110740382A (en) * 2019-10-30 2020-01-31 深圳创维-Rgb电子有限公司 Method, device, television and medium for avoiding undesired automatic restart of television
CN111427327A (en) * 2019-12-27 2020-07-17 湖北航天飞行器研究所 Protection method for abnormal restart of aircraft control software
CN112000385A (en) * 2020-09-03 2020-11-27 深圳市智微智能软件开发有限公司 Rapid restarting method and system for Android device
CN113645341A (en) * 2021-07-16 2021-11-12 荣耀终端有限公司 Power key false touch detection method and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103019124A (en) * 2012-12-27 2013-04-03 中兴通讯股份有限公司 Device and method for preventing mis-trigger of switch
CN103473145A (en) * 2013-09-25 2013-12-25 小米科技有限责任公司 Terminal crash reset method, device and terminal
CN103902854A (en) * 2014-03-18 2014-07-02 深圳创维数字技术股份有限公司 Method and terminal for preventing misoperation
CN104182669A (en) * 2013-05-21 2014-12-03 鸿富锦精密工业(深圳)有限公司 Mobile terminal starting system and mobile terminal starting method
CN105027029A (en) * 2012-10-22 2015-11-04 Vid拓展公司 User presence detection in mobile devices
CN105468217A (en) * 2015-11-17 2016-04-06 广东欧珀移动通信有限公司 Mobile terminal for replacing power button by capacitive sensor and relation method of mobile terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105027029A (en) * 2012-10-22 2015-11-04 Vid拓展公司 User presence detection in mobile devices
CN103019124A (en) * 2012-12-27 2013-04-03 中兴通讯股份有限公司 Device and method for preventing mis-trigger of switch
CN104182669A (en) * 2013-05-21 2014-12-03 鸿富锦精密工业(深圳)有限公司 Mobile terminal starting system and mobile terminal starting method
CN103473145A (en) * 2013-09-25 2013-12-25 小米科技有限责任公司 Terminal crash reset method, device and terminal
CN103902854A (en) * 2014-03-18 2014-07-02 深圳创维数字技术股份有限公司 Method and terminal for preventing misoperation
CN105468217A (en) * 2015-11-17 2016-04-06 广东欧珀移动通信有限公司 Mobile terminal for replacing power button by capacitive sensor and relation method of mobile terminal

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108292336A (en) * 2016-10-08 2018-07-17 华为技术有限公司 A kind of fingerprint collecting method and terminal
US10977474B2 (en) 2016-10-08 2021-04-13 Huawei Technologies Co., Ltd. Fingerprint collection method and terminal
US11928884B2 (en) 2016-10-08 2024-03-12 Huawei Technologies Co., Ltd. Fingerprint collection method and terminal
CN106534512A (en) * 2016-11-02 2017-03-22 惠州Tcl移动通信有限公司 Mobile terminal forced restart mode switching method and system
CN106534512B (en) * 2016-11-02 2020-11-13 惠州Tcl移动通信有限公司 Method and system for switching forced restart modes of mobile terminal
CN110740382A (en) * 2019-10-30 2020-01-31 深圳创维-Rgb电子有限公司 Method, device, television and medium for avoiding undesired automatic restart of television
CN110740382B (en) * 2019-10-30 2021-12-31 深圳创维-Rgb电子有限公司 Method, device, television and medium for avoiding undesired automatic restart of television
CN111427327A (en) * 2019-12-27 2020-07-17 湖北航天飞行器研究所 Protection method for abnormal restart of aircraft control software
CN112000385A (en) * 2020-09-03 2020-11-27 深圳市智微智能软件开发有限公司 Rapid restarting method and system for Android device
CN113645341A (en) * 2021-07-16 2021-11-12 荣耀终端有限公司 Power key false touch detection method and electronic equipment
CN113645341B (en) * 2021-07-16 2022-12-27 荣耀终端有限公司 Power key false touch detection method and electronic equipment

Similar Documents

Publication Publication Date Title
CN105975304A (en) Restarting method and apparatus for mobile device
US10750007B2 (en) Method and device for preventing terminal from being inadvertently touched
WO2020182065A1 (en) Shortcut function activation method and electronic device
RU2635237C2 (en) Method and device for deleting intelligent script
WO2019157804A1 (en) Method and apparatus for fingerprint unlocking
KR102379479B1 (en) A method and an electronic device for determination of battery condition based on the pressure
TWI550479B (en) Electronic decive and protection method and protection system of touch screen thereof
CN102638628A (en) Mobile phone anti-theft system and method based on camera and GPS (Global Position System) of mobile phone
KR20150018819A (en) Method for enabling shutdown alarm clock and mobile terminal
EP3488372B1 (en) Method for protecting personal information and electronic device thereof
WO2018143675A1 (en) Method for controlling biosensor, and electronic device
US10289887B2 (en) Electronic apparatus, operating method of electronic apparatus, and recording medium
KR102356968B1 (en) Method and apparatus for connecting with external device
EP3293655B1 (en) Below the lock user interface with mixed authentication settings
CN109076618A (en) Timer control method and timer control device
CN107423598B (en) A kind of solution lock control method and mobile terminal
CN103632111A (en) Information processing method and device
TWI545495B (en) System and method for operating touch screens
US11356590B2 (en) Touch interactions with image capture devices
US20160092024A1 (en) Portable device and method for defining restricted area within touch panel
CN107908492B (en) Black screen detection method, mobile terminal and computer readable storage medium
CN107818036B (en) Black screen detection method, mobile terminal and computer readable storage medium
CN109076595A (en) Random access control method and random access control device
WO2018016924A1 (en) Electronic device and touch input sensing method of electronic device
US20190235698A1 (en) Protective film detection method and apparatus, and storage medium

Legal Events

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

Application publication date: 20160928

RJ01 Rejection of invention patent application after publication