CN110647727A - Terminal control method and terminal - Google Patents

Terminal control method and terminal Download PDF

Info

Publication number
CN110647727A
CN110647727A CN201910757721.XA CN201910757721A CN110647727A CN 110647727 A CN110647727 A CN 110647727A CN 201910757721 A CN201910757721 A CN 201910757721A CN 110647727 A CN110647727 A CN 110647727A
Authority
CN
China
Prior art keywords
state
terminal
target
indication information
target audio
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910757721.XA
Other languages
Chinese (zh)
Inventor
程青
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201910757721.XA priority Critical patent/CN110647727A/en
Publication of CN110647727A publication Critical patent/CN110647727A/en
Priority to PCT/CN2020/098238 priority patent/WO2021031695A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • 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/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range

Abstract

The embodiment of the invention provides a terminal control method and a terminal, relates to the technical field of terminals and aims to solve the problem that a screen unlocking mode is not flexible enough. The method comprises the following steps: under the condition that the terminal is wirelessly connected with the target audio equipment, switching the state of the target function of the terminal according to target information, wherein the target information comprises at least one of the following items: first indication information and second indication information; the first indication information is used for indicating the wearing state of the target audio equipment, and the second indication information is used for indicating the working state of the target audio equipment; the target function is a password-free unlocking screen function.

Description

Terminal control method and terminal
Technical Field
The embodiment of the invention relates to the technical field of terminals, in particular to a terminal control method and a terminal.
Background
As terminals become more and more popular, users are more and more concerned about personal data security issues.
Generally, a user may set a password lock (e.g., a fingerprint lock, a digital password lock, etc.) in a terminal to prevent others from unlocking a screen at will. In order to facilitate the user to rapidly unlock the screen in the using process, under the condition that the terminal is connected with the Bluetooth headset, the user can trigger the terminal equipment to unlock the screen without inputting a password. However, the user may not wish to use the function, and the user may need to manually turn off the function in the case that the terminal is connected to the bluetooth headset, which results in the inflexible manner of this screen unlocking.
Disclosure of Invention
The embodiment of the invention provides a terminal control method and a terminal, and aims to solve the problem that a screen unlocking mode is not flexible enough.
In order to solve the above technical problem, the embodiment of the present invention is implemented as follows:
in a first aspect, an embodiment of the present invention provides a method for controlling a terminal, where the method includes: under the condition that the terminal is wirelessly connected with the target audio equipment, switching the state of the target function of the terminal according to target information, wherein the target information comprises at least one of the following items: first indication information and second indication information; the first indication information is used for indicating the wearing state of the target audio equipment, and the second indication information is used for indicating the working state of the target audio equipment; the target function is a password-free unlocking screen function.
In a second aspect, an embodiment of the present invention further provides a terminal, where the terminal includes: a processing module; the processing module is used for switching the state of the target function of the terminal according to target information under the condition that the terminal is wirelessly connected with the target audio equipment, wherein the target information comprises at least one of the following items: first indication information and second indication information; the first indication information is used for indicating the wearing state of the target audio equipment, and the second indication information is used for indicating the working state of the target audio equipment; the target function is a password-free unlocking screen function.
In a third aspect, an embodiment of the present invention provides a terminal, including a processor, a memory, and a computer program stored on the memory and operable on the processor, where the computer program, when executed by the processor, implements the steps of the control method of the terminal according to the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the control method for a terminal according to the first aspect.
In the embodiment of the present invention, in the case that the terminal is wirelessly connected to the target audio device, the state of the target function may be switched according to the content specifically indicated by the target information, and since the target information includes at least one of first indication information indicating the wearing state of the target terminal device and second indication information indicating the operating state of the target terminal device, and both the wearing state and the operating state may indicate the case that the user uses the terminal, that is, the terminal may determine whether the user needs to use the privacy-free unlocking screen function according to at least one of the wearing state and the operating state of the target audio device, in the control method of the terminal provided in the embodiment of the present invention, the terminal may enable the privacy-free unlocking screen function in the case that the user needs to use the privacy-free unlocking screen function according to the target information, and determine that in the case that the user does not need to use the privacy-free unlocking screen function, the secret-free unlocking screen function can be forbidden, and the terminal can be flexibly controlled to enable or disable the secret unlocking screen function without manual operation of a user.
Drawings
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a control method of a terminal according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a possible structure of a terminal according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a hardware structure of a terminal according to various embodiments 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.
It should be noted that "/" in this context means "or", for example, A/B may mean A or B; "and/or" herein is merely an association describing an associated object, and means that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. "plurality" means two or more than two.
The terms "first" and "second," and the like, in the description and in the claims of the present invention are used for distinguishing between different objects and not for describing a particular order of the objects. For example, the first indication information, the second indication information, and the like are used to distinguish different indication information, and are not used to describe a specific order of the indication information.
It should be noted that, in the embodiments of the present invention, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
The terminal in the embodiment of the present invention may be a terminal having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present invention are not limited in particular.
Next, a software environment applied to the control method of the terminal provided by the embodiment of the present invention is described by taking an android operating system as an example.
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention. In fig. 1, the architecture of the android operating system includes 4 layers, which are respectively: an application layer, an application framework layer, a system runtime layer, and a kernel layer (specifically, a Linux kernel layer).
The application program layer comprises various application programs (including system application programs and third-party application programs) in an android operating system.
The application framework layer is a framework of the application, and a developer can develop some applications based on the application framework layer under the condition of complying with the development principle of the framework of the application.
The system runtime layer includes libraries (also called system libraries) and android operating system runtime environments. The library mainly provides various resources required by the android operating system. The android operating system running environment is used for providing a software environment for the android operating system.
The kernel layer is an operating system layer of an android operating system and belongs to the bottommost layer of an android operating system software layer. The kernel layer provides kernel system services and hardware-related drivers for the android operating system based on the Linux kernel.
Taking an android operating system as an example, in the embodiment of the present invention, a developer may develop a software program for implementing the control method of the terminal provided in the embodiment of the present invention based on the system architecture of the android operating system shown in fig. 1, so that the control method of the terminal may operate based on the android operating system shown in fig. 1. Namely, the processor or the terminal device can implement the control method of the terminal provided by the embodiment of the invention by running the software program in the android operating system.
A control method of a terminal according to an embodiment of the present invention is described below with reference to fig. 2. Fig. 2 is a flowchart illustrating a control method of a terminal according to an embodiment of the present invention, and as shown in fig. 2, the control method of the terminal includes S201.
S201, under the condition that the terminal is wirelessly connected with the target audio equipment, the terminal switches the state of the target function of the terminal according to the target information.
Wherein the target information comprises at least one of: first indication information and second indication information; the target function is a password-free unlocking screen function.
Specifically, the target function may also be referred to as an intelligent unlocking function in the actual application, and the name of the target function in the actual application is not specifically limited in the embodiment of the present invention.
In the embodiment of the present invention, the first indication information may be used to indicate a wearing state of the target audio device. Wherein the wearing state of the target audio device may include a wearing state and a non-wearing state.
Optionally, in this embodiment of the present invention, the first indication information may be sent to the terminal by the target audio device. That is, the target audio device may transmit indication information indicating a wearing state of the target audio device to the terminal.
For example, the target audio device may determine whether the target audio device is in a wearing state according to a distance detected by infrared rays transmitted by the target audio device; the target audio equipment can also determine the relation between the pressure value and the pressure threshold value according to a pressure sensor on the target audio equipment, and determine whether the target audio equipment is in a wearing state; the target audio device may also detect a capacitance value or a change value of the capacitance through a touch sensor on a side of the target audio device, and determine whether the target audio device is in a wearing state.
In this embodiment of the present invention, the second indication information may be used to indicate an operating state of the target audio device. The operating state of the target audio device may include an operating state and a non-operating state.
Specifically, in the embodiment of the present invention, the working state may be a state in which audio data transmission is performed between the target audio device and the terminal. The non-operating state may be a state in which the target terminal device and the terminal have not previously performed audio data transmission.
The audio data transmission state may be a state in which the target audio device receives audio data sent by the terminal (for example, playing audio), or a state in which the target audio device collects audio data and transmits the audio data to the terminal (for example, making a call through a bluetooth headset).
It should be noted that, in the embodiment of the present invention, a state of signaling transmission when a connection is established between the terminal and the target audio device may be considered as an inactive state.
Optionally, in this embodiment of the present invention, the second indication information is sent by the target audio device to the terminal (that is, the target audio device may send, to the terminal, indication information indicating an operating state of the target audio device), or is determined by the terminal according to the target transmission state, where the target transmission state is a state of transmitting audio data between the terminal and the target audio device.
For example, if the terminal sends audio data to the target audio device or receives audio data sent by the target audio device, the terminal may determine that the target audio device is in an operating state.
Optionally, the wireless connection in the embodiment of the present invention may be a bluetooth connection, a wireless connection in the form of an internet of things, or a wireless connection in other forms, which is not specifically limited in this embodiment of the present invention.
Illustratively, the terminal may be any terminal with a screen locking function, and the target audio device may be a bluetooth headset.
It should be noted that, in the embodiment of the present invention, after establishing a wireless connection with a target audio device, the terminal may periodically determine whether the terminal needs to switch the state of the target function according to the target information. Of course, the terminal may also determine whether the target function needs to be switched when detecting that the wearing state of the target audio device changes and/or when detecting that the working state of the target audio device changes.
In the control method of the terminal provided in the embodiment of the present invention, in a case where the terminal is wirelessly connected to the target audio device, the state of the target function may be switched according to content specifically indicated by the target information, and since the target information includes at least one of first indication information indicating a wearing state of the target terminal device and second indication information indicating an operating state of the target terminal device, and both the wearing state and the operating state may indicate a case where the user uses the terminal, that is, the terminal may determine whether the user needs to use the secret unlocking screen function according to at least one of the wearing state and the operating state of the target audio device, the terminal may enable the secret unlocking screen function when the user needs to use the secret unlocking screen function according to the target determination information, and determine that the secret unlocking screen function may be disabled when the user does not need to use the secret unlocking screen function, the terminal can be flexibly controlled to enable or disable the secret unlocking screen function without manual operation of a user.
For convenience of description, the first state is an enabled state (i.e., the secret-free unlocking screen function of the terminal is enabled), and the second state is a disabled state (i.e., the secret-free unlocking screen function of the terminal is disabled). Under the condition that the function of the password-free unlocking screen of the terminal is started, the terminal can cancel the process that a user inputs a password in the unlocking screen, and the screen can be unlocked by any operation of the user in the screen locking interface; under the condition that the function of the password-free unlocking screen of the terminal is disabled, a user needs to input a password (including inputting a fingerprint) in a screen locking interface to unlock the screen.
It should be noted that, in the embodiment of the present invention, if the target function is in the enabled state, the terminal may not display the password input interface or prompt the user to input the password when the user triggers the unlock screen.
Optionally, in the case that the target information includes the first indication information, S201 in the control method of the terminal according to the embodiment of the present invention may be specifically implemented by S201a1 or S201a 2.
S201a1, if the first indication information indicates that the target audio device is in the wearing state, the terminal switches the target function of the terminal to the first state.
It should be noted that, in the case that the terminal is wirelessly connected to the target audio device and the terminal determines that the target audio device is in the wearing state according to the first indication information, the terminal determines that the target function should be in the first state. If the target function of the terminal is already in the first state, the terminal keeps the target function in the first state; and if the target function of the terminal is in the second state, the terminal switches the target function from the second state to the first state.
S201a2, if the first indication information indicates that the target audio equipment is in the non-wearing state, the terminal switches the target function of the terminal to a second state.
It should be noted that, in the case that the terminal is wirelessly connected to the target audio device and the terminal determines that the target audio device is in the non-wearing state according to the first indication information, the terminal determines that the target function should be in the second state. If the target function of the terminal is already in the second state, the terminal keeps the target function in the second state; and if the target function of the terminal is in the first state, the terminal switches the target function from the first state to the second state.
For example, assuming that the user triggers the terminal to bluetooth connect to the bluetooth headset, the terminal may trigger the terminal to enable the target function when the user wears the bluetooth headset, and may trigger the terminal to disable the target function if the user cancels wearing the bluetooth headset (e.g., takes off the bluetooth headset).
Based on the scheme, the terminal can determine the state where the target function of the terminal should be located according to the wearing state of the target audio equipment indicated by the first indication information in the state that the terminal is wirelessly connected with the target audio equipment. And under the condition that the target audio equipment is determined to be in the wearing state, if the target function is in the enabling state, the target function is kept in the opening state, and if the target function is in the disabling state, the target function is switched from the disabling state to the enabling state. And under the condition that the target audio equipment is determined to be in the non-wearing state, if the target function is in the enabling state, the target function is switched from the enabling state to the disabling state, and if the target function is in the disabling state, the target function is kept in the disabling state. Therefore, on one hand, under the condition that the user wears the target audio equipment, the terminal can enable the target function to be in the starting state, and the user can conveniently and quickly unlock the screen; on the other hand, under the condition that the user does not wear the target audio equipment, the terminal can enable the target function to be in a forbidden state, so that the user needs to input an unlocking password in the screen unlocking process, other users cannot unlock the screen at will, and the safety of the terminal in the screen unlocking process is improved.
Optionally, in the case that the target information includes the second indication information, the above S201 of the method for controlling a terminal according to the embodiment of the present invention may be specifically implemented by S201b1 or S201b 2.
S201b1, if the second indication information indicates that the target audio equipment is in the working state, the terminal switches the target function of the terminal to the first state.
It should be noted that, in the case that the terminal is wirelessly connected to the target audio device and the terminal indicates that the target audio device is in the working state according to the second indication information, the terminal determines that the target function should be in the first state. If the target function of the terminal is already in the first state, the terminal keeps the target function in the first state; and if the target function of the terminal is in the second state, the terminal switches the target function from the second state to the first state.
S201b2, if the second indication information indicates that the target audio equipment is in the non-working state, the terminal switches the target function of the terminal to the second state.
It should be noted that, when the terminal is wirelessly connected to the target audio device and the terminal indicates that the target audio device is in the non-operating state according to the second indication information, the terminal determines that the target function should be in the second state. If the target function of the terminal is already in the second state, the terminal keeps the target function in the second state; and if the target function of the terminal is in the first state, the terminal switches the target function from the first state to the second state.
For example, assuming that a user triggers a terminal to be connected with a bluetooth headset via bluetooth, if the bluetooth headset is playing audio resources sent by the terminal, the terminal may trigger the terminal to enable a target function, and if the terminal determines that the audio resources are not sent to the bluetooth headset any more and does not communicate via the bluetooth headset, the terminal may trigger the terminal to disable the target function.
Based on the scheme, the terminal can determine the state where the target function of the terminal should be located according to the working state of the target audio equipment indicated by the second indication information in the state that the terminal is wirelessly connected with the target audio equipment. And under the condition that the target audio equipment is determined to be in the working state, if the target function is in the enabled state, the target function is kept in the opening state, and if the target function is in the disabled state, the target function is switched from the disabled state to the enabled state. Under the condition that the target audio equipment is determined to be in the non-working state, if the target function is in the enabling state, the target function is switched to the disabling state from the enabling state, and if the target function is in the disabling state, the target function is kept in the disabling state. Therefore, on one hand, under the condition that the target audio equipment is in a working state (such as audio playing, conversation and the like), the terminal can enable the target function to be in a starting state, so that a user can conveniently and quickly unlock a screen; on the other hand, under the condition that the target audio equipment is in the non-working state, the terminal can enable the target function to be in the forbidden state, so that the user needs to input an unlocking password in the screen unlocking process, other users cannot unlock the screen at will, and the safety of the terminal in the screen unlocking process is improved.
Optionally, in the case that the target information includes the first indication information and the second indication information, the above S201 of the method for controlling a terminal according to the embodiment of the present invention may be specifically implemented by S201c1 or S201c 2.
S201c1, if the first indication information indicates that the target audio device is in the wearing state and the second indication information indicates that the target audio device is in the working state, the terminal switches the target function of the terminal to the first state.
It should be noted that, when the terminal is wirelessly connected to the target audio device, and the terminal indicates that the target audio device is in the wearing state according to the first indication information, and indicates that the target audio device is in the working state according to the second indication information, the terminal determines that the target function should be in the first state. If the target function of the terminal is already in the first state, the terminal keeps the target function in the first state; and if the target function of the terminal is in the second state, the terminal switches the target function from the second state to the first state.
S201c2, if the first indication information indicates that the target audio equipment is in a non-wearing state or the second indication information indicates that the target audio equipment is in a non-working state, the terminal switches the target function of the terminal to a second state.
That is, if the first indication information indicates that the target audio device is in the non-wearing state, the terminal may switch the target function of the terminal to the second state without paying attention to whether the target audio device is in the working state. Or, if the second indication information indicates that the target audio device is in the non-working state, the terminal does not need to pay attention to whether the target audio device is in the wearing state, and the target function of the terminal can be switched to the second state. Or, if the first indication information indicates that the target audio device is in the non-wearing state and the second indication information indicates that the target audio device is in the non-working state, the terminal may switch the target function of the terminal to the second state.
It should be noted that, in the case that the terminal is wirelessly connected to the target audio device and the terminal indicates that the target audio device is in the non-wearing state according to the first indication information, the terminal determines that the target function should be in the second state. And under the condition that the terminal is in wireless connection with the target audio equipment and indicates that the target audio equipment is in the non-working state according to the second indication information, the terminal determines that the target function is in the second state. And when the terminal is in wireless connection with the target audio equipment, the terminal indicates that the target audio equipment is in a non-wearing state according to the first indication information, and the terminal indicates that the target audio equipment is in a non-working state according to the second indication information, the terminal determines that the target function is in a second state. If the target function of the terminal is already in the second state, the terminal keeps the target function in the second state; and if the target function of the terminal is in the first state, the terminal switches the target function from the first state to the second state.
For example, it is assumed that a user triggers the terminal to be bluetooth connected to a bluetooth headset, if the user wears the bluetooth headset and the bluetooth headset is in an operating state, the terminal may trigger the target function to be in an enabled state, if the user takes off the bluetooth headset, the terminal may be triggered to switch the target function from the enabled state to a disabled state, and if the user does not take off the bluetooth headset but is in a non-operating state, the terminal may be triggered to switch the target function from the enabled state to the disabled state.
Based on the scheme, the terminal can determine the state where the target function of the terminal should be located according to the wearing state of the target audio device indicated by the first indication information and the working state of the target audio device indicated by the second indication information in the state that the terminal is wirelessly connected with the target audio device. And when the target audio equipment is determined to be in at least one of the non-wearing state or the non-working state, if the target function is in the forbidden state, the target function is kept in the forbidden state, and if the target function is in the enabled state, the target function is switched from the enabled state to the forbidden state. Therefore, under the condition that the target audio equipment is in a wearing state and a working state, the terminal can enable the target function to be in an enabling state, and a user can conveniently and quickly unlock a screen; otherwise, the terminal can enable the target function to be in a forbidden state, so that the user is required to input an unlocking password in the screen unlocking process, other users cannot unlock the screen at will, and the safety of the terminal in the screen unlocking process is improved.
It should be noted that, in the embodiment of the present invention, if the wireless connection between the terminal and the target audio device is disconnected, the target function should be in the second state without performing the above determination. If the target function of the terminal is already in the second state, the terminal keeps the target function in the second state; and if the target function of the terminal is in the first state, the terminal switches the target function from the first state to the second state.
Optionally, after performing S201a1, S201b1, or S201c1, the method for controlling the terminal according to the embodiment of the present invention may further perform S202 described below.
S202, under the condition that the first input of the user is received, the terminal control terminal is switched from the screen locking state to the unlocking state.
The first input is any input except password input on a screen locking interface of the terminal.
It is understood that, when the above-described S202 is performed, the terminal is in the screen lock state.
Based on the scheme, under the condition that the target function is in the starting state and the terminal is in the screen locking state, the terminal can trigger the terminal to unlock the screen according to any input of the user on the screen locking interface.
Optionally, in the method for controlling a terminal according to the embodiment of the present invention, in S201a1, if the first indication information indicates that the target audio device is in a wearing state, the terminal may display a prompt message on a screen; in S201b1, if the second indication information indicates that the target audio device is in the working state, the terminal may display a prompt message in the interface; in S201c1, if the first indication information indicates that the target audio device is in a wearing state and the second indication information indicates that the target audio device is in an operating state, the terminal may display a prompt message in the interface. The prompt information is used for prompting a user to input a password so as to trigger the terminal to switch the target function to be in the first state. Further, "switching the target function of the terminal to the first state" in S201a1, S201b1, or S201c1 may be performed by the following step T:
and T, under the condition that the received user input is matched with the preset input, the terminal switches the target function of the terminal to be in the first state.
Optionally, the preset input may be a preset input corresponding to a digital combination lock, a fingerprint lock, and the like set by a user.
It should be noted that, before the target function is started, the terminal device may verify the identity of the user, and then determine whether to enable the password-free unlocking screen function.
Based on the scheme, the terminal can verify whether the user is a trustable user or not under the condition that the target information indicates that the target function needing to be switched is in the first state, prompt information can be displayed in a screen to prompt the user to input a password, if the password input by the user is verified to be correct, the user is a trustable user, the target function of the terminal is switched to be in the first state by the terminal, and therefore the function that the user uses the password-free unlocking screen is safer.
Optionally, the method for controlling the terminal according to the embodiment of the present invention may further perform S203 after S201a2, S201b2, or S201c 2.
And S203, under the condition that the second input of the user is received, the terminal control terminal keeps a screen locking state.
And the second input is any input which is not matched with the preset input.
Optionally, the preset input may be a preset input corresponding to a digital combination lock, a fingerprint lock, and the like set by a user.
Specifically, the terminal device may also control the terminal to display a prompt message for prompting the user to input the password when receiving the second input of the user.
Based on the scheme, under the condition that the target function is in the forbidden state and the terminal is in the screen locking state, if the input of the user is not matched with the input of the unlocking screen, for example, the password is not input, the fingerprint is not input according to the preset track, namely, the screen locking password is not verified, the terminal equipment controls the terminal to keep the screen locking state or prompts the user to input the password, so that the unlocking screen is safer.
Specifically, in a case that the target information includes the first indication information, the terminal may request the target audio device to transmit the wearing state of the target audio device, and specifically, the control method of the terminal according to the embodiment of the present invention may further include, before the above-mentioned S201, the following S204 to S207.
S204, the terminal sends a request message to the target audio equipment.
Wherein the request message is used to determine whether the target audio device is in a worn state.
And S205, the target audio equipment receives the request message sent by the terminal.
S206, the target audio equipment sends the first information to the terminal according to the request message.
The first information includes first indication information indicating a wearing state of the target audio device.
S207, the terminal receives first information sent by the target audio equipment.
Based on the scheme, the terminal can acquire the first indication information according to the first information sent by the target audio equipment, so that whether the terminal switches the state of the target function can be determined more accurately.
Fig. 3 is a schematic diagram of a possible structure of a terminal according to an embodiment of the present invention, and as shown in fig. 3, a terminal 300 includes: a processing module 301; a processing module 301, configured to switch a state of a target function of a terminal according to target information in a case where the terminal is wirelessly connected to a target audio device, where the target information includes at least one of: first indication information and second indication information; the first indication information is used for indicating the wearing state of the target audio equipment, and the second indication information is used for indicating the working state of the target audio equipment; the target function is a password-free unlocking screen function.
Optionally, the target information includes first indication information; the processing module 301 is specifically configured to switch the target function of the terminal to the first state if the first indication information indicates that the target audio device is in the wearing state; or, the processing module 301 is specifically configured to switch the target function of the terminal to the second state if the first indication information indicates that the target audio device is in the non-wearing state; the first state is an enabling state, and the second state is a disabling state.
Optionally, the target information includes second indication information; the processing module 301 is specifically configured to switch the target function of the terminal to the first state if the second indication information indicates that the target audio device is in the working state; or, the processing module 301 is specifically configured to switch the target function of the terminal to the second state if the second indication information indicates that the target audio device is in the non-operating state; the first state is an enabling state, and the second state is a disabling state.
Optionally, the target information includes first indication information and second indication information; the processing module 301 is specifically configured to switch the target function of the terminal to the first state if the first indication information indicates that the target audio device is in the wearing state and the second indication information indicates that the target audio device is in the working state; or, the processing module 301 is specifically configured to switch the target function of the terminal to the second state if the first indication information indicates that the target audio device is in the non-wearing state, or the second indication information indicates that the target audio device is in the non-working state; the first state is an enabling state, and the second state is a disabling state.
Optionally, the processing module 301 is further configured to, after the target function of the terminal is switched to the first state, control the terminal to switch from the screen locking state to the unlocking state when a first input of the user is received; the first input is any input except password input on a screen locking interface of the terminal.
Optionally, the first indication information is sent to the terminal by the target audio device; the second indication information is sent by the target audio equipment to the terminal or determined by the terminal according to the target transmission state, and the target transmission state is the state of transmitting audio data between the terminal and the target audio equipment.
The terminal 300 provided in the embodiment of the present invention can implement each process implemented by the terminal in the foregoing method embodiments, and is not described here again to avoid repetition.
The terminal provided by the embodiment of the invention can switch the state of the target function according to the content specifically indicated by the target information under the condition that the terminal is wirelessly connected with the target audio equipment, and as the target information comprises at least one of the first indication information indicating the wearing state of the target terminal equipment and the second indication information indicating the working state of the target terminal equipment, and both the wearing state and the working state can represent the condition that a user uses the terminal, namely the terminal can determine whether the user needs to use the secret unlocking screen function according to at least one of the wearing state and the working state of the target audio equipment, the terminal can start the secret unlocking screen function under the condition that the user needs to use the secret unlocking screen function according to the target determination information, and determine that the secret unlocking screen function can be disabled under the condition that the user does not need to use the secret unlocking screen function, the terminal can be flexibly controlled to enable or disable the secret unlocking screen function without manual operation of a user.
Fig. 4 is a schematic diagram of a hardware structure of a terminal for implementing various embodiments of the present invention, where the terminal 100 includes, but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the terminal configuration shown in fig. 4 is not intended to be limiting, and that the terminal may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the 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.
Wherein, the processor 110 is configured to switch a state of a target function of the terminal according to target information in a case that the terminal and the target audio device are wirelessly connected, and the target information includes at least one of: first indication information and second indication information; the first indication information is used for indicating the wearing state of the target audio equipment, and the second indication information is used for indicating the working state of the target audio equipment; the target function is a password-free unlocking screen function.
The terminal provided by the embodiment of the invention can switch the state of the target function according to the content specifically indicated by the target information under the condition that the terminal is wirelessly connected with the target audio equipment, and as the target information comprises at least one of the first indication information indicating the wearing state of the target terminal equipment and the second indication information indicating the working state of the target terminal equipment, and both the wearing state and the working state can represent the condition that a user uses the terminal, namely the terminal can determine whether the user needs to use the secret unlocking screen function according to at least one of the wearing state and the working state of the target audio equipment, the terminal can start the secret unlocking screen function under the condition that the user needs to use the secret unlocking screen function according to the target determination information, and determine that the secret unlocking screen function can be disabled under the condition that the user does not need to use the secret unlocking screen function, the terminal can be flexibly controlled to enable or disable the secret unlocking screen function without manual operation of a user.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 101 may be used for receiving and sending signals during a message transmission or call process, and specifically, after receiving downlink data from a base station, the downlink data is processed by the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 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 101 can also communicate with a network and other devices through a wireless communication system.
The terminal provides wireless broadband internet access to the user through the network module 102, such as helping the user send and receive e-mails, browse web pages, access streaming media, and the like.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output as sound. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 104 is used to receive an audio or video signal. The input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics processor 1041 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 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the network module 102. The microphone 1042 may receive sound and may be capable of processing such sound 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 101 in case of a phone call mode.
The terminal 100 also includes at least one sensor 105, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the terminal 100 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 terminal posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 105 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 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 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 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072. Touch panel 1071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 1071 (e.g., operations by a user on or near touch panel 1071 using a finger, stylus, or any suitable object or attachment). The touch panel 1071 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 110, and receives and executes commands sent by the processor 110. In addition, the touch panel 1071 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 1071, the user input unit 107 may include other input devices 1072. Specifically, other input devices 1072 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 1071 may be overlaid on the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in fig. 4, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the terminal, and is not limited herein.
The interface unit 108 is an interface for connecting an external device to the terminal 100. 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 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the terminal 100 or may be used to transmit data between the terminal 100 and the external device.
The memory 109 may be used to store software programs as well as various data. The memory 109 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 109 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 110 is a control center of the terminal, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the terminal. Processor 110 may include one or more processing units; preferably, the processor 110 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 the processor 110.
The terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power consumption management functions through the power management system.
In addition, the terminal 100 includes some functional modules that are not shown, and thus, the detailed description thereof is omitted.
Optionally, an embodiment of the present invention further provides a terminal, which, with reference to fig. 4, includes a processor 110, a memory 109, and a computer program that is stored in the memory 109 and is executable on the processor 110, and when the computer program is executed by the processor 110, the computer program implements each process of the control method embodiment of the terminal, and can achieve the same technical effect, and is not described herein again to avoid repetition.
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 control method embodiment of the terminal, 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 (14)

1. A control method of a terminal is applied to the terminal, and is characterized in that the method comprises the following steps:
under the condition that a terminal is wirelessly connected with a target audio device, switching the state of a target function of the terminal according to target information, wherein the target information comprises at least one of the following items: first indication information and second indication information;
the first indication information is used for indicating the wearing state of the target audio equipment, and the second indication information is used for indicating the working state of the target audio equipment; the target function is a password-free unlocking screen function.
2. The method of claim 1, wherein the target information comprises first indication information;
the switching the state of the target function of the terminal according to the target information comprises:
if the first indication information indicates that the target audio equipment is in a wearing state, switching the target function of the terminal to a first state;
alternatively, the first and second electrodes may be,
if the first indication information indicates that the target audio equipment is in a non-wearing state, switching the target function of the terminal to a second state;
wherein the first state is an enabled state and the second state is a disabled state.
3. The method of claim 1, wherein the target information comprises second indication information;
the switching the state of the target function of the terminal according to the target information comprises:
if the second indication information indicates that the target audio equipment is in a working state, switching the target function of the terminal to be in a first state;
alternatively, the first and second electrodes may be,
if the second indication information indicates that the target audio equipment is in a non-working state, switching the target function of the terminal to a second state;
wherein the first state is an enabled state and the second state is a disabled state.
4. The method of claim 1, wherein the target information comprises first indication information and second indication information;
the switching the state of the target function of the terminal according to the target information comprises:
if the first indication information indicates that the target audio equipment is in a wearing state and the second indication information indicates that the target audio equipment is in a working state, switching the target function of the terminal to be in a first state;
alternatively, the first and second electrodes may be,
if the first indication information indicates that the target audio equipment is in a non-wearing state or the second indication information indicates that the target audio equipment is in a non-working state, switching the target function of the terminal to a second state;
wherein the first state is an enabled state and the second state is a disabled state.
5. The method according to any of claims 2 to 4, wherein after the switching the target function of the terminal to the first state, the method further comprises:
under the condition that a first input of a user is received, controlling the terminal to be switched from a screen locking state to an unlocking state;
the first input is any input except password input on a screen locking interface of the terminal.
6. The method of claim 1,
the first indication information is sent to the terminal by the target audio equipment;
the second indication information is sent by the target audio equipment to the terminal or determined by the terminal according to a target transmission state, wherein the target transmission state is a state of transmitting audio data between the terminal and the target audio equipment.
7. A terminal, characterized in that the terminal comprises: a processing module;
the processing module is configured to switch a state of a target function of a terminal according to target information under a condition that the terminal is wirelessly connected to a target audio device, where the target information includes at least one of: first indication information and second indication information;
the first indication information is used for indicating the wearing state of the target audio equipment, and the second indication information is used for indicating the working state of the target audio equipment; the target function is a password-free unlocking screen function.
8. The terminal of claim 7, wherein the target information comprises first indication information;
the processing module is specifically configured to switch a target function of the terminal to a first state if the first indication information indicates that the target audio device is in a wearing state;
alternatively, the first and second electrodes may be,
the processing module is specifically configured to switch the target function of the terminal to a second state if the first indication information indicates that the target audio device is in a non-wearing state;
wherein the first state is an enabled state and the second state is a disabled state.
9. The terminal of claim 7, wherein the target information comprises second indication information;
the processing module is specifically configured to switch the target function of the terminal to a first state if the second indication information indicates that the target audio device is in a working state;
alternatively, the first and second electrodes may be,
the processing module is specifically configured to switch the target function of the terminal to a second state if the second indication information indicates that the target audio device is in a non-working state;
wherein the first state is an enabled state and the second state is a disabled state.
10. The terminal of claim 7, wherein the target information comprises first indication information and second indication information;
the processing module is specifically configured to switch a target function of the terminal to a first state if the first indication information indicates that the target audio device is in a wearing state and the second indication information indicates that the target audio device is in a working state;
alternatively, the first and second electrodes may be,
the processing module is specifically configured to switch the target function of the terminal to a second state if the first indication information indicates that the target audio device is in a non-worn state or the second indication information indicates that the target audio device is in a non-working state;
wherein the first state is an enabled state and the second state is a disabled state.
11. The terminal according to any of claims 7 to 10,
the processing module is further configured to control the terminal to switch from a screen locking state to an unlocking state after switching the target function of the terminal to the first state and under the condition of receiving a first input of a user;
the first input is any input except password input on a screen locking interface of the terminal.
12. The terminal of claim 7,
the first indication information is sent to the terminal by the target audio equipment;
the second indication information is sent by the target audio equipment to the terminal or determined by the terminal according to a target transmission state, wherein the target transmission state is a state of transmitting audio data between the terminal and the target audio equipment.
13. A terminal, characterized in that the terminal comprises a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the control method of the terminal according to any one of claims 1 to 6.
14. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, realizes the steps of the control method of a terminal according to any one of claims 1 to 6.
CN201910757721.XA 2019-08-16 2019-08-16 Terminal control method and terminal Pending CN110647727A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910757721.XA CN110647727A (en) 2019-08-16 2019-08-16 Terminal control method and terminal
PCT/CN2020/098238 WO2021031695A1 (en) 2019-08-16 2020-06-24 Terminal control method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910757721.XA CN110647727A (en) 2019-08-16 2019-08-16 Terminal control method and terminal

Publications (1)

Publication Number Publication Date
CN110647727A true CN110647727A (en) 2020-01-03

Family

ID=69009631

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910757721.XA Pending CN110647727A (en) 2019-08-16 2019-08-16 Terminal control method and terminal

Country Status (2)

Country Link
CN (1) CN110647727A (en)
WO (1) WO2021031695A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021031695A1 (en) * 2019-08-16 2021-02-25 维沃移动通信有限公司 Terminal control method and terminal
CN113961164A (en) * 2021-10-28 2022-01-21 无锡小天鹅电器有限公司 Mobile terminal and control method thereof

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105657164A (en) * 2015-12-30 2016-06-08 广州三星通信技术研究有限公司 Method and device for eliminating service restriction of portable terminal
CN106682539A (en) * 2016-11-30 2017-05-17 宇龙计算机通信科技(深圳)有限公司 Terminal screen unlocking control method and device
CN106682480A (en) * 2016-11-29 2017-05-17 歌尔科技有限公司 Intelligent decryption system and method, intelligent wearable device and intelligent mobile terminal
CN109753777A (en) * 2018-12-29 2019-05-14 上海瑾盛通信科技有限公司 A kind of personal identification method, device, storage medium and mobile terminal
CN110096860A (en) * 2019-03-26 2019-08-06 歌尔科技有限公司 A kind of unlocking terminal equipment method, apparatus and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106293308B (en) * 2015-05-21 2020-06-02 腾讯科技(深圳)有限公司 Screen unlocking method and device
CN105978907A (en) * 2016-06-30 2016-09-28 珠海市魅族科技有限公司 Decrypting method, device and system
CN110647727A (en) * 2019-08-16 2020-01-03 维沃移动通信有限公司 Terminal control method and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105657164A (en) * 2015-12-30 2016-06-08 广州三星通信技术研究有限公司 Method and device for eliminating service restriction of portable terminal
CN106682480A (en) * 2016-11-29 2017-05-17 歌尔科技有限公司 Intelligent decryption system and method, intelligent wearable device and intelligent mobile terminal
CN106682539A (en) * 2016-11-30 2017-05-17 宇龙计算机通信科技(深圳)有限公司 Terminal screen unlocking control method and device
CN109753777A (en) * 2018-12-29 2019-05-14 上海瑾盛通信科技有限公司 A kind of personal identification method, device, storage medium and mobile terminal
CN110096860A (en) * 2019-03-26 2019-08-06 歌尔科技有限公司 A kind of unlocking terminal equipment method, apparatus and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021031695A1 (en) * 2019-08-16 2021-02-25 维沃移动通信有限公司 Terminal control method and terminal
CN113961164A (en) * 2021-10-28 2022-01-21 无锡小天鹅电器有限公司 Mobile terminal and control method thereof

Also Published As

Publication number Publication date
WO2021031695A1 (en) 2021-02-25

Similar Documents

Publication Publication Date Title
CN110058836B (en) Audio signal output method and terminal equipment
CN108595946B (en) Privacy protection method and terminal
CN108256308B (en) Face recognition unlocking control method and mobile terminal
CN107609363B (en) Unlocking method and mobile terminal
CN110851031A (en) Display control method and electronic equipment
CN108712555B (en) Method and device for sending alarm information
CN109815679B (en) Authority management method and mobile terminal
CN111093289A (en) Service transmission method and electronic equipment
CN109005297B (en) Display method of navigation application and mobile terminal
CN108196663B (en) Face recognition method and mobile terminal
CN110647727A (en) Terminal control method and terminal
CN110096893B (en) Object limiting method and terminal equipment
CN109815678B (en) Permission configuration method and mobile terminal
CN109992941B (en) Authority management method and terminal equipment
CN109343900B (en) Permission configuration method and terminal
CN111125680A (en) Permission setting method and terminal equipment
CN109164951B (en) Mobile terminal operation method and mobile terminal
CN107491685B (en) Face recognition method and mobile terminal
CN108259807B (en) Communication method, mobile terminal and computer readable storage medium
CN111381753B (en) Multimedia file playing method and electronic equipment
CN110032861B (en) Password setting method and terminal equipment
CN110096863B (en) Alarm method and mobile terminal
CN111045584B (en) Interface display method and electronic equipment
CN108668005B (en) Terminal detection method and terminal
CN109408173B (en) Interface display method and terminal

Legal Events

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