WO2023236650A1 - 控制电路、电子设备、硬件安全防护方法及存储介质 - Google Patents

控制电路、电子设备、硬件安全防护方法及存储介质 Download PDF

Info

Publication number
WO2023236650A1
WO2023236650A1 PCT/CN2023/088069 CN2023088069W WO2023236650A1 WO 2023236650 A1 WO2023236650 A1 WO 2023236650A1 CN 2023088069 W CN2023088069 W CN 2023088069W WO 2023236650 A1 WO2023236650 A1 WO 2023236650A1
Authority
WO
WIPO (PCT)
Prior art keywords
input
control
short
mcu
output unit
Prior art date
Application number
PCT/CN2023/088069
Other languages
English (en)
French (fr)
Inventor
陈文龙
邓旭同
Original Assignee
荣耀终端有限公司
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 荣耀终端有限公司 filed Critical 荣耀终端有限公司
Publication of WO2023236650A1 publication Critical patent/WO2023236650A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/12Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure

Definitions

  • the present application relates to the field of electronic information technology, and in particular to a control circuit, electronic equipment, hardware security protection method and storage medium.
  • third-party APKs cannot be installed and used if they do not agree to use permissions for some hardware devices, such as cameras, microphones, etc., resulting in users being forced to agree.
  • the third-party APK is installed, regardless of the use process, Whether in standby mode, the user's private information can be obtained through these hardware devices that have been granted permission to use.
  • this application provides a control circuit, electronic device, hardware security protection method and storage medium, aiming to control hardware devices that can obtain user privacy information, so that these hardware devices are selectively in a disabled state , to prevent third-party APKs from excessively collecting user information from the hardware level, thereby improving the security of electronic devices.
  • this application provides a control circuit.
  • the control circuit includes: micro control unit MCU, short-circuit element, switching element and input and output unit; the VCC pin of the MCU is connected to the supply voltage VCC, the GPIO pin of the MCU is connected to the input end of the short-circuit element, and the GND pin of the MCU passes through the switch.
  • the component is grounded, and the output end of the short-circuit component is connected to the signal receiving end of the input-output unit; wherein, the MCU is used to output the first control signal through the GPIO pin after the GND pin is grounded through the switching component; the short-circuit component is used to output the first control signal according to the first The control signal controls the input and output unit to be short-circuited to ground.
  • the input and output can be selectively controlled.
  • the unit When the unit is in an invalid state, it can prevent third-party APKs from excessively collecting user information from the hardware, thereby improving the security of using electronic devices.
  • the control circuit also includes a processing unit CPU; the CPU communicates with the MCU through the I2C bus; wherein the MCU is also used to output the signal through the GPIO pin after receiving the second control signal sent by the CPU through the I2C bus. output a third control signal; the short-circuit element is also used to control the input and output unit to conduct according to the third control signal. Therefore, the MCU can determine which of the failed input and output units should be restored to normal based on the second control signal sent by the CPU, thereby ensuring the normal use of the input and output units by the user.
  • a processing unit CPU the CPU communicates with the MCU through the I2C bus; wherein the MCU is also used to output the signal through the GPIO pin after receiving the second control signal sent by the CPU through the I2C bus. output a third control signal; the short-circuit element is also used to control the input and output unit to conduct according to the third control signal. Therefore, the MCU can determine which of the failed input and output units should be restored to normal based on
  • the clock signal port of the CPU is connected to the signal receiving end of the input and output unit; wherein, after the input and output unit is turned on, the input and output unit receives the clock signal of the CPU The port sends the clock signal and responds to the clock signal. Therefore, after the input-output unit is turned on, the CPU can communicate with the input-output unit through the clock signal port, and then obtain the required data from the input-output unit.
  • the input and output unit includes any one or more of the following: a camera unit, a microphone unit, a storage unit, and a sensor unit.
  • input and output units such as camera units, microphone units, storage units, and sensor units can be selectively disabled, thereby preventing third-party APKs from calling these input and output units in the background to collect user privacy.
  • the number of short-circuit elements is the same as the number of input and output units, and corresponds one to one. Therefore, by controlling the on and off of different short-circuit components, different input and output units can be selectively disabled.
  • a GPIO pin of the MCU is connected to the input end of each short-circuit component respectively. Therefore, short-circuit control of all input and output units can be realized through a GPIO pin of the MCU.
  • the circuit structure is simple and easy to implement.
  • the number of GPIO pins of the MCU is the same as the number of short-circuit components, and corresponds one to one.
  • different input and output units can be short-circuited through different GPIO pins of the MCU, so that some input and output units can be selectively disabled to better adapt to different usage scenarios and user needs.
  • the control circuit when the input and output unit includes a microphone unit, the control circuit further includes: a codec; a forward input end of the codec and a forward output of the microphone unit terminal connection, the negative input terminal of the codec is connected to the negative output terminal of the microphone, and the positive input terminal of the microphone unit is connected to the signal receiving terminal and the output terminal of the short-circuit element.
  • the short-circuit element is a field effect MOS transistor. In this way, the circuit size can be reduced as much as possible and the power consumption of the electronic device can be reduced.
  • the MOS tube is an NMOS tube; the gate of the NMOS tube is grounded, the drain of the NMOS tube is an input terminal connected to the GPIO pin of the MCU, and the source of the NMOS tube is connected to the GPIO pin of the MCU.
  • the output end is connected to the signal receiving end of the input and output unit; when the MOS tube is an NMOS tube, the first control signal is a high-level signal, and the NMOS tube is turned on in response to the high-level signal, causing the input and output unit to be short-circuited to ground. .
  • the MOS tube is a PMOS tube; the gate of the PMOS tube is grounded, the source of the PMOS tube is connected to the input terminal and the GPIO pin of the MCU, and the drain of the PMOS tube is The output end is connected to the signal receiving end of the input and output unit; when the MOS tube is a PMOS tube, the first control signal is a low-level signal, and the PMOS tube is turned on in response to the low-level signal, causing the input and output unit to be short-circuited to ground. .
  • the present application provides an electronic device.
  • the electronic device includes a control circuit as described in the first aspect or any possible implementation of the first aspect, having the first aspect or any possible implementation of the first aspect. All effects of the control circuit described in Eq.
  • this application provides a hardware security protection method, which is applied to the electronic device described in the second aspect.
  • the method includes: determining that a first operation instruction to turn on the hardware security protection mode is received; according to the first operation instruction, controlling the switch element to close so that the GND pin of the micro control unit MCU is grounded; after the GND pin is grounded, the MCU passes The GPIO pin outputs a first control signal; the short-circuit element controls the input-output unit to be short-circuited to ground according to the first control signal.
  • the input and output can be selectively controlled.
  • the unit When the unit is in an invalid state, it can prevent third-party APKs from excessively collecting user information from the hardware, thereby improving the security of using electronic devices.
  • determining that the first operation instruction to turn on the hardware security protection mode is received includes: monitoring the corresponding switch state of the first mechanical button; when the switch state is the first state, determining that the trigger to turn on the hardware security mode is received.
  • the first operation instruction, the first state is used to indicate that the first mechanical button is currently in the closed position.
  • the method further includes: changing the switch state from When the first state changes to the second state, it is determined that a second operation instruction to turn off the hardware safety protection mode is received, the second state is used to indicate that the first mechanical button is currently in the open position, and the second operation instruction is used to control the switch element to open, So that the GND pin is not connected to ground and turns off the hardware safety protection mode.
  • determining that the first operation instruction to turn on the hardware security protection mode is received includes: when the first pressing operation on the second mechanical button is detected, recording the The first pressing duration of the second mechanical button; when the first pressing duration matches the first time threshold, it is determined that the first operation instruction to turn on the hardware security protection mode is received.
  • the method further includes: after detecting the During the second pressing operation of the second mechanical button, the second pressing duration of the second mechanical button is recorded; when the second pressing duration matches the second time threshold, it is determined that the second operation instruction to turn off the hardware security protection mode is received, The second operation instruction is used to control the switching element to open so that the GND pin is not grounded and the hardware safety protection mode is turned off.
  • determining that the first operation instruction to turn on the hardware security protection mode is received includes: when a third pressing operation on the second mechanical button is detected, recording the device The first number of pressings of the second mechanical button within a certain period of time; when the first number of pressings matches the first number threshold, it is determined that the first operation instruction to turn on the hardware security protection mode is received.
  • the method further includes: after detecting the During the fourth pressing operation of the second mechanical button, the first number of pressings of the second mechanical button within the set time is recorded; when the second number of pressings matches the second number threshold, it is determined that the third request to turn off the hardware safety protection mode is received.
  • Two operation instructions The second operation instruction is used to control the switching element to open so that the GND pin is not grounded and the hardware safety protection mode is turned off.
  • a method is provided to turn on or off the hardware security mode through a mechanical button.
  • the user only needs to press a certain mechanical button a specific number of times to quickly turn on or off the hardware security mode, which is convenient for the user. operate.
  • the method further includes: the processing unit CPU receives an access to the input-output unit.
  • the description information of the application program that accesses the input and output unit is obtained.
  • the description information is used to determine whether the application program is a system application; when the application program is determined to be a system application based on the description information, the CPU sends a second control signal to the MCU through the I2C bus.
  • the MCU After receiving the second control signal, the MCU outputs the third control signal through the GPIO pin; the short-circuit element controls the input and output unit to be turned on according to the third control signal. Therefore, the MCU can determine which of the failed input and output units should be restored to normal based on the second control signal sent by the CPU, thereby ensuring the normal use of the input and output units by the user.
  • this application provides a hardware security protection method, which is applied to the electronic device described in the second aspect.
  • An application program for turning on the hardware security protection mode is installed in the electronic device.
  • the application program provides a first control for turning on the hardware security protection mode and a second control for turning off the hardware security protection mode.
  • the method includes: upon detecting an attack on the first control. When the click operation is performed, it is determined that the first operation instruction to turn on the hardware security protection mode is received; according to the first operation instruction, the switch element is controlled to be closed so that the GND pin of the micro control unit MCU is grounded.
  • the hardware security protection mode is turned on through software.
  • the method further includes: the MCU outputs the first control signal through the GPIO pin.
  • the method further includes: in response to the click operation on the first control, the application displays the first interface, and the An interface includes a third control indicating the input and output unit; a third operation is performed on the third control; in response to the third operation, the MCU outputs a first control signal through the GPIO pin to the short-circuit element corresponding to the input and output unit.
  • the short circuit of the input and output unit can be triggered according to user needs.
  • the method further includes: when detecting a click operation on the second control, determining that a second operation instruction to turn off the hardware security protection mode is received, and the second operation The instruction is used to control the switching element to open so that the GND pin is not grounded and the hardware safety protection mode is turned off.
  • the method further includes: the processing unit CPU receives an access to the input-output unit.
  • the description information of the application accessing the input and output unit is obtained.
  • the description information is used to determine the application Whether the application program is a system application; when determining that the application program is a system application based on the description information, the CPU sends a second control signal to the MCU through the I2C bus; after receiving the second control signal, the MCU outputs a third control signal through the GPIO pin;
  • the short-circuit element controls the input and output unit to be turned on according to the third control signal. Therefore, the MCU can determine which of the failed input and output units should be restored to normal based on the second control signal sent by the CPU, thereby ensuring the normal use of the input and output units by the user.
  • the present application provides a computer-readable medium for storing a computer program, the computer program including instructions for performing the method in the third aspect or any possible implementation of the third aspect, and for Instructions for performing a method of the fourth aspect or any possible implementation of the fourth aspect.
  • the present application provides a computer program, the computer program comprising instructions for performing the method in the third aspect or any possible implementation of the third aspect, and for performing the fourth aspect or the fourth aspect. Any possible implementation of the method's instructions.
  • this application provides a chip, which includes a processing circuit and transceiver pins.
  • the transceiver pin and the processing circuit communicate with each other through an internal connection path, and the processing circuit performs the method in the third aspect or any possible implementation of the third aspect, or the fourth aspect or the fourth aspect.
  • a method in either possible implementation is to control the receive pin to receive a signal and to control the transmit pin to send a signal.
  • Figure 1 is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present application.
  • FIG. 2 is a schematic structural diagram of a control circuit provided by an embodiment of the present application.
  • FIG. 3 is a schematic structural diagram of another control circuit provided by an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of another control circuit provided by an embodiment of the present application.
  • Figure 5 is a schematic structural diagram of a mechanical key of an electronic device provided by an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of another control circuit provided by an embodiment of the present application.
  • Figure 7 is a schematic structural diagram of another mechanical key of an electronic device provided by an embodiment of the present application.
  • Figure 8 is a schematic structural diagram of another mechanical key of an electronic device provided by an embodiment of the present application.
  • Figure 9 is a schematic diagram of the main page of an electronic device provided by an embodiment of the present application.
  • Figure 10 is a schematic diagram of a display page of a control circuit provided by an embodiment of the present application that is turned on/off through software;
  • Figure 11 is a schematic diagram of a display page for selecting hardware that needs to be disabled according to an embodiment of the present application
  • Figure 12 is a flow chart of a hardware security protection method provided by an embodiment of the present application.
  • a and/or B can mean: A exists alone, A and B exist simultaneously, and they exist alone. B these three situations.
  • first and second in the description and claims of the embodiments of this application are used to distinguish different objects, rather than to describe a specific order of objects.
  • first target object, the second target object, etc. are used to distinguish different target objects, rather than to describe a specific order of the target objects.
  • multiple processing units refer to two or more processing units; multiple systems refer to two or more systems.
  • Embodiments of the present application provide an electronic device.
  • the electronic device provided by the embodiment of the present application may be a mobile phone, a tablet computer, a personal digital assistant (PDA for short), a vehicle-mounted computer, a smart wearable device, a smart home device, etc. No more enumeration here.
  • the embodiments of the present application do not limit the specific form of the above-mentioned electronic device.
  • the electronic device as a mobile phone as an example, the hardware structure of the mobile phone will be described with reference to Figure 1 .
  • the mobile phone 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, and an antenna.
  • a processor 110 an external memory interface 120
  • an internal memory 121 a universal serial bus (USB) interface 130
  • a charging management module 140 a power management module 141
  • a battery 142 and an antenna.
  • Antenna 2 mobile communication module 150, wireless communication module 160, audio module 170, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and subscriber identification module (SIM) ) card interface 195, etc.
  • SIM subscriber identification module
  • the audio module 170 may include, for example, a speaker 170A, a receiver 170B, a microphone 170C, a headphone interface 170D, and the like.
  • the sensor module 180 may include a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, etc. .
  • the keys 190 may include, for example, a power key (power on key), a home key (home key), a volume key (volume up, volume down), etc.
  • Key 190 may be a mechanical key. It can also be a touch button.
  • the mobile phone 100 can receive key input and generate signal input related to user settings and function control of the mobile phone 100 .
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and/or Neural-network processing unit, NPU) etc.
  • processing units may be independent devices or integrated in one or more processors.
  • the controller may be the nerve center and command center of the mobile phone 100 .
  • the controller can generate operation control signals based on the instruction operation code and timing signals to complete the control of fetching and executing instructions.
  • the memory in processor 110 is primarily used to store instructions and data.
  • the memory in processor 110 is cache memory.
  • executable program codes that trigger the mobile phone 100 to implement various functional applications and data processing are stored in the internal memory 121 , and these executable program codes include instructions.
  • control circuit By integrating the control circuit into the mobile phone 100, the control circuit can control the hardware device in the mobile phone to obtain user privacy.
  • the camera 193, the internal memory 121, the audio module 170, etc. are short-circuited, so that the input and output units can be selectively controlled to be in a disabled state, that is, the third-party APK can be prevented from excessively collecting user information from the hardware, thereby improving the use of electronic devices. safety.
  • control circuit can be turned on by pressing the button 190, or by a software switch provided in the display interface.
  • the mobile phone 100 shown in Figure 1 is only an example. In a specific implementation, the mobile phone 100 may have more or fewer components than those shown in the figure. , two or more components may be combined, or may have different component configurations.
  • the various components shown in Figure 1 may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and/or application specific integrated circuits.
  • control circuit 200 includes, for example, an MCU 201 , a short-circuit element 202 , a switching element 203 and an input-output unit 204 .
  • the MCU 201 includes at least one GPIO pin, and the GPIO pin is connected to the input end of the short-circuit component 202 .
  • the VCC pin of the MCU 201 is connected to the supply voltage VCC, and the GND pin of the MCU 201 is connected to the ground through the switching element 203 .
  • the output end of the short-circuit element 202 is connected to the signal receiving end of the input-output unit 204 .
  • the supply voltage VCC used to provide operating power for the MCU 201 can come from the battery 142 of the mobile phone 100 .
  • the short-circuit element 202 mentioned in this embodiment is an element that can control current on and off, that is, an element that can realize on and off functions.
  • it can be a Metal-Oxide-Semiconductor Field-Effect Transistor (MOSFET) (hereinafter referred to as MOS pipes), contactors, relays, circuit breakers, air switches, buttons and other electrical and electrical components, they can also be electronic switches, photoelectric switches, microwave switches and other electronic devices, which will not be listed one by one here, and this application does not limit them.
  • MOSFET Metal-Oxide-Semiconductor Field-Effect Transistor
  • the switching element 203 is a normally open switch, that is, it is in the open position in a normal state. In this state, the GND pin of MC201 is not actually grounded, and the control circuit 200 does not work at this time. ;
  • the switching element 203 is in the closed position, that is, when the GND pin of the MCU 201 is grounded through the switching element 203, the control circuit 200 starts to work.
  • the MCU 201 will output a control signal through the GPIO pin connected to the input end of the short-circuit element 202 ( In order to distinguish it from the control signal that appears subsequently, it will be referred to as the first control signal below).
  • the short-circuit element 202 will be turned on after receiving the first control signal, thereby short-circuiting the input and output unit 204 to ground. That is, the input and output unit 204 is in a disabled state, so that a third-party APK that has obtained the usage rights of the input and output unit 204 cannot use the input and output unit 204 to collect the user's private information, thereby providing security for the user's mobile phone use.
  • the input and output unit 204 in this embodiment may be, for example, a camera unit (camera 193 as shown in Figure 1), a microphone unit (microphone 170 as shown in Figure 1), a storage unit (internal memory 121 as shown in Figure 1), as well as various sensors provided in the mobile phone, etc.
  • a camera unit camera 193 as shown in Figure 1
  • a microphone unit microphone 170 as shown in Figure 1
  • a storage unit internal memory 121 as shown in Figure 1
  • various sensors provided in the mobile phone etc.
  • sensors include pressure sensors, gyroscope sensors, air pressure sensors, magnetic sensors, acceleration sensors, distance sensors, proximity light sensors, fingerprint sensors, temperature sensors, touch sensors, ambient light sensors, bone conduction sensors, etc. , will not be listed one by one here, and this application does not limit this.
  • the input and output unit 204 may also be the external memory interface 120 shown in FIG. 1 . In this way, by controlling the external memory interface 120 to be short-circuited to ground, the third-party APK cannot obtain the external storage device through the external memory interface 120 information stored in.
  • the input and output unit 204 may also be the USB interface 130 shown in FIG. 1 .
  • the USB interface 130 shown in FIG. 1 .
  • the third-party APK cannot obtain the data connected through the USB interface 130 through the USB interface 130 .
  • Information stored in the device may also be the USB interface 130 shown in FIG. 1 .
  • the input and output unit 204 can also be the SIM card interface 195 shown in Figure 1. In this way, by controlling the SIM card interface 195 to be short-circuited to ground, the third-party APK cannot obtain the SIM card through the SIM card interface 195. Contact information stored in .
  • the input and output unit 204 may also be the speaker 170A shown in FIG. 1 . In this way, by controlling the speaker 170A to be short-circuited to ground, the third-party APK cannot obtain the sound information currently played by the speaker 170A.
  • the input and output unit 204 may also be the receiver 170B shown in FIG. 1 .
  • the third-party APK cannot obtain the user's voice information and the surrounding environment through the receiver 170B. sound.
  • the input and output unit 204 can also be the headphone interface 170D shown in Figure 1. In this way, by controlling the headphone interface 170D to be short-circuited to ground, the third-party APK cannot obtain the connection through the headphone interface 170D. The sound information played by the incoming headset.
  • the input and output unit 204 includes but does not Limited to the above example, in other optional implementations, it can be any hardware device that can obtain the user's private information.
  • control circuit sets a short-circuit element for the input and output unit that can output the user's private information, and controls the short-circuit element to short-circuit the input and output unit through the first control signal output by the GPIO pin of the MCU, thereby
  • the ability to selectively control the input and output unit to be in a disabled state can prevent third-party APKs from excessively collecting user information from the hardware, thus improving the security of the use of electronic devices.
  • control circuit 200 is in the working mode, in order to enable the system-level APK to access the input and output unit 204 that is currently in a failed state, for example, the camera APK that comes with the system can use the camera that is in a failed state to shoot, or the system
  • the built-in call APK can use disabled audio modules, such as microphones, headphones, speakers, receivers, etc., to make calls.
  • the control circuit 200 can also include the processing unit CPU205 shown in Figure 3, and then the CPU205 communicates through the I2C bus. The method notifies the MCU 201 which input and output unit 204 the system APK needs to access, thereby turning on the input and output unit 204 and restoring the input and output unit 204 from a disabled state to an available state.
  • the control circuit 200 before the control circuit 200 is in the working mode, that is, before the hardware security protection mode provided by this embodiment is turned on, if the user is using a certain input and output unit 204 through the system APK, such as Camera, in order to ensure that the system APK can still use the camera when the hardware security protection mode is turned on at this time, it can be set that every time the system application accesses the input and output unit 204, the CPU 205 notifies the MCU 201 through the I2C bus communication method of the input currently accessed by the system APK.
  • Information about the output unit 204 such as access time, specific input and output unit 204 (camera, microphone, earphone, speaker, receiver, etc.).
  • the hardware security mode is turned on and the MCU 201 queries that a certain input and output unit 204 is currently being used by the system APK, the used input and output unit 204 is still available, that is, it is not short-circuited and other unused input and output units are controlled.
  • the input and output unit 204 is short-circuited and is in a failed state.
  • the CPU 205 if after turning on the hardware security protection mode, notifies the MCU 201 of the input and output unit 204 that was previously used by the system APK through the I2C bus communication method. If the camera has been released, the MCU 201 controls the camera to short-circuit and put it in a disabled state.
  • control circuit 200 before the control circuit 200 is in the working mode, that is, before the hardware security protection mode provided by this embodiment is turned on, if the user is using a certain input and output unit 204 through a third-party APK (such as a camera), that is, it is not a third-party APK that uses the camera without the user's knowledge.
  • a third-party APK such as a camera
  • a pop-up window can prompt the user.
  • the camera will be disabled after turning on this mode.
  • the CPU 205 communicates with the MCU 201 through the I2C bus. In this way, when the input and output unit 204 needs to be used, the CPU 205 can send a control signal to the MCU through the I2C bus.
  • the control signal sent is called the second control signal).
  • the second control signal is used to indicate the identification information of the input and output unit 204 that the system APK needs to use.
  • the MCU 201 can determine which one or which input and output units 204 need to be restored to the available state.
  • the number of short-circuit elements 202 in the control circuit 200 may be equal to the number of the input and output units 204 .
  • the numbers are the same and correspond one to one, that is, each input and output unit 204 corresponds to a unique short-circuit element 202 .
  • MCU201 usually has multiple GPIO pins, so in some implementations, one GPIO pin of MCU201 can be selected to be connected to the input end of each short-circuit element 202 respectively, so that one GPIO pin can Short-circuit control of all input and output units 204 can be implemented.
  • each short-circuit element 202 can be set to correspond to a GPIO pin of the MCU 201, that is, at least it is necessary to ensure that the number of GPIO pins of the MCU 201 is the same as the number of short-circuit elements 202, and correspond one to one. In this way, short-circuit control of different input and output units 204 can be realized through different GPIO pins, so that some of the input and output units 204 can be selectively disabled.
  • MCU 201 determines the input and output unit 204 that needs to be restored to an available state according to the second control signal, it can output a control signal through the GPIO pin corresponding to the input and output unit 204 (for ease of distinction, it will be used to restore the input later.
  • the control signal of the available state of the output unit 204 is called the third control signal).
  • each input and output unit 204 will correspond to a short-circuit element 202 used to control its short-circuit or conduction to ground, and the input end of each short-circuit element 202 will be connected to a GPIO of the MCU 201 The pins are connected, so the third control signal is specifically output by a GPIO pin connected to the input end of the short-circuit element 202 corresponding to the input-output unit 204 that needs to be restored to the usable state. In this way, the short-circuit element 202 that receives the third control signal can control the corresponding input and output unit 204 to be turned on, thereby restoring the usable state.
  • the clock signal port of the CPU 205 is connected to the signal receiving end of the input and output unit 204, so that after the input and output unit 204 returns to the available state, the CPU 205 can send a clock to the input and output unit 204 through the clock signal port. Signal.
  • the input and output unit 204 can respond to the clock signal and periodically send the acquired information to the CPU according to the cycle of the clock signal.
  • the input and output unit 204 is a camera
  • the information sent to the CPU 205 may be the picked-up sound information.
  • control circuit establishes communication between the CPU and the MCU through the I2C bus, so that the MCU can determine which failed input and output units are restored to normal based on the second control signal sent by the CPU, thereby ensuring that the user Normal use of input and output units.
  • the switch element 203 is an exemplary mechanical key provided on the electronic device, such as a volume key of the volume key.
  • the input and output unit 204 includes a camera Camera 204A, a memory 204B, and a microphone Mic 204C, and
  • the one-to-one corresponding short-circuit components of these three input and output units are MOS tubes (MOS tube 202A corresponds to Camera 204A, MOS tube 202B corresponds to memory Memory 204B, and MOS tube 202C corresponds to microphone Mic 204C) for illustration.
  • MOS tube 202A, MOS tube 202B and MOS tube 202C are all connected to the same GPIO pin of MCU201, and CPU205 is respectively connected to Camera204A, Memory204B, and Mic204C for communication, for example, through a clock signal port.
  • the control circuit 200 when the input and output unit 204 includes the microphone 204C, the control circuit 200 also needs to include a codec (COder-DECoder, hereinafter referred to as Codec) 206.
  • Codec codec
  • CO compression
  • DEC decompression
  • the resources of CPU205 improve the operating efficiency of the system.
  • the positive input terminal of Codec206 is connected to the positive output terminal (MIC_P) of MIC204C
  • the negative input terminal of Codec206 is connected to the negative output terminal (MIC_N) of the microphone
  • the signal receiving terminal of Codec206 is connected to CPU205
  • the clock signal terminal is connected to obtain the audio data collected by MIC204C regularly according to the clock signal of CPU205.
  • the forward input end of the MIC 204C serves as a signal receiving end and is connected to the output end of the MOS transistor 202C.
  • the mobile phone 100 includes a display panel 10 , a rear case 20 , a middle frame 30 , and a power button 40 , a volume down button 50 (for reducing the volume), and a volume up button 60 (for increasing volume).
  • the display panel 10, the rear case 20 and the middle frame 30 may enclose a receiving cavity. Structures such as a motherboard, batteries, and functional devices (not shown in the figure) are arranged in the accommodation cavity. Functional devices include, for example, a display driver chip, a processor, the control circuit 200 in this embodiment, etc.
  • the material of the back shell 20 of the mobile phone 100 may include, for example, opaque materials such as plastic, plain leather, and fiberglass, or may also include light-transmitting materials such as glass.
  • the embodiment of the present application does not limit the material of the rear case 20 .
  • the display panel 10 of the mobile phone 100 in this embodiment includes, for example, a Liquid Crystal Display (LCD) panel, an Organic Light Emitting Diode (OLED) display panel, an LED display panel, etc., where , LED display panels include, for example, Micro-LED display panels, Mini-LED display panels, etc.
  • LCD Liquid Crystal Display
  • OLED Organic Light Emitting Diode
  • LED display panels include, for example, Micro-LED display panels, Mini-LED display panels, etc.
  • the embodiment of the present application does not limit the type of the display panel 10 .
  • the volume up button 60 when the volume up button 60 is pressed by the user, if the pressing time is greater than 10 seconds, the GND pin of the MCU 201 is grounded through the volume up button 60, and the control circuit 200 enters the working mode. At this time, it can be The GPIO pin sends the first control signal to short-circuit Camera204A, Memory204B, and Mic204C.
  • the GND of the MCU 201 can also be grounded through the volume up button 60 to control the circuit 200 to enter the working mode.
  • the first control signal of short-circuiting Camera204A, Memory204B, and Mic204C can be sent through the GPIO pin.
  • MOS tube 202A, MOS tube 202B and MOS tube 202C will be turned on according to the first control signal, thereby causing Camera 204A corresponding to MOS tube 202A to be short-circuited to ground, Memory 204B corresponding to MOS tube 202B to be short-circuited to ground, and MOS tube 202C to be short-circuited.
  • Mic204C is short-circuited to ground, even if Camera204A, Memory204B, and Mic204C are all in a failed state and cannot be used, so the user's private data cannot be collected.
  • the CPU 205 will determine the identification information of the called Camera204A according to the request of the camera APK, and then send the identification information of Camera204A to the MCU201 through the I2C bus. , so that MCU201 can send a control signal to restore the normal state of Camera204A to MOS tube 202A through the GPIO pin, and MOS tube 202A will disconnect after receiving the control signal, thereby causing Camera204A to conduct and return to normal state, so that the camera The APK can call Camera204A normally to take pictures.
  • volume down key 50 can also be provided as the switch element 203, which is not limited in this embodiment.
  • pressing the volume down button 50 or the volume up button 60 may be considered as adjusting the volume
  • the method of triggering the MCU 201 to send the first signal by the number of presses can be set to Press the volume down button 50 and the volume up button 60 simultaneously for a set number of times within a time period, or press other mechanical buttons.
  • the specific implementation logic can be set according to actual business requirements, and there are no restrictions here.
  • the volume down button 50 can be pressed and held for 10 seconds when the control circuit 200 is in the working mode.
  • control circuit provided in this embodiment can realize short-circuit control of all input and output units 204 through a GPIO pin of the MCU 201.
  • the circuit structure is simple and easy to implement.
  • the switch element 203 is a switch (the key to control the switch switch is exposed on the electronic device to facilitate user operation), and the input and output unit 204 includes Camera 204A, Memory 204B, and Mic 204C.
  • the one-to-one corresponding short-circuit components of the three input and output units are MOS tubes (MOS tube 202A corresponds to Camera204A, MOS tube 202B corresponds to Memory 204B, and MOS tube 202C corresponds to Mic204C) as an example for explanation.
  • MOS tube 202A, MOS tube 202B and MOS tube 202C are respectively connected to different GPIO pins of MCU 201.
  • the input end of MOS tube 201A is connected to the GPIO1 pin
  • the input end of MOS tube 201B is connected to The GPIO2 pin
  • the input end of the MOS tube 201C is connected to the GPIO3 pin
  • the CPU205 is connected to the Camera204A, Memory204B, and Mic204C respectively, for example, through the clock signal port.
  • the control circuit 200 in the embodiment shown in FIG. 6 also includes the Codec 206.
  • the connection between the Codec 206 and each device in the control circuit 200, such as the CPU 205 and the Mic 204C please refer to the description in the embodiment shown in Figure 4, and will not be described again here.
  • a mobile phone 100 includes a display panel 10 , a rear case 20 , a middle frame 30 , and settings. There are a power button 40, a volume down button 50 (for reducing the volume), a volume up button 60 (for increasing the volume) and a switch control button 70 on the middle frame.
  • the display panel 10, the rear case 20 and the middle frame 30 may enclose a receiving cavity. Structures such as a motherboard, batteries, and functional devices (not shown in the figure) are arranged in the accommodation cavity. Functional devices include, for example, a display driver chip, a processor, the control circuit 200 in this embodiment, etc.
  • control button 70 of the switch switch is in the state shown in Figure 7, it means that the switch switch is currently in the open position, corresponding to the control circuit 200, the switching element 203 is in the state shown in Figure 6, this When the control circuit 200 does not work.
  • the MCU 201 can send the first control signal of the short-circuit Camera204A through the GPIO1 pin, the short-circuit Memory204B through the GPIO2 pin, and the first control signal of the short-circuit Mic204C through the GPIO3 pin.
  • MOS tube 202A, MOS tube 202B and MOS tube 202C will be turned on according to the first control signal, thereby causing Camera 204A corresponding to MOS tube 202A to be short-circuited to ground, Memory 204B corresponding to MOS tube 202B to be short-circuited to ground, and MOS tube 202C to be short-circuited.
  • Mic204C is short-circuited to ground, even if Camera204A, Memory204B, and Mic204C are all in a failed state and cannot be used, so the user's private data cannot be collected.
  • the CPU 205 will determine the identification information of the called Mic204C according to the request of the call APK, and then send the identification information of the Mic204C to the MCU201 through the I2C bus. , so that MCU201 can send a control signal to MOS tube 202C to restore the normal state of Mic204C through the GPIO3 pin, and MOS tube 202C will disconnect after receiving the control signal, thereby turning on Mic204C and returning to normal state, so that the call APK can call Mic204C normally to make calls.
  • control circuit provided in this embodiment performs short-circuit control on different input and output units 204 through different GPIO pins of the MCU 201, thereby selectively disabling some of the input and output units 204 to better adapt to different uses. scenarios and user needs.
  • the MCU201 used can have both a control function and an encryption function, so that the information transmitted by CPU205 and MCU201 through the I2C bus is Encrypted transmission can be carried out according to the agreed encryption and decryption methods, thereby preventing third-party APKs from intercepting the information transmitted between CPU205 and MCU201, further ensuring the security of the user's electronic equipment.
  • the short-circuit element 204 in the control circuit 200 is a MOS transistor, a PMOS transistor or an NMOS transistor can be selected according to business needs, and this application does not limit this.
  • the MOS tube when the MOS tube is an NMOS tube, the gate of the NMOS tube is connected to the ground, the drain of the NMOS tube is connected to the input terminal and the GPIO pin of the MCU, and the source terminal of the NMOS tube is connected to the output terminal and the signal receiving terminal of the input and output unit;
  • the MOS tube is a PMOS tube, the gate of the PMOS tube is connected to the ground, the source of the PMOS tube is connected to the input terminal and the GPIO pin of the MCU, and the drain of the PMOS tube is the signal receiving terminal between the output terminal and the input-output unit. end connection.
  • the NMOS tube can only be turned on when the input signal is a high-level signal
  • the short-circuit element 204 is an NMOS tube
  • the first control signal output by the MCU through the GPIO pin is a high-level signal, so that When the NMOS tube is turned on in response to a high-level signal, the input-output unit 204 connected to it can be short-circuited to ground, that is, the input-output unit 204 connected to it can be controlled to be disabled and unavailable.
  • the PMOS tube can only be turned on when the input signal is a low-level signal
  • the short-circuit element 204 is a PMOS tube
  • the first control signal output by the MCU through the GPIO pin is low-level. signal, so that the PMOS tube turns on in response to the high-level signal, the input and output unit 204 connected to it can be short-circuited to ground, that is, the input and output unit 204 connected to it can be controlled to be disabled and unavailable.
  • control circuit 200 This concludes the description of the control circuit 200. It can be understood that the above description is only an example for a better understanding of the technical solution of this embodiment, and is not the only limitation on this embodiment. Specific to practical applications, the specific structure of the control circuit 200 includes but is not limited to the above examples. In other optional implementations, the control circuit 200 can also be set in other settings, as long as the MCU 201 can send the short-circuit element 202 through the GPIO pin. The control signal is such that the short-circuit element 202 controls the input-output unit 203 to be short-circuited to ground according to the control signal.
  • the electronic device integrating the control circuit triggers the control circuit, and when the input and output unit selectively fails, the triggering method can be through a mechanical button on the electronic device, as shown in Figure 5
  • the volume up button 60, or the control button 70 of the switch switch as shown in Figures 7 and 8, can also be implemented through an APK installed in the electronic device to enable this hardware protection mode.
  • the APK used to enable this hardware protection mode can be a system APK. This prevents users from downloading APKs developed by malicious third parties from the application market to enable this hardware protection mode.
  • the mechanical key can be used as a switching element to ground the GND pin of the MCU 201. Therefore, The mechanical button triggers the control circuit 200 to enter and exit the working mode. Once grounding is achieved through the mechanical button, the MCU 201 can immediately send the first control signal, and then short-circuit all the input and output units 204 through the short-circuit element 202. When the grounding is disconnected, the input/output unit 204 in the failed state can be immediately restored to the usable state.
  • the GND pin of the MCU 201 can be set to always be grounded, but when the first control signal is sent, all inputs and outputs can be controlled through the short-circuit element 202
  • the unit 204 is short-circuited, or the input-output unit 204 in a failed state is restored to a usable state, which can be controlled by software.
  • the home page of mobile phone 100 displays multiple installed APKs, such as security protection APK (the APK used to enable this hardware protection mode in this embodiment), clock APK, calendar APK, System APKs such as gallery APK, memo APK, file management APK, calculator APK, settings APK, recorder APK, camera APK, address book APK, phone APK and information APK, as well as email APK, music APK, video APK, weather APK, Browser APK and other third-party APKs.
  • security protection APK the APK used to enable this hardware protection mode in this embodiment
  • clock APK such as security protection APK (the APK used to enable this hardware protection mode in this embodiment), clock APK, calendar APK, System APKs such as gallery APK, memo APK, file management APK, calculator APK, settings APK, recorder APK, camera APK, address book APK, phone APK and information APK, as well as email APK, music APK, video APK, weather APK, Browser APK and other third-party APK
  • the mobile phone 100 when the user clicks on the security protection APK, the mobile phone 100 responds to the user's operation behavior and starts the security protection APK, and the display page will display a page showing whether to enable the hardware security protection mode as shown in Figure 10. 10a.
  • the page 10 may include one or more controls, such as a control 10a-1 for exiting the page 10a, and a control 10a-1 for turning on the hardware security protection mode, that is, triggering the control circuit 200 to enter the working mode. 2.
  • Control 10a-3 for turning off the hardware security protection mode, that is, triggering the control circuit 200 to exit the working mode.
  • the mobile phone 100 responds to the user's operation behavior and jumps from the page 10a to the page 10b for selecting failed hardware shown in Figure 11.
  • the page 10b may include one or more controls, such as a control 10b-1 for exiting the page 10b, an invalid hardware selection list 10b-2, and a control 10b-3 for unchecking the selected hardware. Control 10b-4 for agreeing to invalidate selected hardware.
  • the failed hardware selection list 10b-2 may include one or more controls, such as a control 10b-21 used to select all hardware (input and output units) in the list, a control 10b-21 used to select a camera individually.
  • the mobile phone 100 responds to the user's operation behavior and selects all options displayed in the list 10b-2.
  • the MCU 201 of the control circuit 200 will send control signals to the short-circuit components corresponding to 10b-22 to 10b-29 through each GPIO pin corresponding to 10b-22 to 10b-29, thereby realizing the control of the hardware 10b-22 to 10b-29. short circuit.
  • the MCU201 of the control circuit 200 will pass the GPIO corresponding to 10b-22.
  • the pin sends a control signal to the short-circuit component corresponding to 10b-22, thereby realizing the short-circuit of 10b-22.
  • the MCU 201 will be controlled to send the first control signal, and then the corresponding short-circuit element 202 will control the short circuit of the selected input and output unit.
  • the number of times (such as 3 times) is determined to turn on the hardware security protection mode to achieve short circuit of the set input and output units.
  • the short-circuited input and output units can be all, or they can be set by default, and there is no restriction here.
  • the short-circuited input and output units can be all or the default settings, which are not limited here.
  • the security protection APK triggers the control circuit 200 to exit the working mode based on the above
  • the user can click the security protection APK displayed on the display page shown in Figure 9.
  • the mobile phone 100 responds to the user's operation. Behavior, start the security protection APK, the display page will display the page 10a of whether to enable the hardware security protection mode as shown in Figure 10.
  • the mobile phone 100 controls the switch element 203 to be in the open position.
  • the control circuit 200 can exit the working mode, and all short-circuited input and output units 204 You can resume normal use.
  • control circuit 200 can exit the working mode through a specific gesture, or by tapping the screen of the mobile phone 100 or the back shell within a set time (such as 2 seconds) with the knuckle/finger/stylus. , or the number of side borders (such as 3 times), or graphics drawn by knuckles/finger/stylus in any area or specific area of the mobile phone 100 screen, such as a square drawn in any area of the mobile phone 100 screen.
  • a combination of mechanical buttons and software can be used to trigger the control circuit 200 to enter and exit the working mode.
  • the GND pin of MCU 201 still uses a switch element acted by a mechanical button to achieve grounding. That is, when the control circuit 200 exits the working mode, the GND pin is not grounded.
  • the control circuit 200 can be directly triggered to enter the working mode, that is, all input and output units 204 that can currently be short-circuited are short-circuited, and then some input and output units 204 can be selectively restored to availability through software according to individual needs.
  • the mechanical button method can be directly used, or the software method can be used.
  • the implementation of using mechanical keys or software to trigger the control circuit 200 to exit the working mode please refer to the description of the above embodiments and will not be described again here.
  • this application also provides a hardware security protection method suitable for the electronic equipment.
  • this embodiment provides a hardware security protection method.
  • the specific process includes:
  • determining that the first operation instruction to turn on the hardware security protection mode is received may include, for example:
  • the switch state is the first state, it is determined that the first operation instruction to trigger the hardware security protection mode is received, and the first state is used to indicate that the first mechanical button is currently in the closed position.
  • the above-mentioned first mechanical button may be, for example, the above-mentioned switch.
  • the description of determining whether to enable the hardware security protection mode based on the switch status can be found above and will not be described again here.
  • determining that the first operation instruction to turn on the hardware security protection mode is received may include, for example:
  • the second mechanical key mentioned above may be, for example, the volume up key or the volume down key mentioned above.
  • the first pressing operation and the first pressing duration specifically indicate the pressing operation and pressing duration of the second mechanical key when the hardware security protection mode is turned off.
  • the description of determining whether to turn on the hardware security mode based on the pressing time of the volume up button or the volume down button can be found above, and will not be described again here.
  • determining that the first operation instruction to turn on the hardware security protection mode is received may include, for example:
  • the second mechanical key mentioned above may be, for example, the volume up key or the volume down key mentioned above.
  • the third pressing operation and the first pressing number specifically indicate the pressing operation and the number of pressings of the second mechanical key when the hardware security protection mode is turned off.
  • the description of determining whether to turn on the hardware security mode based on the number of times the volume up button or the volume down button is pressed can be found above, and will not be described again here.
  • the GND pin of the MCU 201 in the corresponding control circuit 200 can be grounded or grounded through the second mechanical button. Disconnect.
  • the operation to be performed is to use the second mechanical button to turn the GND of the MCU201 The pin is grounded, and the following step S103 is performed directly after grounding.
  • the operation to be performed is that the GND pin of MCU201 is not grounded and will be in The input and output units in the failed state are restored to the available state.
  • the GND pin of the MCU 201 in the corresponding control circuit 200 can be directly connected to the ground.
  • the operation to be performed is directly the following step S103.
  • the operation to be performed is to send a control signal to the short-circuit element to restore the available state of the input and output unit, Then the input and output unit in the failed state is restored to the available state.
  • an application program for turning on the hardware security protection mode is installed in the electronic device, and the application program provides a first control for turning on the hardware security protection mode and a third control for turning off the hardware security protection mode. Two controls.
  • determining that the first operation instruction to turn on the hardware security protection mode is received may include, for example:
  • the above-mentioned first control may be, for example, the above-mentioned control 10a-2.
  • the description of turning on the hardware security protection mode according to the click operation of the control 10a-2 can be found above, and will not be described again here.
  • the switch element is controlled to be closed so that the GND pin of the micro control unit MCU is grounded.
  • the switching element after controlling the switching element to close according to the first operation instruction to ground the GND pin of the micro control unit MCU, for example, it may also include:
  • the second state is used to indicate that the first mechanical button is currently in the open position
  • the second operation instruction is used to control the switch element to open so that the GND pin is not grounded and the hardware safety protection mode is turned off.
  • the description of determining whether to turn off the hardware security protection mode based on the switch status can be found above and will not be described again here.
  • the switching element to close according to the first operation instruction to ground the GND pin of the micro control unit MCU may also include:
  • the second pressing operation and the second pressing duration specifically indicate the pressing operation and pressing duration of the second mechanical button when the hardware security protection mode is turned on.
  • the description of determining whether to turn off the hardware security mode based on the pressing time of the volume up button or the volume down button can be found above and will not be repeated here.
  • the switching element to close according to the first operation instruction to ground the GND pin of the micro control unit MCU may also include:
  • the fourth pressing operation and the second pressing number specifically indicate the pressing operation and the number of pressings of the second mechanical button when the hardware security protection mode is turned on.
  • the description of determining whether to turn off the hardware security mode based on the number of times the volume up button or the volume down button is pressed can be found above, and will not be described again here.
  • the switching element to close according to the first operation instruction to ground the GND pin of the micro control unit MCU may also include:
  • the above-mentioned second control may be, for example, the above-mentioned control 10a-2.
  • the description of turning off the hardware security protection mode according to the click operation of the control 10a-3 can be found above, and will not be described again here.
  • the MCU outputs the first control signal through the GPIO pin.
  • S104 The short-circuit element controls the input and output unit to be short-circuited to ground according to the first control signal.
  • the short-circuit element controls the input and output unit to short-circuit to ground according to the first control signal, for example, it may also include:
  • the processing unit CPU When the processing unit CPU receives an access request to access the input and output unit, it obtains the description information of the application program that accesses the input and output unit.
  • the description information is used to determine whether the application program is a system application;
  • the CPU When determining that the application program is a system application based on the description information, the CPU sends a second control signal to the MCU through the I2C bus;
  • the MCU After receiving the second control signal, the MCU outputs the third control signal through the GPIO pin;
  • the short-circuit element controls the input and output unit to be turned on according to the third control signal.
  • the MCU can determine which of the failed input and output units should be restored to normal based on the second control signal sent by the CPU, thereby ensuring the normal use of the input and output units by the user.
  • the electronic device includes corresponding hardware and/or software modules that perform each function.
  • the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is performed by hardware or computer software driving the hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions in conjunction with the embodiments for each specific application, but such implementations should not be considered to be beyond the scope of this application.
  • the hardware security protection methods provided by the above embodiments implemented by electronic devices can also be executed by a chip system included in the electronic device, where the chip system can Includes processor.
  • the chip system can be coupled with a memory, so that when the chip system is running, it calls the computer program stored in the memory to implement the steps performed by the electronic device.
  • the processor in the chip system may be an application processor or a non-application processor.
  • embodiments of the present application also provide a computer-readable storage medium.
  • Computer instructions are stored in the computer storage medium.
  • the electronic device causes the electronic device to execute the above-mentioned related method steps to implement the above-mentioned embodiments.
  • Hardware security protection methods are provided.
  • embodiments of the present application also provide a computer program product.
  • the computer program product When the computer program product is run on an electronic device, it causes the electronic device to perform the above related steps to implement the hardware security protection method in the above embodiment.
  • embodiments of the present application also provide a chip (which may also be a component or module), which may include one or more processing circuits and one or more transceiver pins; wherein the transceiver pins and the The processing circuits communicate with each other through internal connection paths.
  • the processing circuits execute the above-mentioned relevant method steps to implement the hardware security protection method in the above-mentioned embodiments to control the receiving pin to receive signals and to control the sending pin to send signals.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Telephone Function (AREA)

Abstract

本申请提供了一种控制电路、电子设备、硬件安全防护方法及存储介质。该控制电路包括:MCU、短路元件、开关元件和输入输出单元;MCU的VCC引脚连接供电电压VCC,MCU的GPIO引脚连接短路元件的输入端连接,MCU的GND引脚通过开关元件接地,短路元件的输出端与输入输出单元的信号接收端连接;其中,MCU用于在GND引脚通过开关元件接地后,通过GPIO引脚输出第一控制信号;短路元件用于根据第一控制信号控制输入输出单元对地短路。这样,通过对输入输出单元的短路,从而能够选择性的控制输入输出单元处于失效状态,即能够从硬件上防止第三方APK过度收集用户信息,从而提高了电子设备使用的安全性。

Description

控制电路、电子设备、硬件安全防护方法及存储介质
本申请要求于2022年06月07日提交中国专利局、申请号为202210633372.2、发明名称为“控制电路、电子设备、硬件安全防护方法及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及电子信息技术领域,尤其涉及一种控制电路、电子设备、硬件安全防护方法及存储介质。
背景技术
随着电子信息技术的不断发展,各种电子设备充斥在我们的生活中,我们的生活越来越离不开电子设备,因此对电子设备的安全性也越来越关注。以手机为例,目前手机用户越来越关心个人隐私问题。但是,目前大部分Android用户不清楚自己手机里边安装的Android应用程序包(Android应用程序包,APK)获取了哪些硬件设备使用权限,比如,摄像头,麦克风使用权限等。在用户不清楚手机安装的APK都获得哪些设备使用权限时,就无法及时关闭权限。
另外,一些第三方APK在安装时如果不同意对一些硬件设备,如摄像头、麦克风等的使用权限就无法安装使用,导致用户被迫同意,进而在第三方APK安装后,不管在使用过程中,还是在待机状态都能够通过这些赋予使用权限的硬件设备获取用户的隐私信息。
发明内容
为了解决上述技术问题,本申请提供一种控制电路、电子设备、硬件安全防护方法及存储介质,旨在对能够获取用户隐私信息的硬件设备进行控制,以使这些硬件设备选择性的处于失效状态,实现从硬件上防止第三方APK过度收集用户信息,从而提高电子设备使用的安全性。
第一方面,本申请提供一种控制电路。该控制电路包括:微控制单元MCU、短路元件、开关元件和输入输出单元;MCU的VCC引脚连接供电电压VCC,MCU的GPIO引脚与短路元件的输入端连接,MCU的GND引脚通过开关元件接地,短路元件的输出端与输入输出单元的信号接收端连接;其中,MCU用于在GND引脚通过开关元件接地后,通过GPIO引脚输出第一控制信号;短路元件用于根据第一控制信号控制输入输出单元对地短路。
由此,通过为能够输出用户隐私信息的输入输出单元设置短路元件,并通过MCU的GPIO引脚输出的第一控制信号来控制短路元件对输入输出单元进行短路,从而能够选择性的控制输入输出单元处于失效状态,即能够从硬件上防止第三方APK过度收集用户信息,从而提高了电子设备使用的安全性。
根据第一方面,控制电路还包括处理单元CPU;CPU通过I2C总线与MCU通信;其中,MCU还用于在接收到CPU通过I2C总线发送的第二控制信号后,通过GPIO引脚输 出第三控制信号;短路元件还用于根据第三控制信号控制输入输出单元导通。由此,MCU就能够根据CPU发送的第二控制信号确定将哪些处于失效的输入输出单元恢复正常,进而保证用户对输入输出单元的正常使用。
根据第一方面,或者以上第一方面的任意一种实现方式,CPU的时钟信号端口与输入输出单元的信号接收端连接;其中,在输入输出单元导通后,输入输出单元接收CPU通过时钟信号端口发送的时钟信号,并响应于时钟信号。由此,在输入输出单元导通后,CPU通过时钟信号端口便可以与输入输出单元进行通信,进而从输入输出单元获取到需要的数据。
根据第一方面,或者以上第一方面的任意一种实现方式,输入输出单元包括以下任意一项或几项:摄像头单元、麦克风单元、存储单元、传感器单元。由此,就可以选择性的使摄像头单元、麦克风单元、存储单元、传感器单元等输入输出单元失效,从而杜绝第三方APK在后台调用这些输入输出单元收集用户隐私。
根据第一方面,或者以上第一方面的任意一种实现方式,短路元件的数量与输入输出单元的数量相同,且一一对应。由此,通过控制不同短路元件的通、断,便可以让不同的输入输出单元选择性失效。
根据第一方面,或者以上第一方面的任意一种实现方式,MCU的一个GPIO引脚分别与每一个短路元件的输入端连接。由此,通过MCU的一个GPIO引脚便可以实现对所有输入输出单元的短路控制,电路结构简单,实现方便。
根据第一方面,或者以上第一方面的任意一种实现方式,MCU的GPIO引脚的数量与短路元件的数量相同,且一一对应。由此,通过MCU不同的GPIO引脚对不同的输入输出单元进行短路控制,从而可以选择性的让部分输入输出单元失效,以更好的适应不同的使用场景和用户需求。
根据第一方面,或者以上第一方面的任意一种实现方式,在输入输出单元包括麦克风单元时,控制电路还包括:编译码器;编译码器的正向输入端与麦克风单元的正向输出端连接,编译码器的负向输入端与麦克风的负向输出端连接,麦克风单元的正向输入端为信号接收端与短路元件的输出端连接。
根据第一方面,或者以上第一方面的任意一种实现方式,短路元件为场效应MOS管。这样,能够尽可能减小电路尺寸,并降低电子设备的功耗。
根据第一方面,或者以上第一方面的任意一种实现方式,MOS管为NMOS管;NMOS管的栅极接地,NMOS管的漏极为输入端与MCU的GPIO引脚连接,NMOS管的源极为输出端与输入输出单元的信号接收端连接;其中,在MOS管为NMOS管时,第一控制信号为高电平信号,NMOS管响应于高电平信号导通,使输入输出单元对地短路。
根据第一方面,或者以上第一方面的任意一种实现方式,MOS管为PMOS管;PMOS管的栅极接地,PMOS管的源极为输入端与MCU的GPIO引脚连接,PMOS管的漏极为输出端与输入输出单元的信号接收端连接;其中,在MOS管为PMOS管时,第一控制信号为低电平信号,PMOS管响应于低电平信号导通,使输入输出单元对地短路。
第二方面,本申请提供了一种电子设备。该电子设备包括如第一方面或第一方面的任意可能实现方式中所述的控制电路,具有第一方面或第一方面的任意可能实现方 式中所述的控制电路的所有效果。
第三方面,本申请提供了一种硬件安全防护方法,应用于如第二方面中所述的电子设备。该方法包括:确定接收到开启硬件安全防护模式的第一操作指令;根据第一操作指令,控制开关元件闭合,以使微控制单元MCU的GND引脚接地;在GND引脚接地后,MCU通过GPIO引脚输出第一控制信号;短路元件根据第一控制信号控制输入输出单元对地短路。由此,通过为能够输出用户隐私信息的输入输出单元设置短路元件,并通过MCU的GPIO引脚输出的第一控制信号来控制短路元件对输入输出单元进行短路,从而能够选择性的控制输入输出单元处于失效状态,即能够从硬件上防止第三方APK过度收集用户信息,从而提高了电子设备使用的安全性。
根据第三方面,确定接收到开启硬件安全防护模式的第一操作指令,包括:监测第一机械按键的对应的开关状态;在开关状态为第一状态时,确定接收到触发开启硬件安全防护模式的第一操作指令,第一状态用于指示第一机械按键当前处于关闭位置。
根据第三方面,或者以上第三方面的任意一种实现方式,在根据第一操作指令,控制开关元件闭合,以使微控制单元MCU的GND引脚接地之后,方法还包括:在开关状态从第一状态变为第二状态时,确定接收到关闭硬件安全防护模式的第二操作指令,第二状态用于指示第一机械按键当前处于打开位置,第二操作指令用于控制开关元件打开,以使GND引脚不接地,关闭硬件安全防护模式。
由此,给出了一种通过机械按键开启或关闭硬件安全防护模式的实现方式,整个过程用户只需控制第一机械按键的开关状态,即可实现快速开启或关闭硬件安全防护模式,方便用户操作。
根据第三方面,或者以上第三方面的任意一种实现方式,确定接收到开启硬件安全防护模式的第一操作指令,包括:在检测到对第二机械按键的第一按压操作时,记录对第二机械按键的第一按压时长;在第一按压时长与第一时间阈值匹配时,确定接收到开启硬件安全防护模式的第一操作指令。
根据第三方面,或者以上第三方面的任意一种实现方式,在根据第一操作指令,控制开关元件闭合,以使微控制单元MCU的GND引脚接地之后,方法还包括:在检测到对第二机械按键的第二按压操作时,记录对第二机械按键的第二按压时长;在第二按压时长与第二时间阈值匹配时,确定接收到关闭硬件安全防护模式的第二操作指令,第二操作指令用于控制开关元件打开,以使GND引脚不接地,关闭硬件安全防护模式。
由此,给出了一种通过机械按键开启或关闭硬件安全防护模式的实现方式,整个过程用户只需对某一机械按键长按特定时间,即可实现快速开启或关闭硬件安全防护模式,方便用户操作。
根据第三方面,或者以上第三方面的任意一种实现方式,确定接收到开启硬件安全防护模式的第一操作指令,包括:在检测到对第二机械按键的第三按压操作时,记录设定时间内对第二机械按键的第一按压次数;在第一按压次数与第一次数阈值匹配时,确定接收到开启硬件安全防护模式的第一操作指令。
根据第三方面,或者以上第三方面的任意一种实现方式,在根据第一操作指令,控制开关元件闭合,以使微控制单元MCU的GND引脚接地之后,方法还包括:在检测到对 第二机械按键的第四按压操作时,记录设定时间内对第二机械按键的第一按压次数;在第二按压次数与第二次数阈值匹配时,确定接收到关闭硬件安全防护模式的第二操作指令,第二操作指令用于控制开关元件打开,以使GND引脚不接地,关闭硬件安全防护模式。
由此,给出了一种通过机械按键开启或关闭硬件安全防护模式的实现方式,整个过程用户只需对某一机械按键按压特定次数,即可实现快速开启或关闭硬件安全防护模式,方便用户操作。
根据第三方面,或者以上第三方面的任意一种实现方式,在短路元件根据第一控制信号控制输入输出单元对地短路之后,方法还包括:处理单元CPU在接收到访问输入输出单元的访问请求时,获取访问输入输出单元的应用程序的描述信息,描述信息用于确定应用程序是否为***应用;在根据描述信息确定应用程序为***应用时,CPU通过I2C总线向MCU发送第二控制信号;MCU接收到第二控制信号后,通过GPIO引脚输出第三控制信号;短路元件根据第三控制信号控制输入输出单元导通。由此,MCU就能够根据CPU发送的第二控制信号确定将哪些处于失效的输入输出单元恢复正常,进而保证用户对输入输出单元的正常使用。
第四方面,本申请提供了一种硬件安全防护方法,应用于如第二方面中所述的电子设备。电子设备中安装了用来开启硬件安全防护模式的应用程序,应用程序提供了开启硬件防护模式的第一控件和关闭硬件安全防护模式的第二控件,方法包括:在检测到对第一控件的点击操作时,确定接收到开启硬件安全防护模式的第一操作指令;根据第一操作指令,控制开关元件闭合,以使微控制单元MCU的GND引脚接地。
由此,通过软件方式实现了开启硬件安全防护模式。
根据第四方面,在GND引脚接地后,方法还包括:MCU通过GPIO引脚输出第一控制信号。
由此,在控制开关闭合后,直接输出第一控制信号,可以立马实现对输入输出单元的短路。
根据第四方面,或者以上第四方面的任意一种实现方式,检测到对第一控件的点击操作后,方法还包括:响应于对第一控件的点击操作,应用程序显示第一界面,第一界面包含指示输入输出单元的第三控件;对第三控件进行第三操作;响应于第三操作,MCU通过GPIO引脚输出第一控制信号至与输入输出单元对应的短路元件。
由此,在控制开关闭合后,通过提供用户操作的第一界面,再根据用户操作确定是否输出第一控制信号,从而可以根据用户需要触发对输入输出单元的短路。
根据第四方面,或者以上第四方面的任意一种实现方式,方法还包括:在检测到对第二控件的点击操作时,确定接收到关闭硬件安全防护模式的第二操作指令,第二操作指令用于控制开关元件打开,以使GND引脚不接地,关闭硬件安全防护模式。
由此,给出了一种通过软件方式开启或关闭硬件安全防护模式的实现方式,整个过程用户只需点击对应的控件,即可实现快速开启或关闭硬件安全防护模式,方便用户操作。
根据第四方面,或者以上第四方面的任意一种实现方式,在短路元件根据第一控制信号控制输入输出单元对地短路之后,方法还包括:处理单元CPU在接收到访问输入输出单元的访问请求时,获取访问输入输出单元的应用程序的描述信息,描述信息用于确定应 用程序是否为***应用;在根据描述信息确定应用程序为***应用时,CPU通过I2C总线向MCU发送第二控制信号;MCU接收到第二控制信号后,通过GPIO引脚输出第三控制信号;短路元件根据第三控制信号控制输入输出单元导通。由此,MCU就能够根据CPU发送的第二控制信号确定将哪些处于失效的输入输出单元恢复正常,进而保证用户对输入输出单元的正常使用。
第五方面,本申请提供了一种计算机可读介质,用于存储计算机程序,该计算机程序包括用于执行第三方面或第三方面的任意可能的实现方式中的方法的指令,以及用于执行第四方面或第四方面的任意可能的实现方式中的方法的指令。
第六方面,本申请提供了一种计算机程序,该计算机程序包括用于执行第三方面或第三方面的任意可能的实现方式中的方法的指令,以及用于执行第四方面或第四方面的任意可能的实现方式中的方法的指令。
第七方面,本申请提供了一种芯片,该芯片包括处理电路、收发管脚。其中,该收发管脚、和该处理电路通过内部连接通路互相通信,该处理电路执行第三方面或第三方面的任一种可能的实现方式中的方法,或者第四方面或第四方面的任一种可能的实现方式中的方法,以控制接收管脚接收信号,以控制发送管脚发送信号。
附图说明
图1为本申请实施例提供的一种电子设备的硬件结构示意图;
图2为本申请实施例提供的一种控制电路的结构示意图;
图3为本申请实施例提供的又一种控制电路的结构示意图;
图4为本申请实施例提供的又一种控制电路的结构示意图;
图5为本申请实施例提供的一种电子设备的机械按键的结构示意图;
图6为本申请实施例提供的又一种控制电路的结构示意图;
图7为本申请实施例提供的又一种电子设备的机械按键的结构示意图;
图8为本申请实施例提供的又一种电子设备的机械按键的结构示意图;
图9为本申请实施例提供的一种电子设备主页面的示意图;
图10为本申请实施例提供的一种通过软件导通/断开本申请实施例提供的控制电路的显示页面示意图;
图11为本申请实施例提供的选择需要失效的硬件的显示页面示意图;
图12为本申请实施例提供的硬件安全防护方法的流程图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。
本申请实施例的说明书和权利要求书中的术语“第一”和“第二”等是用于区别不同的对象,而不是用于描述对象的特定顺序。例如,第一目标对象和第二目标对象等是用于区别不同的目标对象,而不是用于描述目标对象的特定顺序。
在本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。
在本申请实施例的描述中,除非另有说明,“多个”的含义是指两个或两个以上。例如,多个处理单元是指两个或两个以上的处理单元;多个***是指两个或两个以上的***。
下面对本申请实施例提供的技术方案进行说明,应当理解的以下内容仅为方便理解而提供的实现细节,并非实施本方案的必须。
本申请实施例提供一种电子设备,本申请实施例提供的电子设备可以是手机、平板电脑、个人数字助理(personal digital assistant,简称PDA)、车载电脑、智能穿戴式设备、智能家居设备等,此处不再一一列举。
另外,本申请实施例对上述电子设备的具体形式不作限定。为了便于说明,以电子设备为手机为例,结合图1对手机的硬件结构进行说明。
参见图1,手机100可以包括:处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。
此外,需要说明的是,在实际应用中,音频模块170例如可以包括扬声器170A、受话器170B、麦克风170C、耳机接口170D等。
示例性的,传感器模块180例如可以包括压力传感器、陀螺仪传感器、气压传感器、磁传感器、加速度传感器、距离传感器、接近光传感器、指纹传感器、温度传感器、触摸传感器、环境光传感器、骨传导传感器等。
此外,还需要说明的是,在实际应用中,按键190例如可以包括电源键(开机键),起始键(home键)、音量键(音量加、音量减)等。按键190可以是机械按键。也可以是触摸式按键。手机100可以接收按键输入,产生与手机100的用户设置以及功能控制有关的信号输入。
此外,还需要说明的是,在实际应用中,处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit, NPU)等。
可理解的,在具体实现中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
此外,在一些实现方式中,控制器可以是手机100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
此外,处理器110中的存储器主要用于存储指令和数据。在一些实现方式中,处理器110中的存储器为高速缓冲存储器。
此外,可理解的,在实际的应用场景中,触发手机100实现各种功能应用以及数据处理的可执行程序代码是存储在内部存储器121中的,这些可执行程序代码包括指令。
此外,需要说明的是,为了解决背景技术中的问题,本发明实施例提供了一种控制电路,通过将控制电路集成到手机100内,通过控制电路对手机内可以获取用户隐私的硬件设备,如摄像头193、内部存储器121、音频模块170等进行短路控制,从而能够选择性的控制输入输出单元处于失效状态,即能够从硬件上防止第三方APK过度收集用户信息,从而提高了电子设备使用的安全性。
示例性的,具体到本申请实施例提供的技术方案中,控制电路的导通可以通过按键190的按压实现,也可以通过显示界面中提供的软件开关实现。
关于手机100的硬件结构就介绍到此,应当理解的是,图1所示手机100仅是一个范例,在具体实现中,手机100可以具有比图中所示的更多的或者更少的部件,可以组合两个或多个的部件,或者可以具有不同的部件配置。图1中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。
为了更好的理解集成了本申请实施例提供的控制电路的电子设备从硬件上防止第三方APK过度收集用户信息的原理,以下结合附图对本申请实施例提供的控制电路进行具体说明。
参见图2,示例性的,在一种实现方式中,控制电路200例如包括MCU201、短路元件202、开关元件203和输入输出单元204。
继续参见图2,示例性的,MCU201至少包括一个GPIO引脚,且该GPIO引脚与短路元件202的输入端连接。
继续参见图2,示例性的,MCU201的VCC引脚连接供电电压VCC,MCU201的GND引脚通过开关元件203接地。
继续参见图2,示例性的,短路元件202的输出端与输入输出单元204的信号接收端连接。
可理解的,在实际应用中,用于为MCU201提供工作电源的供电电压VCC可以来自手机100的电池142。
此外,需要说明的是,本实施例中所说的短路元件202是一种能够控制电流通断的元件,即能够实现通断功能的元件。例如可以是场效应管(Metal-Oxide-Semiconductor Field-Effect Transistor,MOSFET)(下文简称为MOS 管)、接触器、继电器、断路器、空气开关、按钮等电工电器元件,还可以是电子开关、光电开关、微波开关等电子器件,此处不再一一例举,本申请对此不作限制,只要该短路元件202在导通状态下能够实现对输入输出单元204的短路即可。
此外,还需要说明的是,在本实施例中开关元件203为常开开关,即通常状态下处于打开位置,这种状态下MC201的GND引脚实际上没有接地,此时控制电路200不工作;当开关元件203处于关闭位置,即MCU201的GND引脚通过开关元件203实现接地时,控制电路200开始工作,此时MCU201会通过与短路元件202的输入端连接的GPIO引脚输出控制信号(为了与后续出现的控制信号区分,以下将其称为第一控制信号),这样短路元件202接收到第一控制信号后就会导通,进而实现将输入输出单元204对地短路。即,让输入输出单元204处于失效状态,这样获取了输入输出单元204的使用权限的第三方APK就无法使用输入输出单元204收集用户的隐私信息,从而提供了用户手机使用的安全性。
此外,还需要说明的是,本实施例中所说的输入输出单元204,例如可以是摄像头单元(如图1所示的摄像头193)、麦克风单元(如图1所示的麦克风170)、存储单元(如图1所示的内部存储器121),以及手机中设置的各种传感器等。
示例性的,关于传感器,例如可以是压力传感器、陀螺仪传感器、气压传感器、磁传感器、加速度传感器、距离传感器、接近光传感器、指纹传感器、温度传感器、触摸传感器、环境光传感器、骨传导传感器等,此处不再一一例举,本申请对此不作限制。
此外,在一些实现方式中,输入输出单元204还可以是图1所示的外部存储器接口120,这样通过控制外部存储器接口120对地短路,第三方APK就无法通过外部存储器接口120获取外部存储设备中存储的信息。
此外,在另一些实现方式中,输入输出单元204还可以是图1所示USB接口130,这样通过控制USB接口130对地短路,第三方APK就无法通过USB接口130获取通过USB接口130连接的设备中存储的信息。
此外,在另一些实现方式中,输入输出单元204还可以是图1所示的SIM卡接口195,这样通过控制SIM卡接口195对地短路,第三方APK就无法通过SIM卡接口195获取SIM卡中存储的联系人信息。
此外,在另一些实现方式中,输入输出单元204还可以是图1所示的扬声器170A,这样通过控制扬声器170A对地短路,第三方APK就无法获取扬声器170A当前播放的声音信息。
此外,在另一些实现方式中,输入输出单元204还可以是图1所示的受话器170B,这样通过控制受话器170B对地短路,第三方APK就无法通过受话器170B获取用户的声音信息及周围的环境音。
此外,在另一些实现方式中,输入输出单元204还可以是图1所示的耳机接口170D,这样通过控制耳机接口170D对地短路,第三方APK就无法通过耳机接口170D获取通过耳机接口170D接入的耳机播放的声音信息。
应当理解的是,上述说明仅是为了更好的理解本实施例的技术方案而列举的示例,不作为对本实施例的唯一限制。具体到实际应用中,输入输出单元204包括但不 限于上述示例,在其他可选的实现方式中,可以是任意能够获取用户的隐私信息的硬件设备。
由此,本实施例提供的控制电路通过为能够输出用户隐私信息的输入输出单元设置短路元件,并通过MCU的GPIO引脚输出的第一控制信号来控制短路元件对输入输出单元进行短路,从而能够选择性的控制输入输出单元处于失效状态,即能够从硬件上防止第三方APK过度收集用户信息,从而提高了电子设备使用的安全性。
进一步地,在控制电路200处于工作模式的过程中,为了使***级别的APK能够访问当前处于失效状态的输入输出单元204,例如***自带的相机APK能够使用处于失效状态的摄像头拍摄,或者***自带的通话APK能够使用处于失效状态的音频模块,如麦克风、耳机、扬声器、受话器等进行通话,控制电路200中还可以包括图3所示的处理单元CPU205,进而由CPU205通过I2C总线的通信方式通知MCU201***APK需要访问哪一个输入输出单元204,从而导通输入输出单元204,使输入输出单元204从失效状态恢复为可用状态。
此外,需要说明的是,考虑到实际应用中,在控制电路200处于工作模式前,即开启本实施例提供的硬件安全防护模式前,如果用户通过***APK正在使用某一输入输出单元204,如摄像头,为了保证此时开启硬件安全防护模式,***APK依旧能够使用摄像头,可以设置***应用每次访问输入输出单元204时,均由CPU205通过I2C总线的通信方式通知MCU201,***APK当前访问的输入输出单元204的信息,例如访问时间、具体的输入输出单元204(摄像头、麦克风、耳机、扬声器、受话器等)。这样,当开启硬件安防模式时,MCU201查询到某一输入输出单元204当前正在被***APK使用,则保持被使用的输入输出单元204依旧处于可用状态,即不对其进行短路,控制其他未被使用的输入输出单元204短路,处于失效状态。
相应地,如果在开启硬件安全防护模式后,CPU205通过I2C总线的通信方式通知MCU201之前被***APK使用的输入输出单元204,如摄像头已经释放,则MCU201控制摄像头短路,使其处于失效状态。
此外,还需要说明的是,考虑到实际应用中,在控制电路200处于工作模式前,即开启本实施例提供的硬件安全防护模式前,如果用户正在通过第三方APK使用某一输入输出单元204(如摄像头),即不是第三方APK在用户不知情的情况下使用摄像头,此时为了避免开启硬件安全防护模式,影响用户使用。可以在用户开启硬件安全防护模式时,弹窗提示用户,在用户确定要开启硬件安全防护模式时,在开启该模式,使摄像头处于失效状态。
应当理解的是,上述说明仅是为了更好的理解本实施例的技术方案而列举的示例,不作为对本实施例的唯一限制。
参见图3,示例性的,CPU205通过I2C总线与MCU201通信,这样CPU205在需要使用输入输出单元204时,就可以通过I2C总线向MCU发送控制信号(为了便于区分,后续将CPU通过I2C总线向MCU发送的控制信号称为第二控制信号)。
需要说明的,第二控制信号用于指示***APK需要使用的输入输出单元204的标识信息。这样,MCU201接收到CPU205通过I2C总线发送的第二控制信号后,便能够确定需要让哪一个,或哪几个输入输出单元204恢复可用状态。
此外,需要说明的是,在一些实现方式中,为了能够实现对电子设备中所有可能搜集用户隐私数据的输入输出单元204进行控制,控制电路200中短路元件202的数量可以与输入输出单元204的数量相同,且一一对应,即每一个输入输出单元204对应一个唯一的短路元件202。
此外,应当理解的是,MCU201通常会有多个GPIO引脚,因此在一些实现方式中可以选择MCU201的一个GPIO引脚分别与每一个短路元件202的输入端连接,这样通过一个GPIO引脚就可以实现对所有输入输出单元204的短路控制。
示例性的,在另一些实现方式中,可以设置每一个短路元件202对应MCU201的一个GPIO引脚,即至少需要保证MCU201的GPIO引脚的数量与短路元件202的数量相同,且一一对应,这样通过不同的GPIO引脚就可以实现对不同输入输出单元204的短路控制,从而能够选择性的让部分输入输出单元204失效。
示例性的,MCU201在根据第二控制信号确定需要恢复可用状态的输入输出单元204后,可通过与该输入输出单元204对应的GPIO引脚输出控制信号(为了便于区分,后续将用于恢复输入输出单元204可用状态的控制信号称为第三控制信号)。
可理解的,在一些实现方式中,每一个输入输出单元204会对应一个用来控制其对地短路或者导通的短路元件202,而每一个短路元件202的输入端均会与MCU201的一个GPIO引脚连接,因此第三控制信号具体是由与需要恢复可用状态的输入输出单元204对应的短路元件202的输入端连接的GPIO引脚输出。这样,接收到第三控制信号的短路元件202就可以控制对应的输入输出单元204导通,从而恢复可用状态。
继续参见图3,示例性的,CPU205的时钟信号端口与输入输出单元204的信号接收端连接,这样在输入输出单元204恢复可用状态后,CPU205就可以通过时钟信号端口向输入输出单元204发送时钟信号。
相应地,输入输出单元204接收到CPU205通过时钟信号端口发送的时钟信号后,就可以响应于时钟信号,按照时钟信号的周期,定期向CPU发送获取到的信息,例如在输入输出单元204为摄像头时,向CPU205发送的信息可以是拍摄的图像/视频帧;在输入输出单元204为麦克风时,向CPU205发送的信息可以是拾取的声音信息。
由此,本实施例提供的控制电路,通过I2C总线建立CPU和MCU之间的通信,这样MCU就能够根据CPU发送的第二控制信号确定将哪些处于失效的输入输出单元恢复正常,进而保证用户对输入输出单元的正常使用。
为了更好的理解GPIO引脚与短路元件202一对多的对应关系,以下结合图4进行具体说明。
参见图4,示例性的,在本实施例中以开关元件203为电子设备上设置的机械按键,如音量键的音量加键,输入输出单元204包括摄像头Camera204A、存储器Memory204B,以及麦克风Mic204C,与这三个输入输出单元一一对应的短路元件为MOS管(MOS管202A对应Camera204A,MOS管202B对应存储器Memory204B,MOS管202C对应麦克风Mic204C)为例进行说明。
继续参见图4,示例性的,MOS管202A、MOS管202B和MOS管202C均连接至MCU201的同一个GPIO引脚,而CPU205分别与Camera204A、Memory204B,以及Mic204C通信连接,例如通过时钟信号端口。
需要说明的是,通常情况下,为了减少数字存储占用的空间,需要对音、视频数据进行压缩和解压缩处理。因此,在输入输出单元204包括麦克风204C时,控制电路200中还需要包括编译码器(COder-DECoder,后续简称为Codec)206。这样,通过Codec206对视频数据和音频数据压缩(CO)与解压缩(DEC),就能够有效减少数字存储占用的空间,并且在计算机***中,使用Codec对音、视频数据完成压缩和解压缩可以节省CPU205的资源,提高***的运行效率。
继续参见图4,Codec206的正向输入端与MIC204C的正向输出端(MIC_P)连接,Codec206的负向输入端与麦克风的负向输出端(MIC_N)连接,而Codec206的信号接收端则与CPU205的时钟信号端连接,从而根据CPU205的时钟信号定期获取MIC204C收集的音频数据。
此外,继续参见图4,在本实施例中MIC204C的正向输入端作为信号接收端与MOS管202C的输出端连接。
此外,为了更好的理解开关元件203为电子设备的音量上键的场景时,触发控制电路200进入工作模式的方式,以下结合图5,以电子设备为手机100为例进行说明。
参见图5,示例性的,手机100包括显示面板10、后壳20、中框30,以及设置在中框上的开机键40、音量下键50(用于降低音量)和音量上键60(用于增加音量)。显示面板10、后壳20和中框30可以围成容纳腔体。容纳腔体内设置有主板、电池和功能器件(图中未示出)等结构。功能器件例如包括显示驱动芯片、处理器、本实施例中的控制电路200等。
此外,需要说明的是,本实施例中手机100的后壳20的材料例如可以包括塑料、素皮、玻璃纤维等不透光材料,也可以包括玻璃等透光材料。本申请实施例对后壳20的材料不进行限定。
此外,还需要说明的是,本实施例手机100的显示面板10例如包括液晶显示(Liquid Crystal Display,LCD)面板、有机发光二极管(Organic Light Emitting Diode,OLED)显示面板和LED显示面板等,其中,LED显示面板例如包括Micro-LED显示面板、Mini-LED显示面板等。本申请实施例对显示面板10的类型不进行限定。
由此,基于手机100的上述结构,当音量上键60被用户按压后,如按压时间大于10s时,MCU201的GND引脚通过音量上键60接地,控制电路200进入工作模式,此时可以通过GPIO引脚发送短路Camera204A、Memory204B,以及Mic204C的第一控制信号。
示例性的,在另一些实现方式中,基于手机100的上述结构,当音量上键60被用户在设定的时间(比如3s)内,连续按压多次(比如3次)时,MCU201的GND引脚也可以通过音量上键60接地,进而控制电路200进入工作模式,此时可以通过GPIO引脚发送短路Camera204A、Memory204B,以及Mic204C的第一控制信号。
相应地,MOS管202A、MOS管202B和MOS管202C根据第一控制信号会导通,进而使得与MOS管202A对应Camera204A对地短路,与MOS管202B对应Memory204B对地短路,与MOS管202C对应Mic204C对地短路,即使Camera204A、Memory204B,以及Mic204C均处于失效状态,无法使用,这样就无法搜集用户的隐私数据。
相应地,如果手机100中的某一***应用,例如相机APK需要调用Camera204A拍照,此时CPU205会根据相机APK的请求确定调用的Camera204A的标识信息,然后将Camera204A的标识信息通过I2C总线发送给MCU201,这样MCU201就可以通过GPIO引脚向MOS管202A发送恢复Camera204A正常状态的控制信号,而MOS管202A在接收到该控制信号后就会断开,从而使Camera204A导通,恢复正常状态,这样相机APK就可以正常调用Camera204A进行拍照。
应当理解的是,上述说明仅是为了更好的理解本实施例的技术方案而列举的示例,不作为对本实施例的唯一限制。在实际应用中,也可以设置音量下键50作为开关元件203,本实施例不作限制。
此外,需要说明的是,由于实际应用中对音量下键50,或音量上键60的按压可能被认为是调节音量,因此通过按压次数触发MCU201发送第一信号的方式,可以设置为在设定时间内同时按压音量下键50和音量上键60设定的次数,或者按压其他机械按键。具体的实现逻辑可以根据实际的业务需求设置,此处不做限制。
此外,还需要说明的是,关于触发控制电路200退出工作模式的方式,在开关元件203为音量上键60时,可以是在控制电路200处于工作模式下,长按音量上键60,如长按10s。
相应地,在开关元件203为音量下键50时,可以是在控制电路200处于工作模式下,长按音量下键50,如长按10s。
由此,本实施例提供的控制电路,通过MCU201的一个GPIO引脚便可以实现对所有输入输出单元204的短路控制,电路结构简单,实现方便。
为了更好的理解GPIO引脚与短路元件202一一对应的对应关系,以下结合图6进行具体说明。
参见图6,示例性的,在本实施例中以开关元件203为switch开关(控制switch开关的按键暴露在电子设备,方便用户操作),输入输出单元204包括Camera204A、Memory204B,以及Mic204C,与这三个输入输出单元一一对应的短路元件为MOS管(MOS管202A对应Camera204A,MOS管202B对应Memory204B,MOS管202C对应Mic204C)为例进行说明。
继续参见图6,示例性的,MOS管202A、MOS管202B和MOS管202C分别连接至MCU201的不同GPIO引脚,例如MOS管201A的输入端与GPIO1引脚连接、MOS管201B的输入端与GPIO2引脚连接、MOS管201C的输入端与GPIO3引脚连接,而CPU205分别与Camera204A、Memory204B,以及Mic204C通信连接,例如通过时钟信号端口。
通过上述实施例的描述可知,在控制电路200的输入输出单元204包括Mic204C时,控制电路200中还需要Codec206。因此,图6所示实施例中的控制电路200中同样包括Codec206。关于Codec206与控制电路200中各器件,如CPU205、Mic204C的连接,可以参见图4所示实施例中的描述,此处不再赘述。
此外,为了更好的理解开关元件203为switch开关的场景时,触发控制电路200进入工作模式的方式,以下结合图7和图8,以电子设备为手机100为例进行说明。
参见图7,示例性的,手机100包括显示面板10、后壳20、中框30,以及设置 在中框上的开机键40、音量下键50(用于降低音量)、音量上键60(用于增加音量)和switch开关的控制按钮70。显示面板10、后壳20和中框30可以围成容纳腔体。容纳腔体内设置有主板、电池和功能器件(图中未示出)等结构。功能器件例如包括显示驱动芯片、处理器、本实施例中的控制电路200等。
示例性的,在一些实现方式中可以约定switch开关的控制按钮70处于图7所示状态时表示switch开关当前处于打开位置,对应到控制电路200中,开关元件203处于图6所示状态,此时控制电路200不工作。
基于这一约定,当用户拨动switch开关的控制按钮70,使switch开关的控制按钮70处于图8所示状态时表示switch开关当前处于关闭位置,此时MCU201的GND引脚通过switch开关接地,控制电路200进入工作模式,MCU201就可以通过GPIO1引脚发送短路Camera204A的第一控制信号,通过GPIO2引脚发送短路Memory204B,以及通过GPIO3引脚发送短路Mic204C的第一控制信号。
相应地,MOS管202A、MOS管202B和MOS管202C根据第一控制信号会导通,进而使得与MOS管202A对应Camera204A对地短路,与MOS管202B对应Memory204B对地短路,与MOS管202C对应Mic204C对地短路,即使Camera204A、Memory204B,以及Mic204C均处于失效状态,无法使用,这样就无法搜集用户的隐私数据。
相应地,如果手机100中的某一***应用,例如通话APK需要调用Mic204C通话,此时CPU205会根据通话APK的请求确定调用的Mic204C的标识信息,然后将Mic204C的标识信息通过I2C总线发送给MCU201,这样MCU201就可以通过GPIO3引脚向MOS管202C发送恢复Mic204C正常状态的控制信号,而MOS管202C在接收到该控制信号后就会断开,从而使Mic204C导通,恢复正常状态,这样通话APK就可以正常调用Mic204C进行通话。
应当理解的是,上述说明仅是为了更好的理解本实施例的技术方案而列举的示例,不作为对本实施例的唯一限制。
由此,本实施例提供的控制电路,通过MCU201不同的GPIO引脚对不同的输入输出单元204进行短路控制,从而可以选择性的让部分输入输出单元204失效,以更好的适应不同的使用场景和用户需求。
此外,还需要说明的是,在实际应用中,为了保证CPU205和MCU201之间的通信安全,采用的MCU201可以是既带控制功能,又带加密功能,这样CPU205和MCU201通过I2C总线传输的信息就可以按照约定加解密方式进行加密传输,从而避免第三方APK截取CPU205和MCU201之间传输的信息,进一步保证用户电子设备使用的安全性。
此外,还需要说明的是,在控制电路200中的短路元件204为MOS管时,可以根据业务需要选择PMOS管或NMOS管,本申请对此不作限制。
相应地,在MOS管为NMOS管时,NMOS管的栅极接地,NMOS管的漏极为输入端与MCU的GPIO引脚连接,NMOS管的源极为输出端与输入输出单元的信号接收端连接;在MOS管为PMOS管时,PMOS管的栅极接地,PMOS管的源极为输入端与MCU的GPIO引脚连接,PMOS管的漏极为输出端与输入输出单元的信号接收 端连接。
应当理解的是,由于NMOS管在输入的信号为高电平信号时才能导通,因此在短路元件204为NMOS管时,MCU通过GPIO引脚输出的第一控制信号为高电平信号,这样NMOS管响应于高电平信号导通,便可以使与其连接的输入输出单元204对地短路,即控制与其连接的输入输出单元204失效不可用。
此外,还应当理解的是,由于PMOS管在输入的信号为低电平信号时才能导通,因此在短路元件204为PMOS管时,MCU通过GPIO引脚输出的第一控制信号为低电平信号,这样PMOS管响应于高电平信号导通,便可以使与其连接的输入输出单元204对地短路,即控制与其连接的输入输出单元204失效不可用。
关于控制电路200的描述就到此,可以理解的是,上述说明仅是为了更好的理解本实施例的技术方案而列举的示例,不作为对本实施例的唯一限制。具体到实际应用中,控制电路200的具体结构包括但不限于上述示例,在其他可选的实现方式中,控制电路200还可以是其他设置方式,只要MCU201能够通过GPIO引脚向短路元件202发送控制信号,以使短路元件202根据控制信号控制输入输出单元203对地短路即可。
基于上述任意实施例中的控制电路,集成该控制电路的电子设备触发该控制电路,让输入输出单元选择性失效时,其触发方式可以是通过电子设备上的机械按键,如图5所示的音量上键60,或者如图7、图8所示的switch开关的控制按钮70实现,也可以是通过电子设备中安装的用来开启这种硬件防护模式的APK实现。
示例性的,为了保证安全,用来开启这种硬件防护模式的APK可以是***APK,这样就可以避免用户从应用市场下载到恶意第三方开发的用来开启这种硬件防护模式的APK。
关于通过电子设备上的机械按键触发控制电路200进入工作模式和退出工作模式的实现方式,上述实施例中已经结合图5和图7、图8进行了说明,为了更好的理解,通过电子设备中安装的用来开启这种硬件防护模式的APK实现的使用场景,以电子设备为手机为例,结合图9至图11进行具体说明。
在对本实施例说明之前,首先需要说明一下通过软件方式触发控制电路200进入工作模式和退出工作模式的实现方式可以与通过机械按键触发控制电路200进入工作模式和退出工作模式的实现方式的不同。
具体的,关于上述实施例中给出的以机械按键方式触发控制电路200进入工作模式和退出工作模式的实现方式,可以将机械按键作为开关元件,进而实现将MCU201的GND引脚接地,因此以机械按键方式触发控制电路200进入工作模式和退出工作模式的实现方式,一旦通过机械按键实现接地,MCU201可以立马发送第一控制信号,进而通过短路元件202对所有的输入输出单元204进行短路,当断开接地时,可以立马将处于失效状态的输入输出单元204恢复到可用状态。而以软件方式触发控制电路200进入工作模式和退出工作模式的实现方式,则可以设置MCU201的GND引脚一直接地,但是何时发送第一控制信号,进而通过短路元件202对所有的输入输出单元204进行短路,或者将处于失效状态的输入输出单元204恢复到可用状态,可以由软件方式控制。或者以软件方式触发控制电路200进入工作模式和退出工作模式的实现方式,可以先通过一个步骤控制MCU201的GND引脚接地,然后再根据下一个或者 多个步骤,控制一个或多个输入输出单元204短路。
关于通过软件方式触发控制电路200进入工作模式和退出工作模式的实现方式,具体如下:
参见图9,示例性的,手机100的主页面中显示了多个已安装的APK,例如安全防护APK(本实施例中用来开启这种硬件防护模式的APK)、时钟APK、日历APK、图库APK、备忘录APK、文件管理APK、计算器APK、设置APK、录音机APK、相机APK、通讯录APK、电话APK和信息APK等***APK,以及电子邮件APK、音乐APK、视频APK、天气APK、浏览器APK等第三方APK。
应当理解的是,上述说明仅是为了更好的理解本实施例的技术方案而列举的示例,不作为对本实施例的唯一限制。
继续参见图9,示例性的,当用户点击了安全防护APK后,手机100响应于用户的操作行为,启动安全防护APK,显示页面会显示如图10所示的是否开启硬件安全防护模式的页面10a。
参见图10,示例性的,页面10可以包括一个或多个控件,例如用于退出页面10a的控件10a-1,用于开启硬件安全防护模式,即触发控制电路200进入工作模式的控件10a-2,用于关闭硬件安全防护模式,即触发控制电路200退出工作模式的控件10a-3。
应当理解的是,上述说明仅是为了更好的理解本实施例的技术方案而列举的示例,不作为对本实施例的唯一限制。
继续参见图10,示例性的,当用户点击了控件10a-2,手机100响应于用户的操作行为,从页面10a跳转到图11所示的用于选择失效硬件的页面10b。
参见图11,示例性的,页面10b可以包括一个或多个控件,例如用于退出页面10b的控件10b-1,失效硬件选择列表10b-2,用于取消选中的硬件的控件10b-3,用于同意选中的硬件失效的控件10b-4。
继续参见图11,示例性的,失效硬件选择列表10b-2可包括一个或多个控件,例如用来对列表中所有硬件(输入输出单元)进行全部选中的控件10b-21,单独选中摄像头的控件10b-22,单独选中麦克风的控件10b-23,单独选中耳机(接口)的控件10b-24,单独选中受话器的控件10b-25,单独选中扬声器的控件10b-26,单独选中内部存储器的控件10b-27,单独选中外部存储器的控件10b-28,单独选择SIM卡(接口)的控件10b-29等,此处不再一一列举,本申请对此不作限制。
继续参见图11,示例性的,当用户点击了10b-21后,手机100响应于用户的操作行为,会将列表10b-2中显示的所有选项都选中,当用户接着点击了10b-4后,控制电路200的MCU201便会通过对应10b-22至10b-29的各个GPIO引脚向10b-22至10b-29对应的短路元件发送控制信号,进而实现对10b-22至10b-29这些硬件的短路。
示例性的,当用户点击了列表10b-2中任意一个硬件对应的控件,例如控件10b-22,当用户接着点击了10b-4后,控制电路200的MCU201便会通过对应10b-22的GPIO引脚向10b-22对应的短路元件发送控制信号,进而实现对10b-22的短路。
也就是说,用户点击10b-4后,就会控制MCU201发送第一控制信号,进而由对应的短路元件202控制被选中的输入输出单元短路。
此外,还需要说明的是,在另一些实现方式中,还可以根据指关节/手指/触控笔在设定时间(比如2s)内,敲击手机100屏幕,或者后壳,或者侧边框的次数(比如3次)确定开启硬件安全防护模式,实现对设定的输入输出单元短路。对于这种方式,被短路的输入输出单元可以是全部的,也可以是默认设置的,此处不作限制。
此外,还需要说明的是,在另一些实现方式中,还有可以根据指关节/手指/触控笔在手机100屏幕任意区域或者特定区域画的图形,例如在手机100屏幕任意区域画的三角形,确定开启硬件安全防护模式,实现对设定的输入输出单元短路。同样,对于这种方式,被短路的输入输出单元可以是全部的,也可以是默认设置的,此处不作限制。
应当理解的是,上述说明仅是为了更好的理解本实施例的技术方案而列举的示例,不作为对本实施例的唯一限制。
此外,还需要说明的是,基于上述所说的安全防护APK触发控制电路200退出工作模式时,用户可以点击图9所示显示页面中显示的安全防护APK,此时手机100响应于用户的操作行为,启动安全防护APK,显示页面会显示如图10所示的是否开启硬件安全防护模式的页面10a。接着,用户点击页面10a中显示的控件10a-3,手机100响应于用户的操作行为,控制开关元件203处于打开位置,此时控制电路200就可以退出工作模式,所有被短路的输入输出单元204就可以恢复正常使用。
相应地,控制电路200就可以退出工作模式的方式,同样可以是通过特定手势,或者根据指关节/手指/触控笔在设定时间(比如2s)内,敲击手机100屏幕,或者后壳,或者侧边框的次数(比如3次),或者根据指关节/手指/触控笔在手机100屏幕任意区域或者特定区域画的图形,例如在手机100屏幕任意区域画的正方形。
应当理解的是,上述说明仅是为了更好的理解本实施例的技术方案而列举的示例,不作为对本实施例的唯一限制。
此外,还需要说明的是,在一些实现方式中,可以采用机械按键和软件相结合的方式触发控制电路200进入工作模式和退出工作模式。对于这种方式,MCU201的GND引脚依旧采用由机械按键充当的开关元件实现接地,即控制电路200退出工作模式的情况下,GND引脚是没有接地的,当用户通过机械按键实现接地后,可以直接触发控制电路200进入工作模式,即将所有当前可以短路的输入输出单元204进行短路,然后可以通过软件方式,根据个人的需求,选择性恢复某些输入输出单元204可用。
关于由机械按键触发控制电路200进入工作模式的实现方式,可以参见上述实施例的描述,此处不再赘述。
相应地,关于由软件方式选择性恢复某些输入输出单元204可用的实现方式,可以参见上述实施例的描述,此处不再赘述。
此外,对于这种采用机械按键和软件相结合的方式,在触发控制电路200退出工作模式时,可以直接采用机械按键的方式,也可以采用软件方式。关于采用机械按键的方式,或软件方式触发控制电路200退出工作模式的实现方式,可以参见上述实施例的描述,此处不再赘述。
针对集成了上述控制电路的电子设备,本申请还提供了一种适用于该电子设备的硬件安全防护方法。参见图12,本实施例提供的硬件安全防护方法,具体流程包括:
S101,确定接收到开启硬件安全防护模式的第一操作指令。
示例性的,在一种可行的实现方式中,确定接收到开启硬件安全防护模式的第一操作指令,例如可以包括:
监测第一机械按键的对应的开关状态;
在开关状态为第一状态时,确定接收到触发开启硬件安全防护模式的第一操作指令,第一状态用于指示第一机械按键当前处于关闭位置。
可理解的,在一些实现方式中,上述所说的第一机械按键,例如可以为上文所说的switch开关。关于根据switch开关的开关状态确定是否开启硬件安全防护模式的描述可以参见上文,此处不再赘述。
示例性的,在另一种可行的实现方式中,确定接收到开启硬件安全防护模式的第一操作指令,例如可以包括:
在检测到对第二机械按键的第一按压操作时,记录对第二机械按键的第一按压时长;
在第一按压时长与第一时间阈值匹配时,确定接收到开启硬件安全防护模式的第一操作指令。
可理解的,在一些实现方式中,上述所说的第二机械按键,例如可以为上文所说的音量上键,或者音量下键。
此外,需要说明的是,第一按压操作和第一按压时长具体指示在关闭硬件安全防护模式的情况下,对第二机械按键的按压操作和按压时长。关于根据音量上键,或者音量下键的按压时长,确定是否开启硬件安全防护模式的描述可以参见上文,此处不再赘述。
示例性的,在另一种可行的实现方式中,确定接收到开启硬件安全防护模式的第一操作指令,例如可以包括:
在检测到对第二机械按键的第三按压操作时,记录设定时间内对第二机械按键的第一按压次数;
在第一按压次数与第一次数阈值匹配时,确定接收到开启硬件安全防护模式的第一操作指令。
可理解的,在一些实现方式中,上述所说的第二机械按键,例如可以为上文所说的音量上键,或者音量下键。
此外,需要说明的是,第三按压操作和第一按压次数具体指示在关闭硬件安全防护模式的情况下,对第二机械按键的按压操作和按压次数。关于根据音量上键,或者音量下键的按压次数,确定是否开启硬件安全防护模式的描述可以参见上文,此处不再赘述。
此外,需要说明的是,在实际应用中,采用第二机械按键开启,或关键硬件安全防护模式的方式中,对应的控制电路200中的MCU201的GND引脚可以通过第二机械按键实现接地或断开,对于这种情况,通过监测第二机械按键的按压时长,或者按压次数确定接收到开启硬件安全防护模式的第一操作指令时,要执行的操作就是由第二机械按键将MCU201的GND引脚接地,并且在接地后直接执行下述步骤S103。相应地,通过监测第二机械按键的按压时长,或者按压次数确定接收到关闭硬件安全防护模式的第二操作指令时,要执行的操作就是MCU201的GND引脚不接地,将处于 失效状态的输入输出单元恢复为可用状态。
示例性的,在另一种可行的实现方式中,采用第二机械按键开启,或关键硬件安全防护模式的方式中,对应的控制电路200中的MCU201的GND引脚可以一直接地,对于这种情况,通过监测第二机械按键的按压时长,或者按压次数确定接收到开启硬件安全防护模式的第一操作指令时,要执行的操作直接是下述步骤S103。相应地,通过监测第二机械按键的按压时长,或者按压次数确定接收到关闭硬件安全防护模式的第二操作指令时,要执行的操作就是向短路元件发送恢复输入输出单元可用状态的控制信号,进而将处于失效状态的输入输出单元恢复为可用状态。
应当理解的是,上述说明仅是为了更好的理解本实施例的技术方案而列举的示例,不作为对本实施例的唯一限制。
示例性的,在另一种可行的实现方式中,电子设备中安装了用来开启硬件安全防护模式的应用程序,应用程序提供了开启硬件防护模式的第一控件和关闭硬件安全防护模式的第二控件。
相应地,确定接收到开启硬件安全防护模式的第一操作指令,例如可以包括:
确定接收到开启硬件安全防护模式的第一操作指令,包括:
在检测到对第一控件的点击操作时,确定接收到开启硬件安全防护模式的第一操作指令。
可理解的,上述所说的第一控件,例如可以是上文所述的控件10a-2。关于根据控件10a-2的点击操作开启硬件安全防护模式的描述可以参见上文,此处不再赘述。
S102,根据第一操作指令,控制开关元件闭合,以使微控制单元MCU的GND引脚接地。
示例性的,在一种可行的实现方式中,在根据第一操作指令,控制开关元件闭合,以使微控制单元MCU的GND引脚接地之后,例如还可以包括:
在第一机械按键的开关状态从第一状态变为第二状态时,确定接收到关闭硬件安全防护模式的第二操作指令。
可理解的,在本实施例中,第二状态用于指示第一机械按键当前处于打开位置,第二操作指令用于控制开关元件打开,以使GND引脚不接地,关闭硬件安全防护模式。关于根据switch开关的开关状态确定是否关闭硬件安全防护模式的描述可以参见上文,此处不再赘述。
示例性的,在另一种可行的实现方式中,在根据第一操作指令,控制开关元件闭合,以使微控制单元MCU的GND引脚接地之后,例如还可以包括:
在检测到对第二机械按键的第二按压操作时,记录对第二机械按键的第二按压时长;
在第二按压时长与第二时间阈值匹配时,确定接收到关闭硬件安全防护模式的第二操作指令。
需要说明的是,第二按压操作和第二按压时长具体指示在开启硬件安全防护模式的情况下,对第二机械按键的按压操作和按压时长。关于根据音量上键,或者音量下键的按压时长,确定是否关闭硬件安全防护模式的描述可以参见上文,此处不再赘述。
示例性的,在另一种可行的实现方式中,在根据第一操作指令,控制开关元件闭合,以使微控制单元MCU的GND引脚接地之后,例如还可以包括:
在检测到对第二机械按键的第四按压操作时,记录设定时间内对第二机械按键的第一按压次数;
在第二按压次数与第二次数阈值匹配时,确定接收到关闭硬件安全防护模式的第二操作指令。
需要说明的是,第四按压操作和第二按压次数具体指示在开启硬件安全防护模式的情况下,对第二机械按键的按压操作和按压次数。关于根据音量上键,或者音量下键的按压次数,确定是否关闭硬件安全防护模式的描述可以参见上文,此处不再赘述。
示例性的,在另一种可行的实现方式中,在根据第一操作指令,控制开关元件闭合,以使微控制单元MCU的GND引脚接地之后,例如还可以包括:
在检测到对第二控件的点击操作时,确定接收到关闭硬件安全防护模式的第二操作指令。
可理解的,上述所说的第二控件,例如可以是上文所述的控件10a-2。关于根据控件10a-3的点击操作关闭硬件安全防护模式的描述可以参见上文,此处不再赘述。
S103,在GND引脚接地后,MCU通过GPIO引脚输出第一控制信号。
S104,短路元件根据第一控制信号控制输入输出单元对地短路。
示例性的,在一种可行的实现方式中,在短路元件根据第一控制信号控制输入输出单元对地短路之后,例如还可以包括:
处理单元CPU在接收到访问输入输出单元的访问请求时,获取访问输入输出单元的应用程序的描述信息,描述信息用于确定应用程序是否为***应用;
在根据描述信息确定应用程序为***应用时,CPU通过I2C总线向MCU发送第二控制信号;
MCU接收到第二控制信号后,通过GPIO引脚输出第三控制信号;
短路元件根据第三控制信号控制输入输出单元导通。
由此,MCU就能够根据CPU发送的第二控制信号确定将哪些处于失效的输入输出单元恢复正常,进而保证用户对输入输出单元的正常使用。
由于本实施例提供的硬件安全防护方法是基于上述控制电路实现的,因此本实施例未详细解释之处可以参见上文的描述,在此不再赘述。
此外,应当理解的是,电子设备为了实现上述功能,其包含了执行各个功能相应的硬件和/或软件模块。结合本文中所公开的实施例描述的各示例的算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。本领域技术人员可以结合实施例对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
此外,需要说明的是,在实际的应用场景中由电子设备实现的上述各实施例提供的硬件安全防护方法,也可以由电子设备中包括的一种芯片***来执行,其中,该芯片***可以包括处理器。该芯片***可以与存储器耦合,使得该芯片***运行时调用该存储器中存储的计算机程序,实现上述电子设备执行的步骤。其中,该芯片***中的处理器可以是应用处理器也可以是非应用处理器的处理器。
另外,本申请实施例还提供一种计算机可读存储介质,该计算机存储介质中存储有计算机指令,当该计算机指令在电子设备上运行时,使得电子设备执行上述相关方法步骤实现上述实施例中的硬件安全防护方法。
另外,本申请实施例还提供了一种计算机程序产品,当该计算机程序产品在电子设备上运行时,使得电子设备执行上述相关步骤,以实现上述实施例中的硬件安全防护方法。
另外,本申请的实施例还提供一种芯片(也可以是组件或模块),该芯片可包括一个或多个处理电路和一个或多个收发管脚;其中,所述收发管脚和所述处理电路通过内部连接通路互相通信,所述处理电路执行上述相关方法步骤实现上述实施例中的硬件安全防护方法,以控制接收管脚接收信号,以控制发送管脚发送信号。
此外,通过上述描述可知,本申请实施例提供的电子设备、计算机可读存储介质、计算机程序产品或芯片均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。
应当理解的是,上述说明仅是为了更好的理解本实施例的技术方案而列举的示例,不作为对本实施例的唯一限制。尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。

Claims (26)

  1. 一种控制电路,其特征在于,包括:微控制单元MCU、短路元件、开关元件和输入输出单元;
    所述MCU的VCC引脚连接供电电压VCC,所述MCU的GPIO引脚与所述短路元件的输入端连接,所述MCU的GND引脚通过所述开关元件接地,所述短路元件的输出端与所述输入输出单元的信号接收端连接;
    其中,所述MCU用于在所述GND引脚通过所述开关元件接地后,通过所述GPIO引脚输出第一控制信号;
    所述短路元件用于根据所述第一控制信号控制所述输入输出单元对地短路。
  2. 根据权利要求1所述的控制电路,其特征在于,所述控制电路还包括处理单元CPU;
    所述CPU通过I2C总线与所述MCU通信;
    其中,所述MCU还用于在接收到所述CPU通过所述I2C总线发送的第二控制信号后,通过所述GPIO引脚输出第三控制信号;
    所述短路元件还用于根据所述第三控制信号控制所述输入输出单元导通。
  3. 根据权利要求2所述的控制电路,其特征在于,所述CPU的时钟信号端口与所述输入输出单元的信号接收端连接;
    其中,在所述输入输出单元导通后,所述输入输出单元接收所述CPU通过所述时钟信号端口发送的时钟信号,并响应于所述时钟信号。
  4. 根据权利要求1至3任一项所述的控制电路,其特征在于,所述输入输出单元包括以下任意一项或几项:
    摄像头单元、麦克风单元、存储单元、传感器单元。
  5. 根据权利要求4所述的控制电路,其特征在于,所述短路元件的数量与所述输入输出单元的数量相同,且一一对应。
  6. 根据权利要求5所述的控制电路,其特征在于,所述MCU的一个GPIO引脚分别与每一个所述短路元件的输入端连接。
  7. 根据权利要求5所述的控制电路,其特征在于,所述MCU的GPIO引脚的数量与所述短路元件的数量相同,且一一对应。
  8. 根据权利要求4所述的控制电路,其特征在于,在所述输入输出单元包括所述麦克风单元时,所述控制电路还包括:编译码器;
    所述编译码器的正向输入端与所述麦克风单元的正向输出端连接,所述编译码器的负向输入端与所述麦克风的负向输出端连接,所述麦克风单元的正向输入端为信号接收端与所述短路元件的输出端连接。
  9. 根据权利要求1至3任一项所述的控制电路,其特征在于,所述短路元件为场效应MOS管。
  10. 根据权利要求9所述的控制电路,其特征在于,所述MOS管为NMOS管;
    所述NMOS管的栅极接地,所述NMOS管的漏极为输入端与所述MCU的GPIO引脚连接,所述NMOS管的源极为输出端与所述输入输出单元的信号接收端连接;
    其中,在所述MOS管为所述NMOS管时,所述第一控制信号为高电平信号,所述NMOS管响应于所述高电平信号导通,使所述输入输出单元对地短路。
  11. 根据权利要求9所述的控制电路,其特征在于,所述MOS管为PMOS管;
    所述PMOS管的栅极接地,所述PMOS管的源极为输入端与所述MCU的GPIO引脚连接,所述PMOS管的漏极为输出端与所述输入输出单元的信号接收端连接;
    其中,在所述MOS管为所述PMOS管时,所述第一控制信号为低电平信号,所述PMOS管响应于所述低电平信号导通,使所述输入输出单元对地短路。
  12. 一种电子设备,其特征在于,包括如权利要求1至11任意一项所述的控制电路。
  13. 一种硬件安全防护方法,其特征在于,应用于如权利要求12所述的电子设备,所述方法包括:
    确定接收到开启硬件安全防护模式的第一操作指令;
    根据所述第一操作指令,控制开关元件闭合,以使微控制单元MCU的GND引脚接地;
    在所述GND引脚接地后,所述MCU通过GPIO引脚输出第一控制信号;
    短路元件根据所述第一控制信号控制输入输出单元对地短路。
  14. 根据权利要求13所述的方法,其特征在于,所述确定接收到开启硬件安全防护模式的第一操作指令,包括:
    监测第一机械按键的对应的开关状态;
    在所述开关状态为第一状态时,确定接收到触发开启硬件安全防护模式的第一操作指令,所述第一状态用于指示所述第一机械按键当前处于关闭位置。
  15. 根据权利要求14所述的方法,其特征在于,在所述根据所述第一操作指令,控制开关元件闭合,以使微控制单元MCU的GND引脚接地之后,所述方法还包括:
    在所述开关状态从所述第一状态变为第二状态时,确定接收到关闭硬件安全防护模式的第二操作指令,所述第二状态用于指示所述第一机械按键当前处于打开位置,所述第二 操作指令用于控制所述开关元件打开,以使所述GND引脚不接地,关闭硬件安全防护模式。
  16. 根据权利要求13所述的方法,其特征在于,所述确定接收到开启硬件安全防护模式的第一操作指令,包括:
    在检测到对第二机械按键的第一按压操作时,记录对所述第二机械按键的第一按压时长;
    在所述第一按压时长与第一时间阈值匹配时,确定接收到开启硬件安全防护模式的第一操作指令。
  17. 根据权利要求16所述的方法,其特征在于,在所述根据所述第一操作指令,控制开关元件闭合,以使微控制单元MCU的GND引脚接地之后,所述方法还包括:
    在检测到对所述第二机械按键的第二按压操作时,记录对所述第二机械按键的第二按压时长;
    在所述第二按压时长与第二时间阈值匹配时,确定接收到关闭硬件安全防护模式的第二操作指令,所述第二操作指令用于控制所述开关元件打开,以使所述GND引脚不接地,关闭硬件安全防护模式。
  18. 根据权利要求13所述的方法,其特征在于,所述确定接收到开启硬件安全防护模式的第一操作指令,包括:
    在检测到对第二机械按键的第三按压操作时,记录设定时间内对所述第二机械按键的第一按压次数;
    在所述第一按压次数与第一次数阈值匹配时,确定接收到开启硬件安全防护模式的第一操作指令。
  19. 根据权利要求18所述的方法,其特征在于,在所述根据所述第一操作指令,控制开关元件闭合,以使微控制单元MCU的GND引脚接地之后,所述方法还包括:
    在检测到对第二机械按键的第四按压操作时,记录设定时间内对所述第二机械按键的第一按压次数;
    在所述第二按压次数与第二次数阈值匹配时,确定接收到关闭硬件安全防护模式的第二操作指令,所述第二操作指令用于控制所述开关元件打开,以使所述GND引脚不接地,关闭硬件安全防护模式。
  20. 根据权利要求13至19任一项所述的方法,其特征在于,在所述短路元件根据所述第一控制信号控制输入输出单元对地短路之后,所述方法还包括:
    处理单元CPU在接收到访问所述输入输出单元的访问请求时,获取访问所述输入输出单元的应用程序的描述信息,所述描述信息用于确定所述应用程序是否为***应用;
    在根据所述描述信息确定所述应用程序为***应用时,所述CPU通过I2C总线向所述MCU发送第二控制信号;
    所述MCU接收到所述第二控制信号后,通过所述GPIO引脚输出第三控制信号;
    所述短路元件根据所述第三控制信号控制所述输入输出单元导通。
  21. 一种硬件安全防护方法,其特征在于,应用于如权利要求12所述的电子设备,所述电子设备中安装了用来开启硬件安全防护模式的应用程序,所述应用程序提供了开启硬件防护模式的第一控件和关闭硬件安全防护模式的第二控件,所述方法包括:
    在检测到对所述第一控件的点击操作时,确定接收到开启硬件安全防护模式的第一操作指令;
    根据所述第一操作指令,控制开关元件闭合,以使微控制单元MCU的GND引脚接地。
  22. 根据权利要求21所述的方法,其特征在于,在所述GND引脚接地后,所述方法还包括:
    所述MCU通过GPIO引脚输出第一控制信号。
  23. 根据权利要求21所述的方法,其特征在于,在检测到对所述第一控件的点击操作后,所述方法还包括:
    响应于所述对第一控件的点击操作,所述应用程序显示第一界面,所述第一界面包含指示所述输入输出单元的第三控件;
    对所述第三控件进行第三操作;
    响应于所述第三操作,所述MCU通过GPIO引脚输出第一控制信号至与所述输入输出单元对应的短路元件。
  24. 根据权利要求21至23任一项所述的方法,其特征在于,所述方法还包括:
    在检测到对所述第二控件的点击操作时,确定接收到关闭硬件安全防护模式的第二操作指令,所述第二操作指令用于控制所述开关元件打开,以使所述GND引脚不接地,关闭硬件安全防护模式。
  25. 根据权利要求21至23任一项所述的方法,其特征在于,在所述短路元件根据所述第一控制信号控制输入输出单元对地短路之后,所述方法还包括:
    处理单元CPU在接收到访问所述输入输出单元的访问请求时,获取访问所述输入输出单元的应用程序的描述信息,所述描述信息用于确定所述应用程序是否为***应用;
    在根据所述描述信息确定所述应用程序为***应用时,所述CPU通过I2C总线向所述MCU发送第二控制信号;
    所述MCU接收到所述第二控制信号后,通过所述GPIO引脚输出第三控制信号;
    所述短路元件根据所述第三控制信号控制所述输入输出单元导通。
  26. 一种计算机可读存储介质,其特征在于,包括计算机程序,当所述计算机程序在如权利要求12所述的电子设备上运行时,使得所述电子设备执行如权利要求13至20任 意一项所述的硬件安全防护方法,或者执行如权利要求21至25任意一项所述的硬件安全防护方法。
PCT/CN2023/088069 2022-06-07 2023-04-13 控制电路、电子设备、硬件安全防护方法及存储介质 WO2023236650A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210633372.2A CN116028395B (zh) 2022-06-07 2022-06-07 控制电路、电子设备、硬件安全防护方法及存储介质
CN202210633372.2 2022-06-07

Publications (1)

Publication Number Publication Date
WO2023236650A1 true WO2023236650A1 (zh) 2023-12-14

Family

ID=86071117

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/088069 WO2023236650A1 (zh) 2022-06-07 2023-04-13 控制电路、电子设备、硬件安全防护方法及存储介质

Country Status (2)

Country Link
CN (1) CN116028395B (zh)
WO (1) WO2023236650A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110191465A (zh) * 2019-06-03 2019-08-30 努比亚技术有限公司 权限控制方法、移动终端及计算机可读存储介质
CN113206914A (zh) * 2021-04-16 2021-08-03 希姆通信息技术(上海)有限公司 一种硬件电路设计以实现防窃听、录像的方法
US20210397728A1 (en) * 2020-06-19 2021-12-23 Apple Inc. Third-Party Access of End-User Device Assets
CN114498804A (zh) * 2021-07-26 2022-05-13 荣耀终端有限公司 用于开机或唤醒***的电子设备和控制电路

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100639389B1 (ko) * 2005-09-12 2006-10-27 엘지전자 주식회사 사생활 보호 문자 출력 기능을 가지는 이동통신 단말기 및그 문자 출력 방법
DE102013221768A1 (de) * 2013-10-25 2015-04-30 Bundesdruckerei Gmbh Dokument mit einer kontaktlosen Chipkartenschnittstelle und elektronisches System
CN108363476A (zh) * 2018-02-01 2018-08-03 上海康斐信息技术有限公司 ***上电启动的usb设备保护电路及***电路和电子设备
CN111781545B (zh) * 2020-07-10 2022-05-17 迈普通信技术股份有限公司 端口状态管理电路、方法、装置及可读存储介质
CN112307523A (zh) * 2020-11-09 2021-02-02 维沃移动通信有限公司 芯片模组、信息处理方法、装置及电子设备
CN114325473B (zh) * 2021-12-24 2024-03-08 广州星际悦动股份有限公司 短路检测电路、方法、装置、电子设备及存储介质

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110191465A (zh) * 2019-06-03 2019-08-30 努比亚技术有限公司 权限控制方法、移动终端及计算机可读存储介质
US20210397728A1 (en) * 2020-06-19 2021-12-23 Apple Inc. Third-Party Access of End-User Device Assets
CN113206914A (zh) * 2021-04-16 2021-08-03 希姆通信息技术(上海)有限公司 一种硬件电路设计以实现防窃听、录像的方法
CN114498804A (zh) * 2021-07-26 2022-05-13 荣耀终端有限公司 用于开机或唤醒***的电子设备和控制电路

Also Published As

Publication number Publication date
CN116028395B (zh) 2024-03-08
CN116028395A (zh) 2023-04-28

Similar Documents

Publication Publication Date Title
US10701158B2 (en) Control method of wearable apparatus and related apparatuses
CN107835033B (zh) 天线调谐开关的控制方法、装置、终端设备及存储介质
US20200008124A1 (en) Method for Controlling Earphone Switching and Earphone
KR101901720B1 (ko) 더미 장치와의 연동 방법 및 그 전자 장치
KR20150026652A (ko) 전자장치에서 수신된 정보를 사용자에게 제공하기 위한 방법 및 장치
EP3992786A1 (en) Display method and electronic device
US20060160569A1 (en) Cellular phone and portable storage device using the same
EP3128435B1 (en) Interface circuit, method and device for state switching
US9201814B2 (en) Electronic devices and methods for sharing peripheral devices in dual operating systems
CN109495871B (zh) 蓝牙连接控制方法、电子装置及计算机可读存储介质
WO2023284415A1 (zh) 电源键误触检测方法及电子设备
KR20110137190A (ko) 이동통신 단말기의 전원 관리 방법 및 이를 이용하는 이동통신 단말기
WO2018049934A1 (zh) 一种数据迁移的方法及终端
CN109150221B (zh) 一种可穿戴设备主从切换方法及相关产品
CN107888768B (zh) 一种解锁控制方法、终端和计算机可读存储介质
JP2019185771A (ja) ブルートゥーススピーカーデータ処理の方法、装置及びブルートゥーススピーカー
CN107577322B (zh) 一种死机重启方法、终端和计算机可读存储介质
CN116231815B (zh) 控制充电的方法及电子设备
CN110837319B (zh) 一种可视角度调节方法及电子设备
WO2023236650A1 (zh) 控制电路、电子设备、硬件安全防护方法及存储介质
CN111478378B (zh) 保护电路、充电控制装置和方法、电子设备
KR20110085767A (ko) 이동 단말기 및 그 제어 방법
CN109217895A (zh) 一种射频前端器件的控制方法及终端设备
CN110471622B (zh) 一种sd卡数据写入方法、装置、存储介质及终端
CN115543500A (zh) 一种窗口的处理方法及电子设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23818818

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2023818818

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2023818818

Country of ref document: EP

Effective date: 20240424