[go: up one dir, main page]

CN108920200A - Closedown method, device, electronic equipment and computer readable storage medium - Google Patents

Closedown method, device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN108920200A
CN108920200A CN201810777861.9A CN201810777861A CN108920200A CN 108920200 A CN108920200 A CN 108920200A CN 201810777861 A CN201810777861 A CN 201810777861A CN 108920200 A CN108920200 A CN 108920200A
Authority
CN
China
Prior art keywords
electronic equipment
state
electronics
card
protects
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
CN201810777861.9A
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.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent 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 Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN201810777861.9A priority Critical patent/CN108920200A/en
Publication of CN108920200A publication Critical patent/CN108920200A/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/4401Bootstrapping
    • G06F9/442Shutdown

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Calculators And Similar Devices (AREA)

Abstract

This application involves a kind of closedown methods and device, electronic equipment, computer readable storage medium.The closedown method includes:When detecting electronic equipment booting and in booting guidance interface, identify that the electronics of the electronic equipment protects the state of card;If it is unactivated state that the electronics, which protects card, the action event of the electronic equipment is monitored;If not hearing action event within a preset time, power-off operation is carried out to the electronic equipment.Above-mentioned closedown method in time can shut down to electronic equipment when electronic equipment is opened by mistake machine.

Description

Closedown method, device, electronic equipment and computer readable storage medium
Technical field
This application involves fields of communication technology, can more particularly to a kind of closedown method, device, electronic equipment and computer Read storage medium.
Background technique
With the development of communication technology, mobile phone, personal digital assistant (PersonalDigitalAssistant, PDA) etc. Electronic equipment is used widely.Electronic equipment packaging, transport during, may due to overstock, impact etc. directly or Indirect external force causes to open by mistake machine in power key, and it is too low or shut down without electricity to ultimately cause a certain proportion of pre-sales electricity.
Summary of the invention
Based on this, it is necessary in view of the above technical problems, provide a kind of closedown method, device, electronic equipment and computer Readable storage medium storing program for executing in time can shut down to electronic equipment when electronic equipment is opened by mistake machine.
A kind of closedown method, including:
When detecting electronic equipment booting and in booting guidance interface, identify that the electronics of the electronic equipment protects card State;
If it is unactivated state that the electronics, which protects card, the action event of the electronic equipment is monitored;
If not hearing action event within a preset time, power-off operation is carried out to the electronic equipment.
A kind of shutdown unit, including:
Identification module, for identifying that the electronics is set when detecting electronic equipment booting and in booting guidance interface Standby electronics protects the state of card;
Module is monitored, if protecting card for the electronics is unactivated state, monitors the action event of the electronic equipment;
Shutdown module, if shutting down for not hearing action event within a preset time to the electronic equipment Operation.
A kind of electronic equipment, including memory and processor store computer program, the calculating in the memory When machine program is executed by the processor, so that the step of processor executes closedown method as described above.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor The step of row closedown method as described above.
Closedown method and device, electronic equipment, computer readable storage medium in the embodiment of the present application, when detecting electricity Sub- device power-up and in booting guidance interface when, identify electronic equipment electronics protect card state.If the electronics protects card Unactivated state, it is likely that it is to open by mistake machine as caused by the key of error shock source, further monitors the action event of electronic equipment, If not hearing action event within a preset time, determine that electronic equipment opens by mistake machine, power-off operation is carried out to electronic equipment.It can Shut down to electronic equipment in time when electronic equipment is opened by mistake machine.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is the applied environment figure of closedown method in one embodiment;
Fig. 2 is the flow chart of closedown method in one embodiment;
Fig. 3 is the flow chart of closedown method in another embodiment;
Fig. 4 is the structural block diagram of shutdown unit in one embodiment;
Fig. 5 is the block diagram of the part-structure of the mobile phone in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, and It is not used in restriction the application.
It is appreciated that term " first " used in this application, " second " etc. can be used to describe various elements herein, But these elements should not be limited by these terms.These terms are only used to distinguish the first element from the other element.Citing comes It says, in the case where not departing from scope of the present application, the first client can be known as the second client, and similarly, can incite somebody to action Second client is known as the first client.The first client and the second client both client, but it is not same visitor Family end.
Fig. 1 is the application environment schematic diagram of application processing method in one embodiment.As shown in Figure 1, application processing method Applied in electronic equipment, which includes processor, memory and the network interface connected by system bus.Its In, which supports the operation of entire electronic equipment for providing calculating and control ability.Memory for storing data, Program etc. stores at least one computer program on memory, which can be executed by processor, to realize the application The application processing method suitable for electronic equipment provided in embodiment.Memory may include magnetic disk, CD, read-only store-memory Non-volatile memory mediums or the random access memory (Random-Access- such as body (Read-Only Memory, ROM) Memory, RAM) etc..For example, in one embodiment, memory includes non-volatile memory medium and built-in storage.It is non-volatile Property storage medium is stored with operating system and computer program.The computer program can performed by processor, with for realizing A kind of closedown method provided by each embodiment below.Built-in storage is that the operating system in non-volatile memory medium calculates The running environment of machine program offer cache.Network interface can be Ethernet card or wireless network card etc., for it is external Electronic equipment is communicated.The electronic equipment can be mobile phone, tablet computer or personal digital assistant or wearable device etc., Following electronic equipment, which takes the mobile phone as an example, to be illustrated.
Fig. 2 is the flow chart of closedown method in one embodiment.As shown in Fig. 2, closedown method includes step 202 to step 206。
Step 202, when detecting electronic equipment booting and in booting guidance interface, identify that the electronics of electronic equipment is protected The state of card.
Specifically, electronic equipment can be continuously pressed 3 seconds (or other durations) in power key and be switched on afterwards.Booting guidance circle Face is operation circle for guiding user to carry out the Initialize installations such as user setting, time zone setting, network settings to electronic equipment Face, so that electronic equipment can operate normally.First time booting after factory or brush machine, electronic equipment can load operating system The booting guidance interface pre-set.
Step 204, if it is unactivated state that electronics, which protects card, the action event of electronic equipment is monitored.
In this step, it is one of the electronic equipment warranty information logon mode for being equivalent to papery and protecting card that electronics, which protects card, is led to It crosses electronics and protects card, user information can rapidly and accurately be sent to the sale and system after sale of producer, so that user can enjoy To more convenient service.Every electronic equipment corresponds to unique electronics and protects card, is being inserted into user identity identification for the first time (Subscriber Identification Module, SIM) blocks two hours or so, and electronics is protected card and can be automatically activated.If inspection It measures the corresponding electronics guarantor card of electronic equipment to be active, then illustrates that the electronic equipment has been previously used, no matter at this time Have in electronic equipment and do not have SIM card, can determine the electronic equipment not is new machine, and electronic equipment can be kept to be in booting shape State;If detecting, the corresponding electronics of electronic equipment protects card in unactivated state, which may be to be not inserted into SIM card New machine, can by further monitoring the action event of the electronic equipment, come further judge this power-on operation whether be Machine is opened by mistake caused by the key of error shock source in packaging or transportational process.
Step 206, if not hearing action event within a preset time, power-off operation is carried out to electronic equipment.
For step 206, preset time be can be 30 minutes,, can if not listening to action event in 30 minutes To determine that this time power-on operation of electronic equipment is to open by mistake machine in packaging or transportational process, which can be carried out Power-off operation.
Closedown method in the present embodiment, when detecting electronic equipment booting and in booting guidance interface, identification electricity The electronics of sub- equipment protects the state of card.If it is unactivated state that electronics, which protects card, it is likely that be as caused by the key of error shock source Machine is opened by mistake, the action event for further monitoring electronic equipment determines electronics if not hearing action event within a preset time Equipment opens by mistake machine, carries out power-off operation to electronic equipment.Can when electronic equipment is opened by mistake machine, in time to electronic equipment into Row shutdown.
In one embodiment, as shown in figure 3, can identify that the electronics of electronic equipment protects the shape of card in the following manner State:The identification code of the state of card is protected in identification for the electronics of characterization of electronic equipment, if identification code is first identifier code, then it represents that electricity It is unactivated state that son, which protects card, if identification code is second identification code, then it represents that it is state of activation that electronics, which protects card,.
In this embodiment, the identification code can be written in the hard disk of electronic equipment, can with a bit come Indicate the identification code.For example, can indicate that the electronics of electronic equipment protects card and is not activated with " 0 ", electronic equipment is indicated with " 1 " Electronics protects card and has been activated.It, can be by the mark when the electronics of electronic equipment, which protects card, is changed to state of activation by unactivated state Code is rewritten into " 1 " by " 0 ".It can recognize that electronics protects the state of card by identifying the identification code i.e..
Above-described embodiment judges that whether the electronics of electronic equipment protects card in activation shape by the identification code in identification hard disk State, user can not access and distort the identification code write in hard disk, therefore can be by identifying the identification code, and accurately judgement is electric The electronics of sub- equipment protects whether card is active, and then can guarantee to judge whether electronic equipment is the accurate of the machine that opens by mistake Property.
In one embodiment, can also include the following steps after step 204:If listening within a preset time logical The operational order of touch screen input is crossed, then the state that electronics protects card is changed to state of activation by unactivated state.
In the above-described embodiments, it is to be inserted into just activate for 2 hours or so in SIM card that electronics, which protects card, therefore, when detecting electricity It is unactivated state that son, which protects card, and electronic equipment may be to open by mistake machine as caused by error shock source key in packaging or transportational process, It is also likely to be that user has just been inserted into power-on operation after SIM card in 2 hours.And during packing or transporting mistake, electronic equipment The operational order inputted by touch screen will not be received, only when in use, electronic equipment can just receive passes through touching to user Touch the operational order of screen input.Therefore, it if listening to the operational order inputted by touch screen within a preset time, can incite somebody to action The state that electronics protects card is changed to state of activation by unactivated state.Electronic equipment is detecting the state of sub- guarantor's card by un-activation shape When state is changed to state of activation, the action event of electronic equipment can be ceased listening for, and electronic equipment is kept to be in open state.
Above-described embodiment is led to when electronics protects card in unactivated state by monitoring electronic equipment within a preset time The operational order of touch screen input is crossed to determine whether the state that electronics protects card is changed to state of activation by unactivated state.It can After user is inserted into SIM card for the first time, to shorten the activationary time that electronics protects card, so that electronic equipment be allowed more to be timely detected electricity Son protects the state of activation of card.After detecting that electronics protects the state of activation of card, so that it may cease listening for the operation thing of electronic equipment Part allows electronic equipment to continue normally operating system.
In one embodiment, can also include the following steps after step 204:If within a preset time, monitoring Electronic equipment is in charged state, then the state that electronics protects card is changed to state of activation by unactivated state.
In the above-described embodiments, equally, if electronics protect card be unactivated state, electronic equipment may be due to packaging or Machine is opened by mistake caused by touching power key during transport accidentally, it is also possible to which user has just been inserted into the behaviour of the booting after SIM card in 2 hours Make.And pack or transport miss during, electronic equipment is not at charged state, only user when in use, electronic equipment It is possible in charged state.Therefore, if monitoring within a preset time, electronic equipment is in charged state, can will be electric The state that son protects card is changed to state of activation by unactivated state.Electronic equipment is detecting the state of electronics guarantor's card by un-activation shape When state is changed to state of activation, so that it may cease listening for the action event of electronic equipment, and electronic equipment is kept to be in open state.
Above-described embodiment, when electronics protects card in unactivated state, by monitoring whether electronic equipment is in charging shape State is to determine whether be changed to state of activation by unactivated state for the state that electronics protects card.It can be inserted into SIM for the first time in user After card, shorten electronics and protect the activationary time of card, so that electronic equipment be allowed more to be timely detected the state of activation that electronics protects card.? After detecting that electronics protects the state of activation of card, so that it may which the action event for ceasing listening for electronic equipment allows electronic equipment to continue just Normal ground operating system.
In one embodiment, step 206 can execute in the following manner:If within a preset time, not listening to The operational order inputted by touch screen, and do not listen to the operational order by entity key input, then electronic equipment is held Row power-off operation.
In the present embodiment, user can be input operation instruction after first powering on by touch screen, can also pass through reality Body key input operational order.Wherein, entity key can be, but not limited to:Power button, the volume including marketing or promotion and volume down key Key, returns to functional entity key (Home key) and unlocked by fingerprint entity key etc. at letter key.If the electronics of electronic equipment protects card not swash State living, and within a preset time, the operational order inputted by touch screen had not both been listened to, has not listened to yet and passes through reality The operational order of body key input then can be determined that this time booting is to open by mistake machine caused by the key of error shock source, can be to electronic equipment Execute power-off operation.
Closedown method in the present embodiment, when detecting electronic equipment booting and in booting guidance interface, identification electricity The electronics of sub- equipment protects the state of card.If it is unactivated state that electronics, which protects card, it is likely that be as caused by the key of error shock source Machine is opened by mistake, the action event of electronic equipment is further monitored, is inputted if both not listening within a preset time by touch screen Operational order, do not listen to the operational order by entity key input yet, then determine that electronic equipment opens by mistake machine, sets electronics It is standby to carry out power-off operation.It can shut down in time to electronic equipment when electronic equipment is opened by mistake machine.
In one embodiment, step 206 can also include the following steps:If within a preset time, not listening to logical It crosses the operational order of touch screen input, and listens to the operational order by entity key input, then reclocking.
Within a preset time, it if not listening to the operational order inputted by touch screen, only listens to and passes through entity key The operational order of input, it is likely that be accidentally touching power button cause electronic equipment to open by mistake machine after, electronic equipment again due to overstock, The direct or indirect external forces such as impact cause electronic equipment to listen to the behaviour by entity key input in other entity keys It instructs.Timing can be re-started at this time, within a preset time, if still not listening to the operation inputted by touch screen Instruction, only listens to the operational order by entity key input, can be with reclocking.
Above-described embodiment, if within a preset time, not listening to the operational order inputted by touch screen, only listening to By the operational order of entity key input, then by way of reclocking, avoid electronic equipment straight due to overstocked, impact etc. It connects or indirectly external force is mistakenly considered the operation of user in the operation of other entity keys, it is ensured that judge that electronic equipment is No is the accuracy for the machine that opens by mistake.
In one embodiment, step 206 can also include the following steps:If within a preset time, not listening to logical The operational order of touch screen input is crossed, and while listening for multiple operational orders by entity key input are arrived, then to electronic equipment Execute power-off operation;Wherein, the duration of multiple entity keys lasting input instruction simultaneously is shorter than the first specified duration or is longer than second Specified duration.
In the above-described embodiments, when electronic equipment runs booting guidance interface, it is contemplated that user may be by opening During power traction leads interface progress Initialize installation, electronic equipment is shut down to be inserted into the demand of SIM card, therefore provided logical The function that compound keys are shut down is crossed, for example, allowing electronic equipment to shut down by long-pressing power key and marketing or promotion 10 seconds.And its His composite key function:For example, pass through while carrying out screenshotss etc. to electronic equipment by power key and volume down key 1 second, all can only After the Initialize installation of system is completed, it could use.Therefore, the length when the lasting input instruction simultaneously of multiple entity keys In the first specified duration or it is longer than the second specified duration, then can be determined that electronic equipment receives product in packaging or transportational process Pressure, impact etc. direct or indirect external force and cause to open by mistake machine.Wherein, the first specified duration can be 1 second, the second specified duration It can be 1 minute, the first specified duration and the second specified duration can also be adjusted according to the actual situation.
Above-described embodiment is shorter than the first specified duration in the duration of multiple entity keys lasting input instruction simultaneously or is longer than the When two specified durations, determine that the booting of this electronic equipment is that overstocked, impact etc. is received in packaging or transportational process directly Or machine is opened by mistake caused by indirect external force, to execute power-off operation to electronic equipment.Avoid electronic equipment will due to overstock, The direct or indirect external forces such as impact are mistakenly considered the operation of user in the operation of multiple entity keys, it is ensured that judgement electricity Sub- equipment whether be the machine that opens by mistake accuracy.
As shown in figure 3, the application also provides the embodiment of a closedown method, include the following steps 302~step 316:
Step 302, when detecting booting behavior, the booting into opening initialization guides interface;And pass through step 304 Identify that electronics protects the state of card, if identification code is " 1 ", electronics is protected card and activated, and executes step 306:It keeps at electronic equipment In open state, to guarantee that electronic equipment can operate normally system;If identification code is " 0 ", 308 are thened follow the steps, judges electricity Whether sub- equipment can detect that the machine is in charged state;If the machine is in charged state, 310 are thened follow the steps, by identification code It is changed to " 1 ";It is no to then follow the steps 312, judge in preset time, if receive the instruction inputted by touch screen, wherein pre- If the time can be half an hour;If so, thening follow the steps 310;If it is not, thening follow the steps 314, judge in preset time, if Receive the instruction by entity key input;If it is not, then determining that this time booting to open by mistake machine, executes step 318, to electronic equipment Execute power-off operation;It is no to then follow the steps 316, judge whether the operational order for receiving multiple entity keys while input simultaneously, And the duration of multiple entity keys lasting input instruction simultaneously is shorter than the first specified duration or is longer than the second specified duration;If then holding Row step 318, it is no to then follow the steps 312.
Above-described embodiment, when detect electronic equipment booting and in booting guidance interface when, by identification marking code come Identify that the electronics of electronic equipment protects the state of card.If it is unactivated state that electronics, which protects card, it is likely that be due to error shock source key It is caused to open by mistake machine, by further monitoring the charged state of electronic equipment and by the instruction of touch-screen input, to judge to be The no identification code to electronic equipment is modified, if not needing modified logo code, is referred to by monitoring by the input of entity key It enables to sentence whether section electronic equipment opens by mistake machine, and power-off operation is executed to the electronic equipment for the machine that opens by mistake.It can detect sub- guarantor When the state of card is changed to state of activation by unactivated state, the action event of electronic equipment is ceased listening for, and keeps electronic equipment In open state.It can also shut down in time to electronic equipment when electronic equipment is opened by mistake machine.
It should be understood that although each step in the flow chart of Fig. 2-3 is successively shown according to the instruction of arrow, These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps Execution there is no stringent sequences to limit, these steps can execute in other order.Moreover, at least one in Fig. 2-3 Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps Completion is executed, but can be executed at different times, the execution sequence in these sub-steps or stage is also not necessarily successively It carries out, but can be at least part of the sub-step or stage of other steps or other steps in turn or alternately It executes.
Fig. 4 is the structural block diagram of the shutdown unit of one embodiment.As shown in figure 4, the shutdown unit of the present embodiment includes:
Identification module 402, for identifying electronic equipment when detecting electronic equipment booting and in booting guidance interface Electronics protect card state;
Module 404 is monitored, if protecting card for electronics is unactivated state, monitors the action event of electronic equipment;
Shutdown module 40, if carrying out shutdown behaviour to electronic equipment for not hearing action event within a preset time Make.
Shutdown unit in the embodiment of the present application is known when detecting electronic equipment booting and in booting guidance interface The electronics of other electronic equipment protects the state of card.If it is unactivated state that electronics, which protects card, it is likely that be since error shock source key is led What is caused opens by mistake machine, and the action event for further monitoring electronic equipment determines if not hearing action event within a preset time Electronic equipment opens by mistake machine, carries out power-off operation to electronic equipment.Electronics can be set in time when electronic equipment is opened by mistake machine It is standby to shut down.
In one embodiment, identification module is also used to identify that the electronics for characterization of electronic equipment protects the mark of the state of card Know code;If identification code is first identifier code, then it represents that it is unactivated state that electronics, which protects card,;If identification code is second identification code, Indicating that electronics protects card is state of activation.
It in one embodiment, can also include the first rewriting module, if passing through touching for listening within a preset time The operational order of screen input is touched, then the state that electronics protects card is changed to state of activation by unactivated state.
It in one embodiment, can also include the second rewriting module, if within a preset time, monitoring that electronics is set It is standby to be in charged state, then the state that electronics protects card is changed to state of activation by unactivated state.
In one embodiment, if shutdown module is also used within a preset time, not listen to and input by touch screen Operational order, and do not listen to the operational order by entity key input, then power-off operation executed to electronic equipment.
In one embodiment, if shutdown module is also used within a preset time, not listen to and input by touch screen Operational order, and listen to the operational order by entity key input, then reclocking.
In one embodiment, if shutdown module is also used within a preset time, not listen to and input by touch screen Operational order, and while listening for arrive multiple operational orders by entity key input, then to electronic equipment execute power-off operation; Wherein, the duration of multiple entity keys lasting input instruction simultaneously is shorter than the first specified duration or is longer than the second specified duration.
The division of modules is only used for for example, in other embodiments, can fill shutdown in above-mentioned shutdown unit It sets and is divided into different modules as required, to complete all or part of function of above-mentioned shutdown unit.
Specific about shutdown unit limits the restriction that may refer to above for closedown method, and details are not described herein. Modules in above-mentioned shutdown unit can be realized fully or partially through software, hardware and combinations thereof.Above-mentioned each module can It is embedded in the form of hardware or independently of in the processor in computer equipment, computer can also be stored in a software form and set In memory in standby, the corresponding operation of the above modules is executed in order to which processor calls.
Realizing for the modules in shutdown unit provided in the embodiment of the present application can be the form of computer program.It should Computer program can be run in terminal or server.The program module that the computer program is constituted is storable in terminal or service On the memory of device.When the computer program is executed by processor, realize the embodiment of the present application described in method the step of.
The embodiment of the present application also provides a kind of computer readable storage mediums.One or more is executable comprising computer The non-volatile computer readable storage medium storing program for executing of instruction, when computer executable instructions are executed by one or more processors, So that processor executes following steps:
When detecting electronic equipment booting and in booting guidance interface, identify that the electronics of electronic equipment protects the shape of card State;
If it is unactivated state that electronics, which protects card, the action event of electronic equipment is monitored;
If not hearing action event within a preset time, power-off operation is carried out to electronic equipment.
In one embodiment, when computer executable instructions are executed by one or more processors, also to handle Device executes following steps:The identification code of the state of card is protected in identification for the electronics of characterization of electronic equipment;If identification code is the first mark Know code, then it represents that it is unactivated state that electronics, which protects card,;If identification code is second identification code, then it represents that electronics protects card as activation shape State.
In one embodiment, when computer executable instructions are executed by one or more processors, also to handle Device executes following steps:If listening to the operational order inputted by touch screen within a preset time, electronics is protected to the shape of card State is changed to state of activation by unactivated state.
In one embodiment, when computer executable instructions are executed by one or more processors, also to handle Device executes following steps:If within a preset time, monitoring, electronic equipment is in charged state, then by electronics protect card state by Unactivated state is changed to state of activation.
In one embodiment, when computer executable instructions are executed by one or more processors, also to handle Device executes following steps:If within a preset time, not listening to the operational order inputted by touch screen, and do not listen to By the operational order of entity key input, then power-off operation is executed to electronic equipment.
In one embodiment, when computer executable instructions are executed by one or more processors, also to handle Device executes following steps:If within a preset time, not listening to the operational order inputted by touch screen, and listens to and pass through The operational order of entity key input, then reclocking.
In one embodiment, when computer executable instructions are executed by one or more processors, also to handle Device executes following steps:If within a preset time, not listening to the operational order inputted by touch screen, and while listening for arriving Multiple operational orders by entity key input then execute power-off operation to electronic equipment;Wherein, multiple entity keys continue simultaneously The duration of input instruction is shorter than the first specified duration or is longer than the second specified duration.
A kind of computer program product comprising instruction, when run on a computer, so that computer execution is following Step:
When detecting electronic equipment booting and in booting guidance interface, identify that the electronics of electronic equipment protects the shape of card State;
If it is unactivated state that electronics, which protects card, the action event of electronic equipment is monitored;
If not hearing action event within a preset time, power-off operation is carried out to electronic equipment.
The embodiment of the present application also provides a kind of electronic equipment.As shown in figure 5, for ease of description, illustrating only and this Apply for the relevant part of embodiment, it is disclosed by specific technical details, please refer to the embodiment of the present application method part.The electronics is set It include mobile phone, tablet computer, PDA (Personal Digital Assistant, personal digital assistant), POS for that can be Any terminal device such as (Point of Sales, point-of-sale terminal), vehicle-mounted computer, wearable device, using electronic equipment as mobile phone For:
Fig. 5 is the block diagram of the part-structure of mobile phone relevant to electronic equipment provided by the embodiments of the present application.With reference to Fig. 5, Mobile phone includes:Memory 510, input unit 520, display unit 530, sensor 540, processor 550 and power supply 560 etc. Component.It will be understood by those skilled in the art that handset structure shown in fig. 5 does not constitute the restriction to mobile phone, it may include ratio More or fewer components are illustrated, certain components or different component layouts are perhaps combined.
Wherein, memory 510 can be used for storing software program and module, and processor 550 is stored in storage by operation The software program and module of device 510, thereby executing the various function application and data processing of mobile phone.Memory 510 can be led It to include program storage area and data storage area, wherein program storage area can be needed for storage program area, at least one function Application program (such as application program, application program of image player function of sound-playing function etc.) etc.;It data storage area can Storage uses created data (such as audio data, address list etc.) etc. according to mobile phone.In addition, memory 510 can wrap High-speed random access memory is included, can also include nonvolatile memory, for example, at least disk memory, a flash memories Part or other volatile solid-state parts.
Input unit 520 can be used for receiving the number or character information of input, and generate the user setting with mobile phone 600 And the related key signals input of function control.Specifically, input unit 520 may include touch panel 521 and other inputs Equipment 522.Touch panel 521, alternatively referred to as touch screen collect touch operation (such as the user of user on it or nearby Use the operation of any suitable object or attachment such as finger, stylus on touch panel 521 or near touch panel 521), And corresponding attachment device is driven according to preset formula.In one embodiment, touch panel 521 may include touching inspection Survey two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation Bring signal, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and will It is converted into contact coordinate, then gives processor 550, and can receive order that processor 550 is sent and be executed.In addition, Touch panel 521 can be realized using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch surface Plate 521, input unit 520 can also include other input equipments 522.Specifically, other input equipments 522 may include but not It is limited to one of physical keyboard, function key (such as volume control entity key, switch entity key etc.) etc. or a variety of.
Display unit 530 can be used for showing information input by user or be supplied to user information and mobile phone it is various Menu.Display unit 530 may include display panel 531.In one embodiment, liquid crystal display (Liquid can be used Crystal Display, LCD), the forms such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) To configure display panel 531.In one embodiment, touch panel 521 can cover display panel 531, when touch panel 521 is examined After measuring touch operation on it or nearby, processor 550 is sent to determine the type of touch event, is followed by subsequent processing device 550 provide corresponding visual output according to the type of touch event on display panel 531.Although in Fig. 5, touch panel 521 and display panel 531 are the input and input function for realizing mobile phone as two independent components, but in certain implementations In example, can be integrated by touch panel 521 and display panel 531 and that realizes mobile phone output and input function.
Mobile phone 500 may also include at least one sensor 540, such as optical sensor, motion sensor and other sensings Device.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 531, and proximity sensor can close display panel when mobile phone is moved in one's ear 531 and/or backlight.Motion sensor may include acceleration transducer, can detect by acceleration transducer and adds in all directions The size of speed can detect that size and the direction of gravity when static, can be used to identify application (such as the horizontal/vertical screen of mobile phone posture Switching), Vibration identification correlation function (such as pedometer, tap) etc.;In addition, mobile phone can also configure gyroscope, barometer, humidity Other sensors such as meter, thermometer, infrared sensor etc..
Processor 550 is the control centre of mobile phone, using the various pieces of various interfaces and connection whole mobile phone, is led to It crosses operation or executes the software program and/or module being stored in memory 510, and call and be stored in memory 510 Data execute the various functions and processing data of mobile phone, to carry out integral monitoring to mobile phone.In one embodiment, it handles Device 550 may include one or more processing units.In one embodiment, processor 550 can integrate application processor and modulation Demodulation processor, wherein the main processing operation system of application processor, user interface and application program etc.;Modulation /demodulation processing Device mainly handles wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 550.
Mobile phone 500 further includes the power supply 560 (such as battery) powered to all parts, it is preferred that power supply can pass through electricity Management system and processor 550 are logically contiguous, to realize management charging, electric discharge and power consumption by power-supply management system The functions such as management.
In the embodiment of the present application, processor 550 included by the electronic equipment executes the calculating of storage on a memory The step of closedown method is realized when machine program:.
When detecting electronic equipment booting and in booting guidance interface, identify that the electronics of electronic equipment protects the shape of card State;
If it is unactivated state that electronics, which protects card, the action event of electronic equipment is monitored;
If not hearing action event within a preset time, power-off operation is carried out to electronic equipment.
Any reference to memory, storage, database or other media used in this application may include non-volatile And/or volatile memory.Nonvolatile memory may include that read-only memory (ROM), programming ROM (PROM), electricity can be compiled Journey ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include random access memory (RAM), it is used as external cache.By way of illustration and not limitation, RAM is available in many forms, such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) directly RAM (RDRAM), straight Connect memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM).
Above embodiments only express the several embodiments of the application, and the description thereof is more specific and detailed, but can not Therefore it is interpreted as the limitation to the application the scope of the patents.It should be pointed out that for those of ordinary skill in the art, Without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection model of the application It encloses.Therefore, the scope of protection shall be subject to the appended claims for the application patent.

Claims (10)

1. a kind of closedown method, which is characterized in that including:
When detecting electronic equipment booting and in booting guidance interface, identify that the electronics of the electronic equipment protects the shape of card State;
If it is unactivated state that the electronics, which protects card, the action event of the electronic equipment is monitored;
If not hearing action event within a preset time, power-off operation is carried out to the electronic equipment.
2. the method according to claim 1, wherein the electronics of the identification electronic equipment protects the shape of card State, including:
Identify that the electronics for characterizing the electronic equipment protects the identification code of the state of card;
If the identification code is first identifier code, then it represents that it is unactivated state that the electronics, which protects card,;
If the identification code is second identification code, then it represents that it is state of activation that the electronics, which protects card,.
3. closedown method according to claim 1 or 2, which is characterized in that if it is un-activation shape that the electronics, which protects card, State after the action event for then monitoring the electronic equipment, further includes:
If listening to the operational order inputted by touch screen within a preset time, the electronics is protected into the state of card by not swashing State living is changed to state of activation.
4. closedown method according to claim 3, which is characterized in that if it is unactivated state that the electronics, which protects card, After the action event for then monitoring the electronic equipment, further include:
If within a preset time, monitoring, electronic equipment is in charged state, then the electronics is protected the state of card by un-activation State is changed to state of activation.
5. closedown method according to claim 1 or 2, which is characterized in that if described do not hear behaviour within a preset time Make event, then power-off operation is carried out to the electronic equipment, including:
If within a preset time, not listening to the operational order inputted by touch screen, and does not listen to and pass through entity key The operational order of input then executes power-off operation to the electronic equipment.
6. closedown method according to claim 5, which is characterized in that if described do not hear operation thing within a preset time Part then carries out power-off operation to the electronic equipment, further includes:
If within a preset time, not listening to the operational order inputted by touch screen, and listen to through entity key input Operational order, then reclocking.
7. closedown method according to claim 5, which is characterized in that if described do not hear operation thing within a preset time Part then carries out power-off operation to the electronic equipment, further includes:
If within a preset time, not listening to the operational order inputted by touch screen, and pass through reality while listening for multiple The operational order of body key input then executes power-off operation to the electronic equipment;Wherein, lasting input refers to multiple entity keys simultaneously The duration of order is shorter than the first specified duration or is longer than the second specified duration.
8. a kind of shutdown unit, which is characterized in that including:
Identification module, for identifying the electronic equipment when detecting electronic equipment booting and in booting guidance interface Electronics protects the state of card;
Module is monitored, if protecting card for the electronics is unactivated state, monitors the action event of the electronic equipment;
Shutdown module, if carrying out power-off operation to the electronic equipment for not hearing action event within a preset time.
9. a kind of electronic equipment, including memory and processor, computer program, the computer are stored in the memory When program is executed by the processor, so that the processor executes the closedown method as described in any one of claims 1 to 7 The step of.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of closedown method described in any one of claims 1 to 7 is realized when being executed by processor.
CN201810777861.9A 2018-07-16 2018-07-16 Closedown method, device, electronic equipment and computer readable storage medium Pending CN108920200A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810777861.9A CN108920200A (en) 2018-07-16 2018-07-16 Closedown method, device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810777861.9A CN108920200A (en) 2018-07-16 2018-07-16 Closedown method, device, electronic equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN108920200A true CN108920200A (en) 2018-11-30

Family

ID=64412831

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810777861.9A Pending CN108920200A (en) 2018-07-16 2018-07-16 Closedown method, device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108920200A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110996314A (en) * 2019-12-03 2020-04-10 Oppo(重庆)智能科技有限公司 Information processing method and device, electronic equipment and computer readable medium
CN113347011A (en) * 2021-04-20 2021-09-03 深圳市广和通无线股份有限公司 Communication device, system and communication method
WO2021185097A1 (en) * 2020-03-20 2021-09-23 荣耀终端有限公司 Method for identifying embedded subscriber identity module (esim) card and terminal device
CN115268340A (en) * 2022-08-17 2022-11-01 维沃移动通信有限公司 Electronic equipment and control method
CN115291959A (en) * 2021-04-15 2022-11-04 成都鼎桥通信技术有限公司 Method, device, device, storage medium and program product for preventing false startup

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090044001A1 (en) * 2005-05-25 2009-02-12 Nxp B.V. method of powering up a terminal, memory and terminal thereof
WO2014066678A2 (en) * 2012-10-26 2014-05-01 Lookout, Inc. System and method for developing, updating, and using user and device behavioral context models to modify user, device, and application state, settings and behavior for enhanced user security
CN104869235A (en) * 2015-04-27 2015-08-26 广东欧珀移动通信有限公司 Method, device and system for preventing error starting-up and mobile terminal
CN105867579A (en) * 2015-12-14 2016-08-17 乐视移动智能信息技术(北京)有限公司 Terminal control method and apparatus as well as terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090044001A1 (en) * 2005-05-25 2009-02-12 Nxp B.V. method of powering up a terminal, memory and terminal thereof
WO2014066678A2 (en) * 2012-10-26 2014-05-01 Lookout, Inc. System and method for developing, updating, and using user and device behavioral context models to modify user, device, and application state, settings and behavior for enhanced user security
CN104869235A (en) * 2015-04-27 2015-08-26 广东欧珀移动通信有限公司 Method, device and system for preventing error starting-up and mobile terminal
CN105867579A (en) * 2015-12-14 2016-08-17 乐视移动智能信息技术(北京)有限公司 Terminal control method and apparatus as well as terminal

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110996314A (en) * 2019-12-03 2020-04-10 Oppo(重庆)智能科技有限公司 Information processing method and device, electronic equipment and computer readable medium
CN110996314B (en) * 2019-12-03 2023-07-14 Oppo(重庆)智能科技有限公司 Information processing method, information processing device, electronic equipment and computer readable medium
WO2021185097A1 (en) * 2020-03-20 2021-09-23 荣耀终端有限公司 Method for identifying embedded subscriber identity module (esim) card and terminal device
CN113498052A (en) * 2020-03-20 2021-10-12 荣耀终端有限公司 Method for identifying embedded identity module (eSIM) card and terminal equipment
CN113498052B (en) * 2020-03-20 2022-10-25 荣耀终端有限公司 Method and terminal device for identifying embedded identity recognition module eSIM card
CN115291959A (en) * 2021-04-15 2022-11-04 成都鼎桥通信技术有限公司 Method, device, device, storage medium and program product for preventing false startup
CN113347011A (en) * 2021-04-20 2021-09-03 深圳市广和通无线股份有限公司 Communication device, system and communication method
CN113347011B (en) * 2021-04-20 2022-11-15 深圳市广和通无线股份有限公司 Communication device, system and communication method
CN115268340A (en) * 2022-08-17 2022-11-01 维沃移动通信有限公司 Electronic equipment and control method

Similar Documents

Publication Publication Date Title
CN108920200A (en) Closedown method, device, electronic equipment and computer readable storage medium
CN107532884B (en) Determining curvature of a device in an intelligent bendable system
US20190243333A1 (en) Electronic apparatus for monitoring state of machine tool and control method thereof
CN105491067B (en) Service security verification method and device based on key
KR20160104976A (en) Touch module and electronic device and operating method thereof
KR20180015352A (en) Electric device comprising force sensor
US10559273B2 (en) Display screen control method and apparatus and terminal
CN103200306A (en) Mobile terminal and controlling method thereof
CN103164301B (en) Portable detection device and detection method thereof
CN106447855A (en) Shake-based unlocking method and terminal equipment
CN105912143A (en) Electronic device detecting method and electronic device
CN109101293A (en) Theme configuration method and device, electronic equipment, computer readable storage medium
US10877297B2 (en) Monitoring component of the position of a head mounted device
US9613353B1 (en) Passcode entry through motion sensing
CN106980436A (en) Record screen method and record screen terminal
KR20170054072A (en) Electronic Apparatus and Operation Method for Detecting of Accessory Device Thereof
CN110968226A (en) Navigation bar control method, device, mobile terminal and storage medium
CN109324741A (en) An operation control method, device and system
CN106445719A (en) Recovery-mode Recovery instruction reading and writing method and device
KR102516345B1 (en) Method for determining illegal modification of data and electronic device supporting the same
EP3065101A1 (en) Terminal and operating method thereof
CN109408282A (en) Application Backup restoration methods, equipment and computer readable storage medium
TW201739236A (en) System and method for preventing misoperation of mobile phone
CN107102913B (en) Data backup method and device and computer equipment
CN106462478B (en) Data recovery method, device and terminal

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20181130

RJ01 Rejection of invention patent application after publication