CN107885405B - Unlocking control method, mobile terminal and computer readable storage medium - Google Patents

Unlocking control method, mobile terminal and computer readable storage medium Download PDF

Info

Publication number
CN107885405B
CN107885405B CN201711071613.4A CN201711071613A CN107885405B CN 107885405 B CN107885405 B CN 107885405B CN 201711071613 A CN201711071613 A CN 201711071613A CN 107885405 B CN107885405 B CN 107885405B
Authority
CN
China
Prior art keywords
mobile terminal
state
screen
support
mode
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711071613.4A
Other languages
Chinese (zh)
Other versions
CN107885405A (en
Inventor
王国刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201711071613.4A priority Critical patent/CN107885405B/en
Publication of CN107885405A publication Critical patent/CN107885405A/en
Application granted granted Critical
Publication of CN107885405B publication Critical patent/CN107885405B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/046Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by electromagnetic means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1407General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • General Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses an unlocking control method, a mobile terminal and a computer readable storage medium, wherein the method comprises the following steps: detecting the screen state of the mobile terminal and the adsorption state between the mobile terminal and the bracket; if the mobile terminal is in a screen unlocking state and the mobile terminal is switched from a state of being adsorbed on the support to a state of being separated from the support, locking the screen of the mobile terminal; and/or unlocking the screen of the mobile terminal if the mobile terminal is in a screen locking state and the mobile terminal is switched from a state of being separated from the support to a state of being adsorbed on the support. According to the invention, when the mobile terminal is separated from the support, the screen of the mobile terminal can be controlled to be locked, so that the risk of privacy disclosure is avoided; and when adsorbing mobile terminal on the support, control mobile terminal's screen state and switch to screen unblock state from screen lock state, be favorable to simplifying mobile terminal's screen unblock process to user operation is convenient for.

Description

Unlocking control method, mobile terminal and computer readable storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to an unlocking control method, a mobile terminal, and a computer-readable storage medium.
Background
With the continuous development of mobile terminal technology, mobile terminals have become one of the indispensable tools in people's lives, and especially, the application of mobile terminals in the driving process is more and more extensive. At present, there is inconvenient operation problem when the user uses the mobile terminal in the driving process, for example: when a user uses the mobile terminal in the driving process, the user may need to unlock the mobile terminal first to use the mobile terminal, so that the operation is inconvenient, and the driving safety is even affected.
In order to facilitate a user to operate the mobile terminal in a driving process, a preset vehicle-mounted device is generally adopted as a trusted device for unlocking the mobile terminal, and when the mobile terminal is connected with the trusted device, the mobile terminal is switched from a locking mode to an unlocking mode. However, the unlocking mode causes the mobile terminal to be in an unlocked state when the mobile terminal is connected with the trusted device, which is not favorable for protecting the privacy of the user.
Disclosure of Invention
The invention provides an unlocking control method, a mobile terminal and a computer readable storage medium, which aim to solve the problem that in the prior art, the mobile terminal is not beneficial to privacy protection in an automatic unlocking mode under a vehicle-mounted state.
In a first aspect, an embodiment of the present invention provides an unlocking control method, which is applied to a mobile terminal, where the method includes:
detecting a screen state of a mobile terminal and an adsorption state between the mobile terminal and a support;
if the mobile terminal is in a screen unlocking state and the mobile terminal is switched from a state of being adsorbed on the support to a state of being separated from the support, locking the screen of the mobile terminal; and/or unlocking the screen of the mobile terminal if the mobile terminal is in a screen locking state and the mobile terminal is switched from a state of being separated from the support to a state of being adsorbed on the support.
In a second aspect, an embodiment of the present invention further provides a mobile terminal, including:
the mobile terminal comprises a detection module, a display module and a control module, wherein the detection module is used for detecting the screen state of the mobile terminal and the adsorption state between the mobile terminal and a support;
the first switching module is used for locking the screen of the mobile terminal if the mobile terminal is in a screen unlocking state and the mobile terminal is switched from a state of being adsorbed on the bracket to a state of being separated from the bracket; and/or unlocking the screen of the mobile terminal if the mobile terminal is in a screen locking state and the mobile terminal is switched from a state of being separated from the support to a state of being adsorbed on the support.
In a third aspect, an embodiment of the present invention further provides a mobile terminal, including a processor, a memory, and a computer program stored on the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps of the unlocking control method described above.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when being executed by a processor, the computer program implements the steps of the unlocking control method described above.
According to the embodiment of the invention, when the mobile terminal is separated from the support, the screen of the mobile terminal can be controlled to be locked, so that the risk of privacy disclosure is avoided; and when adsorbing mobile terminal on the support, control mobile terminal's screen state and switch to screen unblock state from screen lock state, be favorable to simplifying mobile terminal's screen unblock process to user operation is convenient for.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
Fig. 1 shows one of the flowcharts of the unlock control method of the embodiment of the present invention;
FIG. 2 is a second flowchart of an unlock control method according to an embodiment of the present invention;
FIG. 3 shows one of the block diagrams of a mobile terminal of an embodiment of the invention;
fig. 4 shows a second block diagram of a mobile terminal according to an embodiment of the invention;
fig. 5 is a schematic diagram of a hardware structure of a mobile terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, an embodiment of the present invention provides an unlocking control method, which is applied to a mobile terminal, where the method includes:
and 11, detecting the screen state of the mobile terminal and the adsorption state between the mobile terminal and the bracket.
In this embodiment, the screen states of the mobile terminal include a screen lock state and a screen unlock state. The screen unlocking state refers to a state in which a user can input an operation instruction through an operation interface of the mobile terminal, and the screen locking state refers to a state in which the screen of the mobile terminal is locked and can enter the operation interface of the mobile terminal only through inputting a password, a gesture, identity recognition or other operations.
The adsorption state between the mobile terminal and the bracket comprises the following steps: the state that the mobile terminal is absorbed on the magnetic support and the state that the mobile terminal is separated from the magnetic support. The mobile terminal can be in various forms, such as a mobile phone, a notebook, a tablet and the like. The support is used for placing the mobile terminal and can be fixed at a designated position, such as the vicinity of a steering wheel of an automobile.
Step 12, if the mobile terminal is in a screen unlocking state and the mobile terminal is switched from a state of being adsorbed on the bracket to a state of being separated from the bracket, locking the screen of the mobile terminal; and/or unlocking the screen of the mobile terminal if the mobile terminal is in a screen locking state and the mobile terminal is switched from a state of being separated from the support to a state of being adsorbed on the support.
In this embodiment, when it is determined that the mobile terminal is in the screen unlocking state and the mobile terminal is switched from the state of being adsorbed on the magnetic bracket to the state of being separated from the bracket, if the mobile terminal is taken up from the bracket by a non-preset user, the screen of the mobile terminal is switched from the screen unlocking state to the screen locking state, so that the risk of privacy disclosure is avoided, and the privacy protection of the mobile terminal is further improved.
Specifically, as another embodiment for improving the privacy protection function of the mobile terminal, after the step 11, if the mobile terminal is in the screen unlock state and the mobile terminal is switched from the state of being attached to the cradle to the state of being separated from the cradle, the operating mode of the mobile terminal is switched to the private mode.
The privacy mode is that a preset application program or a preset storage file and the like in the mobile terminal are in an inaccessible state, or the preset application program or the preset storage file and the like in the mobile terminal can be accessed only by authentication of passwords, gestures and the like, so that the privacy of the mobile terminal is guaranteed against being revealed.
The preset application program and the preset storage file can be customized by a user, such as: address book, instant messaging application, photos, etc.
In addition, if the mobile terminal is in a screen locking state and the mobile terminal is switched from a state of being separated from the support to a state of being adsorbed on the support, the screen of the mobile terminal is unlocked. Therefore, when the mobile terminal is placed on the support, the screen state of the mobile terminal is controlled to be switched from the screen locking state to the screen unlocking state, the screen unlocking process of the mobile terminal is facilitated to be simplified, and therefore the operation of a user is facilitated. Referring to fig. 2, an embodiment of the present invention further provides an unlocking control method, where the method includes:
and step 21, detecting whether the mobile terminal establishes communication connection with preset equipment.
In this embodiment, the preset device is a trusted device for unlocking the mobile terminal, for example: and setting the vehicle-mounted Bluetooth device or other terminal devices as preset devices.
Specifically, when the preset device is set as the vehicle-mounted bluetooth device, the step 21 specifically includes: detecting whether the mobile terminal is connected with the vehicle-mounted Bluetooth device through Bluetooth or not; and if the mobile terminal is detected to be connected with the vehicle-mounted Bluetooth device through Bluetooth, determining that the mobile terminal is in communication connection with a preset device. Of course, the mobile terminal may also establish a communication connection with the preset device through other connection manners besides the bluetooth connection, such as: establishing connections, hardwiring connections, etc. through a shared network, the invention is not so limited.
And step 22, if the mobile terminal is in communication connection with the preset equipment, detecting the screen state of the mobile terminal and the adsorption state between the mobile terminal and the support.
In this embodiment, the screen states of the mobile terminal include a screen lock state and a screen unlock state. The screen unlocking state refers to a state in which a user can input an operation instruction through an operation interface of the mobile terminal, and the screen locking state refers to a state in which the screen of the mobile terminal is locked and can enter the operation interface of the mobile terminal only through inputting a password, a gesture, identity recognition or other operations.
The adsorption state between the mobile terminal and the bracket comprises the following steps: the state that the mobile terminal is attached to the bracket and the state that the mobile terminal is separated from the bracket. The mobile terminal can be in various forms, such as a mobile phone, a notebook, a tablet and the like. The support is used for placing the mobile terminal and can be fixed at a designated position, such as the vicinity of a steering wheel of an automobile.
Step 23, if the mobile terminal is in a screen unlocking state and the mobile terminal is switched from a state of being adsorbed on the bracket to a state of being separated from the bracket, locking the screen of the mobile terminal; and/or unlocking the screen of the mobile terminal if the mobile terminal is in a screen locking state and the mobile terminal is switched from a state of being separated from the support to a state of being adsorbed on the support.
In the embodiment, when the mobile terminal is judged to be in the screen unlocking state and separated from the support, if the mobile terminal is taken up from the support by a non-preset user, the screen state of the mobile terminal is switched from the screen unlocking state to the screen locking state, so that the risk of privacy disclosure is avoided, and the privacy protection of the mobile terminal is further improved.
In addition, when the mobile terminal is judged to be in the screen locking state and is adsorbed on the magnetic support, if a driver enters a cab of the automobile and places the mobile terminal on the support, the screen state of the mobile terminal is switched from the screen locking state to the screen unlocking state. Therefore, in a driving scene, a user can avoid unlocking operation on the mobile terminal, and then directly perform other functional operations on the mobile terminal, so that the operation process on the mobile terminal in the driving scene is facilitated to be simplified, and the driving safety is facilitated to be guaranteed.
In the above embodiments, detecting the adsorption state between the mobile terminal and the cradle may utilize various principles, such as: detection can be performed using the principle of magnetic fields. Specifically, the support is a magnetic support, the magnetic support can generate a magnetic field, a magnetic guiding sheet is attached to the inner side of the rear cover of the mobile terminal, a magnetic induction switch is arranged on one side of the magnetic guiding sheet, and whether the mobile terminal is adsorbed on the magnetic support or not can be judged according to the state of the magnetic induction switch.
Specifically, a trigger mode of the magnetic induction switch is detected, wherein the trigger mode includes a first mode in which the magnetic induction switch is switched from a closed state to an open state, and a second mode in which the magnetic induction switch is switched from the open state to the closed state.
And if the triggering mode of the magnetic induction switch is detected to be the first mode, determining that the mobile terminal is switched from a state of being adsorbed on the magnetic support to a state of being separated from the magnetic support. And if the triggering mode of the magnetic induction switch is detected to be the second mode, determining that the mobile terminal is switched from a state of being separated from the magnetic support to a state of being adsorbed on the magnetic support.
The magnetic induction switch can be a contact type magnetic induction switch, a non-contact type magnetic induction switch and the like.
If the contact type magnetic induction switch is adopted, whether the structure of the magnetic induction switch is changed from an open structure to a closed structure or not is judged according to different structures of the contact type magnetic induction switch in an open state and a closed state, and whether the mobile terminal is adsorbed on the magnetic support or not is judged. And if the magnetic induction switch is detected to be changed from the open structure to the closed structure, judging that the mobile terminal is adsorbed on the magnetic support through the magnetic guiding sheet.
If the contactless magnetic induction switch is adopted, different signals are output according to the contactless magnetic induction switch in the open state and the closed state, whether a plurality of signals of the magnetic induction switch are converted from switch open signals to switch closed signals or not is judged, and whether the mobile terminal is adsorbed on the magnetic support or not is further judged. And if the detected signals are converted into switch closing signals from switch opening signals, judging that the mobile terminal is adsorbed on the magnetic support through the magnetic guiding sheet.
As another embodiment of the present invention, an embodiment of the present invention further provides an unlocking control method, including:
and detecting the screen state of the mobile terminal and the adsorption state between the mobile terminal and the bracket. And if the mobile terminal is in a screen unlocking state and the mobile terminal is adsorbed on the support, switching the working mode of the mobile terminal to a vehicle-mounted mode so as to control the mobile terminal to be used in the vehicle-mounted mode.
Wherein the step of controlling the mobile terminal to be used in the in-vehicle mode may include one or more of the following: adjusting a display interface of the mobile terminal to be displayed on a horizontal screen; increasing interface icons of the mobile terminal; adjusting the volume of the key to be maximum; adjusting the volume of the mobile terminal to be maximum; starting a hands-free call function; starting an automatic call answering function; starting a voice dialing function; starting an automatic on-hook function; starting a gesture operation function; and starting a driving recording function, recording image data by using a camera of the mobile terminal, and carrying out safety prompt and the like according to the recorded image data. The mobile terminal is switched to the vehicle-mounted mode, so that a user can operate the mobile terminal conveniently in the driving process, and the driving safety is ensured.
Referring to fig. 3 and 4, an embodiment of the present invention provides a mobile terminal 300, including:
the detecting module 310 is configured to detect a screen state of the mobile terminal and an adsorption state between the mobile terminal and the cradle.
A first switching module 320, configured to lock a screen of the mobile terminal if the mobile terminal is in a screen unlock state and the mobile terminal is switched from a state of being attached to the cradle to a state of being separated from the cradle; and/or unlocking the screen of the mobile terminal if the mobile terminal is in a screen locking state and the mobile terminal is switched from a state of being separated from the support to a state of being adsorbed on the support.
Wherein, the detecting module 310 includes:
the first detecting unit 311 is configured to detect whether the mobile terminal establishes a communication connection with a preset device.
The second detecting unit 312 is configured to detect a screen state of the mobile terminal and an adsorption state between the mobile terminal and the support if the mobile terminal establishes a communication connection with the preset device.
The preset equipment is vehicle-mounted Bluetooth equipment; the first detection unit 311 further includes:
a detecting subunit 3111, configured to detect whether the mobile terminal establishes a connection with the vehicle-mounted bluetooth device through bluetooth;
the processing subunit 3112 is configured to determine that the mobile terminal establishes a communication connection with a preset device if it is detected that the mobile terminal establishes a connection with the vehicle-mounted bluetooth device through bluetooth.
The mobile terminal comprises a mobile terminal and a mobile terminal, wherein a magnetic guiding sheet is attached to the inner side of a rear cover of the mobile terminal, and a magnetic induction switch is arranged on one side of the magnetic guiding sheet; the bracket is a magnetic bracket; the detection module 310 includes:
a third detecting unit 313, configured to detect a trigger mode of the magnetic induction switch, where the trigger mode includes a first mode in which the magnetic induction switch is switched from a closed state to an open state, and a second mode in which the magnetic induction switch is switched from the open state to the closed state.
The processing unit 314 is configured to determine that the adsorption state is switched from the first state to the second state if it is detected that the trigger mode of the magnetic induction switch is the first mode. And if the trigger mode of the magnetic induction switch is detected to be the second mode, determining that the adsorption state is switched from the second state to the first state.
Wherein the mobile terminal 300 further includes:
the second switching module 330 is configured to switch the working mode of the mobile terminal to the vehicle-mounted mode if the mobile terminal is in the screen unlocking state and the mobile terminal is attached to the bracket.
The mobile terminal provided in the embodiment of the present invention can implement each process implemented by the mobile terminal in the method embodiments of fig. 1 to fig. 2, and is not described herein again to avoid repetition.
The mobile terminal 300 can control the screen of the mobile terminal to be locked when the mobile terminal is separated from the support, so as to avoid the risk of privacy disclosure; and when adsorbing mobile terminal on the support, control mobile terminal's screen state and switch to screen unblock state from screen lock state, be favorable to simplifying mobile terminal's screen unblock process to user operation is convenient for.
Fig. 5 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention.
The mobile terminal 500 includes, but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and a power supply 511. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 5 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 510 is configured to detect a screen state of the mobile terminal and an adsorption state between the mobile terminal and the cradle; if the mobile terminal is in a screen unlocking state and the mobile terminal is switched from a state of being adsorbed on the support to a state of being separated from the support, locking the screen of the mobile terminal; and/or unlocking the screen of the mobile terminal if the mobile terminal is in a screen locking state and the mobile terminal is switched from a state of being separated from the support to a state of being adsorbed on the support.
The mobile terminal 500 detects a screen state of the mobile terminal and an adsorption state between the mobile terminal and the cradle; and when the mobile terminal is judged to be in a screen unlocking state and is switched to a state separated from the bracket from a state adsorbed on the magnetic bracket, locking the screen of the mobile terminal. Therefore, if the mobile terminal is taken up from the support by a non-preset user, the screen state of the mobile terminal is controlled to be switched from the screen unlocking state to the screen locking state, so that the risk of privacy disclosure is avoided, and the privacy protection of the mobile terminal is further improved.
In addition, if the mobile terminal is in a screen locking state and the mobile terminal is switched from a state of being separated from the support to a state of being adsorbed on the support, the screen of the mobile terminal is unlocked. Therefore, when the mobile terminal is placed on the support, the screen state of the mobile terminal is controlled to be switched from the screen locking state to the screen unlocking state, the screen unlocking process of the mobile terminal is facilitated to be simplified, and therefore the operation of a user is facilitated.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 501 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 510; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 501 can also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access through the network module 502, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 503 may convert audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output as sound. Also, the audio output unit 503 may also provide audio output related to a specific function performed by the mobile terminal 500 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
The input unit 504 is used to receive an audio or video signal. The input Unit 504 may include a Graphics Processing Unit (GPU) 5041 and a microphone 5042, and the Graphics processor 5041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 506. The image frames processed by the graphic processor 5041 may be stored in the memory 509 (or other storage medium) or transmitted via the radio frequency unit 501 or the network module 502. The microphone 5042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 501 in case of the phone call mode.
The mobile terminal 500 also includes at least one sensor 505, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 5061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 5061 and/or a backlight when the mobile terminal 500 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 505 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 506 is used to display information input by the user or information provided to the user. The Display unit 506 may include a Display panel 5061, and the Display panel 5061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 507 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 507 includes a touch panel 5071 and other input devices 5072. Touch panel 5071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 5071 using a finger, stylus, or any suitable object or attachment). The touch panel 5071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 510, and receives and executes commands sent by the processor 510. In addition, the touch panel 5071 may be implemented in various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 5071, the user input unit 507 may include other input devices 5072. In particular, other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 5071 may be overlaid on the display panel 5061, and when the touch panel 5071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 510 to determine the type of the touch event, and then the processor 510 provides a corresponding visual output on the display panel 5061 according to the type of the touch event. Although in fig. 5, the touch panel 5071 and the display panel 5061 are two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 5071 and the display panel 5061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 508 is an interface through which an external device is connected to the mobile terminal 500. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 508 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 500 or may be used to transmit data between the mobile terminal 500 and external devices.
The memory 509 may be used to store software programs as well as various data. The memory 509 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 509 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 510 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 509 and calling data stored in the memory 509, thereby performing overall monitoring of the mobile terminal. Processor 510 may include one or more processing units; preferably, the processor 510 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 510.
The mobile terminal 500 may further include a power supply 511 (e.g., a battery) for supplying power to various components, and preferably, the power supply 511 may be logically connected to the processor 510 via a power management system, so that functions of managing charging, discharging, and power consumption are performed via the power management system.
In addition, the mobile terminal 500 includes some functional modules that are not shown, and thus, are not described in detail herein.
Preferably, an embodiment of the present invention further provides a mobile terminal, which includes a processor 510, a memory 509, and a computer program that is stored in the memory 509 and can be run on the processor 510, and when the computer program is executed by the processor 510, the processes of the above-mentioned embodiment of the unlocking control method are implemented, and the same technical effect can be achieved, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned unlocking control method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (9)

1. An unlocking control method is applied to a mobile terminal, and is characterized by comprising the following steps:
detecting a screen state of a mobile terminal and an adsorption state between the mobile terminal and a support;
if the mobile terminal is in a screen unlocking state and the mobile terminal is switched from a state of being adsorbed on the support to a state of being separated from the support, locking the screen of the mobile terminal; and/or unlocking the screen of the mobile terminal if the mobile terminal is in a screen locking state and the mobile terminal is switched from a state of being separated from the support to a state of being adsorbed on the support;
detecting the screen state of the mobile terminal and the adsorption state between the mobile terminal and the bracket, wherein the steps comprise:
detecting whether a mobile terminal establishes communication connection with preset equipment or not;
and if the mobile terminal is in communication connection with the preset equipment, detecting the screen state of the mobile terminal and the adsorption state between the mobile terminal and the support.
2. The unlock control method according to claim 1, wherein the preset device is a vehicle-mounted bluetooth device;
the step of detecting whether the mobile terminal establishes communication connection with the preset device includes:
detecting whether the mobile terminal is connected with the vehicle-mounted Bluetooth device through Bluetooth or not;
and if the mobile terminal is detected to be connected with the vehicle-mounted Bluetooth device through Bluetooth, determining that the mobile terminal is in communication connection with a preset device.
3. The unlock control method according to claim 1, wherein a magnetic guiding sheet is attached to an inner side of a rear cover of the mobile terminal, and a magnetic induction switch is disposed on one side of the magnetic guiding sheet; the bracket is a magnetic bracket;
in the step of detecting the screen state of the mobile terminal and the adsorption state between the mobile terminal and the support, the step of detecting the adsorption state between the mobile terminal and the support includes:
detecting a trigger mode of the magnetic induction switch, wherein the trigger mode comprises a first mode in which the magnetic induction switch is switched from a closed state to an open state, and a second mode in which the magnetic induction switch is switched from the open state to the closed state;
if the trigger mode is detected to be the first mode, determining that the mobile terminal is switched from a state of being adsorbed on the magnetic support to a state of being separated from the magnetic support; and if the trigger mode is detected to be the second mode, determining that the mobile terminal is switched from a state of being separated from the magnetic support to a state of being adsorbed on the magnetic support.
4. The unlock control method of claim 1, wherein after the step of detecting the screen state of the mobile terminal and the attraction state between the mobile terminal and the magnetic mount, the method further comprises:
and if the mobile terminal is in a screen unlocking state and the mobile terminal is adsorbed on the support, switching the working mode of the mobile terminal to a vehicle-mounted mode.
5. A mobile terminal, comprising:
the mobile terminal comprises a detection module, a display module and a control module, wherein the detection module is used for detecting the screen state of the mobile terminal and the adsorption state between the mobile terminal and a support;
the first switching module is used for locking the screen of the mobile terminal if the mobile terminal is in a screen unlocking state and the mobile terminal is switched from a state of being adsorbed on the bracket to a state of being separated from the bracket; and/or unlocking the screen of the mobile terminal if the mobile terminal is in a screen locking state and the mobile terminal is switched from a state of being separated from the support to a state of being adsorbed on the support;
the detection module includes:
the mobile terminal comprises a first detection unit, a second detection unit and a control unit, wherein the first detection unit is used for detecting whether the mobile terminal establishes communication connection with preset equipment or not;
and the second detection unit is used for detecting the screen state of the mobile terminal and the adsorption state between the mobile terminal and the support if the mobile terminal is in communication connection with the preset equipment.
6. The mobile terminal according to claim 5, wherein the preset device is a vehicle-mounted Bluetooth device; the first detection unit includes:
the detection subunit is used for detecting whether the mobile terminal establishes connection with the vehicle-mounted Bluetooth device through Bluetooth or not;
and the processing subunit is used for determining that the mobile terminal establishes communication connection with preset equipment if the mobile terminal is detected to establish connection with the vehicle-mounted Bluetooth equipment through Bluetooth.
7. The mobile terminal according to claim 5, wherein a magnetic guiding sheet is attached to an inner side of a rear cover of the mobile terminal, and a magnetic induction switch is disposed on one side of the magnetic guiding sheet; the bracket is a magnetic bracket; the detection module comprises:
a third detection unit, configured to detect a trigger mode of the magnetic induction switch, where the trigger mode includes a first mode in which the magnetic induction switch is switched from a closed state to an open state, and a second mode in which the magnetic induction switch is switched from the open state to the closed state;
the processing unit is used for determining that the mobile terminal is switched from a state of being adsorbed on the bracket to a state of being separated from the bracket if the trigger mode is detected to be the first mode; and if the trigger mode is detected to be the second mode, determining that the mobile terminal is switched from a state of being separated from the support to a state of being adsorbed on the support.
8. The mobile terminal of claim 5, wherein the mobile terminal further comprises:
and the second switching module is used for switching the working mode of the mobile terminal to the vehicle-mounted mode if the mobile terminal is in a screen unlocking state and is adsorbed on the support.
9. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, carries out the steps of the unlocking control method according to any one of claims 1 to 4.
CN201711071613.4A 2017-11-03 2017-11-03 Unlocking control method, mobile terminal and computer readable storage medium Active CN107885405B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711071613.4A CN107885405B (en) 2017-11-03 2017-11-03 Unlocking control method, mobile terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711071613.4A CN107885405B (en) 2017-11-03 2017-11-03 Unlocking control method, mobile terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN107885405A CN107885405A (en) 2018-04-06
CN107885405B true CN107885405B (en) 2020-02-21

Family

ID=61778836

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711071613.4A Active CN107885405B (en) 2017-11-03 2017-11-03 Unlocking control method, mobile terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN107885405B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110753147B (en) * 2018-07-24 2023-09-26 上海博泰悦臻网络技术服务有限公司 Mobile terminal display mode control method and device and mobile terminal supporting mechanism
WO2024082886A1 (en) * 2022-10-18 2024-04-25 Oppo广东移动通信有限公司 Electronic device and holder

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104239773A (en) * 2014-09-18 2014-12-24 周长智 Screen locking/unlocking device of mobile intelligent terminal and use method
CN105737863A (en) * 2016-02-25 2016-07-06 北京小米移动软件有限公司 Hall sensor, terminal, and terminal operation method
CN105808115A (en) * 2014-12-31 2016-07-27 中兴通讯股份有限公司 Control method and system of terminal, and terminal
CN205563530U (en) * 2016-04-24 2016-09-07 深圳市智扬通信技术有限公司 Electronic equipment touch unblock system
CN205584299U (en) * 2016-04-22 2016-09-14 姜海 Vehicle mobile phone frame is inhaled to magnetism
CN105979049A (en) * 2016-05-30 2016-09-28 张日龙 Magnetic suction type cell phone support

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104239773A (en) * 2014-09-18 2014-12-24 周长智 Screen locking/unlocking device of mobile intelligent terminal and use method
CN105808115A (en) * 2014-12-31 2016-07-27 中兴通讯股份有限公司 Control method and system of terminal, and terminal
CN105737863A (en) * 2016-02-25 2016-07-06 北京小米移动软件有限公司 Hall sensor, terminal, and terminal operation method
CN205584299U (en) * 2016-04-22 2016-09-14 姜海 Vehicle mobile phone frame is inhaled to magnetism
CN205563530U (en) * 2016-04-24 2016-09-07 深圳市智扬通信技术有限公司 Electronic equipment touch unblock system
CN105979049A (en) * 2016-05-30 2016-09-28 张日龙 Magnetic suction type cell phone support

Also Published As

Publication number Publication date
CN107885405A (en) 2018-04-06

Similar Documents

Publication Publication Date Title
CN107835286B (en) Method for preventing mistaken unlocking and mobile terminal
CN108256308B (en) Face recognition unlocking control method and mobile terminal
CN107609363B (en) Unlocking method and mobile terminal
CN107563158B (en) Method, device and computer readable storage medium for displaying hidden application icon
CN107992342B (en) Application configuration changing method and mobile terminal
US11989330B2 (en) Permission management method and terminal device
CN109710130B (en) Display method and terminal
CN111125770A (en) Privacy protection method and electronic equipment
CN111443815A (en) Vibration reminding method and electronic equipment
CN109005297B (en) Display method of navigation application and mobile terminal
CN111125680A (en) Permission setting method and terminal equipment
CN109446794B (en) Password input method and mobile terminal thereof
CN107885405B (en) Unlocking control method, mobile terminal and computer readable storage medium
CN109800606A (en) A kind of display control method and mobile terminal
CN108133581A (en) A kind of automobile key method for searching, automobile key and mobile terminal
CN109451143B (en) Call method and mobile terminal
WO2020011071A1 (en) Locking method and unlocking method for application program, and terminal device
CN108810276B (en) Face recognition method and mobile terminal
CN111104189A (en) Application program control method and electronic equipment
CN108259807B (en) Communication method, mobile terminal and computer readable storage medium
CN110647727A (en) Terminal control method and terminal
CN110879896B (en) Encryption and decryption method for folding screen terminal and electronic equipment
CN110471068B (en) Proximity detection method and mobile terminal
CN108229118B (en) Application program starting method and device
CN110516515B (en) Unlocking method and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant