WO2017107325A1 - Mobile terminal and powering-off control method and device thereof - Google Patents
Mobile terminal and powering-off control method and device thereof Download PDFInfo
- Publication number
- WO2017107325A1 WO2017107325A1 PCT/CN2016/076995 CN2016076995W WO2017107325A1 WO 2017107325 A1 WO2017107325 A1 WO 2017107325A1 CN 2016076995 W CN2016076995 W CN 2016076995W WO 2017107325 A1 WO2017107325 A1 WO 2017107325A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- mobile terminal
- action
- user
- shutdown
- preset
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/725—Cordless telephones
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/70—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
- G06F21/81—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer by operating on the power supply, e.g. enabling or disabling power-on, sleep or resume operations
Definitions
- the present invention relates to the field of mobile terminal technologies, and in particular, to a shutdown control method and apparatus for a mobile terminal, and a mobile terminal.
- the object of the embodiments of the present invention is to solve at least one of the above technical problems to some extent.
- the first object of the embodiment of the present invention is to provide a shutdown control method for a mobile terminal.
- the method can improve the security of the mobile terminal while providing the user with the setting function of the personalized shutdown action.
- a second object of the embodiments of the present invention is to provide a shutdown control apparatus for a mobile terminal.
- a third object of the embodiments of the present invention is to provide a mobile terminal.
- a fourth object of the embodiments of the present invention is to provide a mobile terminal.
- a shutdown control method for a mobile terminal includes: when detecting that a user presses a physical button of the mobile terminal to reach a first preset time threshold, collecting the user for a triggering action of the physical button input; determining whether the triggering action matches a preset action; and if the triggering action matches the preset action, generating a shutdown control command, and controlling the location according to the shutdown control command Mobile terminal Shutdown operation.
- the shutdown control method of the mobile terminal in the embodiment of the present invention when detecting that the time when the user presses the physical button of the mobile terminal reaches the first preset time threshold, collects a trigger action of the user for the physical button input, and determines whether the trigger action is Matching with the preset action, if the trigger action matches the preset action, generating a shutdown control command, and controlling the mobile terminal to perform a shutdown operation according to the shutdown control command, that is, pre-defining the preset action by the user, and determining the user input by Whether the shutdown action matches the preset action to determine whether the shutdown action is the user's own operation, and controls the mobile terminal to perform the shutdown operation when it is determined that the user operates, and provides the user with the setting function of the personalized shutdown action. It also improves the security of the mobile terminal.
- a shutdown control device for a mobile terminal includes: a detection module configured to detect whether a time when a user presses a physical button of the mobile terminal reaches a first preset time threshold; and an acquisition module And setting, when the detecting module detects that the user presses the physical button to reach the first preset time threshold, acquiring a trigger action of the user for the physical button input; the first determining module, Is configured to determine whether the triggering action is matched with a preset action; and the control module is configured to generate a shutdown control command when the first determining module determines that the triggering action matches the preset action, and according to the The shutdown control command controls the mobile terminal to perform a shutdown operation.
- the shutdown control device of the mobile terminal of the embodiment of the present invention can collect the trigger action of the user for the physical button input when the detecting module detects that the user presses the physical button of the mobile terminal to reach the first preset time threshold.
- the first determining module determines whether the triggering action matches the preset action.
- the control module If the triggering action matches the preset action, the control module generates a shutdown control command, and controls the mobile terminal to perform a shutdown operation according to the shutdown control command, that is, the user pre-self Defining a preset action, and determining whether the shutdown action input by the user matches the preset action to determine whether the shutdown action is the user's own operation, and controlling the mobile terminal to perform a shutdown operation when determining that the user is operating himself, providing the user with a shutdown operation
- the setting function of the personalized shutdown action improves the security of the mobile terminal.
- the mobile terminal of the third aspect of the present invention includes the shutdown control apparatus of the mobile terminal according to the second aspect of the present invention.
- the mobile terminal of the embodiment of the present invention can collect the trigger action of the user for the physical button input when the detecting module detects that the user presses the physical button of the mobile terminal to reach the first preset time threshold.
- the first determining module determines whether the triggering action matches the preset action.
- the control module If the triggering action matches the preset action, the control module generates a shutdown control command, and controls the mobile terminal to perform a shutdown operation according to the shutdown control command, that is, the user advances Customizing the preset action, and determining whether the shutdown action input by the user matches the preset action to determine whether the shutdown action is the user's own operation, and controlling the mobile terminal to perform the shutdown operation when determining that the user is operating himself, in the user It provides the setting function of the personalized shutdown action and improves the security of the mobile terminal.
- a mobile terminal includes: a housing, a processor, a memory, a circuit board, and a power supply circuit, wherein the circuit board is disposed inside a space enclosed by the housing, The processor and the memory are disposed on the circuit board; the power supply circuit is configured to supply power to respective circuits or devices of the mobile terminal; the memory is configured to store executable program code; the processor By reading an executable program stored in the memory a code to run a program corresponding to the executable program code, to perform the step of: collecting the user for the time when detecting that the time when the user presses and holds the physical button of the mobile terminal reaches a first preset time threshold Determining a trigger action of the physical button input; determining whether the trigger action matches a preset action; and if the trigger action matches the preset action, generating a shutdown control command, and controlling the shutdown according to the shutdown control command The mobile terminal performs a shutdown operation.
- a computer storage medium is further provided, and the computer storage medium may store an execution instruction for executing the control method of the mobile terminal in the foregoing embodiment.
- the mobile terminal of the embodiment of the present invention when detecting that the time when the user presses the physical button of the mobile terminal reaches the first preset time threshold, collects a trigger action of the user for the physical button input, and determines whether the trigger action and the preset action are performed.
- Matching if the triggering action matches the preset action, generating a shutdown control command, and controlling the mobile terminal to perform a shutdown operation according to the shutdown control command, that is, the user presets the preset action by using the user, and determines whether the shutdown action input by the user is
- the preset action is matched to determine whether the shutdown action is the user's own operation, and when the user is determined to operate, the mobile terminal is controlled to perform the shutdown operation, and the user is provided with the setting function of the personalized shutdown action, and the mobile is improved. Terminal security.
- FIG. 1 is a flowchart of a shutdown control method of a mobile terminal according to an embodiment of the present invention
- FIG. 2 is a flowchart of a shutdown control method of a mobile terminal according to another embodiment of the present invention.
- FIG. 3 is a structural block diagram of a shutdown control apparatus of a mobile terminal according to an embodiment of the present invention.
- FIG. 4 is a structural block diagram of a shutdown control apparatus of a mobile terminal according to another embodiment of the present invention.
- FIG. 5 is a structural block diagram of a shutdown control apparatus of a mobile terminal according to still another embodiment of the present invention.
- FIG. 6 is a structural block diagram of a shutdown control apparatus of a mobile terminal according to still another embodiment of the present invention.
- FIG. 7 is a structural block diagram of a shutdown control apparatus of a mobile terminal according to still another embodiment of the present invention.
- the mobile terminal may be a hardware device with various operating systems, such as a mobile phone, a tablet computer, and a personal digital assistant.
- the shutdown control method of the mobile terminal may include:
- the physical button may include, but is not limited to, a power button, a combination of a power button and a volume button, and a power button and a physical HOME button.
- the physical button can be a power button.
- the first preset time threshold may be a time required to perform a long press operation on a physical button (such as a power button), for example, 2 seconds.
- the action of the user to operate the physical button may be collected, for example, pressing and popping the event for the physical button The number of (events) and the interval between each event.
- the above trigger action may be a long press, a short press, or a combination of long press and short press.
- the shutdown control method may further include: determining whether the mobile terminal is in the off state; When the terminal is in the off state, it is detected whether the time when the user presses the physical button reaches the first preset time threshold. That is, the application scenario of the shutdown control method in the embodiment of the present invention may be preferably that the mobile terminal is in the off-screen state, and when the mobile terminal is in the off-screen state, detecting that the user presses the physical button reaches the first preset. At the time threshold, the trigger action of the user for the physical button input is collected. Therefore, when the mobile terminal is in a bright screen state, the function achieved by the user for triggering the physical button may be prevented from colliding with other functions of the physical button.
- the mobile terminal when the mobile terminal is determined to be in a bright screen state, and the time when the user presses the physical button is detected to reach the first preset time threshold, the mobile terminal may be controlled to pop up and unlock.
- the interface controls the mobile terminal to pop up a shutdown menu, so that the user performs a shutdown operation according to the shutdown menu. That is to say, when the mobile terminal is in a bright state, and the user is pressed to press the physical button
- the first preset time threshold is reached (such as long pressing the power button)
- the mobile terminal can be controlled to pop up the unlocking interface, and the mobile terminal can be controlled to pop up the shutdown menu after detecting that the user inputs the correct unlocking password. Therefore, it is possible to prevent the mobile terminal from performing a shutdown operation on the mobile terminal in a bright screen state, thereby improving the security of the mobile terminal.
- the preset action may be pre-defined by the user.
- the shutdown control method of the embodiment of the present invention is applicable to a mobile terminal, and the mobile terminal can provide an interface for the user to customize the shutdown action of the mobile terminal, so that the user can customize the shutdown action through the interface, for example, Taking the physical button as the power button as an example, the user can design the number of times the power button is pressed and the length of time each time the power button is pressed. For example, the user can preset the button by pressing the power button once and intermittently. Press the power button once a second, and then press and hold the power button for 1 second.
- the user can perform a series of actions as a preset.
- the action is stored, and the preset action is stored for subsequent matching to trigger the user input to achieve the purpose of shutdown.
- the trigger action may be matched with a preset action preset by the user, for example, the collected pressed button for the physical button may be The number of times the event is bounced and the interval between each event is matched with information such as the number of presses and pop-up events for the physical button when the user pre-customizes, and the interval between each event. For example, it can be judged whether the action event (ie, the number of presses, bounces, number, etc.
- the shutdown control command may be generated, and the operating system of the mobile terminal is controlled to perform the shutdown operation according to the shutdown control command to complete the movement.
- the shutdown of the terminal when it is determined that the trigger action of the user for the physical button input matches the preset action preset by the user, the shutdown control command may be generated, and the operating system of the mobile terminal is controlled to perform the shutdown operation according to the shutdown control command to complete the movement. The shutdown of the terminal.
- the mobile terminal may also be controlled.
- the shutdown menu is popped up, and when the user clicks the shutdown button on the shutdown menu, a shutdown control command is generated, and the mobile terminal is controlled to perform a shutdown operation according to the shutdown control command. Therefore, when it is determined that the triggering action is matched with the preset action, the user may be reminded that the shutdown operation is currently being performed by popping up the shutdown menu in advance, so as to prevent the user from directly shutting down the mobile terminal due to a misoperation, thereby improving the user experience.
- the shutdown control method of the embodiment of the present invention can be applied to a mobile terminal, and the mobile terminal can provide a function button for the user to enable a preset custom shutdown action, and when the user selects to enable the preset custom shutdown action function mode.
- the user can customize the shutdown action.
- the shutdown operation mode of the traditional mobile terminal can be retained, such as long pressing the power button to perform shutdown.
- the shutdown control method of the embodiment of the present invention maximizes the existing hardware of the mobile terminal, saves the cost without adding additional equipment, and performs security when long pressing a physical button (such as long pressing the power button). Assurance, even if someone is picked up by the mobile terminal, it is impossible to prevent the mobile terminal from being traced by long-pressing the physical button (such as long press of the power button), and the kinetic energy of the long press of the power button is turned off, and the kinetic energy is improved. The security of the mobile terminal.
- the shutdown control method of the mobile terminal in the embodiment of the present invention when detecting that the time when the user presses the physical button of the mobile terminal reaches the first preset time threshold, collects a trigger action of the user for the physical button input, and determines whether the trigger action is Matching with the preset action, if the trigger action matches the preset action, generating a shutdown control command, and controlling the mobile terminal to perform a shutdown operation according to the shutdown control command, that is, pre-defining the preset action by the user, and determining the user input by Whether the shutdown action matches the preset action to determine whether the shutdown action is the user's own operation, and controls the mobile terminal to perform the shutdown operation when it is determined that the user operates, and provides the user with the setting function of the personalized shutdown action. It also improves the security of the mobile terminal.
- FIG. 2 is a flow chart of a shutdown control method of a mobile terminal according to another embodiment of the present invention.
- the user may be provided with a prompt tone to prompt the user that the currently triggered trigger action is incorrect, that is, the trigger action does not match the preset action, and is not a shutdown action, and the shutdown operation cannot be performed.
- the shutdown control method of the mobile terminal may include:
- the physical button may include, but is not limited to, a power button, a combination of a power button and a volume button, and a power button and a physical HOME button.
- the physical button can be a power button.
- the shutdown control method may further include: determining whether the mobile terminal is in the off state; When the terminal is in the off state, it is detected whether the time when the user presses the physical button reaches the first preset time threshold. Therefore, when the mobile terminal is in a bright screen state, the function achieved by the user for triggering the physical button may be prevented from colliding with other functions of the physical button.
- the mobile terminal when the mobile terminal is determined to be in a bright screen state, and the time when the user presses the physical button is detected to reach the first preset time threshold, the mobile terminal may be controlled to pop up and unlock.
- the interface controls the mobile terminal to pop up a shutdown menu, so that the user performs a shutdown operation according to the shutdown menu. Therefore, it is possible to prevent the mobile terminal from performing a shutdown operation on the mobile terminal in a bright screen state, thereby improving the security of the mobile terminal.
- the shutdown control is performed before the triggering action of the user for the physical button input is collected.
- Method also The method may include: acquiring a second prompt sound, and playing the second prompt sound to the user. That is, after detecting that the time when the user presses the physical button reaches the first preset time threshold, the playing module of the mobile terminal (such as an audio output module (speaker, etc.) may be invoked, and the second prompt is played through the playing module. For example, you can play “Please input the shutdown action” to prompt the user to input the shutdown action. After hearing the prompt tone, the user can start to input the shutdown action to complete the shutdown operation. In this process, the user can be collected.
- the second prompt sound may be a voice, or may be an alarm sound emitted by an alarm or a buzzer or the like.
- the preset action may be pre-defined by the user.
- the mobile terminal may also be controlled.
- the shutdown menu is popped up, and when the user clicks the shutdown button on the shutdown menu, a shutdown control command is generated, and the mobile terminal is controlled to perform a shutdown operation according to the shutdown control command. Therefore, when it is determined that the triggering action is matched with the preset action, the user may be reminded that the shutdown operation is currently being performed by popping up the shutdown menu in advance, so as to prevent the user from directly shutting down the mobile terminal due to a misoperation, thereby improving the user experience.
- the first prompt tone may be acquired, and the first prompt tone is played to the user by using the playing module on the mobile terminal.
- the playback is performed at the maximum volume at the time of playing the first prompt.
- the first prompt sound may be a voice, and may also be an alarm sound emitted by an alarm or a buzzer or the like.
- the mobile terminal can be controlled to enter when the playing time of the first prompt sound reaches a second preset time threshold (eg, 10 seconds). Sleep state.
- a second preset time threshold eg, 10 seconds
- the shutdown control method may further include: counting the number of times the triggering action does not match the preset action, and controlling the first prompt tone to continuously play until the number of times reaches the preset threshold;
- the mobile terminal is unlocked. That is, in the process of the user performing the shutdown operation on the mobile terminal, the number of times the trigger action input by the user does not match the preset action may be counted, that is, the number of failures of the user to perform the shutdown operation is counted, and if the number reaches the preset threshold ( For example, twice, the first prompt tone can be provided to the user, and the continuous play of the first prompt tone without stopping is controlled until the user inputs the correct mobile terminal unlock command.
- the shutdown control method of the mobile terminal in the embodiment of the present invention acquires the first prompt sound when the trigger action input by the user does not match the pre-defined preset action, and plays the first prompt sound to the user, and When the playing time of a prompt tone reaches the second preset time threshold, the mobile terminal is controlled to enter a sleep state, and the prompting sound is provided to the user to prompt the user that the currently triggered triggering action is incorrect, that is, the triggering action does not match the preset action. It is not a shutdown action, it cannot be turned off, which improves the user experience.
- the present invention also proposes a shutdown control device for a mobile terminal.
- FIG. 3 is a structural block diagram of a shutdown control apparatus of a mobile terminal according to an embodiment of the present invention.
- the shutdown control device of the mobile terminal may include: a detection module 10, an acquisition module 20, a first determination module 30, and a control module 40.
- the detecting module 10 can be configured to detect whether the time when the user presses the physical button of the mobile terminal reaches a first preset time threshold.
- the physical button may include, but is not limited to, a power button, a combination of a power button and a volume button, and a power button and a physical HOME button.
- the physical button can be a power button.
- the detecting module 10 can detect whether the user presses a physical button on the mobile terminal, such as a power button, during the user's use of the mobile terminal, and starts timing when detecting that the user presses a physical button on the mobile terminal. And ending the timing when the user releases the physical button, detecting whether the length of time the user presses the physical button reaches the first preset time threshold.
- the first preset time threshold may be a time required to perform a long press operation on a physical button (such as a power button), for example, 2 seconds.
- the acquisition module 20 can be configured to collect a trigger action of the user for the physical button input when the detection module 10 detects that the time when the user presses the physical button reaches the first preset time threshold. That is, when the detecting module 10 detects that the time when the user presses the physical button reaches the first preset time threshold, the collecting module 20 may collect an action performed by the user for the physical button, for example, for the physical button. The number of times the event was pressed and bounced and the interval between each event.
- the above trigger action may be a long press, a short press, or a combination of long press and short press.
- the first determining module 30 can be configured to determine whether the triggering action matches the preset action.
- the preset action may be pre-defined by the user.
- the shutdown control device of the embodiment of the present invention can be applied to a mobile terminal, and the mobile terminal can provide an interface for the user to customize the shutdown action of the mobile terminal, so that the user can customize the shutdown action through the interface, for example, Taking the physical button as the power button as an example, the user can design the number of times the power button is pressed and the length of time each time the power button is pressed. For example, the user can preset the button by pressing the power button once and intermittently. Press the power button once a second, and then press and hold the power button for 1 second.
- the user can perform a series of actions as a preset.
- the action is stored, and the preset action is stored for subsequent matching to trigger the user input to achieve the purpose of shutdown.
- the needle can be recorded. The number of times the physical button is pressed and the event is bounced, and the interval between each event.
- the first determining module 30 may match the triggering action with a preset action preset by the user.
- the first determining module 30 may The number of times the pressed and pop-up events for the physical button are captured, the interval between each event, and the number of times the user presses and pops up the event for the physical button.
- the information such as the interval between each event is matched, for example, it can be judged whether the action event (ie, the above-mentioned pressing, the number of bounces, the number of bounces, etc. for the physical button) is correct, and whether the event interval is within the error range. If both of the conditions are satisfied, it can be judged that the trigger action matches the preset action, otherwise the trigger action does not match the preset action as long as one of the two conditions is not satisfied.
- the control module 40 can be configured to generate a shutdown control command when the first determination module 30 determines that the trigger action matches the preset action, and control the mobile terminal to perform the shutdown operation according to the shutdown control command. That is, when the first determining module 30 determines that the triggering action of the user for the physical button input matches the preset action preset by the user, the control module 40 may generate a shutdown control command, and control the mobile terminal according to the shutdown control command. The operating system performs a shutdown operation to complete the shutdown of the mobile terminal.
- the shutdown control device may further include: a second determination module 50, and the second determination module 50 may be configured to detect that the user presses the physical button at the detection module 10. Whether the mobile terminal is in the off state before determining whether the time reaches the first preset time threshold.
- the detecting module 10 is further configured to detect whether the time when the user presses the physical button reaches the first preset time threshold when the second determining module 50 determines that the mobile terminal is in the off state. That is, the application scenario of the shutdown control device of the embodiment of the present invention may preferably be that the mobile terminal is in the off-screen state.
- the detection module 10 detects that the user is holding down.
- the collecting module 20 collects the triggering action of the user for the physical button input. Therefore, when the mobile terminal is in a bright screen state, the function achieved by the user for triggering the physical button may be prevented from colliding with other functions of the physical button.
- the shutdown control apparatus may further include: a first acquisition module 60, and the first acquisition module 60 may be configured to determine, at the first determination module 30, a trigger action and When the preset actions do not match, the first prompt tone is obtained, and the first prompt tone is played to the user.
- the control module 40 may be further configured to control the mobile terminal to enter a sleep state when the playing time of the first prompt tone reaches the second preset time threshold.
- the first acquiring module 60 may acquire the first prompting sound and pass the The playing module plays the first prompt to the user, for example, the “Shutdown action that you input does not match the preset shutdown action, the shutdown operation cannot be completed, please re-enter the shutdown action”, etc., to prompt the user that the shutdown cannot be completed currently. operating.
- the first obtaining module 60 plays at the maximum volume when the first prompt sound is played.
- the first prompt sound may be a voice, and may also be an alarm sound emitted by an alarm or a buzzer or the like.
- the control module 40 when the playing time of the first prompt sound reaches the second preset time threshold (for example, 10 seconds), Control mobile terminal Go to sleep.
- the second preset time threshold for example, 10 seconds
- the shutdown control apparatus may further include: a statistics module 70, and the statistics module 70 may be configured to count the number of times the trigger action does not match the preset action.
- the control module 40 may be further configured to control the first prompt tone to continuously play until the mobile terminal is unlocked when the number of times reaches the preset threshold.
- the statistics module 70 may count the number of times the trigger action input by the user does not match the preset action, that is, the number of failures of the user to perform the shutdown operation, if the number reaches the preset
- the first acquisition module 60 can provide the first prompt tone to the user, and the control module 40 controls the continuous playback of the first prompt tone without stopping until the user inputs the correct mobile terminal unlocking command. .
- the shutdown control apparatus may further include: a second acquisition module 80, and the second acquisition module 80 may be configured to detect that the user presses the detection module 10 After the time of the physical button of the mobile terminal reaches the first preset time threshold, and before the collecting module 20 collects the triggering action of the user for the physical button input, the second prompt sound is acquired, and the second prompt sound is played to the user. That is, after the detecting module 10 detects that the time when the user presses the physical button reaches the first preset time threshold, the second obtaining module 80 may invoke the playing module of the mobile terminal (such as an audio output module (speaker, etc.), and The second prompt sound is played by the playing module.
- the second acquisition module 80 may be configured to detect that the user presses the detection module 10 After the time of the physical button of the mobile terminal reaches the first preset time threshold, and before the collecting module 20 collects the triggering action of the user for the physical button input, the second prompt sound is acquired, and the second prompt sound is played to the user. That is, after the detecting
- the “Please input the shutdown action” can be played to prompt the user to input a shutdown action, and the user can start to input the shutdown action after completing the prompt tone to complete the shutdown operation.
- the acquisition module 20 can collect the trigger action of the user for the physical button input.
- the second prompt sound may be a voice, or may be an alarm sound emitted by an alarm or a buzzer or the like.
- the shutdown control device of the mobile terminal of the embodiment of the present invention can collect the trigger action of the user for the physical button input when the detecting module detects that the user presses the physical button of the mobile terminal to reach the first preset time threshold.
- the first determining module determines whether the triggering action matches the preset action.
- the control module If the triggering action matches the preset action, the control module generates a shutdown control command, and controls the mobile terminal to perform a shutdown operation according to the shutdown control command, that is, the user pre-self Defining a preset action, and determining whether the shutdown action input by the user matches the preset action to determine whether the shutdown action is the user's own operation, and controlling the mobile terminal to perform a shutdown operation when determining that the user is operating himself, providing the user with a shutdown operation
- the setting function of the personalized shutdown action improves the security of the mobile terminal.
- the present invention also provides a mobile terminal, which may include the shutdown control device of the mobile terminal described in any of the above embodiments.
- the mobile terminal of the embodiment of the present invention can collect the trigger action of the user for the physical button input when the detecting module detects that the user presses the physical button of the mobile terminal to reach the first preset time threshold.
- the first determining module determines whether the triggering action matches the preset action.
- the control module If the triggering action matches the preset action, the control module generates a shutdown control command, and controls the mobile terminal to perform a shutdown operation according to the shutdown control command, that is, the user advances Customizing the preset action, and determining whether the shutdown action input by the user matches the preset action to determine whether the shutdown action is the user's own operation, and controlling the mobile terminal to perform the shutdown operation when determining that the user is operating himself, in the user It provides the setting function of the personalized shutdown action and improves the security of the mobile terminal.
- the present invention also provides a mobile terminal, including: a housing, a processor, a memory, a circuit board and a power supply circuit, wherein the circuit board is disposed inside a space enclosed by the housing, the processor and the memory are disposed on the circuit board; the power supply circuit is configured to supply power to each circuit or device of the mobile terminal; and the memory is configured to be stored Executing program code; the processor runs a program corresponding to the executable program code by reading executable program code stored in the memory for performing the following steps:
- the mobile terminal of the embodiment of the present invention when detecting that the time when the user presses the physical button of the mobile terminal reaches the first preset time threshold, collects a trigger action of the user for the physical button input, and determines whether the trigger action and the preset action are performed.
- Matching if the triggering action matches the preset action, generating a shutdown control command, and controlling the mobile terminal to perform a shutdown operation according to the shutdown control command, that is, the user presets the preset action by using the user, and determines whether the shutdown action input by the user is
- the preset action is matched to determine whether the shutdown action is the user's own operation, and when the user is determined to operate, the mobile terminal is controlled to perform the shutdown operation, and the user is provided with the setting function of the personalized shutdown action, and the mobile is improved. Terminal security.
- first and second are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated.
- features defining “first” or “second” may include at least one of the features, either explicitly or implicitly.
- the meaning of "a plurality" is at least two, such as two, three, etc., unless specifically defined otherwise.
- a "computer-readable medium” can be any apparatus that can contain, store, communicate, propagate, or transport a program for use in an instruction execution system, apparatus, or device, or in conjunction with the instruction execution system, apparatus, or device.
- computer readable media include the following: electrical connections (electronic devices) having one or more wires, portable computer disk cartridges (magnetic devices), random access memory (RAM), Read only memory (ROM), erasable editable read only memory (EPROM or flash memory), fiber optic devices, and portable compact disk read only memory (CDROM).
- the computer readable medium may even be a paper or other suitable medium on which the program can be printed, as it may be optically scanned, for example by paper or other medium, followed by editing, interpretation or, if appropriate, other suitable The method is processed to obtain the program electronically and then stored in computer memory.
- portions of the invention may be implemented in hardware, software, firmware or a combination thereof.
- multiple steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system.
- a suitable instruction execution system For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques well known in the art: having logic gates for implementing logic functions on data signals. Discrete logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.
- each functional unit in each embodiment of the present invention may be integrated into one processing module, or each unit may exist physically separately, or two or more units may be integrated into one module.
- the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
- the integrated modules, if implemented in the form of software functional modules and sold or used as stand-alone products, may also be stored in a computer readable storage medium.
- the above mentioned storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
- the technical solution provided by the foregoing embodiment of the present invention can be applied to the shutdown control of the mobile terminal.
- the trigger of the user input for the physical key input is collected. Acting, and determining whether the triggering action matches the preset action.
- the triggering action matches the preset action, generating a shutdown control command, and controlling the mobile terminal to perform a shutdown operation according to the shutdown control command, that is, pre-customizing the preset by the user Action, and by determining whether the shutdown action input by the user matches the preset action, to determine whether the shutdown action is the user's own operation, and controlling the mobile terminal to perform a shutdown operation when determining that the user is operating himself, providing personalizedization for the user
- the setting function of the shutdown action increases the security of the mobile terminal.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephone Function (AREA)
Abstract
Disclosed in the present invention are a mobile terminal powering-off control method, device and mobile terminal, wherein the method comprises: if it is detected that a time a user holds down an entity key of the mobile terminal has reached a first preset time threshold, acquiring a trigger action inputted by the user for the entity key; determining whether the trigger action matches a preset action; if the trigger action matches the preset action, then generating a powering-off control instruction, and controlling the mobile terminal to perform a powering-off operation according to the powering-off control instruction. The method provides a configuration function for a customized powering-off action for the user, as well as improves security of the mobile terminal.
Description
本发明涉及移动终端技术领域,尤其涉及一种移动终端的关机控制方法、装置以及一种移动终端。The present invention relates to the field of mobile terminal technologies, and in particular, to a shutdown control method and apparatus for a mobile terminal, and a mobile terminal.
随着科技技术的不断进步以及人们安全意识的不断提高,人们对于个人隐私的保护已经愈发看重。移动终端作为大量个人信息的存储设备,对其安全性的保障已被广大用户重点关注,个人移动终端设备在被盗后,偷盗者通常采用迅速拆除移动终端上的电池以立刻关机的方式,来避免被失主打电话追踪。With the continuous advancement of technology and the continuous improvement of people's safety awareness, people's protection of personal privacy has become more and more important. As a storage device for a large amount of personal information, mobile terminals have been paid attention to by the majority of users. After the personal mobile terminal device is stolen, the thief usually adopts the method of quickly removing the battery on the mobile terminal to immediately shut down. Avoid being tracked by the owner.
随着目前智能移动终端越来越多的采用内置式电池的方式,传统的抠电池关机方式已经不再适用,但为了避免移动终端出现一些特殊情况无法关机,绝大多数移动终端生产厂家还是会在该移动终端的实体按键(如电源键)上留下后门,例如,长按电源键即可关机,然而这一信息已经被大众广泛了解,同样偷盗者也会在偷到移动终端之后迅速长按电源键以达到迅速关机的目的。With the increasing use of built-in batteries in smart mobile terminals, the traditional battery-off mode is no longer applicable. However, in order to avoid some special situations in mobile terminals, it is impossible to shut down. Most mobile terminal manufacturers will still The back door is left on the physical button (such as the power button) of the mobile terminal. For example, long press the power button to turn off the power. However, this information has been widely understood by the public, and the thief will also quickly grow after stealing the mobile terminal. Press the power button to achieve a quick shutdown.
因此,如何既可以使得用户方便快捷地关闭移动终端又可以防止移动终端在被偷盗之后用户无法跟踪,已经成为亟待解决的问题。Therefore, how to enable the user to conveniently and quickly close the mobile terminal and prevent the mobile terminal from being tracked by the user after being stolen has become an urgent problem to be solved.
发明内容Summary of the invention
本发明实施例的目的旨在至少在一定程度上解决上述的技术问题之一。The object of the embodiments of the present invention is to solve at least one of the above technical problems to some extent.
为此,本发明实施例的第一个目的在于提出一种移动终端的关机控制方法。该方法可以在为用户提供了个性化关机动作的设置功能的同时,又提高了移动终端的安全性。Therefore, the first object of the embodiment of the present invention is to provide a shutdown control method for a mobile terminal. The method can improve the security of the mobile terminal while providing the user with the setting function of the personalized shutdown action.
本发明实施例的第二个目的在于提出一种移动终端的关机控制装置。A second object of the embodiments of the present invention is to provide a shutdown control apparatus for a mobile terminal.
本发明实施例的第三个目的在于提出一种移动终端。A third object of the embodiments of the present invention is to provide a mobile terminal.
本发明实施例的第四个目的在于提出一种移动终端。A fourth object of the embodiments of the present invention is to provide a mobile terminal.
为达上述目的,本发明第一方面实施例的移动终端的关机控制方法,包括:当检测到用户按住所述移动终端的实体按键的时间达到第一预设时间阈值时,采集所述用户针对所述实体按键输入的触发动作;判断所述触发动作是否与预设动作匹配;以及如果所述触发动作与所述预设动作匹配,则生成关机控制指令,并根据所述关机控制指令控制所述移动终端进行
关机操作。In order to achieve the above objective, a shutdown control method for a mobile terminal according to an embodiment of the present invention includes: when detecting that a user presses a physical button of the mobile terminal to reach a first preset time threshold, collecting the user for a triggering action of the physical button input; determining whether the triggering action matches a preset action; and if the triggering action matches the preset action, generating a shutdown control command, and controlling the location according to the shutdown control command Mobile terminal
Shutdown operation.
本发明实施例的移动终端的关机控制方法,当检测到用户按住移动终端的实体按键的时间达到第一预设时间阈值时,采集用户针对实体按键输入的触发动作,并判断该触发动作是否与预设动作匹配,如果该触发动作与预设动作匹配,则生成关机控制指令,并根据关机控制指令控制移动终端进行关机操作,即通过用户预先自定义预设动作,并通过判断用户输入的关机动作是否与预设动作匹配,以判断该关机动作是否为用户本人操作,并在判断为用户本人操作时控制移动终端进行关机操作,在为用户提供了个性化关机动作的设置功能的同时,又提高了移动终端的安全性。The shutdown control method of the mobile terminal in the embodiment of the present invention, when detecting that the time when the user presses the physical button of the mobile terminal reaches the first preset time threshold, collects a trigger action of the user for the physical button input, and determines whether the trigger action is Matching with the preset action, if the trigger action matches the preset action, generating a shutdown control command, and controlling the mobile terminal to perform a shutdown operation according to the shutdown control command, that is, pre-defining the preset action by the user, and determining the user input by Whether the shutdown action matches the preset action to determine whether the shutdown action is the user's own operation, and controls the mobile terminal to perform the shutdown operation when it is determined that the user operates, and provides the user with the setting function of the personalized shutdown action. It also improves the security of the mobile terminal.
为达上述目的,本发明第二方面实施例的移动终端的关机控制装置,包括:检测模块,设置为检测用户按住所述移动终端的实体按键的时间是否达到第一预设时间阈值;采集模块,设置为在所述检测模块检测到所述用户按住所述实体按键的时间达到所述第一预设时间阈值时,采集所述用户针对所述实体按键输入的触发动作;第一判断模块,设置为判断所述触发动作是否与预设动作匹配;以及控制模块,设置为在所述第一判断模块判断所述触发动作与所述预设动作匹配时,生成关机控制指令,并根据所述关机控制指令控制所述移动终端进行关机操作。In order to achieve the above objective, a shutdown control device for a mobile terminal according to a second aspect of the present invention includes: a detection module configured to detect whether a time when a user presses a physical button of the mobile terminal reaches a first preset time threshold; and an acquisition module And setting, when the detecting module detects that the user presses the physical button to reach the first preset time threshold, acquiring a trigger action of the user for the physical button input; the first determining module, Is configured to determine whether the triggering action is matched with a preset action; and the control module is configured to generate a shutdown control command when the first determining module determines that the triggering action matches the preset action, and according to the The shutdown control command controls the mobile terminal to perform a shutdown operation.
本发明实施例的移动终端的关机控制装置,可通过采集模块在检测模块检测到用户按住移动终端的实体按键的时间达到第一预设时间阈值时,采集用户针对实体按键输入的触发动作,第一判断模块判断该触发动作是否与预设动作匹配,如果该触发动作与预设动作匹配,控制模块则生成关机控制指令,并根据关机控制指令控制移动终端进行关机操作,即通过用户预先自定义预设动作,并通过判断用户输入的关机动作是否与预设动作匹配,以判断该关机动作是否为用户本人操作,并在判断为用户本人操作时控制移动终端进行关机操作,在为用户提供了个性化关机动作的设置功能的同时,又提高了移动终端的安全性。The shutdown control device of the mobile terminal of the embodiment of the present invention can collect the trigger action of the user for the physical button input when the detecting module detects that the user presses the physical button of the mobile terminal to reach the first preset time threshold. The first determining module determines whether the triggering action matches the preset action. If the triggering action matches the preset action, the control module generates a shutdown control command, and controls the mobile terminal to perform a shutdown operation according to the shutdown control command, that is, the user pre-self Defining a preset action, and determining whether the shutdown action input by the user matches the preset action to determine whether the shutdown action is the user's own operation, and controlling the mobile terminal to perform a shutdown operation when determining that the user is operating himself, providing the user with a shutdown operation At the same time, the setting function of the personalized shutdown action improves the security of the mobile terminal.
为达上述目的,本发明第三方面实施例的移动终端,包括:本发明第二方面实施例的移动终端的关机控制装置。The mobile terminal of the third aspect of the present invention includes the shutdown control apparatus of the mobile terminal according to the second aspect of the present invention.
本发明实施例的移动终端,可通过关机控制装置中的采集模块在检测模块检测到用户按住移动终端的实体按键的时间达到第一预设时间阈值时,采集用户针对实体按键输入的触发动作,第一判断模块判断该触发动作是否与预设动作匹配,如果该触发动作与预设动作匹配,控制模块则生成关机控制指令,并根据关机控制指令控制移动终端进行关机操作,即通过用户预先自定义预设动作,并通过判断用户输入的关机动作是否与预设动作匹配,以判断该关机动作是否为用户本人操作,并在判断为用户本人操作时控制移动终端进行关机操作,在为用户提供了个性化关机动作的设置功能的同时,又提高了移动终端的安全性。The mobile terminal of the embodiment of the present invention can collect the trigger action of the user for the physical button input when the detecting module detects that the user presses the physical button of the mobile terminal to reach the first preset time threshold. The first determining module determines whether the triggering action matches the preset action. If the triggering action matches the preset action, the control module generates a shutdown control command, and controls the mobile terminal to perform a shutdown operation according to the shutdown control command, that is, the user advances Customizing the preset action, and determining whether the shutdown action input by the user matches the preset action to determine whether the shutdown action is the user's own operation, and controlling the mobile terminal to perform the shutdown operation when determining that the user is operating himself, in the user It provides the setting function of the personalized shutdown action and improves the security of the mobile terminal.
为达上述目的,本发明第四方面实施例的移动终端,包括:壳体、处理器、存储器、电路板和电源电路,其中,所述电路板安置在所述壳体围成的空间内部,所述处理器和所述存储器设置在所述电路板上;所述电源电路,设置为为所述移动终端的各个电路或器件供电;所述存储器用于存储可执行程序代码;所述处理器通过读取所述存储器中存储的可执行程序
代码来运行与所述可执行程序代码对应的程序,以用于执行以下步骤:当检测到用户按住所述移动终端的实体按键的时间达到第一预设时间阈值时,采集所述用户针对所述实体按键输入的触发动作;判断所述触发动作是否与预设动作匹配;以及如果所述触发动作与所述预设动作匹配,则生成关机控制指令,并根据所述关机控制指令控制所述移动终端进行关机操作。In order to achieve the above objective, a mobile terminal according to a fourth aspect of the present invention includes: a housing, a processor, a memory, a circuit board, and a power supply circuit, wherein the circuit board is disposed inside a space enclosed by the housing, The processor and the memory are disposed on the circuit board; the power supply circuit is configured to supply power to respective circuits or devices of the mobile terminal; the memory is configured to store executable program code; the processor By reading an executable program stored in the memory
a code to run a program corresponding to the executable program code, to perform the step of: collecting the user for the time when detecting that the time when the user presses and holds the physical button of the mobile terminal reaches a first preset time threshold Determining a trigger action of the physical button input; determining whether the trigger action matches a preset action; and if the trigger action matches the preset action, generating a shutdown control command, and controlling the shutdown according to the shutdown control command The mobile terminal performs a shutdown operation.
在本发明实施例中,还提供了一种计算机存储介质,该计算机存储介质可以存储有执行指令,该执行指令用于执行上述实施例中的移动终端的控制方法。In the embodiment of the present invention, a computer storage medium is further provided, and the computer storage medium may store an execution instruction for executing the control method of the mobile terminal in the foregoing embodiment.
本发明实施例的移动终端,当检测到用户按住移动终端的实体按键的时间达到第一预设时间阈值时,采集用户针对实体按键输入的触发动作,并判断该触发动作是否与预设动作匹配,如果该触发动作与预设动作匹配,则生成关机控制指令,并根据关机控制指令控制移动终端进行关机操作,即通过用户预先自定义预设动作,并通过判断用户输入的关机动作是否与预设动作匹配,以判断该关机动作是否为用户本人操作,并在判断为用户本人操作时控制移动终端进行关机操作,在为用户提供了个性化关机动作的设置功能的同时,又提高了移动终端的安全性。The mobile terminal of the embodiment of the present invention, when detecting that the time when the user presses the physical button of the mobile terminal reaches the first preset time threshold, collects a trigger action of the user for the physical button input, and determines whether the trigger action and the preset action are performed. Matching, if the triggering action matches the preset action, generating a shutdown control command, and controlling the mobile terminal to perform a shutdown operation according to the shutdown control command, that is, the user presets the preset action by using the user, and determines whether the shutdown action input by the user is The preset action is matched to determine whether the shutdown action is the user's own operation, and when the user is determined to operate, the mobile terminal is controlled to perform the shutdown operation, and the user is provided with the setting function of the personalized shutdown action, and the mobile is improved. Terminal security.
本发明附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实践了解到。The additional aspects and advantages of the invention will be set forth in part in the description which follows.
本发明上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present invention will become apparent and readily understood from
图1是根据本发明一个实施例的移动终端的关机控制方法的流程图;1 is a flowchart of a shutdown control method of a mobile terminal according to an embodiment of the present invention;
图2是根据本发明另一个实施例的移动终端的关机控制方法的流程图;2 is a flowchart of a shutdown control method of a mobile terminal according to another embodiment of the present invention;
图3是根据本发明一个实施例的移动终端的关机控制装置的结构框图;3 is a structural block diagram of a shutdown control apparatus of a mobile terminal according to an embodiment of the present invention;
图4是根据本发明另一个实施例的移动终端的关机控制装置的结构框图;4 is a structural block diagram of a shutdown control apparatus of a mobile terminal according to another embodiment of the present invention;
图5是根据本发明又一个实施例的移动终端的关机控制装置的结构框图;FIG. 5 is a structural block diagram of a shutdown control apparatus of a mobile terminal according to still another embodiment of the present invention; FIG.
图6是根据本发明再一个实施例的移动终端的关机控制装置的结构框图;以及6 is a structural block diagram of a shutdown control apparatus of a mobile terminal according to still another embodiment of the present invention;
图7是根据本发明又另一个实施例的移动终端的关机控制装置的结构框图。FIG. 7 is a structural block diagram of a shutdown control apparatus of a mobile terminal according to still another embodiment of the present invention.
下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或
类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本发明,而不能理解为对本发明的限制。Embodiments of the invention are described in detail below, examples of which are illustrated in the accompanying drawings,
Like numbers refer to the same or similar elements or elements that have the same or similar functions. The embodiments described below with reference to the drawings are intended to be illustrative of the invention and are not to be construed as limiting.
下面参考附图描述本发明实施例的移动终端的关机控制方法、装置以及移动终端。A shutdown control method, apparatus, and mobile terminal of a mobile terminal according to an embodiment of the present invention are described below with reference to the accompanying drawings.
图1是根据本发明一个实施例的移动终端的关机控制方法的流程图。需要说明的是,在本发明的实施例中,该移动终端可以是手机、平板电脑、个人数字助理等具有各种操作系统的硬件设备。1 is a flow chart of a shutdown control method of a mobile terminal according to an embodiment of the present invention. It should be noted that, in the embodiment of the present invention, the mobile terminal may be a hardware device with various operating systems, such as a mobile phone, a tablet computer, and a personal digital assistant.
如图1所示,该移动终端的关机控制方法可以包括:As shown in FIG. 1, the shutdown control method of the mobile terminal may include:
S101,当检测到用户按住移动终端的实体按键的时间达到第一预设时间阈值时,采集用户针对实体按键输入的触发动作。S101. When detecting that the time when the user presses the physical button of the mobile terminal reaches the first preset time threshold, the triggering action of the user for the physical button input is collected.
其中,在本发明的一个实施例中,该实体按键可以包括但不限于电源键、电源键与音量键的组合、以及电源键与实体HOME键等中的任意一种。优选地,在本发明的实施例中,该实体按键可为电源键。In one embodiment of the present invention, the physical button may include, but is not limited to, a power button, a combination of a power button and a volume button, and a power button and a physical HOME button. Preferably, in an embodiment of the invention, the physical button can be a power button.
具体地,在用户使用移动终端的过程中,可检测用户是否按住移动终端上的实体按键,例如电源键,并在检测到用户按住移动终端上的实体按键时,开始计时,并在用户松开该实体按键时结束计时,检测用户按住该实体按键的时间长度是否达到第一预设时间阈值,如果达到,则采集该用户针对该实体按键输入的触发动作。其中,在本发明的实施例中,上述第一预设时间阈值可以是针对实体按键(如电源键)进行长按操作时所需要达到的时间,例如2秒等。Specifically, in the process of using the mobile terminal by the user, it is possible to detect whether the user presses a physical button on the mobile terminal, such as a power button, and starts timing when detecting that the user presses a physical button on the mobile terminal, and the user When the physical button is released, the timing is ended, and it is detected whether the length of time for the user to press and hold the physical button reaches the first preset time threshold. If so, the trigger action of the user for the physical button input is collected. In the embodiment of the present invention, the first preset time threshold may be a time required to perform a long press operation on a physical button (such as a power button), for example, 2 seconds.
也就是说,在检测到用户按住该实体按键的时间达到第一预设时间阈值时,可采集用户针对该实体按键进行操作的动作,例如,针对该实体按键进行的按下和弹起event(事件)的次数以及每个事件之间的间隔。That is to say, when it is detected that the time when the user presses and holds the physical button reaches the first preset time threshold, the action of the user to operate the physical button may be collected, for example, pressing and popping the event for the physical button The number of (events) and the interval between each event.
可以理解,上述触发动作可以是长按、短按、或长按与短按的组合等。It can be understood that the above trigger action may be a long press, a short press, or a combination of long press and short press.
优选地,在本发明的一个实施例中,在检测用户按住实体按键的时间是否达到第一预设时间阈值之前,该关机控制方法还可包括:判断移动终端是否处于灭屏状态;如果移动终端处于灭屏状态,则检测用户按住实体按键的时间是否达到第一预设时间阈值。也就是说,本发明实施例的关机控制方法的应用场景可优选为移动终端处于灭屏状态下,当移动终端处于灭屏状态下时,检测到用户按住实体按键的时间达到第一预设时间阈值时,采集该用户针对实体按键输入的触发动作。由此,可避免移动终端处于亮屏状态时,用户针对该实体按键进行触发动作所达到的功能可能与该实体按键的其他功能冲突。Preferably, in an embodiment of the present invention, before detecting whether the time when the user presses the physical button reaches the first preset time threshold, the shutdown control method may further include: determining whether the mobile terminal is in the off state; When the terminal is in the off state, it is detected whether the time when the user presses the physical button reaches the first preset time threshold. That is, the application scenario of the shutdown control method in the embodiment of the present invention may be preferably that the mobile terminal is in the off-screen state, and when the mobile terminal is in the off-screen state, detecting that the user presses the physical button reaches the first preset. At the time threshold, the trigger action of the user for the physical button input is collected. Therefore, when the mobile terminal is in a bright screen state, the function achieved by the user for triggering the physical button may be prevented from colliding with other functions of the physical button.
可选地,在本发明的一个实施例中,还可在判断移动终端处于亮屏状态下,并检测到用户按住实体按键的时间达到第一预设时间阈值时,可控制移动终端弹出解锁界面,并在该用户在该解锁界面输入正确的解锁密码之后,控制移动终端弹出关机菜单,使得用户根据该关机菜单进行关机操作。也就是说,在移动终端亮屏状态下,并检测到用户按住实体按键的时
间达到第一预设时间阈值(如长按电源键)时,可控制移动终端弹出解锁界面,并在检测到用户输入正确的解锁密码之后才能控制移动终端弹出关机菜单。由此,可以避免移动终端在亮屏状态下,任何人都可以对该移动终端进行关机操作,提高了移动终端的安全性。Optionally, in an embodiment of the present invention, when the mobile terminal is determined to be in a bright screen state, and the time when the user presses the physical button is detected to reach the first preset time threshold, the mobile terminal may be controlled to pop up and unlock. The interface, and after the user inputs the correct unlock password in the unlock interface, controls the mobile terminal to pop up a shutdown menu, so that the user performs a shutdown operation according to the shutdown menu. That is to say, when the mobile terminal is in a bright state, and the user is pressed to press the physical button
When the first preset time threshold is reached (such as long pressing the power button), the mobile terminal can be controlled to pop up the unlocking interface, and the mobile terminal can be controlled to pop up the shutdown menu after detecting that the user inputs the correct unlocking password. Therefore, it is possible to prevent the mobile terminal from performing a shutdown operation on the mobile terminal in a bright screen state, thereby improving the security of the mobile terminal.
S102,判断触发动作是否与预设动作匹配。S102. Determine whether the trigger action matches the preset action.
其中,在本发明的实施例中,该预设动作可以是由用户预先自定义的。举例而言,本发明实施例的关机控制方法可应用于移动终端,该移动终端可为用户提供针对移动终端的关机动作进行自定义的接口,使得用户可通过该接口来自定义关机动作,例如,以实体按键为电源键为例,用户可通过该接口自行设计按压电源键的次数、以及每次按压该电源键的时间长短,如用户可通过该接口预先设置先短按电源键一次、间断1秒再短按一次电源键,再间断1秒后一直长按电源键的动作,当检测到用户点击完成、或者用户很长时间未作操作时,可将用户之前进行的一系列动作作为预设动作,并将该预设动作进行存储,以用于后续匹配用户输入的触发动作而达到关机的目的。In the embodiment of the present invention, the preset action may be pre-defined by the user. For example, the shutdown control method of the embodiment of the present invention is applicable to a mobile terminal, and the mobile terminal can provide an interface for the user to customize the shutdown action of the mobile terminal, so that the user can customize the shutdown action through the interface, for example, Taking the physical button as the power button as an example, the user can design the number of times the power button is pressed and the length of time each time the power button is pressed. For example, the user can preset the button by pressing the power button once and intermittently. Press the power button once a second, and then press and hold the power button for 1 second. When it is detected that the user clicks to complete or the user has not operated for a long time, the user can perform a series of actions as a preset. The action is stored, and the preset action is stored for subsequent matching to trigger the user input to achieve the purpose of shutdown.
可以理解,在用户通过上述接口自定义关机动作(即预先设定预设动作)时,可记录针对实体按键的按下和弹起event的次数以及每个事件之间的间隔等。It can be understood that when the user customizes the shutdown action through the above interface (ie, preset action is preset), the number of presses and pop-up events for the physical button and the interval between each event can be recorded.
具体地,在检测到用户针对该实体按键输入的触发动作结束之后,可将该触发动作与用户预先自定义的预设动作进行匹配,例如,可将采集到的针对该实体按键的按下和弹起event的次数以及每个事件之间的间隔等信息与用户预先自定义时针对该实体按键进行的按下和弹起event(事件)的次数以及每个事件之间的间隔等信息进行匹配,如,可判断动作事件(即上述的针对实体按键进行的按下、弹起的次数、个数等)是否无误、以及事件间隔时间是否在误差范围内,如果这两个条件均满足,则可判断触发动作与预设动作匹配,否则只要这两个条件中的其中一个不满足均可判断触发动作与预设动作不匹配。Specifically, after detecting that the trigger action of the user inputting the button for the entity ends, the trigger action may be matched with a preset action preset by the user, for example, the collected pressed button for the physical button may be The number of times the event is bounced and the interval between each event is matched with information such as the number of presses and pop-up events for the physical button when the user pre-customizes, and the interval between each event. For example, it can be judged whether the action event (ie, the number of presses, bounces, number, etc. performed on the physical button described above) is correct, and whether the event interval is within the error range, if both conditions are satisfied, then It can be judged that the trigger action matches the preset action, otherwise the trigger action does not match the preset action as long as one of the two conditions is not satisfied.
S103,如果触发动作与预设动作匹配,则生成关机控制指令,并根据关机控制指令控制移动终端进行关机操作。S103. If the trigger action matches the preset action, generate a shutdown control command, and control the mobile terminal to perform a shutdown operation according to the shutdown control command.
也就是说,当判断用户针对实体按键输入的触发动作与用户预先自定义的预设动作匹配时,可生成关机控制指令,并根据该关机控制指令控制移动终端的操作系统进行关机操作以完成移动终端的关机。In other words, when it is determined that the trigger action of the user for the physical button input matches the preset action preset by the user, the shutdown control command may be generated, and the operating system of the mobile terminal is controlled to perform the shutdown operation according to the shutdown control command to complete the movement. The shutdown of the terminal.
为了防止用户由于误操作而导致移动终端直接关机,可选地,在本发明的一个实施例中,在判断触发动作与预设动作匹配之后,并在生成关机控制指令之前,还可控制移动终端弹出关机菜单,并在用户在该关机菜单上点击关机按钮时,生成关机控制指令,并根据该关机控制指令控制移动终端进行关机操作。由此,在判断触发动作与预设动作匹配时,可通过预先弹出关机菜单来提醒用户目前正在进行关机操作,以避免用户可能由于误操作而导致移动终端直接关机,提升了用户体验。In order to prevent the user from directly shutting down the mobile terminal due to a misoperation, in an embodiment of the present invention, after determining that the trigger action matches the preset action, and before generating the shutdown control command, the mobile terminal may also be controlled. The shutdown menu is popped up, and when the user clicks the shutdown button on the shutdown menu, a shutdown control command is generated, and the mobile terminal is controlled to perform a shutdown operation according to the shutdown control command. Therefore, when it is determined that the triggering action is matched with the preset action, the user may be reminded that the shutdown operation is currently being performed by popping up the shutdown menu in advance, so as to prevent the user from directly shutting down the mobile terminal due to a misoperation, thereby improving the user experience.
可以理解,本发明实施例的关机控制方法可应用于移动终端,该移动终端可以为用户提供是否开启预设自定义关机动作的功能按钮,当用户选择开启预设自定义关机动作功能模式
时,用户可针对关机动作进行自定义,相反,当用户未选择开启该预设自定义关机动作功能模式时,可保留传统移动终端的关机操作模式,如长按电源键进行关机等。It can be understood that the shutdown control method of the embodiment of the present invention can be applied to a mobile terminal, and the mobile terminal can provide a function button for the user to enable a preset custom shutdown action, and when the user selects to enable the preset custom shutdown action function mode.
The user can customize the shutdown action. On the contrary, when the user does not choose to enable the preset custom shutdown action function mode, the shutdown operation mode of the traditional mobile terminal can be retained, such as long pressing the power button to perform shutdown.
综上,本发明实施例的关机控制方法最大限度利用了移动终端本身现有硬件,在不增加额外设备的情况下,节约了成本,对长按实体按键(如长按电源键)时进行安全保障,即使被他人捡到该移动终端,也无法通过长按实体按键(如长按电源键)进行关机的方式来避免移动终端被追查,同时还保留了长按电源键关机的动能,提高了移动终端的安全性。In summary, the shutdown control method of the embodiment of the present invention maximizes the existing hardware of the mobile terminal, saves the cost without adding additional equipment, and performs security when long pressing a physical button (such as long pressing the power button). Assurance, even if someone is picked up by the mobile terminal, it is impossible to prevent the mobile terminal from being traced by long-pressing the physical button (such as long press of the power button), and the kinetic energy of the long press of the power button is turned off, and the kinetic energy is improved. The security of the mobile terminal.
本发明实施例的移动终端的关机控制方法,当检测到用户按住移动终端的实体按键的时间达到第一预设时间阈值时,采集用户针对实体按键输入的触发动作,并判断该触发动作是否与预设动作匹配,如果该触发动作与预设动作匹配,则生成关机控制指令,并根据关机控制指令控制移动终端进行关机操作,即通过用户预先自定义预设动作,并通过判断用户输入的关机动作是否与预设动作匹配,以判断该关机动作是否为用户本人操作,并在判断为用户本人操作时控制移动终端进行关机操作,在为用户提供了个性化关机动作的设置功能的同时,又提高了移动终端的安全性。The shutdown control method of the mobile terminal in the embodiment of the present invention, when detecting that the time when the user presses the physical button of the mobile terminal reaches the first preset time threshold, collects a trigger action of the user for the physical button input, and determines whether the trigger action is Matching with the preset action, if the trigger action matches the preset action, generating a shutdown control command, and controlling the mobile terminal to perform a shutdown operation according to the shutdown control command, that is, pre-defining the preset action by the user, and determining the user input by Whether the shutdown action matches the preset action to determine whether the shutdown action is the user's own operation, and controls the mobile terminal to perform the shutdown operation when it is determined that the user operates, and provides the user with the setting function of the personalized shutdown action. It also improves the security of the mobile terminal.
图2是根据本发明另一个实施例的移动终端的关机控制方法的流程图。2 is a flow chart of a shutdown control method of a mobile terminal according to another embodiment of the present invention.
为了提升用户体验,在本发明的实施例中,可为用户提供提示音,以提示用户当前输入的触发动作不正确,即该触发动作与预设动作不匹配,不是关机动作,不能进行关机操作。如图2所示,该移动终端的关机控制方法可以包括:In order to improve the user experience, in the embodiment of the present invention, the user may be provided with a prompt tone to prompt the user that the currently triggered trigger action is incorrect, that is, the trigger action does not match the preset action, and is not a shutdown action, and the shutdown operation cannot be performed. . As shown in FIG. 2, the shutdown control method of the mobile terminal may include:
S201,当检测到用户按住移动终端的实体按键的时间达到第一预设时间阈值时,采集用户针对实体按键输入的触发动作。S201. When detecting that the time when the user presses and holds the physical button of the mobile terminal reaches the first preset time threshold, the trigger action of the user for the physical button input is collected.
其中,在本发明的一个实施例中,该实体按键可以包括但不限于电源键、电源键与音量键的组合、以及电源键与实体HOME键等中的任意一种。优选地,在本发明的实施例中,该实体按键可为电源键。In one embodiment of the present invention, the physical button may include, but is not limited to, a power button, a combination of a power button and a volume button, and a power button and a physical HOME button. Preferably, in an embodiment of the invention, the physical button can be a power button.
优选地,在本发明的一个实施例中,在检测用户按住实体按键的时间是否达到第一预设时间阈值之前,该关机控制方法还可包括:判断移动终端是否处于灭屏状态;如果移动终端处于灭屏状态,则检测用户按住实体按键的时间是否达到第一预设时间阈值。由此,可避免移动终端处于亮屏状态时,用户针对该实体按键进行触发动作所达到的功能可能与该实体按键的其他功能冲突。Preferably, in an embodiment of the present invention, before detecting whether the time when the user presses the physical button reaches the first preset time threshold, the shutdown control method may further include: determining whether the mobile terminal is in the off state; When the terminal is in the off state, it is detected whether the time when the user presses the physical button reaches the first preset time threshold. Therefore, when the mobile terminal is in a bright screen state, the function achieved by the user for triggering the physical button may be prevented from colliding with other functions of the physical button.
可选地,在本发明的一个实施例中,还可在判断移动终端处于亮屏状态下,并检测到用户按住实体按键的时间达到第一预设时间阈值时,可控制移动终端弹出解锁界面,并在该用户在该解锁界面输入正确的解锁密码之后,控制移动终端弹出关机菜单,使得用户根据该关机菜单进行关机操作。由此,可以避免移动终端在亮屏状态下,任何人都可以对该移动终端进行关机操作,提高了移动终端的安全性。Optionally, in an embodiment of the present invention, when the mobile terminal is determined to be in a bright screen state, and the time when the user presses the physical button is detected to reach the first preset time threshold, the mobile terminal may be controlled to pop up and unlock. The interface, and after the user inputs the correct unlock password in the unlock interface, controls the mobile terminal to pop up a shutdown menu, so that the user performs a shutdown operation according to the shutdown menu. Therefore, it is possible to prevent the mobile terminal from performing a shutdown operation on the mobile terminal in a bright screen state, thereby improving the security of the mobile terminal.
可选地,在本发明的一个实施例中,在检测到用户按住移动终端的实体按键的时间达到第一预设时间阈值之后,在采集用户针对实体按键输入的触发动作之前,该关机控制方法还
可包括:获取第二提示音,并将第二提示音播放给用户。也就是说,在检测到用户按住实体按键的时间达到第一预设时间阈值之后,可调用移动终端的播放模块(如音频输出模块(扬声器等)),并通过该播放模块播放第二提示音,例如,可播放“请输入关机动作”,以提示用户接下来要输入关机动作,用户可在听到该提示音后开始输入关机动作以完成关机操作,在此过程中,可采集用户针对实体按键输入的触发动作。其中,在本发明的实施例中,该第二提示音可以是语音,还可以是警报器或蜂鸣器等发出的警报声等。Optionally, in an embodiment of the present invention, after detecting that the time when the user presses the physical button of the mobile terminal reaches the first preset time threshold, the shutdown control is performed before the triggering action of the user for the physical button input is collected. Method also
The method may include: acquiring a second prompt sound, and playing the second prompt sound to the user. That is, after detecting that the time when the user presses the physical button reaches the first preset time threshold, the playing module of the mobile terminal (such as an audio output module (speaker, etc.) may be invoked, and the second prompt is played through the playing module. For example, you can play “Please input the shutdown action” to prompt the user to input the shutdown action. After hearing the prompt tone, the user can start to input the shutdown action to complete the shutdown operation. In this process, the user can be collected. The trigger action of the physical button input. In the embodiment of the present invention, the second prompt sound may be a voice, or may be an alarm sound emitted by an alarm or a buzzer or the like.
S202,判断触发动作是否与预设动作匹配。S202. Determine whether the trigger action matches the preset action.
其中,在本发明的实施例中,该预设动作可以是由用户预先自定义的。In the embodiment of the present invention, the preset action may be pre-defined by the user.
S203,如果触发动作与预设动作匹配,则生成关机控制指令,并根据关机控制指令控制移动终端进行关机操作。S203. If the trigger action matches the preset action, generate a shutdown control command, and control the mobile terminal to perform a shutdown operation according to the shutdown control command.
为了防止用户由于误操作而导致移动终端直接关机,可选地,在本发明的一个实施例中,在判断触发动作与预设动作匹配之后,并在生成关机控制指令之前,还可控制移动终端弹出关机菜单,并在用户在该关机菜单上点击关机按钮时,生成关机控制指令,并根据该关机控制指令控制移动终端进行关机操作。由此,在判断触发动作与预设动作匹配时,可通过预先弹出关机菜单来提醒用户目前正在进行关机操作,以避免用户可能由于误操作而导致移动终端直接关机,提升了用户体验。In order to prevent the user from directly shutting down the mobile terminal due to a misoperation, in an embodiment of the present invention, after determining that the trigger action matches the preset action, and before generating the shutdown control command, the mobile terminal may also be controlled. The shutdown menu is popped up, and when the user clicks the shutdown button on the shutdown menu, a shutdown control command is generated, and the mobile terminal is controlled to perform a shutdown operation according to the shutdown control command. Therefore, when it is determined that the triggering action is matched with the preset action, the user may be reminded that the shutdown operation is currently being performed by popping up the shutdown menu in advance, so as to prevent the user from directly shutting down the mobile terminal due to a misoperation, thereby improving the user experience.
S204,如果触发动作与预设动作不匹配,则获取第一提示音,并将第一提示音播放给用户。S204. If the trigger action does not match the preset action, obtain the first prompt sound, and play the first prompt sound to the user.
具体地,当判断用户针对实体按键输入的触发动作与用户预先自定义的预设动作不匹配时,可获取第一提示音,并通过移动终端上的播放模块将该第一提示音播放给用户,例如可播放“您输入的关机动作与预设的关机动作不匹配,不能完成关机操作,请重新输入关机动作”等,以提示用户当前不能完成关机操作。可选地,在播放第一提示音时刻以最大音量来进行播放。其中,在本发明的实施例中,该第一提示音可以是语音,还可以是警报器或蜂鸣器等发出的警报声等。Specifically, when it is determined that the triggering action of the user for the physical button input does not match the pre-defined preset action of the user, the first prompt tone may be acquired, and the first prompt tone is played to the user by using the playing module on the mobile terminal. For example, you can play “The shutdown action you entered does not match the preset shutdown action, you cannot complete the shutdown operation, please re-enter the shutdown action” to remind the user that the shutdown operation cannot be completed currently. Optionally, the playback is performed at the maximum volume at the time of playing the first prompt. In the embodiment of the present invention, the first prompt sound may be a voice, and may also be an alarm sound emitted by an alarm or a buzzer or the like.
S205,当第一提示音的播放时间达到第二预设时间阈值时,控制移动终端进入休眠状态。S205. When the playing time of the first prompt tone reaches a second preset time threshold, the mobile terminal is controlled to enter a sleep state.
具体地,在播放第一提示音的期间用户没有做例如关闭该提示等操作时,则在第一提示音的播放时间达到第二预设时间阈值(如10秒)时,可控制移动终端进入休眠状态。Specifically, when the user does not perform an operation such as turning off the prompt during the playing of the first prompt sound, the mobile terminal can be controlled to enter when the playing time of the first prompt sound reaches a second preset time threshold (eg, 10 seconds). Sleep state.
优选地,在本发明的一个实施例中,该关机控制方法还可包括:统计触发动作与预设动作不匹配的次数,并在次数达到预设阈值时,控制第一提示音连续播放,直至移动终端被解锁。也就是说,在用户针对移动终端进行关机操作的过程中,可统计用户输入的触发动作与预设动作不匹配的次数,即统计用户进行关机操作的失败次数,如果该次数达到预设阈值(如两次),则可将第一提示音提供给用户,并控制该第一提示音一直不停止的连续播放,直到用户输入正确的移动终端解锁指令为止。
Preferably, in an embodiment of the present invention, the shutdown control method may further include: counting the number of times the triggering action does not match the preset action, and controlling the first prompt tone to continuously play until the number of times reaches the preset threshold; The mobile terminal is unlocked. That is, in the process of the user performing the shutdown operation on the mobile terminal, the number of times the trigger action input by the user does not match the preset action may be counted, that is, the number of failures of the user to perform the shutdown operation is counted, and if the number reaches the preset threshold ( For example, twice, the first prompt tone can be provided to the user, and the continuous play of the first prompt tone without stopping is controlled until the user inputs the correct mobile terminal unlock command.
本发明实施例的移动终端的关机控制方法,在判断用户输入的触发动作与预先自定义的预设动作不匹配时,获取第一提示音,并将第一提示音播放给用户,并在第一提示音的播放时间达到第二预设时间阈值时,控制移动终端进入休眠状态,通过为用户提供提示音以提示用户当前输入的触发动作不正确,即该触发动作与预设动作不匹配,不是关机动作,不能进行关机操作,提升了用户体验。The shutdown control method of the mobile terminal in the embodiment of the present invention acquires the first prompt sound when the trigger action input by the user does not match the pre-defined preset action, and plays the first prompt sound to the user, and When the playing time of a prompt tone reaches the second preset time threshold, the mobile terminal is controlled to enter a sleep state, and the prompting sound is provided to the user to prompt the user that the currently triggered triggering action is incorrect, that is, the triggering action does not match the preset action. It is not a shutdown action, it cannot be turned off, which improves the user experience.
为了实现上述实施例,本发明还提出了一种移动终端的关机控制装置。In order to implement the above embodiments, the present invention also proposes a shutdown control device for a mobile terminal.
图3是根据本发明一个实施例的移动终端的关机控制装置的结构框图。如图3所示,该移动终端的关机控制装置可以包括:检测模块10、采集模块20、第一判断模块30和控制模块40。FIG. 3 is a structural block diagram of a shutdown control apparatus of a mobile terminal according to an embodiment of the present invention. As shown in FIG. 3, the shutdown control device of the mobile terminal may include: a detection module 10, an acquisition module 20, a first determination module 30, and a control module 40.
具体地,检测模块10可设置为检测用户按住移动终端的实体按键的时间是否达到第一预设时间阈值。其中,在本发明的一个实施例中,该实体按键可以包括但不限于电源键、电源键与音量键的组合、以及电源键与实体HOME键等中的任意一种。优选地,在本发明的实施例中,该实体按键可为电源键。Specifically, the detecting module 10 can be configured to detect whether the time when the user presses the physical button of the mobile terminal reaches a first preset time threshold. In one embodiment of the present invention, the physical button may include, but is not limited to, a power button, a combination of a power button and a volume button, and a power button and a physical HOME button. Preferably, in an embodiment of the invention, the physical button can be a power button.
更具体地,检测模块10在用户使用移动终端的过程中,可检测用户是否按住移动终端上的实体按键,例如电源键,并在检测到用户按住移动终端上的实体按键时,开始计时,并在用户松开该实体按键时结束计时,检测用户按住该实体按键的时间长度是否达到第一预设时间阈值。其中,在本发明的实施例中,上述第一预设时间阈值可以是针对实体按键(如电源键)进行长按操作时所需要达到的时间,例如2秒等。More specifically, the detecting module 10 can detect whether the user presses a physical button on the mobile terminal, such as a power button, during the user's use of the mobile terminal, and starts timing when detecting that the user presses a physical button on the mobile terminal. And ending the timing when the user releases the physical button, detecting whether the length of time the user presses the physical button reaches the first preset time threshold. In the embodiment of the present invention, the first preset time threshold may be a time required to perform a long press operation on a physical button (such as a power button), for example, 2 seconds.
采集模块20可设置为在检测模块10检测到用户按住实体按键的时间达到第一预设时间阈值时,采集用户针对实体按键输入的触发动作。也就是说,在检测模块10检测到用户按住该实体按键的时间达到第一预设时间阈值时,采集模块20可采集用户针对该实体按键进行操作的动作,例如,针对该实体按键进行的按下和弹起event(事件)的次数以及每个事件之间的间隔。The acquisition module 20 can be configured to collect a trigger action of the user for the physical button input when the detection module 10 detects that the time when the user presses the physical button reaches the first preset time threshold. That is, when the detecting module 10 detects that the time when the user presses the physical button reaches the first preset time threshold, the collecting module 20 may collect an action performed by the user for the physical button, for example, for the physical button. The number of times the event was pressed and bounced and the interval between each event.
可以理解,上述触发动作可以是长按、短按、或长按与短按的组合等。It can be understood that the above trigger action may be a long press, a short press, or a combination of long press and short press.
第一判断模块30可设置为判断触发动作是否与预设动作匹配。其中,在本发明的实施例中,该预设动作可以是由用户预先自定义的。举例而言,本发明实施例的关机控制装置可应用于移动终端,该移动终端可为用户提供针对移动终端的关机动作进行自定义的接口,使得用户可通过该接口来自定义关机动作,例如,以实体按键为电源键为例,用户可通过该接口自行设计按压电源键的次数、以及每次按压该电源键的时间长短,如用户可通过该接口预先设置先短按电源键一次、间断1秒再短按一次电源键,再间断1秒后一直长按电源键的动作,当检测到用户点击完成、或者用户很长时间未作操作时,可将用户之前进行的一系列动作作为预设动作,并将该预设动作进行存储,以用于后续匹配用户输入的触发动作而达到关机的目的。The first determining module 30 can be configured to determine whether the triggering action matches the preset action. In the embodiment of the present invention, the preset action may be pre-defined by the user. For example, the shutdown control device of the embodiment of the present invention can be applied to a mobile terminal, and the mobile terminal can provide an interface for the user to customize the shutdown action of the mobile terminal, so that the user can customize the shutdown action through the interface, for example, Taking the physical button as the power button as an example, the user can design the number of times the power button is pressed and the length of time each time the power button is pressed. For example, the user can preset the button by pressing the power button once and intermittently. Press the power button once a second, and then press and hold the power button for 1 second. When it is detected that the user clicks to complete or the user has not operated for a long time, the user can perform a series of actions as a preset. The action is stored, and the preset action is stored for subsequent matching to trigger the user input to achieve the purpose of shutdown.
可以理解,在用户通过上述接口自定义关机动作(即预先设定预设动作)时,可记录针
对实体按键的按下和弹起event的次数以及每个事件之间的间隔等。It can be understood that when the user customizes the shutdown action through the above interface (that is, preset preset action), the needle can be recorded.
The number of times the physical button is pressed and the event is bounced, and the interval between each event.
更具体地,第一判断模块30在检测到用户针对该实体按键输入的触发动作结束之后,可将该触发动作与用户预先自定义的预设动作进行匹配,例如,第一判断模块30可将采集到的针对该实体按键的按下和弹起event的次数以及每个事件之间的间隔等信息与用户预先自定义时针对该实体按键进行的按下和弹起event(事件)的次数以及每个事件之间的间隔等信息进行匹配,如,可判断动作事件(即上述的针对实体按键进行的按下、弹起的次数、个数等)是否无误、以及事件间隔时间是否在误差范围内,如果这两个条件均满足,则可判断触发动作与预设动作匹配,否则只要这两个条件中的其中一个不满足均可判断触发动作与预设动作不匹配。More specifically, after detecting that the triggering action of the user for the physical button input is ended, the first determining module 30 may match the triggering action with a preset action preset by the user. For example, the first determining module 30 may The number of times the pressed and pop-up events for the physical button are captured, the interval between each event, and the number of times the user presses and pops up the event for the physical button The information such as the interval between each event is matched, for example, it can be judged whether the action event (ie, the above-mentioned pressing, the number of bounces, the number of bounces, etc. for the physical button) is correct, and whether the event interval is within the error range. If both of the conditions are satisfied, it can be judged that the trigger action matches the preset action, otherwise the trigger action does not match the preset action as long as one of the two conditions is not satisfied.
控制模块40可设置为在第一判断模块30判断触发动作与预设动作匹配时,生成关机控制指令,并根据关机控制指令控制移动终端进行关机操作。也就是说,当第一判断模块30判断用户针对实体按键输入的触发动作与用户预先自定义的预设动作匹配时,控制模块40可生成关机控制指令,并根据该关机控制指令控制移动终端的操作系统进行关机操作以完成移动终端的关机。The control module 40 can be configured to generate a shutdown control command when the first determination module 30 determines that the trigger action matches the preset action, and control the mobile terminal to perform the shutdown operation according to the shutdown control command. That is, when the first determining module 30 determines that the triggering action of the user for the physical button input matches the preset action preset by the user, the control module 40 may generate a shutdown control command, and control the mobile terminal according to the shutdown control command. The operating system performs a shutdown operation to complete the shutdown of the mobile terminal.
优选地,在本发明的一个实施例中,如图4所示,该关机控制装置还可包括:第二判断模块50,第二判断模块50可设置为在检测模块10检测用户按住实体按键的时间是否达到第一预设时间阈值之前,判断移动终端是否处于灭屏状态。其中,在本发明的实施例中,检测模块10还可设置为在第二判断模块50判断移动终端处于灭屏状态时,检测用户按住实体按键的时间是否达到第一预设时间阈值。也就是说,本发明实施例的关机控制装置的应用场景可优选为移动终端处于灭屏状态下,当第二判断模块50判断移动终端处于灭屏状态下时,检测模块10检测到用户按住实体按键的时间达到第一预设时间阈值时,采集模块20采集该用户针对实体按键输入的触发动作。由此,可避免移动终端处于亮屏状态时,用户针对该实体按键进行触发动作所达到的功能可能与该实体按键的其他功能冲突。Preferably, in an embodiment of the present invention, as shown in FIG. 4, the shutdown control device may further include: a second determination module 50, and the second determination module 50 may be configured to detect that the user presses the physical button at the detection module 10. Whether the mobile terminal is in the off state before determining whether the time reaches the first preset time threshold. In the embodiment of the present invention, the detecting module 10 is further configured to detect whether the time when the user presses the physical button reaches the first preset time threshold when the second determining module 50 determines that the mobile terminal is in the off state. That is, the application scenario of the shutdown control device of the embodiment of the present invention may preferably be that the mobile terminal is in the off-screen state. When the second determination module 50 determines that the mobile terminal is in the off-screen state, the detection module 10 detects that the user is holding down. When the time of the physical button reaches the first preset time threshold, the collecting module 20 collects the triggering action of the user for the physical button input. Therefore, when the mobile terminal is in a bright screen state, the function achieved by the user for triggering the physical button may be prevented from colliding with other functions of the physical button.
进一步地,在本发明的一个实施例中,如图5所示,该关机控制装置还可包括:第一获取模块60,第一获取模块60可设置为在第一判断模块30判断触发动作与预设动作不匹配时,获取第一提示音,并将第一提示音播放给用户。其中,在本发明的实施例中,控制模块40还可设置为在第一提示音的播放时间达到第二预设时间阈值时,控制移动终端进入休眠状态。Further, in an embodiment of the present invention, as shown in FIG. 5, the shutdown control apparatus may further include: a first acquisition module 60, and the first acquisition module 60 may be configured to determine, at the first determination module 30, a trigger action and When the preset actions do not match, the first prompt tone is obtained, and the first prompt tone is played to the user. In the embodiment of the present invention, the control module 40 may be further configured to control the mobile terminal to enter a sleep state when the playing time of the first prompt tone reaches the second preset time threshold.
更具体地,当第一判断模块30判断用户针对实体按键输入的触发动作与用户预先自定义的预设动作不匹配时,第一获取模块60可获取第一提示音,并通过移动终端上的播放模块将该第一提示音播放给用户,例如可播放“您输入的关机动作与预设的关机动作不匹配,不能完成关机操作,请重新输入关机动作”等,以提示用户当前不能完成关机操作。可选地,第一获取模块60在播放第一提示音时刻以最大音量来进行播放。其中,在本发明的实施例中,该第一提示音可以是语音,还可以是警报器或蜂鸣器等发出的警报声等。More specifically, when the first determining module 30 determines that the triggering action of the user for the physical button input does not match the preset action preset by the user, the first acquiring module 60 may acquire the first prompting sound and pass the The playing module plays the first prompt to the user, for example, the “Shutdown action that you input does not match the preset shutdown action, the shutdown operation cannot be completed, please re-enter the shutdown action”, etc., to prompt the user that the shutdown cannot be completed currently. operating. Optionally, the first obtaining module 60 plays at the maximum volume when the first prompt sound is played. In the embodiment of the present invention, the first prompt sound may be a voice, and may also be an alarm sound emitted by an alarm or a buzzer or the like.
在第一获取模块60播放第一提示音的期间用户没有做例如关闭该提示等操作时,控制模块40则在第一提示音的播放时间达到第二预设时间阈值(如10秒)时,可控制移动终端进
入休眠状态。When the first acquisition module 60 plays the first prompt tone, the user does not perform an operation such as turning off the prompt, and the control module 40, when the playing time of the first prompt sound reaches the second preset time threshold (for example, 10 seconds), Control mobile terminal
Go to sleep.
优选地,在本发明的一个实施例中,如图6所示,该关机控制装置还可包括:统计模块70,统计模块70可设置为统计触发动作与预设动作不匹配的次数。其中,在本发明的实施例中,控制模块40还可设置为在次数达到预设阈值时,控制第一提示音连续播放,直至移动终端被解锁。也就是说,在用户针对移动终端进行关机操作的过程中,统计模块70可统计用户输入的触发动作与预设动作不匹配的次数,即统计用户进行关机操作的失败次数,如果该次数达到预设阈值(如两次),则第一获取模块60可将第一提示音提供给用户,控制模块40控制该第一提示音一直不停止的连续播放,直到用户输入正确的移动终端解锁指令为止。Preferably, in an embodiment of the present invention, as shown in FIG. 6, the shutdown control apparatus may further include: a statistics module 70, and the statistics module 70 may be configured to count the number of times the trigger action does not match the preset action. In the embodiment of the present invention, the control module 40 may be further configured to control the first prompt tone to continuously play until the mobile terminal is unlocked when the number of times reaches the preset threshold. That is, in the process of the user performing the shutdown operation for the mobile terminal, the statistics module 70 may count the number of times the trigger action input by the user does not match the preset action, that is, the number of failures of the user to perform the shutdown operation, if the number reaches the preset The first acquisition module 60 can provide the first prompt tone to the user, and the control module 40 controls the continuous playback of the first prompt tone without stopping until the user inputs the correct mobile terminal unlocking command. .
可选地,在本发明的一个实施例中,如图7所示,该关机控制装置还可包括:第二获取模块80,第二获取模块80可设置为在检测模块10检测到用户按住移动终端的实体按键的时间达到第一预设时间阈值之后,并在采集模块20采集用户针对实体按键输入的触发动作之前,获取第二提示音,并将第二提示音播放给用户。也就是说,在检测模块10检测到用户按住实体按键的时间达到第一预设时间阈值之后,第二获取模块80可调用移动终端的播放模块(如音频输出模块(扬声器等)),并通过该播放模块播放第二提示音,例如,可播放“请输入关机动作”,以提示用户接下来要输入关机动作,用户可在听到该提示音后开始输入关机动作以完成关机操作,在此过程中,采集模块20可采集用户针对实体按键输入的触发动作。其中,在本发明的实施例中,该第二提示音可以是语音,还可以是警报器或蜂鸣器等发出的警报声等。Optionally, in an embodiment of the present invention, as shown in FIG. 7, the shutdown control apparatus may further include: a second acquisition module 80, and the second acquisition module 80 may be configured to detect that the user presses the detection module 10 After the time of the physical button of the mobile terminal reaches the first preset time threshold, and before the collecting module 20 collects the triggering action of the user for the physical button input, the second prompt sound is acquired, and the second prompt sound is played to the user. That is, after the detecting module 10 detects that the time when the user presses the physical button reaches the first preset time threshold, the second obtaining module 80 may invoke the playing module of the mobile terminal (such as an audio output module (speaker, etc.), and The second prompt sound is played by the playing module. For example, the “Please input the shutdown action” can be played to prompt the user to input a shutdown action, and the user can start to input the shutdown action after completing the prompt tone to complete the shutdown operation. In this process, the acquisition module 20 can collect the trigger action of the user for the physical button input. In the embodiment of the present invention, the second prompt sound may be a voice, or may be an alarm sound emitted by an alarm or a buzzer or the like.
本发明实施例的移动终端的关机控制装置,可通过采集模块在检测模块检测到用户按住移动终端的实体按键的时间达到第一预设时间阈值时,采集用户针对实体按键输入的触发动作,第一判断模块判断该触发动作是否与预设动作匹配,如果该触发动作与预设动作匹配,控制模块则生成关机控制指令,并根据关机控制指令控制移动终端进行关机操作,即通过用户预先自定义预设动作,并通过判断用户输入的关机动作是否与预设动作匹配,以判断该关机动作是否为用户本人操作,并在判断为用户本人操作时控制移动终端进行关机操作,在为用户提供了个性化关机动作的设置功能的同时,又提高了移动终端的安全性。The shutdown control device of the mobile terminal of the embodiment of the present invention can collect the trigger action of the user for the physical button input when the detecting module detects that the user presses the physical button of the mobile terminal to reach the first preset time threshold. The first determining module determines whether the triggering action matches the preset action. If the triggering action matches the preset action, the control module generates a shutdown control command, and controls the mobile terminal to perform a shutdown operation according to the shutdown control command, that is, the user pre-self Defining a preset action, and determining whether the shutdown action input by the user matches the preset action to determine whether the shutdown action is the user's own operation, and controlling the mobile terminal to perform a shutdown operation when determining that the user is operating himself, providing the user with a shutdown operation At the same time, the setting function of the personalized shutdown action improves the security of the mobile terminal.
为了实现上述实施例,本发明还提出了一种移动终端,该移动终端可包括上述任一个实施例所述的移动终端的关机控制装置。In order to implement the above embodiments, the present invention also provides a mobile terminal, which may include the shutdown control device of the mobile terminal described in any of the above embodiments.
本发明实施例的移动终端,可通过关机控制装置中的采集模块在检测模块检测到用户按住移动终端的实体按键的时间达到第一预设时间阈值时,采集用户针对实体按键输入的触发动作,第一判断模块判断该触发动作是否与预设动作匹配,如果该触发动作与预设动作匹配,控制模块则生成关机控制指令,并根据关机控制指令控制移动终端进行关机操作,即通过用户预先自定义预设动作,并通过判断用户输入的关机动作是否与预设动作匹配,以判断该关机动作是否为用户本人操作,并在判断为用户本人操作时控制移动终端进行关机操作,在为用户提供了个性化关机动作的设置功能的同时,又提高了移动终端的安全性。The mobile terminal of the embodiment of the present invention can collect the trigger action of the user for the physical button input when the detecting module detects that the user presses the physical button of the mobile terminal to reach the first preset time threshold. The first determining module determines whether the triggering action matches the preset action. If the triggering action matches the preset action, the control module generates a shutdown control command, and controls the mobile terminal to perform a shutdown operation according to the shutdown control command, that is, the user advances Customizing the preset action, and determining whether the shutdown action input by the user matches the preset action to determine whether the shutdown action is the user's own operation, and controlling the mobile terminal to perform the shutdown operation when determining that the user is operating himself, in the user It provides the setting function of the personalized shutdown action and improves the security of the mobile terminal.
为了实现上述实施例,本发明还提出了一种移动终端,包括:壳体、处理器、存储器、
电路板和电源电路,其中,电路板安置在壳体围成的空间内部,处理器和存储器设置在电路板上;电源电路,设置为为移动终端的各个电路或器件供电;存储器设置为存储可执行程序代码;处理器通过读取存储器中存储的可执行程序代码来运行与可执行程序代码对应的程序,以用于执行以下步骤:In order to implement the above embodiments, the present invention also provides a mobile terminal, including: a housing, a processor, a memory,
a circuit board and a power supply circuit, wherein the circuit board is disposed inside a space enclosed by the housing, the processor and the memory are disposed on the circuit board; the power supply circuit is configured to supply power to each circuit or device of the mobile terminal; and the memory is configured to be stored Executing program code; the processor runs a program corresponding to the executable program code by reading executable program code stored in the memory for performing the following steps:
S101’,当检测到用户按住移动终端的实体按键的时间达到第一预设时间阈值时,采集用户针对实体按键输入的触发动作。S101', when it is detected that the time when the user presses and holds the physical button of the mobile terminal reaches the first preset time threshold, the trigger action of the user for the physical button input is collected.
S102’,判断触发动作是否与预设动作匹配。S102', determining whether the triggering action matches the preset action.
S103’,如果触发动作与预设动作匹配,则生成关机控制指令,并根据关机控制指令控制移动终端进行关机操作。S103', if the triggering action matches the preset action, generating a shutdown control command, and controlling the mobile terminal to perform a shutdown operation according to the shutdown control command.
本发明实施例的移动终端,当检测到用户按住移动终端的实体按键的时间达到第一预设时间阈值时,采集用户针对实体按键输入的触发动作,并判断该触发动作是否与预设动作匹配,如果该触发动作与预设动作匹配,则生成关机控制指令,并根据关机控制指令控制移动终端进行关机操作,即通过用户预先自定义预设动作,并通过判断用户输入的关机动作是否与预设动作匹配,以判断该关机动作是否为用户本人操作,并在判断为用户本人操作时控制移动终端进行关机操作,在为用户提供了个性化关机动作的设置功能的同时,又提高了移动终端的安全性。The mobile terminal of the embodiment of the present invention, when detecting that the time when the user presses the physical button of the mobile terminal reaches the first preset time threshold, collects a trigger action of the user for the physical button input, and determines whether the trigger action and the preset action are performed. Matching, if the triggering action matches the preset action, generating a shutdown control command, and controlling the mobile terminal to perform a shutdown operation according to the shutdown control command, that is, the user presets the preset action by using the user, and determines whether the shutdown action input by the user is The preset action is matched to determine whether the shutdown action is the user's own operation, and when the user is determined to operate, the mobile terminal is controlled to perform the shutdown operation, and the user is provided with the setting function of the personalized shutdown action, and the mobile is improved. Terminal security.
在本发明的描述中,需要理解的是,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本发明的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。In the description of the present invention, it is to be understood that the terms "first" and "second" are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, features defining "first" or "second" may include at least one of the features, either explicitly or implicitly. In the description of the present invention, the meaning of "a plurality" is at least two, such as two, three, etc., unless specifically defined otherwise.
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。In the description of the present specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" and the like means a specific feature described in connection with the embodiment or example. A structure, material or feature is included in at least one embodiment or example of the invention. In the present specification, the schematic representation of the above terms is not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in a suitable manner in any one or more embodiments or examples. In addition, various embodiments or examples described in the specification, as well as features of various embodiments or examples, may be combined and combined.
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本发明的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本发明的实施例所属技术领域的技术人员所理解。Any process or method description in the flowcharts or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a particular logical function or process. And the scope of the preferred embodiments of the invention includes additional implementations, in which the functions may be performed in a substantially simultaneous manner or in an opposite order depending on the functions involved, in the order shown or discussed. It will be understood by those skilled in the art to which the embodiments of the present invention pertain.
在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从指令执行系统、
装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,"计算机可读介质"可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。The logic and/or steps represented in the flowchart or otherwise described herein, for example, may be considered as an ordered list of executable instructions for implementing logical functions, and may be embodied in any computer readable medium, For execution of a system, apparatus, or device (such as a computer-based system, a system including a processor, or the like, from an instruction execution system,
A device or device that fetches instructions and executes instructions for use, or in conjunction with such instructions to execute a system, apparatus, or device. For the purposes of this specification, a "computer-readable medium" can be any apparatus that can contain, store, communicate, propagate, or transport a program for use in an instruction execution system, apparatus, or device, or in conjunction with the instruction execution system, apparatus, or device. More specific examples (non-exhaustive list) of computer readable media include the following: electrical connections (electronic devices) having one or more wires, portable computer disk cartridges (magnetic devices), random access memory (RAM), Read only memory (ROM), erasable editable read only memory (EPROM or flash memory), fiber optic devices, and portable compact disk read only memory (CDROM). In addition, the computer readable medium may even be a paper or other suitable medium on which the program can be printed, as it may be optically scanned, for example by paper or other medium, followed by editing, interpretation or, if appropriate, other suitable The method is processed to obtain the program electronically and then stored in computer memory.
应当理解,本发明的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that portions of the invention may be implemented in hardware, software, firmware or a combination thereof. In the above-described embodiments, multiple steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques well known in the art: having logic gates for implementing logic functions on data signals. Discrete logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.
本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。One of ordinary skill in the art can understand that all or part of the steps carried by the method of implementing the above embodiments can be completed by a program to instruct related hardware, and the program can be stored in a computer readable storage medium. When executed, one or a combination of the steps of the method embodiments is included.
此外,在本发明各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. The integrated modules, if implemented in the form of software functional modules and sold or used as stand-alone products, may also be stored in a computer readable storage medium.
上述提到的存储介质可以是只读存储器,磁盘或光盘等。尽管上面已经示出和描述了本发明的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本发明的限制,本领域的普通技术人员在本发明的范围内可以对上述实施例进行变化、修改、替换和变型。The above mentioned storage medium may be a read only memory, a magnetic disk or an optical disk or the like. Although the embodiments of the present invention have been shown and described, it is understood that the above-described embodiments are illustrative and are not to be construed as limiting the scope of the invention. The embodiments are subject to variations, modifications, substitutions and variations.
本发明实施例上述提供的技术方案,可以应用于移动终端的关机控制中,当检测到用户按住移动终端的实体按键的时间达到第一预设时间阈值时,采集用户针对实体按键输入的触发动作,并判断该触发动作是否与预设动作匹配,如果该触发动作与预设动作匹配,则生成关机控制指令,并根据关机控制指令控制移动终端进行关机操作,即通过用户预先自定义预设动作,并通过判断用户输入的关机动作是否与预设动作匹配,以判断该关机动作是否为用户本人操作,并在判断为用户本人操作时控制移动终端进行关机操作,在为用户提供了个性化关机动作的设置功能的同时,又提高了移动终端的安全性。
The technical solution provided by the foregoing embodiment of the present invention can be applied to the shutdown control of the mobile terminal. When it is detected that the time when the user presses the physical button of the mobile terminal reaches the first preset time threshold, the trigger of the user input for the physical key input is collected. Acting, and determining whether the triggering action matches the preset action. If the triggering action matches the preset action, generating a shutdown control command, and controlling the mobile terminal to perform a shutdown operation according to the shutdown control command, that is, pre-customizing the preset by the user Action, and by determining whether the shutdown action input by the user matches the preset action, to determine whether the shutdown action is the user's own operation, and controlling the mobile terminal to perform a shutdown operation when determining that the user is operating himself, providing personalizedization for the user The setting function of the shutdown action increases the security of the mobile terminal.
Claims (16)
- 一种移动终端的关机控制方法,包括以下步骤:A shutdown control method for a mobile terminal includes the following steps:当检测到用户按住所述移动终端的实体按键的时间达到第一预设时间阈值时,采集所述用户针对所述实体按键输入的触发动作;When detecting that the time when the user presses and holds the physical button of the mobile terminal reaches a first preset time threshold, collecting a trigger action of the user for the physical button input;判断所述触发动作是否与预设动作匹配;以及Determining whether the trigger action matches a preset action;如果所述触发动作与所述预设动作匹配,则生成关机控制指令,并根据所述关机控制指令控制所述移动终端进行关机操作。And if the triggering action matches the preset action, generating a shutdown control command, and controlling the mobile terminal to perform a shutdown operation according to the shutdown control command.
- 如权利要求1所述的移动终端的关机控制方法,其中,在检测所述用户按住所述实体按键的时间是否达到所述第一预设时间阈值之前,所述方法还包括:The method for controlling the shutdown of a mobile terminal according to claim 1, wherein the method further comprises: before detecting whether the time when the user presses the physical button is up to the first preset time threshold, the method further comprises:判断所述移动终端是否处于灭屏状态;Determining whether the mobile terminal is in a blanking state;如果所述移动终端处于所述灭屏状态,则检测所述用户按住所述实体按键的时间是否达到所述第一预设时间阈值。If the mobile terminal is in the screen-off state, it is detected whether the time when the user presses and holds the physical button reaches the first preset time threshold.
- 如权利要求1或2所述的移动终端的关机控制方法,其中,还包括:The method for controlling shutdown of a mobile terminal according to claim 1 or 2, further comprising:如果所述触发动作与所述预设动作不匹配,则获取第一提示音,并将所述第一提示音播放给所述用户;If the triggering action does not match the preset action, acquiring a first prompt sound, and playing the first prompt sound to the user;当所述第一提示音的播放时间达到第二预设时间阈值时,控制所述移动终端进入休眠状态。And when the playing time of the first prompt tone reaches a second preset time threshold, the mobile terminal is controlled to enter a sleep state.
- 如权利要求3所述的移动终端的关机控制方法,其中,还包括:The method for controlling shutdown of a mobile terminal according to claim 3, further comprising:统计所述触发动作与所述预设动作不匹配的次数,并在所述次数达到预设阈值时,控制所述第一提示音连续播放,直至所述移动终端被解锁。The number of times the triggering action does not match the preset action is counted, and when the number of times reaches a preset threshold, the first prompt tone is controlled to be continuously played until the mobile terminal is unlocked.
- 如权利要求1所述的移动终端的关机控制方法,其中,在检测到用户按住所述移动终端的实体按键的时间达到第一预设时间阈值之后,在采集所述用户针对所述实体按键输入的触发动作之前,所述方法还包括:The shutdown control method of the mobile terminal according to claim 1, wherein after detecting that the time when the user presses and holds the physical button of the mobile terminal reaches a first preset time threshold, the user is input for the physical button input Before the triggering action, the method further includes:获取第二提示音,并将所述第二提示音播放给所述用户。Obtaining a second prompt tone and playing the second prompt tone to the user.
- 如权利要求1所述的移动终端的关机控制方法,其中,其中,所述预设动作是由所述用户预先自定义的。The shutdown control method of a mobile terminal according to claim 1, wherein the preset action is pre-defined by the user.
- 如权利要求1所述的移动终端的关机控制方法,其中,其中,所述实体按键包括电源键、所述电源键与音量键的组合、以及所述电源键与实体HOME键中的任意一种。The shutdown control method for a mobile terminal according to claim 1, wherein the physical button comprises a power button, a combination of the power button and a volume button, and any one of the power button and the physical HOME button. .
- 一种移动终端的关机控制装置,包括:A shutdown control device for a mobile terminal, comprising:检测模块,设置为检测用户按住所述移动终端的实体按键的时间是否达到第一预设时间阈值; a detecting module, configured to detect whether a time when the user presses and hold the physical button of the mobile terminal reaches a first preset time threshold;采集模块,设置为在所述检测模块检测到所述用户按住所述实体按键的时间达到所述第一预设时间阈值时,采集所述用户针对所述实体按键输入的触发动作;The acquiring module is configured to: when the detecting module detects that the user presses the physical button to reach the first preset time threshold, and collects a trigger action of the user for the physical button input;第一判断模块,设置为判断所述触发动作是否与预设动作匹配;以及a first determining module, configured to determine whether the triggering action matches a preset action;控制模块,设置为在所述第一判断模块判断所述触发动作与所述预设动作匹配时,生成关机控制指令,并根据所述关机控制指令控制所述移动终端进行关机操作。The control module is configured to generate a shutdown control command when the first determination module determines that the triggering action matches the preset action, and control the mobile terminal to perform a shutdown operation according to the shutdown control command.
- 如权利要求8所述的移动终端的关机控制装置,其中,还包括:The shutdown control device for a mobile terminal according to claim 8, further comprising:第二判断模块,设置为在所述检测模块检测所述用户按住所述实体按键的时间是否达到所述第一预设时间阈值之前,判断所述移动终端是否处于灭屏状态;其中,The second judging module is configured to determine whether the mobile terminal is in a screen-off state before the detecting module detects whether the time when the user presses the physical button is up to the first preset time threshold;所述检测模块还设置为在所述第二判断模块判断所述移动终端处于所述灭屏状态时,检测所述用户按住所述实体按键的时间是否达到所述第一预设时间阈值。The detecting module is further configured to detect, when the second determining module determines that the mobile terminal is in the off-screen state, whether the time that the user presses and holds the physical button reaches the first preset time threshold.
- 如权利要求8或9所述的移动终端的关机控制装置,其中,还包括:The shutdown control device for a mobile terminal according to claim 8 or 9, further comprising:第一获取模块,设置为在所述第一判断模块判断所述触发动作与所述预设动作不匹配时,获取第一提示音,并将所述第一提示音播放给所述用户;其中,The first acquiring module is configured to: when the first determining module determines that the triggering action does not match the preset action, acquire a first prompting tone, and play the first prompting tone to the user; ,所述控制模块还设置为在所述第一提示音的播放时间达到第二预设时间阈值时,控制所述移动终端进入休眠状态。The control module is further configured to control the mobile terminal to enter a sleep state when the playing time of the first prompt tone reaches a second preset time threshold.
- 如权利要求10所述的移动终端的关机控制装置,其中,还包括:The shutdown control device for a mobile terminal according to claim 10, further comprising:统计模块,设置为统计所述触发动作与所述预设动作不匹配的次数;其中,a statistics module, configured to count the number of times the trigger action does not match the preset action;所述控制模块还设置为在所述次数达到预设阈值时,控制所述第一提示音连续播放,直至所述移动终端被解锁。The control module is further configured to control the first prompt tone to continuously play until the mobile terminal is unlocked when the number of times reaches a preset threshold.
- 如权利要求8所述的移动终端的关机控制装置,其中,还包括:The shutdown control device for a mobile terminal according to claim 8, further comprising:第二获取模块,设置为在所述检测模块检测到用户按住所述移动终端的实体按键的时间达到第一预设时间阈值之后,并在所述采集模块采集所述用户针对所述实体按键输入的触发动作之前,获取第二提示音,并将所述第二提示音播放给所述用户。a second acquiring module, configured to: after the detecting module detects that the user presses the physical button of the mobile terminal to reach a first preset time threshold, and collects, by the collecting module, the user inputs the physical button Before the triggering action, the second prompt sound is acquired, and the second prompt sound is played to the user.
- 如权利要求8所述的移动终端的关机控制装置,其中,其中,所述预设动作是由所述用户预先自定义的。The shutdown control device for a mobile terminal according to claim 8, wherein the preset action is pre-defined by the user.
- 如权利要求8所述的移动终端的关机控制装置,其中,其中,所述实体按键包括电源键、所述电源键与音量键的组合、以及所述电源键与实体HOME键中的任意一种。The shutdown control device for a mobile terminal according to claim 8, wherein the physical button comprises a power button, a combination of the power button and the volume button, and any one of the power button and the entity HOME button. .
- 一种移动终端,包括:如权利要求8至14中任一项所述的移动终端的关机控制装置。A mobile terminal comprising: a shutdown control device for a mobile terminal according to any one of claims 8 to 14.
- 一种移动终端,包括:壳体、处理器、存储器、电路板和电源电路,其中,所述电路板安置在所述壳体围成的空间内部,所述处理器和所述存储器设置在所述电路板上;所述电 源电路,设置为为所述移动终端的各个电路或器件供电;所述存储器设置为存储可执行程序代码;所述处理器通过读取所述存储器中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,以用于执行以下步骤:A mobile terminal includes: a housing, a processor, a memory, a circuit board, and a power supply circuit, wherein the circuit board is disposed inside a space enclosed by the housing, and the processor and the memory are disposed at Said circuit board; said electricity a source circuit configured to power respective circuits or devices of the mobile terminal; the memory configured to store executable program code; the processor to operate and read by reading executable program code stored in the memory A program corresponding to the executable program code for performing the following steps:当检测到用户按住所述移动终端的实体按键的时间达到第一预设时间阈值时,采集所述用户针对所述实体按键输入的触发动作;When detecting that the time when the user presses and holds the physical button of the mobile terminal reaches a first preset time threshold, collecting a trigger action of the user for the physical button input;判断所述触发动作是否与预设动作匹配;以及Determining whether the trigger action matches a preset action;如果所述触发动作与所述预设动作匹配,则生成关机控制指令,并根据所述关机控制指令控制所述移动终端进行关机操作。 And if the triggering action matches the preset action, generating a shutdown control command, and controlling the mobile terminal to perform a shutdown operation according to the shutdown control command.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510988901.0 | 2015-12-24 | ||
CN201510988901.0A CN106919867A (en) | 2015-12-24 | 2015-12-24 | Mobile terminal and its shutdown control method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2017107325A1 true WO2017107325A1 (en) | 2017-06-29 |
Family
ID=59088911
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2016/076995 WO2017107325A1 (en) | 2015-12-24 | 2016-03-22 | Mobile terminal and powering-off control method and device thereof |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106919867A (en) |
WO (1) | WO2017107325A1 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109920355A (en) * | 2017-12-13 | 2019-06-21 | 佛山市顺德区美的电热电器制造有限公司 | Detection method and detection system for display board |
CN112546249A (en) * | 2020-11-12 | 2021-03-26 | 华帝股份有限公司 | Display control method of movable decontamination all-in-one machine |
CN116546132A (en) * | 2023-07-06 | 2023-08-04 | 荣耀终端有限公司 | Network identification method, device, mobile terminal and computer readable storage medium |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108038412B (en) * | 2017-10-30 | 2021-06-15 | 捷开通讯(深圳)有限公司 | Terminal and control method and storage device thereof based on self-training gesture |
CN112912802B (en) * | 2018-12-29 | 2023-11-03 | 深圳迈瑞生物医疗电子股份有限公司 | On-off control method and defibrillator |
CN112907926B (en) * | 2019-12-04 | 2022-07-29 | 惠州视维新技术有限公司 | Control method of remote control equipment, storage medium and remote control equipment |
CN111490916B (en) * | 2020-04-15 | 2022-03-11 | 公牛集团股份有限公司 | Method, system, device and medium for binding ZigBee sub-devices of ZigBee |
CN111766930A (en) * | 2020-06-08 | 2020-10-13 | 安徽华米信息科技有限公司 | Wearable device shutdown method and device and wearable device |
CN112015255A (en) * | 2020-07-08 | 2020-12-01 | 深圳市智微智能科技股份有限公司 | Method and system for fast shutdown without input equipment |
CN113965865A (en) * | 2021-10-20 | 2022-01-21 | 武汉左点科技有限公司 | Single-key input adjusting method and device |
CN116048873A (en) * | 2022-07-29 | 2023-05-02 | 荣耀终端有限公司 | Method for powering down electronic device, electronic device and readable medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8181028B1 (en) * | 2008-06-17 | 2012-05-15 | Symantec Corporation | Method for secure system shutdown |
CN103092490A (en) * | 2013-01-30 | 2013-05-08 | 广东欧珀移动通信有限公司 | Video control method and device |
CN103873655A (en) * | 2012-12-13 | 2014-06-18 | 深圳富泰宏精密工业有限公司 | Mobile terminal anti-theft system and mobile terminal anti-theft method |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103442121A (en) * | 2013-05-23 | 2013-12-11 | 深圳市沃特沃德科技有限公司 | Anti-theft mobile phone and achieving method of anti-theft mobile phone |
CN104992086B (en) * | 2015-06-23 | 2018-10-23 | 上海卓易科技股份有限公司 | A kind of user-defined press key rhythm carrys out the method and intelligent terminal of release tab function |
-
2015
- 2015-12-24 CN CN201510988901.0A patent/CN106919867A/en not_active Withdrawn
-
2016
- 2016-03-22 WO PCT/CN2016/076995 patent/WO2017107325A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8181028B1 (en) * | 2008-06-17 | 2012-05-15 | Symantec Corporation | Method for secure system shutdown |
CN103873655A (en) * | 2012-12-13 | 2014-06-18 | 深圳富泰宏精密工业有限公司 | Mobile terminal anti-theft system and mobile terminal anti-theft method |
CN103092490A (en) * | 2013-01-30 | 2013-05-08 | 广东欧珀移动通信有限公司 | Video control method and device |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109920355A (en) * | 2017-12-13 | 2019-06-21 | 佛山市顺德区美的电热电器制造有限公司 | Detection method and detection system for display board |
CN109920355B (en) * | 2017-12-13 | 2022-11-04 | 佛山市顺德区美的电热电器制造有限公司 | Detection method and detection system for display panel |
CN112546249A (en) * | 2020-11-12 | 2021-03-26 | 华帝股份有限公司 | Display control method of movable decontamination all-in-one machine |
CN116546132A (en) * | 2023-07-06 | 2023-08-04 | 荣耀终端有限公司 | Network identification method, device, mobile terminal and computer readable storage medium |
CN116546132B (en) * | 2023-07-06 | 2023-11-03 | 荣耀终端有限公司 | Network identification method, device, mobile terminal and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN106919867A (en) | 2017-07-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2017107325A1 (en) | Mobile terminal and powering-off control method and device thereof | |
KR101954960B1 (en) | Method, apparatus, program and recording medium for switching state | |
CN104850827B (en) | Fingerprint identification method and device | |
US8165307B2 (en) | Audio electronic device | |
CN103885588B (en) | Automatic switching method and device | |
CN104094192A (en) | Audio input from user | |
KR20200096282A (en) | Terminal screen unlock method, device and terminal | |
CN104898836B (en) | A kind of rotating camera adjusting method and user terminal | |
US20100056207A1 (en) | Mobile phone and method for preventing a hidden device from secretly taking a photograph or video | |
CN104391712B (en) | Closedown method and device | |
US20120033533A1 (en) | Electronic device with alarm mode and alarm method thereof | |
TWI761843B (en) | Access control method and device, electronic device and storage medium | |
US20150334477A1 (en) | Motion sensor | |
CN111816192A (en) | Voice equipment and control method, device and equipment thereof | |
CN108121631A (en) | Screen abnormality based reminding method and device | |
CN105955769A (en) | Method and apparatus for starting multimedia application | |
CN107205198B (en) | Microphone unlocking method and device | |
US20140153713A1 (en) | Electronic device and method for providing call prompt | |
CN106126158B (en) | A kind of method and apparatus of playing audio-fequency data | |
CN106570381B (en) | Fingerprint unlocking method and device | |
CN107911380A (en) | Auth method and device | |
WO2017148138A1 (en) | Fingerprint authentication method and device | |
WO2017148154A1 (en) | Fingerprint authentication method and device | |
CN106775234A (en) | Application management method and device | |
CN108668199B (en) | Loudspeaker liquid drainage method based on gain adjustment and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16877139 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 16877139 Country of ref document: EP Kind code of ref document: A1 |