WO2024017332A1 - 控制部件的方法及相关装置 - Google Patents

控制部件的方法及相关装置 Download PDF

Info

Publication number
WO2024017332A1
WO2024017332A1 PCT/CN2023/108394 CN2023108394W WO2024017332A1 WO 2024017332 A1 WO2024017332 A1 WO 2024017332A1 CN 2023108394 W CN2023108394 W CN 2023108394W WO 2024017332 A1 WO2024017332 A1 WO 2024017332A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
posture
sensor
security chip
functional component
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2023/108394
Other languages
English (en)
French (fr)
Inventor
梅苑
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to EP23842394.1A priority Critical patent/EP4510031A4/en
Publication of WO2024017332A1 publication Critical patent/WO2024017332A1/zh
Priority to US19/023,334 priority patent/US20250155934A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1633Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1675Miscellaneous details related to the relative movement between the different enclosures or enclosure parts
    • G06F1/1677Miscellaneous details related to the relative movement between the different enclosures or enclosure parts for detecting open or closed state or particular intermediate positions assumed by movable parts of the enclosure, e.g. detection of display lid position with respect to main body in a laptop, detection of opening of the cover of battery compartment
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1615Constructional details or arrangements for portable computers with several enclosures having relative motions, each enclosure supporting at least one I/O or computing function
    • G06F1/1616Constructional details or arrangements for portable computers with several enclosures having relative motions, each enclosure supporting at least one I/O or computing function with folding flat displays, e.g. laptop computers or notebooks having a clamshell configuration, with body parts pivoting to an open position around an axis parallel to the plane they define in closed position
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1615Constructional details or arrangements for portable computers with several enclosures having relative motions, each enclosure supporting at least one I/O or computing function
    • G06F1/1616Constructional details or arrangements for portable computers with several enclosures having relative motions, each enclosure supporting at least one I/O or computing function with folding flat displays, e.g. laptop computers or notebooks having a clamshell configuration, with body parts pivoting to an open position around an axis parallel to the plane they define in closed position
    • G06F1/1618Constructional details or arrangements for portable computers with several enclosures having relative motions, each enclosure supporting at least one I/O or computing function with folding flat displays, e.g. laptop computers or notebooks having a clamshell configuration, with body parts pivoting to an open position around an axis parallel to the plane they define in closed position the display being foldable up to the back of the other housing with a single degree of freedom, e.g. by 360° rotation over the axis defined by the rear edge of the base enclosure
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1633Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1637Details related to the display arrangement, including those related to the mounting of the display in the housing
    • G06F1/1641Details related to the display arrangement, including those related to the mounting of the display in the housing the display being formed by a plurality of foldable display components
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1633Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1637Details related to the display arrangement, including those related to the mounting of the display in the housing
    • G06F1/1652Details related to the display arrangement, including those related to the mounting of the display in the housing the display being flexible, e.g. mimicking a sheet of paper, or rollable
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3215Monitoring of peripheral devices
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3215Monitoring of peripheral devices
    • G06F1/3218Monitoring of peripheral devices of display devices
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/325Power saving in peripheral device
    • G06F1/3265Power saving in display device
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3287Power saving characterised by the action undertaken by switching off individual functional units in the computer system
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6245Protecting personal data, e.g. for financial or medical purposes
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/71Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure computing or processing of information
    • G06F21/74Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure computing or processing of information operating in dual or compartmented mode, i.e. at least one secure mode
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/81Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer by operating on the power supply, e.g. enabling or disabling power-on, sleep or resume operations
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/82Protecting input, output or interconnection devices
    • G06F21/84Protecting input, output or interconnection devices output devices, e.g. displays or monitors
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/017Gesture based interaction, e.g. based on a set of recognized hand gestures

Definitions

  • the present application relates to the field of electronic technology, and in particular to methods of controlling components and related devices.
  • Smart terminals (such as mobile phones) play an increasingly important role in life, and at the same time, privacy protection of smart terminals has attracted more and more attention from users.
  • Some third-party applications installed on smart terminals will use functional components such as microphones, cameras, and positioning modules to illegally steal users' private information. In scenarios where confidentiality is required (such as important meetings), the leakage of private information may cause heavy losses to users.
  • smart terminals usually use the software layer to prevent third-party applications from using the above functional components to steal user information in the background. For example, when a third-party application requests audio data collected by the microphone, the software driver layer replaces the audio data collected by the microphone with empty data, and sends the above-mentioned empty data to the third-party application through the application framework layer.
  • third-party applications can illegally obtain root permissions of the device. Using root permissions, they can still bypass the software layer and continue to obtain the data collected by the above functional components. Therefore, the above scheme still has the risk of information leakage.
  • This application provides a method of controlling components and related devices, which can effectively prevent information leakage of the first functional component, ensure user information security, and improve user experience.
  • this application provides an electronic device.
  • the electronic device includes a folding screen, a first sensor, a security chip, a control module and a first functional component.
  • the first sensor, security chip and control module are directly connected through circuit wiring. Or indirectly connected; the control module is used to control the first functional component to disconnect or connect the power supply; the first sensor is used to detect the user's first operation; the first sensor is also used to send the first sensor to the security chip according to the first operation Data, the first sensor data is used to indicate the attitude of the electronic device; the security chip is used to send a first control instruction to the control module according to the attitude indicated by the first sensor data, and the first control instruction is used to instruct the disconnection of the first functional component. powered by.
  • the first sensor When implementing the embodiments of this application, the first sensor generates first sensor data when detecting the user's operation of adjusting the electronic device to a preset posture.
  • the first sensor data can trigger the security chip to issue instructions to the control module, instructing the control module to disconnect. Power supply for the first functional component.
  • the user can control the power off of the first functional component by adjusting the posture of the electronic device, effectively preventing the leakage of private information of the first functional component, ensuring the user's information security, and improving the user's experience.
  • the above-mentioned first sensor, security chip, control module and first functional component all transmit signals through circuit wiring between hardware modules, and third-party applications cannot tamper with or forge instructions sent by the security chip; therefore, third-party applications cannot pass
  • the software system controls the power-off of the first functional component, preventing third-party applications from maliciously controlling the power-off of the first functional component.
  • the first sensor is also used to detect the user's second operation; the first sensor is also used to send second sensor data to the security chip according to the second operation, and the second sensor data is used to indicate the electronic device The posture; the security chip is also used to send a second control instruction to the control module according to the posture indicated by the second sensor data, and the second control instruction is used to instruct to restore the power supply of the first functional component.
  • the user can control the first functional component to restore power by adjusting the posture of the electronic device.
  • the above-mentioned first sensor, security chip, control module and first functional component all transmit signals through circuit wiring between hardware modules.
  • Third-party applications cannot tamper with or forge instructions sent by the security chip; therefore, after the first functional component is powered off, , the third-party application cannot control the first functional component to restore power through the software system, and naturally cannot further control the first functional component to collect the user's private information, thus ensuring the user's information security.
  • the first operation includes an operation of adjusting the posture of the electronic device to the first posture, and the first sensor data is used to determine whether the electronic device is in the first posture; the above-mentioned posture indicated by the first sensor data is used to control the posture of the electronic device.
  • the module sending the first control instruction includes: sending the first control instruction to the control module when it is determined that the electronic device is in the first posture according to the first number of sensors.
  • the user can control the power off of the first functional component by adjusting the posture of the electronic device to the first posture, effectively avoiding the leakage of private information of the first functional component, ensuring the user's information security, and improving the user's use experience.
  • the second operation includes an operation of adjusting the first posture of the electronic device to the second posture, and the second sensor data is used to determine whether the electronic device is in the second posture; the above-mentioned posture indicated by the second sensor data,
  • Sending the second control instruction to the control module includes: sending the second control instruction to the control module when it is determined based on the second sensor data that the electronic device is adjusted from the first posture to the second posture.
  • the user can control the first functional component to power off and restore power by adjusting the posture of the electronic device, achieving It enables quick switching between privacy mode and normal business, ensuring user experience.
  • the first operation includes turning on the privacy mode
  • the second operation includes turning off the privacy mode
  • the user can turn on the privacy mode through the first operation, and turning on the privacy mode includes controlling the first functional component to power off; the user can also turn off the privacy mode through the second operation, and turning off the privacy mode includes controlling the first functional component to restore power. .
  • the information leakage of the first functional component can be effectively avoided, the user's information security is ensured, and the user's experience is improved.
  • this application provides an electronic device.
  • the electronic device includes a detection component, a security chip, a control module and a first functional component.
  • the detection component, security chip and control module are directly or indirectly connected through circuit wiring; control The module is used to control the first functional component to disconnect or connect the power supply; the detection component is used to detect the user's first operation; the detection component is also used to send a first control signal to the security chip according to the first operation, the first control signal used to instruct the power supply of the first functional component to be disconnected; the security chip is used to send a first control instruction to the control module according to the first control signal, and the first control instruction is used to instruct the power supply of the first functional component to be disconnected.
  • the detection component when the user performs the first operation through the detection component, the detection component can obtain the first control signal, and trigger the security chip to issue an instruction to the control module through the control signal, instructing the control module to disconnect the first functional component. powered by. In this way, the user can control the power off of the first functional component through the detection component, effectively preventing the leakage of private information of the first functional component, ensuring the user's information security, and improving the user's experience.
  • the above-mentioned detection components, security chips, control modules and first functional components all transmit signals through circuit wiring between hardware modules.
  • Third-party applications cannot tamper with or forge instructions sent by the security chip; therefore, third-party applications cannot pass software
  • the system controls the power-off of the first functional component, preventing a third-party application from maliciously controlling the power-off of the first functional component.
  • the detection component is also used to detect the user's second operation; the detection component is also used to send a second control signal to the security chip according to the second operation, and the second control signal is used to instruct the restoration of the first operation.
  • the power supply of functional components; the security chip is also used to send a second control instruction to the control module according to the second control signal, and the second control instruction is used to instruct to restore the power supply of the first functional component.
  • the user can control the first functional component to restore power through the detection component; the above-mentioned detection component, security chip, control module and first functional component are all routed through circuits between hardware modules
  • third-party applications cannot tamper with or forge the instructions sent by the security chip; therefore, after the first functional component is powered off, the third-party application cannot control the first functional component to restore power through the software system, and naturally cannot further control the first function.
  • the component collects users' private information and ensures user information security.
  • users can control the power outage and restoration of the first functional component through the detection component, realizing rapid switching between privacy mode and normal business, ensuring user experience.
  • the first operation includes an operation acting on the detection component
  • the first control signal includes a signal generated by the detection component according to the first operation
  • the second operation includes an operation acting on the detection component
  • the second control signal includes detection The signal generated by the component based on the second operation.
  • the first operation includes turning on the privacy mode
  • the second operation includes turning off the privacy mode
  • the user can turn on the privacy mode through the first operation, and turning on the privacy mode includes controlling the first functional component to power off; the user can also turn off the privacy mode through the second operation, and turning off the privacy mode includes controlling the first functional component to restore power. .
  • the information leakage of the first functional component can be effectively avoided, the user's information security is ensured, and the user's experience is improved.
  • the electronic device includes a folding screen
  • the detection component includes a hardware switch and a first sensor
  • the first operation includes an operation on the hardware switch, and an operation of adjusting the posture of the electronic device to the first posture
  • the signal includes a first switch signal generated by the hardware switch according to the first operation, and first sensor data collected by the first sensor.
  • the first sensor data is used to determine whether the electronic device is in the first posture; the second operation includes acting on the hardware switch.
  • the first control signal includes a second switch signal generated by the hardware switch according to the second operation, and/or a second sensor collected by the first sensor data, the second sensor data is used to determine whether the electronic device is in the second posture;
  • the above-mentioned sending the first control signal to the security chip includes: the hardware switch sends the first switch signal to the security chip; the first sensor sends the first sensor to the security chip data;
  • the above-mentioned sending the first control instruction to the control module according to the first control signal includes: receiving the first switch signal and determining that the electronic device is in the first posture according to the first sensor data, sending the first control instruction to the control module;
  • the above-mentioned sending of the second control signal to the security chip includes: the hardware switch sends the second switch signal to the security chip, and/or the first sensor sends the second sensor data to the security chip; the above-mentioned sending of the second control signal to the control module according to the second control signal
  • the second control signal includes: the hardware switch sends the second switch signal to
  • the security chip can be triggered by the hardware switch and the first sensor to issue instructions to the control module, instructing the control module to disconnect/restore the power supply of the first functional component.
  • the hardware switch, first sensor, security chip, control module and first functional component all transmit signals through circuit wiring.
  • Third-party applications cannot tamper with or forge instructions sent by the security chip, preventing third-party applications from maliciously controlling the third party through the software system.
  • a functional component disconnects/restores power. In this way, the information leakage of the first functional component is effectively avoided, the user's information security is ensured, and the user's experience is improved.
  • this application provides a method for controlling components, which is applied to an electronic device.
  • the electronic device includes a folding screen, a first sensor, a security chip, a control module and a first functional component.
  • the first sensor, a security chip and a control module Directly or indirectly connected through circuit wiring; the control module is used to control the first functional component to disconnect or connect the power supply;
  • the method includes: the first sensor detects the user's first operation; the first sensor sends a signal to the security chip according to the first operation First sensor data, the first sensor data is used to indicate the attitude of the electronic device; the security chip sends a first control instruction to the control module according to the attitude indicated by the first sensor data, and the first control instruction is used to instruct the disconnection of the first functional component. powered by.
  • the method further includes: a first sensor detecting a second operation of the user; the first sensor sending second sensor data to the security chip according to the second operation, and the second sensor data is used to indicate the posture of the electronic device. ;
  • the security chip sends a second control instruction to the control module according to the posture indicated by the second sensor data, and the second control instruction is used to instruct the restoration of power supply to the first functional component.
  • the first operation includes an operation of adjusting the posture of the electronic device to the first posture, and the first sensor data is used to determine whether the electronic device is in the first posture; the above-mentioned posture indicated by the first sensor data is used to control the posture of the electronic device.
  • the module sends the first control instruction, including: when it is determined that the electronic device is in the first posture according to the first sensor number, sending the first control instruction to the control module;
  • the second operation includes an operation of adjusting the first posture of the electronic device to the second posture, and the second sensor data is used to determine whether the electronic device is in the second posture; the above-mentioned posture indicated by the second sensor data,
  • Sending the second control instruction to the control module includes: sending the second control instruction to the control module when it is determined based on the second sensor data that the electronic device is adjusted from the first posture to the second posture.
  • the first operation includes turning on the privacy mode
  • the second operation includes turning off the privacy mode
  • this application provides a method for controlling components, which is applied to electronic equipment.
  • the electronic equipment includes a detection component, a security chip, a control module and a first functional component.
  • the detection component, security chip and control module are directly connected through circuit wiring. Or indirectly connected; the control module is used to control the first functional component to disconnect or connect the power supply;
  • the method includes: the detection component detects the user's first operation; the detection component sends a first control signal to the security chip according to the first operation, and the A control signal is used to instruct the power supply of the first functional component to be disconnected; the security chip sends a first control instruction to the control module according to the first control signal, and the first control instruction is used to instruct the power supply of the first functional component to be disconnected.
  • the method further includes: the detection component detects the user's second operation; the detection component sends a second control signal to the security chip according to the second operation, and the second control signal is used to instruct the restoration of the first functional component power supply; the security chip sends a second control instruction to the control module according to the second control signal, and the second control instruction is used to instruct to restore the power supply of the first functional component.
  • the first operation includes an operation acting on the detection component
  • the first control signal includes a signal generated by the detection component according to the first operation
  • the second operation includes an operation acting on the detection component
  • the second control signal includes detection The signal generated by the component based on the second operation.
  • the first operation includes turning on the privacy mode
  • the second operation includes turning off the privacy mode
  • the electronic device includes a folding screen
  • the detection component includes a hardware switch and a first sensor
  • the first operation includes an operation on the hardware switch, and an operation of adjusting the posture of the electronic device to the first posture
  • the signal includes a first switch signal generated by the hardware switch according to the first operation, and first sensor data collected by the first sensor.
  • the first sensor data is used to determine whether the electronic device is in the first posture; the second operation includes acting on the hardware switch.
  • the first control signal includes a second switch signal generated by the hardware switch according to the second operation, and/or the second sensor collected by the first sensor data, the second sensor data is used to determine whether the electronic device is in the second posture;
  • the above-mentioned sending the first control signal to the security chip includes: the hardware switch sends the first switch signal to the security chip; the first sensor sends the first sensor to the security chip data;
  • the above-mentioned sending the first control instruction to the control module according to the first control signal includes: receiving the first switch signal and determining that the electronic device is in the first posture according to the first sensor data, sending the first control instruction to the control module;
  • the above-mentioned sending of the second control signal to the security chip includes: the hardware switch sends the second switch signal to the security chip, and/or the first sensor sends the second sensor data to the security chip; the above-mentioned sending of the second control signal to the control module according to the second control signal
  • embodiments of the present application provide a computer storage medium that includes computer instructions.
  • the computer instructions When the computer instructions are run on an electronic device, the electronic device causes the electronic device to execute any of the possible implementation methods of the third aspect and the fourth aspect. Methods of controlling components in .
  • embodiments of the present application provide a computer program product.
  • the computer program product When the computer program product is run on a computer, it causes the computer to execute the control component in any of the possible implementations of the third aspect and the fourth aspect. method.
  • FIGS. 1A to 1F are schematic diagrams of electronic devices equipped with folding screens provided by embodiments of the present application.
  • FIGS. 2A to 2F are schematic diagrams of electronic devices equipped with folding screens provided by embodiments of the present application.
  • Figure 3A is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • Figure 3B is a schematic diagram of the geographical coordinate system provided by the embodiment of the present application.
  • Figure 3C is a schematic diagram of the angle of the folding screen provided by the embodiment of the present application.
  • Figure 4A is a software structure block diagram provided by an embodiment of the present application.
  • Figure 4B is a schematic diagram of the hardware device of the electronic device provided by the embodiment of the present application.
  • Figure 5 is a schematic flowchart of a method for controlling components provided by an embodiment of the present application.
  • FIGS. 6A-6C are schematic diagrams of user interfaces provided by embodiments of the present application.
  • FIG. 7 is a schematic flowchart of another method of controlling components provided by an embodiment of the present application.
  • FIGS 8A-8C are schematic flow charts of another method of controlling components provided by an embodiment of the present application.
  • 9A and 9B are schematic structural diagrams of electronic equipment provided by embodiments of the present application.
  • first and second are used for descriptive purposes only and shall not be understood as implying or implying relative importance or implicitly specifying the quantity of indicated technical features. Therefore, the features defined as “first” and “second” may explicitly or implicitly include one or more of the features. In the description of the embodiments of this application, unless otherwise specified, “plurality” The meaning is two or more.
  • GUI graphical user interface
  • the embodiment of the present application provides a method of controlling components, which method can be applied to an electronic device 100 configured with a non-folding screen, and can also be applied to an electronic device 100 configured with a folding screen.
  • the above-mentioned folding screen can be a vertical folding screen or a horizontal folding screen, and the folding screen can be folded along the folding edge to form at least two screens, such as screen A and screen B.
  • the folding screen can take on various forms.
  • the folding screen of the electronic device 100 may assume one or more of an unfolded form, a forward half-folded form, a forward folded form, a reverse half-folded form, and a reverse folded form.
  • FIGS. 1A to 1F show a schematic diagram of the product form of an electronic device 100 with a vertical folding screen provided by an embodiment of the present application.
  • the folding edge of the vertical folding screen is perpendicular to the top edge line and bottom of the electronic device 100
  • the top edge line is referred to as the top edge
  • the bottom edge line is referred to as the bottom edge.
  • FIG. 1A is a schematic diagram of the unfolded form of the vertical folding screen.
  • the vertical folding screen shown in Figure 1A can be folded inward along the folding edge in the directions 11a and/or 11b shown in Figure 1A to form the forward half-folded form shown in Figures 1B and 1C.
  • the vertical folding screen is folded It is divided into A screen and B screen.
  • the A screen can be on the same side of the folding edge as the front camera on the electronic device 100 .
  • the vertical folding screen shown in Figure 1C can continue to be folded inward along the folding edge according to directions 11a and 11b to form the forward folding form shown in Figure 1D.
  • screen A and screen B face each other and are invisible to the user.
  • the longitudinal folding screen shown in Figure 1A can also be folded outward along the folding edge to form the reverse half-folded form shown in Figure 1E; continue in the directions 22a and 22b shown in Figure 1E Fold outward to form the reverse folded shape shown in Figure 1F.
  • FIG 1F after the vertical folding screen of the electronic device 100 is completely folded outward, screen A and screen B face each other, and the back of the electronic device 100 is invisible to the user.
  • the back of the electronic device 100 includes the back of screen A and screen B. the back of the screen.
  • FIGS. 2A to 2F show a schematic diagram of the product form of an electronic device 100 with a horizontal folding screen provided by an embodiment of the present application.
  • the folding edges of the horizontal folding screen are parallel to the top and bottom edges of the electronic device 100 .
  • FIG. 2A is a schematic diagram of the unfolded form of the horizontal folding screen.
  • the horizontal folding screen shown in Figure 2A is folded inward along the folding edge according to directions 33a and/or 33b to form the positive profile shown in Figures 2B and 2C.
  • the horizontal folding screen shown in Figure 2A can also be folded outward along the folding edge to form the reverse half-folded form shown in Figure 2E; continue Folding outward can also form the reverse folding shape shown in Figure 2F.
  • the electronic device 100 can determine the form of the configured folding screen based on the detected angle ⁇ between the A screen and the B screen. For example, when ⁇ [0[, P1), the electronic device 100 can determine that the folding screen is in the forward folding configuration; when ⁇ [P4, 360], the electronic device 100 can determine that the folding screen is in the reverse folding configuration.
  • P1 and P2 may be preset error values set by the electronic device 100 or the user. For example, if P1 and P2 are 5[ and 355[ respectively.
  • FIG. 3A shows a schematic structural diagram of the electronic device 100.
  • the electronic device 100 may be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (personal digital assistant) digital assistant (PDA), augmented reality (AR) device, virtual reality (VR) device, artificial intelligence (AI) device, wearable device, vehicle-mounted device, smart home device and/or Smart city equipment and electronic equipment may be equipped with iOS, Android, Microsoft or other operating systems.
  • PDA personal digital assistant
  • AR augmented reality
  • VR virtual reality
  • AI artificial intelligence
  • wearable device wearable device
  • vehicle-mounted device smart home device and/or Smart city equipment and electronic equipment
  • smart home device and/or Smart city equipment and electronic equipment may be equipped with iOS, Android, Microsoft or other operating systems.
  • the embodiments of this application do not place special restrictions on the specific types of electronic equipment.
  • the electronic device 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, an antenna 1, an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and Subscriber identification module (SIM) card interface 195, etc.
  • 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, an antenna 1, an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display
  • the sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
  • the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100 .
  • the electronic device 100 may include more or fewer components than shown in the figures, or some components may be combined, some components may be separated, or some components may be arranged differently.
  • the components illustrated may be implemented in hardware, software, or a combination of software and hardware.
  • 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 (GPU), and an image signal processor. (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc.
  • application processor application processor, AP
  • modem processor graphics processing unit
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller video codec
  • digital signal processor digital signal processor
  • DSP digital signal processor
  • baseband processor baseband processor
  • neural network processor neural-network processing unit
  • 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 processor 110 may also be provided with a memory for storing instructions and data.
  • the memory in processor 110 is a cache memory. This memory may hold instructions or data that have been recently used or recycled by processor 110 . If the processor 110 needs to use the instructions or data again, it can be called directly from the memory. Repeated access is avoided and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
  • processor 110 may include one or more interfaces.
  • Interfaces may include integrated circuit (inter-integrated circuit, I2C) interface, integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, pulse code modulation (pulse code modulation, PCM) interface, universal asynchronous receiver and transmitter (universal asynchronous receiver/transmitter (UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and /or universal serial bus (USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • UART universal asynchronous receiver and transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB universal serial bus
  • the I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (derail clock line, SCL).
  • the processor 110 may include multiple sets of I2C buses.
  • the processor 110 can separately couple the touch sensor 180K, charger, flash, camera 193, etc. through different I2C bus interfaces.
  • the processor 110 can be coupled to the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface to implement the touch function of the electronic device 100 .
  • the I2S interface can be used for audio communication.
  • the processor 110 may include multiple sets of I2S buses.
  • the processor 110 can be coupled with the audio module 170 through the I2S bus to implement communication between the processor 110 and the audio module 170 .
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface to implement the function of answering calls through a Bluetooth headset.
  • the PCM interface can also be used for audio communications to sample, quantize and encode analog signals.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface to implement the function of answering calls through a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • a UART interface is generally used to connect the processor 110 and the wireless communication module 160 .
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function.
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 .
  • MIPI interfaces include camera serial interface (CSI), display serial interface (DSI), etc.
  • the processor 110 and the camera 193 communicate through the CSI interface to implement the shooting function of the electronic device 100 .
  • the processor 110 and the display screen 194 communicate through the DSI interface to implement the display function of the electronic device 100 .
  • the GPIO interface can be configured through software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface can be used to connect the processor 110 with the camera 193, display screen 194, wireless communication module 160, audio module 170, sensor module 180, etc.
  • the GPIO interface can also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 130 is an interface that complies with the USB standard specification, and may be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio through them. This interface can also be used to connect other electronic devices, such as AR devices, etc.
  • the interface connection relationships between the modules illustrated in the embodiment of the present invention are only schematic illustrations and do not constitute a structural limitation of the electronic device 100 .
  • the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the charging management module 140 may receive charging input from the wired charger through the USB interface 130 .
  • the charging management module 140 may receive wireless charging input through the wireless charging coil of the electronic device 100 . While the charging management module 140 charges the battery 142, it can also provide power to the electronic device through the power management module 141.
  • the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
  • the power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, the wireless communication module 160, and the like.
  • the power management module 141 can also be used to monitor battery capacity, battery cycle times, battery health status (leakage, impedance) and other parameters.
  • the power management module 141 may also be provided in the processor 110 .
  • the power management module 141 and the charging management module 140 may also be provided in the same device.
  • the wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example: Antenna 1 can be reused as a diversity antenna for a wireless LAN. In other embodiments, antennas may be used in conjunction with tuning switches.
  • the mobile communication module 150 can provide solutions for wireless communication including 2G/3G/4G/5G applied on the electronic device 100 .
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc.
  • the mobile communication module 150 can receive electromagnetic waves through the antenna 1, perform filtering, amplification and other processing on the received electromagnetic waves, and transmit them to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves through the antenna 1 for radiation.
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
  • a modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal.
  • the demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the application processor via audio device (not limited to speaker 170A, receiver 170B, etc.) outputs sound signals, or displays images or videos through the display screen 194 .
  • the modem processor may be a separate device.
  • the modem processor may be independent of the processor 110 and may be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (bluetooth, BT), and global navigation satellites.
  • WLAN wireless local area networks
  • System global navigation satellite system, GNSS
  • frequency modulation frequency modulation, FM
  • near field communication technology near field communication, NFC
  • infrared technology infrared, IR
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , demodulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
  • the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi) -zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation systems
  • the electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like.
  • the GPU is an image processing microprocessor and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
  • the display screen 194 is used to display images, videos, etc.
  • Display 194 includes a display panel.
  • the display panel can use a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • AMOLED organic light-emitting diode
  • FLED flexible light-emitting diode
  • Miniled MicroLed, Micro-oLed, quantum dot light emitting diode (QLED), etc.
  • the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
  • the electronic device 100 can implement the shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
  • the ISP is used to process the data fed back by the camera 193. For example, when taking a photo, the shutter is opened, the light is transmitted to the camera sensor through the lens, the optical signal is converted into an electrical signal, and the camera sensor passes the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on image noise and brightness. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments of the present application, the ISP may be provided in the camera 193.
  • Camera 193 is used to capture still images or video.
  • the object passes through the lens to produce an optical image that is projected onto the photosensitive element.
  • the photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to convert it into a digital image signal.
  • ISP outputs digital image signals to DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other format image signals.
  • the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
  • Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
  • Video codecs are used to compress or decompress digital video.
  • Electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple encoding formats, such as moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
  • MPEG moving picture experts group
  • MPEG2 MPEG2, MPEG3, MPEG4, etc.
  • NPU is a neural network (NN) computing processor.
  • NN neural network
  • Intelligent cognitive applications of the electronic device 100 can be implemented through the NPU, such as image recognition, face recognition, speech recognition, text understanding, etc.
  • the internal memory 121 may include one or more random access memories (RAM) and one or more non-volatile memories (NVM).
  • RAM random access memories
  • NVM non-volatile memories
  • Random access memory can include static random-access memory (SRAM), dynamic random-access memory (DRAM), synchronous dynamic random-access memory (SDRAM), double data rate synchronous Dynamic random access memory (double data rate synchronous dynamic random access memory, DDR SDRAM, for example, the fifth generation DDR SDRAM is generally called DDR5SDRAM), etc.; non-volatile memory can include disk storage devices and flash memory (flash memory).
  • SRAM static random-access memory
  • DRAM dynamic random-access memory
  • SDRAM synchronous dynamic random-access memory
  • DDR SDRAM double data rate synchronous Dynamic random access memory
  • non-volatile memory can include disk storage devices and flash memory (flash memory).
  • Flash memory can be divided according to the operating principle to include NOR FLASH, NAND FLASH, 3D NAND FLASH, etc.
  • the storage unit potential level it can include single-level storage cells (single-level cell, SLC), multi-level storage cells (multi-level cell, MLC), third-level storage unit (triple-level cell, TLC), fourth-level storage unit (quad-level cell, QLC), etc., which can include universal flash storage (English: universal flash storage, UFS) according to storage specifications. , embedded multi media card (embedded multi media Card, eMMC), etc.
  • the random access memory can be directly read and written by the processor 110, can be used to store executable programs (such as machine instructions) of the operating system or other running programs, and can also be used to store user and application data, etc.
  • the non-volatile memory can also store executable programs and user and application program data, etc., and can be loaded into the random access memory in advance for direct reading and writing by the processor 110.
  • the external memory interface 120 can be used to connect an external non-volatile memory to expand the storage capacity of the electronic device 100 .
  • the external non-volatile memory communicates with the processor 110 through the external memory interface 120 to implement the data storage function. For example, save music, video and other files in external non-volatile memory.
  • the electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. Audio module 170 may also be used to encode and decode audio signals. In some embodiments of the present application, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .
  • Speaker 170A also called “speaker” is used to convert audio electrical signals into sound signals.
  • Receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
  • Microphone 170C also called “microphone” or “microphone”, is used to convert sound signals into electrical signals.
  • the headphone interface 170D is used to connect wired headphones.
  • the pressure sensor 180A is used to sense pressure signals and can convert the pressure signals into electrical signals.
  • the pressure sensor 180A may be disposed on the display screen 194 .
  • the gyro sensor 180B may be used to determine the motion posture of the electronic device 100 .
  • the angular velocity of the electronic device 100 about three axes may be determined by the gyro sensor 180B.
  • the gyro sensor 180B can be used for image stabilization. For example, when the shutter is pressed, the gyro sensor 180B detects the angle at which the electronic device 100 shakes, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shake of the electronic device 100 through reverse movement to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
  • the coordinate system of the gyroscope sensor is a geographical coordinate system. As shown in Figure 3B, the origin O of the geographical coordinate system is located at the point where the vehicle is located.
  • the X-axis points east (E) along the local latitude
  • the Y-axis points north (N) along the local meridian
  • the Z-axis points along the local geographic vertical. on, and forms a right-handed rectangular coordinate system with the X-axis and Y-axis.
  • the above-mentioned carrier refers to a device including a gyroscope sensor, such as the electronic device 100 .
  • the display screen 194 of the electronic device 100 can be folded to form multiple display screens, such as A screen and B screen.
  • a gyro sensor 180B may be provided in each screen for measuring the orientation of the display screen, that is, the direction vector perpendicular to the display screen and pointing from the inside of the electronic device 100 to the outside.
  • the electronic device 100 can determine the angle between adjacent screens, such as the angle ⁇ between screen A and screen B, based on the orientation change of each display screen measured by the gyro sensor 180B.
  • the display screen 194 of the electronic device 100 may be folded to form adjacent A screens and B screens.
  • Screen A is equipped with a gyro sensor A, through which the orientation of screen A can be measured.
  • Screen B is provided with a gyro sensor B, through which gyro sensor B can measure the orientation of screen B.
  • the following is a detailed explanation of the principle of obtaining the angle ⁇ between screen A and screen B.
  • FIG. 3C shows a schematic diagram of the angle ⁇ between screen A and screen B.
  • the electronic device 100 uses the gyro sensor A to measure the orientation of the screen A as a vector Use gyro sensor B to measure the orientation of screen B as a vector Among them, vector Perpendicular to screen A, vector Perpendicular to screen B.
  • the above-mentioned gyro sensor can be a virtual gyro sensor formed by the cooperation of multiple other sensors.
  • the virtual gyro sensor can be used to calculate the angle between adjacent screens of the folding screen, for example, the angle between screen A and The angle ⁇ of screen B.
  • Air pressure sensor 180C is used to measure air pressure.
  • Magnetic sensor 180D includes a Hall sensor.
  • the electronic device 100 may utilize the magnetic sensor 180D to detect the opening and closing of the flip holster.
  • the electronic device 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. Then, based on the detected opening and closing status of the leather case or the opening and closing status of the flip cover, features such as automatic unlocking of the flip cover are set.
  • the display screen 194 of the electronic device 100 can be folded to form multiple display screens, such as screen A and screen B, and a Hall sensor can be disposed in some or all of the multiple display screens.
  • the electronic device 100 may use a Hall sensor to detect whether the adjacent screen of the folding screen is in a forward folding state.
  • the A screen of the folding screen of the electronic device 100 is provided with a Hall sensor
  • the B screen is provided with a magnet; when the user completely folds the electronic device 100 inward, that is, when the folding screen is folded into a forward folding state, the A screen
  • the Hall sensor in is close to the magnet in screen B.
  • the Hall sensor senses changes in the magnetic field and generates data 1.
  • Data 1 can be used to indicate that screen A and screen B are in the forward folding state.
  • the acceleration sensor 180E can detect the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices and be used in horizontal and vertical screen switching, pedometer and other applications.
  • the display screen 194 of the electronic device 100 can be folded to form multiple display screens, such as screen A and screen B, and an acceleration sensor can be provided in each display screen of the folding screen.
  • the electronic device 100 can use an acceleration sensor to measure the motion acceleration of each display screen when it is rotated; and then calculate the rotation angle of one display screen relative to another display screen based on the measured motion acceleration, such as the angle ⁇ between screen A and screen B. .
  • an angle sensor is installed on the folding part of the electronic device 100.
  • the folding part includes a rotation axis; the electronic device 100 can use the angle sensor to measure the angle between adjacent screens of the folding screen, such as screen A.
  • Distance sensor 180F for measuring distance.
  • Electronic device 100 can measure distance via infrared or laser.
  • Proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode.
  • LED light emitting diode
  • a light detector such as a photodiode
  • the ambient light sensor 180L is used to sense ambient light brightness.
  • Fingerprint sensor 180H is used to collect fingerprints.
  • Temperature sensor 180J is used to detect temperature. In some embodiments of the present application, the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute the temperature processing strategy.
  • Touch sensor 180K also known as "touch device”.
  • the touch sensor 180K can be disposed on the display screen 194.
  • the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen”.
  • the touch sensor 180K is used to detect a touch operation on or near the touch sensor 180K.
  • the touch sensor can pass the detected touch operation to the application processor to determine the touch event type.
  • Visual output related to the touch operation may be provided through display screen 194 .
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100 at a location different from that of the display screen 194 .
  • Bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can obtain the vibration signal of the vibrating bone mass of the human body and receive the blood pressure beating signal.
  • the buttons 190 include a power button, a volume up button, a volume down button, etc.
  • Key 190 may be a mechanical key. It can also be a touch button.
  • the electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100 .
  • the button 190 may also include a button for turning on/off the privacy mode.
  • the motor 191 can generate vibration prompts.
  • the indicator 192 may be an indicator light and may be used to indicate charging status, power changes, messages, notifications, etc.
  • the SIM card interface 195 is used to connect a SIM card.
  • the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
  • This embodiment of the present invention takes the Android system with a layered architecture as an example to illustrate the software structure of the electronic device 100 .
  • FIG. 4A is a software structure block diagram of the electronic device 100 according to the embodiment of the present invention.
  • Software can include several layers, each with clear roles and division of labor.
  • the layers communicate through software interfaces.
  • the Android system is divided from top to bottom into application layer (Application layer), application framework layer (Framework layer), Android runtime (Android runtime) and system library, hardware abstraction layer ( Hardware abstraction layer (HAL) and kernel layer (Kernel layer).
  • the application layer can include a series of application packages.
  • the application package can include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.
  • the application framework layer provides an application programming interface (API) and programming framework for applications in the application layer.
  • API application programming interface
  • the application framework layer includes some predefined functions.
  • the application framework layer can include a window manager, content provider, view system, phone manager, resource manager, notification manager, etc.
  • a window manager is used to manage window programs.
  • the window manager can obtain the display size, determine whether there is a status bar, lock the screen, capture the screen, etc.
  • Content providers are used to store and retrieve data and make this data accessible to applications.
  • Said data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
  • the view system includes visual controls, such as controls that display text, controls that display pictures, etc.
  • a view system can be used to build applications.
  • the display interface can be composed of one or more views.
  • a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
  • the phone manager is used to provide communication functions of the electronic device 100 .
  • call status management including connected, hung up, etc.
  • the resource manager provides various resources to applications, such as localized strings, icons, pictures, layout files, video files, etc.
  • the notification manager allows applications to display notification information in the status bar, which can be used to convey notification-type messages and can automatically disappear after a short stay without user interaction.
  • the notification manager is used to notify download completion, message reminders, etc.
  • the notification manager can also be notifications that appear in the status bar at the top of the system in the form of charts or scroll bar text, such as notifications for applications running in the background, or notifications that appear on the screen in the form of conversation windows. For example, text information is prompted in the status bar, a beep sounds, the electronic device vibrates, the indicator light flashes, etc.
  • Android Runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
  • the core library contains two parts: one is the functional functions that need to be called by the Java language, and the other is the core library of Android.
  • the application layer and application framework layer run in virtual machines.
  • the virtual machine executes the java files of the application layer and application framework layer into binary files.
  • the virtual machine is used to perform object life cycle management, stack management, thread management, security and exception management, and garbage collection and other functions.
  • System libraries can include multiple functional modules. For example: surface manager (surface manager), media libraries (Media Libraries), 3D graphics processing libraries (for example: OpenGL ES), 2D graphics engines (for example: SGL), etc.
  • the surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, composition, and layer processing.
  • 2D Graphics Engine is a drawing engine for 2D drawing.
  • the HAL layer (hardware abstraction layer) is the interface layer between the operating system kernel and the hardware circuit. Its purpose is to abstract the hardware and provide a virtual hardware platform for the operating system.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer can receive HAL layer data and pass sensor data to the HAL layer.
  • the kernel layer includes at least display driver, camera driver, audio driver, sensor driver, etc.
  • the hardware device of the electronic device 100 may include: a first functional component for obtaining private information.
  • the first functional component may include some or all of a camera, a microphone, a bone conduction sensor, a positioning module, etc., for example, the above positioning module includes a GPS locator.
  • the camera can collect images around the electronic device 100
  • the microphone can collect the sounds around the electronic device 100
  • the bone conduction sensor can collect the user's heartbeat, blood pressure and other indicators
  • the positioning module can obtain the location information of the electronic device 100 .
  • Some third-party applications may collect data through the above functional components without the user's knowledge to obtain the user's private information.
  • the application framework layer can also include the camera service (CameraServer), and the hard abstraction layer can also include CameraHAL.
  • the camera service is used to provide specific business implementation rules; CameraHAL can provide a standard calling interface, which facilitates the application to operate the camera correctly and the hardware functions of the camera to be correctly implemented.
  • CameraHAL can provide a standard calling interface, which facilitates the application to operate the camera correctly and the hardware functions of the camera to be correctly implemented.
  • CameraServer turns on the specified camera, CameraServe establishes a connection with Camera HAL, and Camera HAL calls the camera driver to drive the specified camera to open; CameraServer sends a get request to Camera HAL; based on the get request, Camera HAL receives the camera collected by the camera driver feedback After receiving the image data, Camera HAL sends the image data to the third-party application through CameraServer.
  • the above-mentioned process of calling the camera to collect data by the third-party application is a simplified exemplary process, and the actual software calling process is usually more complicated.
  • smart terminals can prevent third-party applications from using the above-mentioned first functional component to steal user information through the software layer.
  • the user interface of a smart terminal is equipped with a privacy mode switch. After the user turns on the privacy mode through this switch, when a third-party application requests audio data collected by the camera, the software driver layer replaces the image data collected by the camera with empty data. , send the above empty data to the third-party application through CameraServer.
  • Root permissions are similar to Administrator in Windows systems. Root is the super administrator user account in the system. This account has the highest permissions of the entire system and can easily access the system software. Modules are deleted or changed. Therefore, third-party applications can use root permissions to control the privacy mode switch from the software level and obtain the data collected by the first functional component. The user's information security is not fully guaranteed.
  • the privacy mode when the privacy mode is turned on, the power supply to the first functional component is cut off, and the first functional component can no longer collect data; in this way, third-party applications are prevented from still passing through the software system in the privacy mode. Obtain the data collected by the first functional component. Furthermore, through signal control between hardware modules, the privacy mode can be turned off and the power supply of the first functional component can be restored; in this way, third-party applications can be prevented from turning off the privacy mode through the software system after the privacy mode is turned on, further ensuring the user's information security. Improve user experience.
  • the hardware device of the electronic device 100 may also include part or all of the following: a control module, a security chip, a privacy mode hardware switch, and a first sensor.
  • the first functional component, the control module, the privacy mode hardware switch and the first sensor can be directly or indirectly connected to the security chip through circuit wiring, and signals can be transmitted through the circuit wiring and the security chip. It can be understood that, taking the above control module as an example, when the control module and the security chip directly transmit signals through circuit wiring, the signals do not pass through the software system, and third-party APPs cannot forge or change the signals transmitted between the two through the software system.
  • control module can be connected between the first functional component and the security chip, and the control module can be used to control the first functional component to connect or disconnect the power supply.
  • an analog-to-digital conversion module can be connected between the above-mentioned hardware switch (or first sensor) and the security chip.
  • the analog-to-digital conversion module can be used to convert the analog signal sent by the hardware switch (or the first sensor) into a digital signal to facilitate the security chip. take over.
  • the above-mentioned analog-to-digital conversion module includes the sensor control center (Sensor Hub).
  • the first functional component requires power supply to operate normally.
  • the control module is used to disconnect/restore the connection between the first functional component and the power supply of the electronic device 100 .
  • the control module may include the aforementioned power management module 141, which is used to manage the power supply of each functional component.
  • the control module and the above-mentioned first functional component are the same module, that is, the first functional component can control the module to disconnect or connect the power supply.
  • the control module may include a power switch.
  • the power switch may control the opening and closing of the switch. The power switch is provided between the power supply of the electronic device 100 and each first functional component; when the power switch is in the on state , the first functional component disconnects the power supply; when the power switch is in a closed state, the first functional component connects to the power supply.
  • the function of the security chip includes sending instructions to the control module, and the control module connects/disconnects the power supply of the first functional component based on the instructions.
  • the security chip is a trusted platform module, a device that can independently generate keys, encrypt and decrypt, and has an independent processor and storage unit inside.
  • the security chip performs highly reliable encryption on the data stored in the security chip, making it difficult for the data to be illegally stolen and tampered with. Third-party applications cannot obtain the data in the security chip, nor can they tamper with or forge the instructions sent by the security chip.
  • the function of the hardware switch includes turning on/or turning off the privacy mode, that is, the electronic device 100 is preset with an input operation 1 implemented through the hardware switch for turning on the privacy mode, and/or an input operation 1 implemented through the hardware switch for turning off the privacy mode. Enter action 2.
  • the hardware switch can generate a corresponding switch signal based on the input operation, such as signal 1 generated based on input operation 1 and signal 2 generated based on input operation 2; the hardware switch passes the switch signal through The circuit traces are sent directly to the security chip; the security chip can The privacy mode is turned on/off according to the switch signal.
  • the security chip determines to turn on the privacy mode, it sends a power-off instruction to the above-mentioned control module.
  • the power-down instruction is used to instruct to disconnect the power supply of the above-mentioned first functional component; when the security chip determines to turn off the privacy mode, it sends a power-on instruction to the above-mentioned control module. , this power-on instruction is used to instruct to connect the power supply of the first functional component and restore the power supply of the first functional component.
  • the actual function of the hardware switch includes controlling the above-mentioned first functional component to disconnect or restore power supply.
  • turning on the privacy mode of the electronic device 100 includes cutting off the power supply of the above-mentioned first functional component, and turning off the privacy mode includes restoring the power supply of the above-mentioned first functional component; in this application scenario, the hardware switch can theoretically be used for Control privacy mode on and off.
  • the above-mentioned hardware switch may include one or more function buttons, such as a power button, a smart assistant button, a volume up button, a volume down button, etc., and may also include a new function dedicated to turning on/off the privacy mode. Buttons can also include a new paddle dedicated to turning on/off privacy mode.
  • input operation 1 and input operation 2 implemented through the hardware switch do not conflict with the business logic of the hardware switch.
  • the hardware switch includes a power button.
  • the input operation 1 to turn on the privacy mode includes pressing the power button three times in a row.
  • the power button When the user performs the input operation 1, the power button generates a signal 1.
  • the signal 1 includes three consecutive high levels; the security chip detects When three consecutive high levels are sent within the preset time 1 sent by the power button, it is determined to turn on the privacy mode.
  • the preset time 1 is 2S.
  • the hardware switch includes a volume up key and a volume down key.
  • the input operation 1 to turn on the privacy mode includes pressing the volume up key and the volume down key at the same time; when the user performs the input operation 1, the volume up key and the volume down key generate a high volume respectively. Level; the above signal 1 includes the high level generated by the volume up key and the volume down key respectively; when the security chip detects the high level sent by the volume up key and the volume down key respectively at the preset time 2, it is determined to turn on the privacy mode.
  • the preset time 2 is 0.5S.
  • the signal sent by the hardware switch is usually an analog signal, such as a high level.
  • an analog-to-digital converter can be connected between the hardware switch and the security chip.
  • the signal 1 received by the security chip is a digital signal converted from analog to digital by the analog-to-digital converter.
  • the security chip includes an analog-to-digital converter. After receiving the signal sent by the hardware switch, the security chip uses the analog-to-digital converter to convert the signal from an analog signal to a digital signal.
  • the signal 1 sent by the power button includes three consecutive high levels, and the signal 1 becomes the digital signal "111" after analog-to-digital conversion.
  • hardware switches can be used to implement input operation 1 and input operation 2, and input operation 1 and input operation 2 can be the same or different.
  • input operation 1 and input operation 2 are the same, and signal 1 and signal 2 generated by the hardware switch are also the same.
  • the hardware switch sends signal 1 or signal 2 to the security chip; after the security chip receives the signal sent by the hardware switch, if the privacy mode currently recorded by the security chip is off, it switches the privacy mode to on; if the privacy mode currently recorded by the security chip is mode is on, switch privacy mode to off.
  • the security chip can record the initial state of the privacy mode, which is usually an off state; of course, in some implementation solutions, the initial state can also be set to an on state, in this case There are no specific limitations.
  • input operation 1 and input operation 2 are different, and the signal 1 and signal 2 generated by the hardware switch are also different; the security chip can distinguish signal 1 and signal 2, and turn on the privacy mode according to signal 1. 2Turn off privacy mode.
  • the above-mentioned hardware switch includes a paddle dedicated for turning on/off the privacy mode.
  • the user can move the paddle to either the first position or the second position.
  • the first position can be used to indicate the on state (ON) of the privacy mode
  • the second position can be used to indicate the off state (OFF) of the privacy mode.
  • the above input operation 1 includes moving the pick to the first position
  • the signal 1 includes the high level generated by the pick
  • the above input operation 2 includes moving the pick to the second position
  • the signal 2 includes the low level generated by the pick. flat.
  • the above-mentioned hardware switch includes a button dedicated to turning on/off the privacy mode.
  • both input operation 1 and input operation 2 include pressing the above key once, and both signal 1 and signal 2 include a high level.
  • both input operation 1 and input operation 2 include long pressing the above button, and both signal 1 and signal 2 include at least N consecutive high levels, where N is a positive integer greater than 1, and the value of N is the same as the preset
  • the input operation 1 is related to the long press time.
  • input operation 1 includes pressing the above key once, and input operation 2 includes long pressing the above key.
  • the electronic device 100 may include a folding screen and a first sensor, and the sensor data detected by the first sensor may be used to determine whether the folding screen is in the first posture, such as the aforementioned forward folding configuration.
  • the above-mentioned first sensor may include one or more of a Hall sensor, a gyroscope sensor, an acceleration sensor, and an angle sensor.
  • the sensors included in the first sensor may be directly or indirectly connected to the security chip through circuit wiring.
  • the first sensor can directly transmit the detected sensor data to the security chip through circuit traces.
  • the security chip determines that the folding screen is in a preset posture based on the sensor data, it sends a notification to the control module.
  • the security chip determines that the above-mentioned folding screen has been adjusted from the preset posture to the second posture, it sends a power-on command to the above-mentioned control module. For example, adjust from a forward folded form to an unfolded form.
  • the first posture may also be called a preset posture.
  • the data detected by the first sensor usually also includes analog signals.
  • the embodiment of the present application can convert the analog signal detected by the first sensor into a digital signal.
  • the embodiment of the present application does not specifically limit the preset posture.
  • the electronic device 100 can set the preset posture in advance, and the user can also modify the preset posture in the electronic device 100 according to usage habits.
  • the preset posture may include any of the forms shown in Figures 1A to 2F, and the preset posture is also related to the orientation of the folding screen.
  • the preset posture means that the electronic device 100 is in a forward folding state, and the angle between the orientation of screen A and the Z-axis of the geographical coordinate system is less than the preset angle, such as 60 degrees.
  • the back of screen A includes a rear camera, and the angle between the orientation of screen A and the Z-axis of the geographical coordinate system is less than the preset angle, which means that the back of the rear camera faces the ground; the electronic device 100 is folded forward and the rear camera is on the back. Towards the ground, it indicates that the user's current intention to use the electronic device is smaller.
  • the security chip when the security chip determines that the folding screen is in a forward folding state and/or the hardware switch turns on the privacy mode, it sends a power-off command to the control module.
  • the security chip determines that the above-mentioned folding screen is unfolded from the forward folding form and/or the hardware switch turns off the privacy mode, it sends a power-on command to the above-mentioned control module.
  • FIG. 5 is a schematic flowchart of a method for controlling components provided by an embodiment of the present application. The method includes but is not limited to S101 to S106.
  • the electronic device 100 receives the user's input operation 1, and the input operation 1 is used to turn on the privacy mode.
  • the electronic device 100 Based on input operation 1, the electronic device 100 sends signal 1 to the security chip.
  • the electronic device 100 includes a hardware switch of the privacy mode, and is also preset with an input operation 1 for turning on the privacy mode implemented through the hardware switch.
  • the above hardware switch and security chip are directly or indirectly connected through circuit traces.
  • the hardware switch can generate signal 1 and send signal 1 directly to the security chip through the circuit wiring.
  • Signal 1 is used to indicate turning on the privacy mode. Specifically, reference may be made to input operation 1 and signal 1 in the relevant description of FIG. 4B, which will not be described again here.
  • the above-mentioned input operation 1 may include touch operations, hover gestures, or voice commands; the above-mentioned touch operations include but are not limited to click, double-click, long press, finger sliding, finger dragging, or knuckle manipulation. Swipe and other operations.
  • the input operation 1 includes clicking a virtual control displayed on the electronic device 100 as an example for description.
  • the virtual control may be a switch icon of the privacy mode.
  • the touch screen of the electronic device 100 detects the input operation 1, it transmits the relevant information of the input operation 1 to the application framework layer through the kernel layer.
  • the above-mentioned relevant information includes the touch location and touch time.
  • the application framework layer recognizes that the input event corresponding to the input operation is clicking the switch icon of the privacy mode, and the response event is to turn on the privacy mode; the application framework layer sends signal 1 to the security chip through the kernel layer, and signal 1 is used to indicate turning on the privacy mode. .
  • the security chip sends a power-off instruction to the control module based on signal 1.
  • the power-off instruction is used to instruct to disconnect the power supply of the first functional component.
  • the security chip when it is determined to turn on the privacy mode according to signal 1, the security chip can switch the state of the privacy mode to the on state.
  • the security chip determines that the privacy mode is turned on, it sends a power-off instruction to the control module.
  • the power-down instruction is used to instruct to disconnect the power supply of the first functional component.
  • control module and the first functional component are the same module, the security chip and each first functional component are directly or indirectly connected through circuit wiring, and the security chip can send a download message to each first functional component respectively.
  • Power-off command; the first functional component can disconnect the power supply of the module according to the power-off command.
  • control module includes the aforementioned power management module.
  • the security chip and the power management module are directly or indirectly connected through circuit wiring.
  • the security chip sends a power-off command to the power management module; the power management module can perform the power-off command according to the The power-off command cuts off the power supply of each first functional component respectively.
  • the electronic device 100 displays prompt information; the prompt information is used to prompt that the privacy mode has been turned on and the first functional component has been powered off.
  • the security chip after sending the power-off command, sends instruction information 1 to the application framework layer, and the application framework layer calls the display module to display the above prompt information based on the instruction information 1.
  • the privacy mode can only be turned on through the above hardware switch.
  • the security chip can only be triggered by the hardware switch to send a power-off command.
  • the hardware switch, security chip, control module and first functional component all transmit signals through circuit wiring.
  • Third-party applications cannot tamper with or forge the power-off command sent by the security chip. command; therefore, third-party applications cannot turn on the privacy mode through the software system and cannot control the first functional component to disconnect power. It is understandable that after third-party applications maliciously control the first functional components such as cameras, microphones, bone conduction sensors, and positioning modules, users cannot use these modules in a timely manner, which greatly affects the user experience.
  • the electronic device 100 receives the user's input operation 2 on the hardware switch.
  • the input operation 2 is used to turn off the privacy mode.
  • the hardware switch sends signal 2 to the security chip.
  • the electronic device 100 includes a hardware switch for the privacy mode, and is also preset with an input operation for turning off the privacy mode through the hardware switch. Make 2.
  • the above hardware switch and security chip are directly or indirectly connected through circuit traces.
  • the hardware switch can generate signal 2 and send signal 2 directly to the security chip through the circuit wiring. Specifically, reference may be made to input operation 2 and signal 2 in the relevant description of FIG. 4B, which will not be described again here.
  • the security chip sends a power-on instruction to the control module based on signal 2.
  • the power-on instruction is used to instruct the restoration of power supply to the first functional component.
  • the security chip can determine to turn off the privacy mode according to signal 2, and the security chip can update and record the status of the privacy mode as the off state.
  • the security chip determines to turn off the privacy mode, it sends a power-on instruction to the above-mentioned control module.
  • the power-on instruction is used to instruct to restore the power supply of the first functional component.
  • control module and the first functional components are the same module, the security chip and each first functional component are directly or indirectly connected through circuit wiring, and the security chip can send signals to multiple first functional components respectively. Power-on command; the first functional component can disconnect the power supply of the module according to the power-on command.
  • control module includes the aforementioned power management module.
  • the security chip and the power management module are directly or indirectly connected through circuit wiring.
  • the security chip sends a power-on instruction to the power management module; the power management module can perform the power-on command according to the The power-on command cuts off the power supply of each first functional component respectively.
  • the electronic device 100 displays prompt information; the prompt information is used to prompt that the privacy mode has been turned off and the power supply of the first functional component has been restored.
  • the security chip after sending the power-on command, sends instruction information 2 to the application framework layer, and the application framework layer calls the display module to display the above prompt information based on the instruction information 2.
  • the hardware switch includes a power button
  • the first functional component includes a camera
  • both input operation 1 and input operation 2 include pressing the power button three times in a row.
  • Figures 6A to 6C show that the user controls the power button through the hardware switch. Schematic diagram of disconnecting and restoring power to the camera.
  • the electronic device 100 displays the user interface 11; after the user presses the power button three times in a row, the signal generated by the power button triggers the camera to disconnect the power supply, and the electronic device 100 displays prompt information 101.
  • the prompt information 101 is used to It indicates that the privacy mode is turned on and the camera, microphone and GPS locator are powered off.
  • the user interface 11 may include an icon 102 of the camera application; after the camera is powered off, the user clicks the icon 102 to trigger the electronic device 100 to display the shooting interface 12 of the camera application; the shooting interface 12 includes a preview area 103. 103 is used to display images collected by the camera.
  • the electronic device 100 can also display prompt information 104 on the shooting interface 12 .
  • the prompt information 104 is used to prompt that the privacy mode can be turned off and the camera can be turned on by pressing the power button three times in a row.
  • the signal generated by the power button triggers the camera to resume power supply.
  • the electronic device 100 displays the image collected by the camera in the preview area 103 of the shooting interface 12, and can also display prompt information 105.
  • the prompt information 105 is used to prompt that the privacy mode has been turned off and restore the power supply of the camera.
  • the user turns off the privacy mode through a hardware switch.
  • the security chip can only be triggered by the hardware switch to send the power-on command.
  • the hardware switch, security chip, control module and first functional component all transmit signals through circuit wiring.
  • Third-party applications cannot tamper with or forge the power-on command sent by the security chip. instruction. Therefore, after the first functional component is powered off, the first functional component can be triggered to restore power through signal control between hardware modules. Third-party applications cannot trigger the first functional component to restore power through the software system, and naturally cannot further control the first functional component. Collect users' private information to achieve a safer privacy mode, namely super privacy mode.
  • users can turn on and off the privacy mode at any time through the hardware switch, realizing rapid switching between privacy mode and normal services to avoid affecting the user experience of normal services.
  • the actual functional manifestation of input operation 1 includes controlling the power-off of the above-mentioned first functional component; the actual functional manifestation of input operation 2 includes controlling the above-mentioned first functional component to reconnect the power supply.
  • turning on the privacy mode of the electronic device 100 includes disconnecting the power supply of the above-mentioned first functional component, and turning on the privacy mode includes restoring the power supply of the above-mentioned first functional component; therefore, this application scenario
  • input operation 1 is used to turn on privacy mode
  • input operation 2 is used to turn off privacy mode. It can be understood that the method of controlling components provided in the embodiments of the present application may not involve the privacy mode.
  • FIG. 7 is a schematic flowchart of another method of controlling components provided by an embodiment of the present application. This method is suitable for an electronic device 100 configured with a folding screen. The method includes but is not limited to S107 to S112.
  • the electronic device 100 When the electronic device 100 is in the preset posture, the first sensor acquires the signal 3.
  • the electronic device 100 includes a folding screen and the first sensor.
  • the first sensor sends signal 3 to the security chip.
  • Signal 3 is used to indicate that the electronic device 100 is in a preset posture.
  • the electronic device 100 may include a folding screen, and the electronic device 100 may divide the folding screen into an A screen and a B screen along a folding edge.
  • the electronic device 100 further includes a first sensor, and sensor data detected by the first sensor, such as signal 3, may be used to determine whether the electronic device 100 Whether the device 100 is in a preset posture, such as the forward folding form shown in Figure 1D and Figure 2D.
  • the first sensor can be directly or indirectly connected to the security chip through circuit wiring.
  • the first sensor can transmit the detected sensor data to the security chip through circuit wiring.
  • the security chip can determine whether the folding screen is in a preset posture based on the above sensor data. . It can be understood that when the user adjusts the posture of the electronic device 100 to the preset posture, the signal 3 detected by the first sensor can be used to indicate that the electronic device 100 is in the preset posture.
  • the first sensor may include one or more of a Hall sensor, an angle sensor, a gyroscope sensor, and an acceleration sensor, which are not specifically limited here.
  • the first sensor includes a Hall sensor
  • the preset posture includes a forward folded form.
  • screen A of the folding screen is provided with a Hall sensor
  • screen B is provided with a magnet; when the user folds the electronic device 100 inward into a forward folding form, the Hall sensor in screen A is close to the magnet in screen B. , the magnetic field intensity sensed by the Hall sensor exceeds the preset value 1, and the Hall sensor outputs a low-level signal.
  • the signal 3 sent by the first sensor to the security chip includes the above-mentioned low-level signal, and the above-mentioned low-level signal can be used to instruct the attitude of the electronic device 100 to be adjusted to the forward folding configuration.
  • the Hall sensor in the above example is a switch-type Hall sensor.
  • the Hall sensor involved in the embodiment of the present application may also be a key-type or linear type, which is not specifically limited here.
  • the first sensor includes an angle sensor.
  • the angle sensor is installed on a folding part of the electronic device 100, such as a rotating shaft.
  • the electronic device 100 can measure the angle between adjacent screens of the folding screen through the angle sensor. For example, the angle ⁇ between screen A and screen B.
  • the signal 3 sent by the first sensor to the security chip includes the included angle ⁇ .
  • the security chip can determine whether the electronic device 100 is in a preset posture according to the included angle ⁇ .
  • the preset posture includes a forward folding configuration; when the included angle ⁇ is within the range of [0[, P1), the security chip determines that the electronic device 100 is in a forward folding configuration.
  • P1 may be a preset error value set by the electronic device 100 or the user.
  • P1 can be 5[.
  • screen A is provided with gyro sensor A
  • screen B is provided with gyro sensor B
  • the first sensor includes gyro sensor A and gyro sensor B.
  • Gyro sensor A can detect the angular velocity of screen A around the three axes of the coordinate system
  • gyro sensor B can detect the angular velocity of screen B around the above three axes.
  • the signal 3 sent by the first sensor to the security chip includes the angular velocity of screen A around the above three axes and the angular velocity of screen B around the above three axes.
  • the security chip can determine the orientation of screen A based on the angular velocity of screen A around the above three axes, and the orientation of screen B based on the angular velocity of screen B around the above three axes; the security chip can determine the orientation of screen A based on the orientations of screen A and screen B. and the B screen, and then determine whether the electronic device 100 is in the preset posture according to the included angle ⁇ .
  • screen A is provided with acceleration sensor A
  • screen B is provided with acceleration sensor B
  • the first sensor includes acceleration sensor A and acceleration sensor B.
  • Acceleration sensor A can detect the acceleration of screen A along the three axes of the coordinate system
  • acceleration sensor B can detect the acceleration of screen B along the above three axes.
  • the signal 3 sent by the first sensor to the security chip includes the acceleration of screen A along the above three axes and the acceleration of screen B along the above three axes.
  • the security chip can use the acceleration of screen A along the above three axes and the acceleration of screen B along the above three axes to determine the rotation angle of screen A relative to screen B, that is, the angle ⁇ between screen A and screen B; and then based on the angle ⁇ It may be determined whether the electronic device 100 is in a preset posture.
  • the security chip determines that the electronic device is in a preset posture based on signal 3, it sends a power-off command to the control module.
  • the power-off command is used to instruct to disconnect the power supply of the first functional component.
  • the security chip determines that the electronic device is in the preset posture based on signal 3
  • the privacy mode is turned on, and the status of the privacy mode is updated and recorded as the on state.
  • the security chip determines that the privacy mode is turned on, it sends a power-off command to the above-mentioned control module. Specifically, reference may be made to the relevant description of step S103, which will not be described again here.
  • the user turns on the privacy mode by folding the posture of the electronic device 100 into the preset posture, and the security chip identifies the preset posture through the data detected by the first sensor.
  • the first sensor triggers the security chip to send a power-off command.
  • the first sensor, security chip, control module and first functional component all transmit signals through the circuit wiring between the hardware modules.
  • Third-party applications cannot tamper with or forge the security chip. The power-off command sent; therefore, the third-party application cannot turn on the privacy mode through the software system to prevent the third-party application from maliciously controlling the first functional component to disconnect the power supply.
  • the first sensor sends signal 4 to the security chip.
  • Signal 4 is used to indicate that the electronic device 100 is in the second posture.
  • the first sensor can transmit the detected sensor data to the security chip through circuit wiring in real time.
  • the signal 4 detected by the first sensor can be used to indicate the electronic device. 100 is in the second posture; the first sensor transmits the detected signal 4 to the security chip, and the security chip can determine based on the signal 4 that the electronic device 100 has adjusted from the preset posture to the second posture.
  • the above-mentioned second posture includes any posture other than the preset posture.
  • the preset posture includes a forward folding form
  • the security chip determines based on the signal 4 that the electronic device 100 is unfolded from the forward folding form.
  • the above-mentioned second posture includes one or more specific postures.
  • the preset posture includes a forward folded form
  • the second posture includes the aforementioned unfolded form.
  • the first sensor includes a Hall sensor
  • the preset posture includes a forward folded form.
  • the Hall sensor in screen A is away from the magnet in screen B, and when the magnetic field intensity sensed by the Hall sensor is less than the preset value 2, the Hall sensor The sensor outputs a high level signal.
  • the signal 4 sent by the first sensor to the security chip includes the above-mentioned high-level signal, and the above-mentioned high-level signal can be used to instruct the electronic device 100 to unfold from the forward folding configuration.
  • the first sensor includes an angle sensor, a gyroscope sensor or an acceleration sensor; the security chip can determine the angle ⁇ between the A screen and the B screen based on the signal 4, and then determine the electronic device 100 based on the included angle ⁇ . Whether it is in the default posture.
  • the preset posture includes a forward folding form, and when the angle ⁇ is not within the range of [0[, P1), it is determined that the electronic device 100 is not in the preset posture.
  • signal 3 for signal 4 which will not be described again here.
  • the security chip determines that the electronic device 100 is adjusted from the preset posture to the second posture based on the signal 4, it sends a power-on instruction to the control module.
  • the power-on instruction is used to instruct the restoration of power supply to the first functional component.
  • the security chip determines based on the signal 4 that the electronic device 100 is adjusted from the preset posture to the second posture, the privacy mode is turned off, and the status of the privacy mode is updated and recorded as the off state.
  • the security chip determines to turn off the privacy mode, it sends a power-on instruction to the control module.
  • the power-on instruction is used to instruct to restore the power supply of the first functional component. Specifically, reference may be made to the relevant description of step S106, which will not be described again here.
  • the user turns off the privacy mode by adjusting the electronic device 100 from the preset posture to the second posture, that is, triggering the first functional component to restore power supply through the first sensor.
  • the first sensor triggers the security chip to send a power-on command.
  • the first sensor, security chip, power management module and first functional component all transmit signals through circuit wiring.
  • Third-party applications cannot tamper with or forge the power-on command sent by the security chip. Electrical command. Therefore, after the first functional component is powered off, the first functional component can be triggered to restore power through signal control between hardware modules. Third-party applications cannot trigger the first functional component to restore power through the software system, and naturally cannot further control the first functional component. Collect users’ private information.
  • the user can control the privacy mode by folding and unfolding the electronic device 100 at any time, and realizes seamless switching between the privacy mode and normal services between folding and unfolding, so as to avoid affecting the user's experience of normal services.
  • FIG. 8A is a schematic flowchart of another method of controlling components provided by an embodiment of the present application. This method is suitable for an electronic device 100 configured with a folding screen. As shown in FIG. 8A , after the electronic device 100 performs steps S101-S102 and steps S107-S108, it may also perform S113. After the electronic device 100 performs steps S104-S105 and/or steps S110-S111, it may also perform S114.
  • steps S101-S102, steps S107-S108, steps S104-S105, and steps S110-S111 reference may be made to the relevant descriptions of the foregoing embodiments, and will not be described again here.
  • the security chip Based on signal 1 and signal 3, the security chip sends a power-off instruction to the control module.
  • the power-off instruction is used to instruct to disconnect the power supply of the first functional component.
  • the security chip sends a power-on instruction to the control module based on signal 2 and/or signal 4.
  • the power-on instruction is used to instruct the restoration of power supply to the first functional component.
  • the electronic device 100 performs steps S101-S102 and S107-S108, and performs step S113, that is, after the user folds the electronic device 100 into a preset posture and performs the input operation 1 through the hardware switch, the safety The chip only sends the power-off command based on signal 1 and signal 3.
  • step S113 may specifically include steps S201 to S203, and step S114 may specifically include steps S204 to S206.
  • the user first performs input operation 1, and then folds the electronic device 100 into the preset posture; that is, the electronic device 100 first performs steps S101-S102 to generate signal 1, and then performs steps S107-S108 to generate signal 3. .
  • the security chip determines whether to enter the standby state based on the signal transmitted in real time by the hardware switch; when the security chip receives the signal 1 transmitted by the hardware switch indicating entering the standby state, the security chip enters the standby state. It can be understood that after the electronic device 100 executes S101-S102, the security chip receives the signal 1, and the security chip records that it has currently entered the standby state.
  • S203 in the standby state, when the security chip determines that the electronic device 100 is in a preset posture according to the signal 3 transmitted by the first sensor, S203 is executed.
  • the security chip determines whether the electronic device 100 is currently in a preset posture according to the signal transmitted in real time by the first sensor; if so, perform S203, that is, send a power-off command. It can be understood that after the electronic device 100 executes S107-S108, the security chip may determine that the electronic device 100 is in the preset posture based on the signal 3 sent by the first sensor.
  • the security chip sends a power-off command to the control module.
  • the power-off command is used to instruct to disconnect the power supply of the first functional component.
  • the hardware switch sends The signal is used to turn on or off the standby state; this standby state can also be called the privacy mode standby state, or the power-on/off standby state.
  • this standby state can also be called the privacy mode standby state, or the power-on/off standby state.
  • the signal 1 generated by the hardware switch is used to turn on the standby state of the privacy mode
  • the signal 2 generated by the hardware switch is used to turn off the privacy mode. of standby status.
  • the electronic device 100 when entering the standby state, displays prompt information; the prompt information is used to prompt that it has entered the standby state, the privacy mode can be turned on through the preset posture, and the preset posture can be adjusted to the third Second gesture turns off privacy mode.
  • the security chip after receiving signal 1, the security chip sends indication information 3 to the application framework layer, and the application framework layer calls the display module to display the above prompt information based on the indication information 3.
  • the user can control the privacy mode to be turned on or off by changing the posture of the electronic device 100, that is, controlling the first functional component to disconnect or restore power supply. It can be understood that when the electronic device 100 does not enter the standby state through the input operation 1, no matter what posture the electronic device 100 is in, it will not trigger the first functional component to turn off the power.
  • the security chip of the electronic device 100 can execute S204 and S205 respectively.
  • S204 when the security chip determines that the electronic device 100 is adjusted from the preset posture to the second posture according to the signal 4 transmitted by the first sensor, S206 is executed.
  • the security chip determines whether the electronic device 100 is adjusted from the preset posture to the second posture according to the signal transmitted by the first sensor; if so, S206 is executed, that is, sending the upper Electrical command. It can be understood that the user adjusts the electronic device 100 to the second posture. After the electronic device 100 executes S110-S111, the security chip can determine based on the signal 4 sent by the first sensor that the electronic device 100 is adjusted from the preset posture to the second posture.
  • the security chip can receive the signal 2 sent by the hardware switch.
  • the security chip stores a preset field.
  • the value of the preset field is a first value, it indicates that the current state has entered the standby state; when the value of the preset field is a second value, it indicates that the current state has exited the standby state.
  • the security chip After the security chip receives the signal 1, it can update the value of the above-mentioned preset field to the first value; after the security chip receives the signal 2 sent by the hardware switch, it can update the value of the above-mentioned preset field to the second value.
  • the first value is equal to 1 and the second value is equal to 0.
  • the security chip sends a power-on instruction to the control module, and the power-on instruction is used to instruct the restoration of power supply to the first functional component.
  • the user adjusts the electronic device to the second posture, which can trigger the electronic device 100 to turn off the privacy mode and restore the power supply to the first functional component.
  • the user performs input operation 2 through the hardware switch, which can trigger the electronic device 100 to exit the standby state.
  • S204 if signal 2 is received, S204 is executed. That is, when exiting the standby state, if the electronic device 100 is still in the preset posture and the first functional component is still powered off, it will wait for the user to adjust the posture of the electronic device 100 to the second posture to trigger the first functional component to restore power. After exiting the standby state and restoring power to the first functional component, the user can no longer control the first functional component to disconnect and restore power by changing the posture of the electronic device 100, that is, to control the privacy mode to turn on and off.
  • S206 if signal 2 is received, S206 is executed. That is, when signal 2 triggers the electronic device 100 to exit the standby state, it also directly triggers the first functional component to resume power supply, even if the electronic device 100 is still in the preset posture.
  • step S113 may specifically include steps S301 to S303.
  • the user first folds the electronic device 100 into the preset posture, and then performs input operation 1; that is, the electronic device 100 first performs steps S107-S108 to generate signal 3, and then performs steps S101-S102 to generate signal 1. .
  • the security chip determines that the electronic device 100 is in a preset posture according to the signal 3 transmitted by the first sensor.
  • the first sensor transmits the detected signal to the security chip in real time, and the security chip determines whether the posture of the electronic device 100 is adjusted to the preset posture according to the signal transmitted by the first sensor; if so, perform S302 .
  • S303 when the security chip receives signal 1 in the preset posture, S303 is executed.
  • Signal 1 is used to indicate turning on the privacy mode.
  • the security chip determines whether the signal 1 transmitted by the hardware switch is received; if so, S303 is executed, that is, a power-off command is sent.
  • the security chip sends a power-off command to the control module, and the power-off command is used to instruct to disconnect the power supply of the first functional component.
  • the user can control the privacy mode to be turned on or off through the hardware switch, that is, to control the first functional component to disconnect or restore power supply.
  • the first functional component will not be triggered to disconnect the power supply.
  • the user when the user folds the electronic device 100 into the preset posture, the user does not want the first functional component to turn off the power; compared with the "only triggering the first functional component to turn off the power through the preset posture" provided in Figure 7
  • the user in the preset posture, the user can decide according to his own needs whether to trigger the first functional component to disconnect the power supply through the hardware switch.
  • the security chip of the electronic device 100 can execute S304 and S305 respectively.
  • S304 when the security chip receives signal 2 transmitted by the hardware switch, S306 is executed. Signal 2 is used to indicate exiting the privacy mode.
  • the security chip determines whether the signal 2 transmitted by the hardware switch is received; if so, S306 is executed, that is, a power-on command is sent.
  • S305 when the security chip determines that the electronic device 100 is adjusted from the preset posture to the second posture according to the signal 4 transmitted by the first sensor, S304 or S306 is executed.
  • the security chip determines whether the electronic device 100 is adjusted from the preset posture to the second posture according to the signal transmitted by the first sensor; if so, perform S306, that is, send Power-on command.
  • the security chip sends a power-on instruction to the control module, and the power-on instruction is used to instruct the restoration of power supply to the first functional component.
  • the user can control the first functional component to disconnect/restore power supply through the hardware switch, that is, to turn on/off the privacy mode.
  • S305 if the posture is adjusted to the second posture, S304 is executed. That is, when the user adjusts the preset posture of the electronic device 100 to the second posture, if the first functional component is still powered off and the privacy mode is on, the user will wait for the user to control the first functional component to restore power through the hardware switch this time. After adjusting to the second posture and restoring power to the first functional component, the user cannot control the first functional component to disconnect and restore power through the hardware switch.
  • S306 is executed. That is, the user adjusts the preset posture of the electronic device 100 to the second posture, and directly triggers the first functional component to resume power supply without the user operating a hardware switch.
  • the security chip can be triggered by the hardware switch and the first sensor to send a power-off command.
  • the hardware switch, the first sensor, the security chip, the control module and the first functional component all conduct signals through circuit wiring. transmission, third-party applications cannot tamper with or forge the power-off instructions sent by the security chip. In this way, it is avoided that the third-party application turns on the privacy mode through the software system and the third-party application maliciously controls the first functional component to disconnect the power supply.
  • the security chip is triggered by the hardware switch and/or the first sensor to send a power-on command. That is, the first functional component can be triggered to restore power through signal control between hardware modules.
  • the third-party application cannot trigger the first functional component to restore power through the software system, and naturally cannot further control the first functional component to collect the user's private information.
  • the user in the standby state, the user can turn on and off the privacy mode at any time by adjusting the posture of the electronic device 100; in the solution provided in Figure 8C, in the preset posture, the user can turn on and off the privacy mode at any time through the hardware switch. Privacy mode; both realize rapid switching between privacy mode and normal business, ensuring user experience.
  • the electronic device 100 can trigger the first functional component to turn off the power through a hardware switch or by folding the electronic device 100 into a preset posture. That is, after executing any one of S101-S102 and S107-S108, the electronic device 100 executes S113. For example, after the user performs input operation 1 through the hardware switch, the security chip sends a power-off instruction based on signal 1; or after the user folds the electronic device 100 to a preset posture, the security chip sends a power-off instruction based on signal 3. In this way, more choices are provided for users while ensuring information security. Users can trigger the first functional component to disconnect the power supply in a variety of ways to meet the needs of different users.
  • the electronic device 100 can trigger the first functional component to restore power through a hardware switch or adjusting the preset posture to the second posture. That is, after executing any one of S104-S105 and S110-S111, the electronic device 100 executes S114. In this way, more choices are provided for users while ensuring information security. Users can trigger the first functional component to restore power supply in a variety of ways to meet the needs of different users.
  • FIG. 9A shows a schematic structural diagram of the electronic device 100 provided by this application.
  • this application provides an electronic device.
  • the electronic device includes a folding screen, a first sensor, a security chip, a control module and a first functional component.
  • the first sensor, security chip and control module are connected through a circuit. wires connected directly or indirectly.
  • the first sensor is used to detect the user's first operation; the first sensor is also used to send first sensor data to the security chip according to the first operation, and the first sensor data is used to indicate the posture of the electronic device; the security chip,
  • the first control instruction is used to send a first control instruction to the control module according to the attitude indicated by the first sensor data.
  • the first control instruction is used to instruct the power supply of the first functional component to be disconnected.
  • the control module is used to control the first functional component to disconnect or connect the power supply.
  • the first sensor is also used to detect the user's second operation; the first sensor is also used to detect the user's second operation according to the second operation.
  • the operation is to send second sensor data to the security chip.
  • the second sensor data is used to indicate the attitude of the electronic device.
  • the security chip is also used to send a second control instruction to the control module according to the attitude indicated by the second sensor data.
  • the second control instruction is Used to indicate the restoration of power supply to the first functional component.
  • the first sensor data may include the aforementioned signal 3
  • the second sensor data may include the aforementioned signal 4
  • the first control instruction may include the aforementioned power-off instruction
  • the second control instruction may include the aforementioned power-on instruction.
  • the first operation includes an operation of adjusting the posture of the electronic device to the first posture, and the first sensor data is used to determine whether the electronic device is in the first posture; the above-mentioned posture indicated by the first sensor data,
  • Sending the first control instruction to the control module includes: sending the first control instruction to the control module when it is determined based on the first number of sensors that the electronic device is in the first posture.
  • the second operation includes an operation of adjusting the first posture of the electronic device to the second posture, and the second sensor data is used to determine whether the electronic device is in the second posture; the above-mentioned operation indicated by the second sensor data posture, sending a second control instruction to the control module includes: sending a second control instruction to the control module when it is determined based on the second sensor data that the electronic device is adjusted from the first posture to the second posture.
  • the first operation includes turning on the privacy mode
  • the second operation includes turning off the privacy mode
  • FIG. 9B shows another schematic structural diagram of the electronic device 100 provided by this application.
  • the electronic device includes a detection component, a security chip, a control module and a first functional component.
  • the detection component, security chip and control module are directly or indirectly connected through circuit wiring.
  • the detection component is used to detect the user's first operation; the detection component is also used to send a first control signal to the security chip according to the first operation, and the first control signal is used to instruct to disconnect the power supply of the first functional component;
  • the security chip is used to send a first control instruction to the control module according to the first control signal, and the first control instruction is used to instruct the power supply of the first functional component to be disconnected;
  • the control module is used to control the first functional component to disconnect or connect the power supply.
  • the detection component is also used to detect the user's second operation; the detection component is also used to send a second control signal to the security chip according to the second operation, and the second control signal is used to indicate recovery.
  • the power supply of the first functional component; the security chip is also used to send a second control instruction to the control module according to the second control signal, and the second control instruction is used to instruct to restore the power supply of the first functional component.
  • the detection component may include the aforementioned hardware switch
  • the first operation may include the aforementioned input operation 1
  • the second operation may include the aforementioned input operation 2
  • the first control signal may include the aforementioned signal 1
  • the second control signal may include The aforementioned signal 2
  • the first control instruction may include the aforementioned power-off instruction
  • the second control instruction may be the aforementioned power-on instruction.
  • the first operation includes an operation acting on the detection component, and the first control signal includes a signal generated by the detection component according to the first operation;
  • the second operation includes an operation acting on the detection component, and the second control signal Includes detecting a signal generated by the component in response to the second operation.
  • the first operation includes turning on the privacy mode
  • the second operation includes turning off the privacy mode
  • the electronic device includes a folding screen
  • the detection component includes a hardware switch and a first sensor
  • the first operation includes an operation acting on the hardware switch, and an operation of adjusting the posture of the electronic device to the first posture.
  • a control signal includes a first switch signal generated by the hardware switch according to the first operation, and first sensor data collected by the first sensor. The first sensor data is used to determine whether the electronic device is in the first posture; the second operation includes acting on the hardware The operation of the switch, and/or the operation of adjusting the first posture of the electronic device to the second posture, the first control signal includes a second switch signal generated by the hardware switch according to the second operation, and/or the first sensor collected by the first switch.
  • the second sensor data is used to determine whether the electronic device is in the second posture;
  • the above-mentioned sending the first control signal to the security chip includes: the hardware switch sends the first switch signal to the security chip; the first sensor sends the first switch signal to the security chip A sensor data;
  • the above-mentioned sending the first control instruction to the control module according to the first control signal includes: receiving the first switch signal and determining that the electronic device is in the first posture according to the first sensor data, sending the first control instruction to the control module.
  • the above-mentioned sending of the second control signal to the security chip includes: the hardware switch sends the second switch signal to the security chip, and/or the first sensor sends the second sensor data to the security chip; the above-mentioned sending of the second control signal to the control module according to the second control signal Sending the second control instruction includes: receiving the first switch signal, and/or sending the second control instruction to the control module when it is determined according to the second control signal that the electronic device is adjusted from the first posture to the second posture.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device.
  • the computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, e.g., the computer-readable storage medium
  • Computer instructions can be sent from one website, computer, server or data center to another website, computer, server through wired (such as coaxial cable, optical fiber, digital subscriber line) or wireless (such as infrared, wireless, microwave, etc.) means or data center for transmission.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains one or more available media integrated.
  • the available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, solid state disk (SSD)), etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Databases & Information Systems (AREA)
  • Computing Systems (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请公开了控制部件的方法及相关装置,相关装置包括电子设备,电子设备包括折叠屏、第一传感器、安全芯片、控制模块和第一功能部件,第一传感器、安全芯片和控制模块通过电路走线直接或间接连接;控制模块用于控制第一功能部件断开或连接电源;第一传感器,用于检测用户的第一操作;第一传感器,还用于根据第一操作向安全芯片发送第一传感器数据,传感器数据用于指示电子设备的姿态;安全芯片,用于根据第一传感器数据指示的姿态向控制模块发送第一控制指令,第一控制指令用于指示断开第一功能部件的供电。这样,可以有效避免第一功能部件的信息外泄,保障用户的信息安全,提高用户的使用体验。

Description

控制部件的方法及相关装置
本申请要求于2022年7月22日提交中国专利局、申请号为202210868752.4、申请名称为“控制部件的方法及相关装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及电子技术领域,尤其涉及控制部件的方法及相关装置。
背景技术
智能终端(例如手机)在生活中发挥着越来越重要的作用,同时智能终端的隐私保护也越来越受用户的关注。智能终端安装的部分第三方应用会利用麦克风、摄像头、定位模块等功能部件非法窃取用户的隐私信息,在有保密需求的场景(例如重要会议)下,隐私信息外泄可能对用户造成重大损失。目前,智能终端通常通过软件层面避免第三方应用在后台利用上述功能部件窃取用户信息。例如,第三方应用请求获取麦克风采集的音频数据时,在软件驱动层将麦克风采集的音频数据替换为空数据,将上述空数据通过应用程序框架层发送给第三方应用。
然而,第三方应用可以非法获取设备的root权限,利用root权限依然可以绕过软件层面继续获取上述功能部件采集的数据。因此,上述方案依然存在信息泄露风险。
发明内容
本申请提供了控制部件的方法及相关装置,可以有效避免第一功能部件的信息外泄,保障用户的信息安全,提高用户的使用体验。
第一方面,本申请提供了一种电子设备,所述电子设备包括折叠屏、第一传感器、安全芯片、控制模块和第一功能部件,第一传感器、安全芯片和控制模块通过电路走线直接或间接连接;控制模块用于控制第一功能部件断开或连接电源;第一传感器,用于检测用户的第一操作;第一传感器,还用于根据第一操作向安全芯片发送第一传感器数据,第一传感器数据用于指示电子设备的姿态;安全芯片,用于根据第一传感器数据指示的姿态向控制模块发送第一控制指令,第一控制指令用于指示断开第一功能部件的供电。
实施本申请实施例,第一传感器检测用户将电子设备调整为预设姿态的操作时,生成第一传感器数据,通过第一传感器数据可以触发安全芯片向控制模块下发指令,指示控制模块断开第一功能部件的供电。这样,用户可以通过调整电子设备的姿态,控制第一功能部件断电,有效避免了第一功能部件的隐私信息外泄,保障用户的信息安全,提高用户的使用体验。此外,上述第一传感器、安全芯片、控制模块和第一功能部件均通过硬件模块间的电路走线进行信号传输,第三方应用不能篡改和伪造安全芯片发送的指令;因此,第三方应用无法通过软件系统控制第一功能部件断电,避免了第三方应用恶意控制第一功能部件断电。
在一种实现方式中,第一传感器,还用于检测用户的第二操作;第一传感器,还用于根据第二操作向安全芯片发送第二传感器数据,第二传感器数据用于指示电子设备的姿态;安全芯片,还用于根据第二传感器数据指示的姿态,向控制模块发送第二控制指令,第二控制指令用于指示恢复第一功能部件的供电。
实施本申请实施例,第一功能部件断电后,用户可以通过调整电子设备的姿态,控制第一功能部件恢复供电。上述第一传感器、安全芯片、控制模块和第一功能部件均通过硬件模块间的电路走线进行信号传输,第三方应用不能篡改和伪造安全芯片发送的指令;因此,第一功能部件断电后,第三方应用无法通过软件系统控制第一功能部件恢复供电,自然也不能进一步控制第一功能部件采集用户的隐私信息,保障了用户的信息安全。
在一种实现方式中,第一操作包括调整电子设备的姿态为第一姿态的操作,第一传感器数据用于确定电子设备是否处于第一姿态;上述根据第一传感器数据指示的姿态,向控制模块发送第一控制指令,包括:根据第一传感器数确定电子设备处于第一姿态时,向控制模块发送第一控制指令。
实施本申请实施例,用户可以通过调整电子设备的姿态为第一姿态,控制第一功能部件断电,有效避免了第一功能部件的隐私信息外泄,保障用户的信息安全,提高用户的使用体验。
在一种实现方式中,第二操作包括调整电子设备的第一姿态为第二姿态的操作,第二传感器数据用于确定电子设备是否处于第二姿态;上述根据第二传感器数据指示的姿态,向控制模块发送第二控制指令,包括:根据第二传感器数据确定电子设备由第一姿态调整为第二姿态时,向控制模块发送第二控制指令。
实施本申请实施例,用户可以通过调整电子设备的姿态,来控制第一功能部件断电和恢复供电,实现 了隐私模式与正常业务间的快速切换,保障了用户的使用体验。
在一种实现方式中,第一操作包括开启隐私模式,第二操作包括关闭隐私模式。
实施本申请实施例,用户可以通过第一操作开启隐私模式,开启隐私模式包括控制第一功能部件断电;用户还可以通过第二操作关闭隐私模式,关闭隐私模式包括控制第一功能部件恢复供电。这样,可以有效避免第一功能部件的信息外泄,保障用户的信息安全,提高用户的使用体验。
第二方面,本申请提供了一种电子设备,所述电子设备包括检测部件、安全芯片、控制模块和第一功能部件,检测部件、安全芯片和控制模块通过电路走线直接或间接连接;控制模块用于控制第一功能部件断开或连接电源;检测部件,用于检测用户的第一操作;检测部件,还用于根据第一操作,向安全芯片发送第一控制信号,第一控制信号用于指示断开第一功能部件的供电;安全芯片,用于根据第一控制信号向控制模块发送第一控制指令,第一控制指令用于指示断开第一功能部件的供电。
实施本申请实施例,用户通过检测部件实施第一操作时,检测部件可以获取第一控制信号,并通过该控制信号触发安全芯片向控制模块下发指令,指示控制模块断开第一功能部件的供电。这样,用户可以通过检测部件控制第一功能部件断电,有效避免了第一功能部件的隐私信息外泄,保障用户的信息安全,提高用户的使用体验。此外,上述检测部件、安全芯片、控制模块和第一功能部件均通过硬件模块间的电路走线进行信号传输,第三方应用不能篡改和伪造安全芯片发送的指令;因此,第三方应用无法通过软件系统控制第一功能部件断电,避免了第三方应用恶意控制第一功能部件断电。
在一种实现方式中,检测部件,还用于检测用户的第二操作;检测部件,还用于根据第二操作,向安全芯片发送第二控制信号,第二控制信号用于指示恢复第一功能部件的供电;安全芯片,还用于根据第二控制信号向控制模块发送第二控制指令,第二控制指令用于指示恢复第一功能部件的供电。
实施本申请实施例,第一功能部件断电后,用户可以通过检测部件控制第一功能部件恢复供电;上述检测部件、安全芯片、控制模块和第一功能部件均通过硬件模块间的电路走线进行信号传输,第三方应用不能篡改和伪造安全芯片发送的指令;因此,第一功能部件断电后,第三方应用无法通过软件系统控制第一功能部件恢复供电,自然也不能进一步控制第一功能部件采集用户的隐私信息,保障了用户的信息安全。此外,用户可以通过检测部件控制第一功能部件断电和恢复供电,实现了隐私模式与正常业务间的快速切换,保障了用户的使用体验。
在一种实现方式中,第一操作包括作用于检测部件的操作,第一控制信号包括检测部件根据第一操作生成的信号;第二操作包括作用于检测部件的操作,第二控制信号包括检测部件根据第二操作生成的信号。
在一种实现方式中,第一操作包括开启隐私模式,第二操作包括关闭隐私模式。
实施本申请实施例,用户可以通过第一操作开启隐私模式,开启隐私模式包括控制第一功能部件断电;用户还可以通过第二操作关闭隐私模式,关闭隐私模式包括控制第一功能部件恢复供电。这样,可以有效避免第一功能部件的信息外泄,保障用户的信息安全,提高用户的使用体验。
在一种实现方式中,电子设备包括折叠屏,检测部件包括硬件开关和第一传感器;第一操作包括作用于硬件开关的操作,以及调整电子设备的姿态为第一姿态的操作,第一控制信号包括硬件开关根据第一操作生成的第一开关信号,以及第一传感器采集的第一传感器数据,第一传感器数据用于确定电子设备是否处于第一姿态;第二操作包括作用于硬件开关的操作,和/或,调整电子设备的第一姿态为第二姿态的操作,第一控制信号包括硬件开关根据第二操作生成的第二开关信号,和/或,第一传感器采集的第二传感器数据,第二传感器数据用于确定电子设备是否处于第二姿态;上述向安全芯片发送第一控制信号,包括:硬件开关向安全芯片发送第一开关信号;第一传感器向安全芯片发送第一传感器数据;上述根据第一控制信号向控制模块发送第一控制指令,包括:接收到第一开关信号,并根据第一传感器数据确定电子设备处于第一姿态时,向控制模块发送第一控制指令;上述向安全芯片发送第二控制信号,包括:硬件开关向安全芯片发送第二开关信号,和/或,第一传感器向安全芯片发送第二传感器数据;上述根据第二控制信号向控制模块发送第二控制指令,包括:接收到第一开关信号,和/或,根据第二控制信号确定电子设备由第一姿态调整为第二姿态时,向控制模块发送第二控制指令。
实施本申请实施例,可以通过硬件开关和第一传感器触发安全芯片向控制模块下发指令,指示控制模块断开/恢复第一功能部件的供电。硬件开关、第一传感器、安全芯片、控制模块和第一功能部件均通过电路走线进行信号传输,第三方应用不能篡改和伪造安全芯片发送的指令,避免了第三方应用通过软件系统恶意控制第一功能部件断开/恢复供电。这样,有效避免了第一功能部件的信息外泄,保障用户的信息安全,提高用户的使用体验。
第三方面,本申请提供了控制部件的方法,应用于电子设备,所述电子设备包括折叠屏、第一传感器、安全芯片、控制模块和第一功能部件,第一传感器、安全芯片和控制模块通过电路走线直接或间接连接;控制模块用于控制第一功能部件断开或连接电源;所述方法包括:第一传感器检测用户的第一操作;第一传感器根据第一操作向安全芯片发送第一传感器数据,第一传感器数据用于指示电子设备的姿态;安全芯片根据第一传感器数据指示的姿态向控制模块发送第一控制指令,第一控制指令用于指示断开第一功能部件的供电。
在一种实现方式中,所述方法还包括:第一传感器检测用户的第二操作;第一传感器根据第二操作向安全芯片发送第二传感器数据,第二传感器数据用于指示电子设备的姿态;安全芯片根据第二传感器数据指示的姿态,向控制模块发送第二控制指令,第二控制指令用于指示恢复第一功能部件的供电。
在一种实现方式中,第一操作包括调整电子设备的姿态为第一姿态的操作,第一传感器数据用于确定电子设备是否处于第一姿态;上述根据第一传感器数据指示的姿态,向控制模块发送第一控制指令,包括:根据第一传感器数确定电子设备处于第一姿态时,向控制模块发送第一控制指令;
在一种实现方式中,第二操作包括调整电子设备的第一姿态为第二姿态的操作,第二传感器数据用于确定电子设备是否处于第二姿态;上述根据第二传感器数据指示的姿态,向控制模块发送第二控制指令,包括:根据第二传感器数据确定电子设备由第一姿态调整为第二姿态时,向控制模块发送第二控制指令。
在一种实现方式中,第一操作包括开启隐私模式,第二操作包括关闭隐私模式。
第四方面,本申请提供了控制部件的方法,应用于电子设备,所述电子设备包括检测部件、安全芯片、控制模块和第一功能部件,检测部件、安全芯片和控制模块通过电路走线直接或间接连接;控制模块用于控制第一功能部件断开或连接电源;所述方法包括:检测部件检测用户的第一操作;检测部件根据第一操作,向安全芯片发送第一控制信号,第一控制信号用于指示断开第一功能部件的供电;安全芯片根据第一控制信号向控制模块发送第一控制指令,第一控制指令用于指示断开第一功能部件的供电。
在一种实现方式中,所述方法还包括:检测部件检测用户的第二操作;检测部件根据第二操作,向安全芯片发送第二控制信号,第二控制信号用于指示恢复第一功能部件的供电;安全芯片根据第二控制信号向控制模块发送第二控制指令,第二控制指令用于指示恢复第一功能部件的供电。
在一种实现方式中,第一操作包括作用于检测部件的操作,第一控制信号包括检测部件根据第一操作生成的信号;第二操作包括作用于检测部件的操作,第二控制信号包括检测部件根据第二操作生成的信号。
在一种实现方式中,第一操作包括开启隐私模式,第二操作包括关闭隐私模式。
在一种实现方式中,电子设备包括折叠屏,检测部件包括硬件开关和第一传感器;第一操作包括作用于硬件开关的操作,以及调整电子设备的姿态为第一姿态的操作,第一控制信号包括硬件开关根据第一操作生成的第一开关信号,以及第一传感器采集的第一传感器数据,第一传感器数据用于确定电子设备是否处于第一姿态;第二操作包括作用于硬件开关的操作,和/或,调整电子设备的第一姿态为第二姿态的操作,第一控制信号包括硬件开关根据第二操作生成的第二开关信号,和/或,第一传感器采集的第二传感器数据,第二传感器数据用于确定电子设备是否处于第二姿态;上述向安全芯片发送第一控制信号,包括:硬件开关向安全芯片发送第一开关信号;第一传感器向安全芯片发送第一传感器数据;上述根据第一控制信号向控制模块发送第一控制指令,包括:接收到第一开关信号,并根据第一传感器数据确定电子设备处于第一姿态时,向控制模块发送第一控制指令;上述向安全芯片发送第二控制信号,包括:硬件开关向安全芯片发送第二开关信号,和/或,第一传感器向安全芯片发送第二传感器数据;上述根据第二控制信号向控制模块发送第二控制指令,包括:接收到第一开关信号,和/或,根据第二控制信号确定电子设备由第一姿态调整为第二姿态时,向控制模块发送第二控制指令。
第五方面,本申请实施例提供了一种计算机存储介质,包括计算机指令,当计算机指令在电子设备上运行时,使得电子设备执行上述第三方面和第四方面的任一项可能的实现方式中的控制部件的方法。
第六方面,本申请实施例提供了一种计算机程序产品,当计算机程序产品在计算机上运行时,使得计算机执行上述第三方面和第四方面的任一项可能的实现方式中的控制部件的方法。
附图说明
图1A-图1F为本申请实施例提供的配置折叠屏的电子设备的形态示意图;
图2A-图2F为本申请实施例提供的配置折叠屏的电子设备的形态示意图;
图3A为本申请实施例提供的电子设备的结构示意图;
图3B为本申请实施例提供的地理坐标系示意图;
图3C为本申请实施例提供的折叠屏的夹角示意图;
图4A为本申请实施例提供的软件结构框图;
图4B为本申请实施例提供的电子设备的硬件装置示意图;
图5为本申请实施例提供的一种控制部件的方法的流程示意图;
图6A-图6C为本申请实施例提供的用户界面示意图;
图7为本申请实施例提供的另一种控制部件的方法的流程示意图;
图8A-图8C为本申请实施例提供的另一种控制部件的方法的流程示意图;
图9A和图9B为本申请实施例提供的电子设备的结构示意图。
具体实施方式
下面将结合附图对本申请实施例中的技术方案进行清楚、详尽地描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;文本中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况,另外,在本申请实施例的描述中,“多个”是指两个或多于两个。
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为暗示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征,在本申请实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。
本申请以下实施例中的术语“用户界面(user interface,UI)”,是应用程序或操作系统与用户之间进行交互和信息交换的介质接口,它实现信息的内部形式与用户可以接受形式之间的转换。用户界面是通过java、可扩展标记语言(extensible markup language,XML)等特定计算机语言编写的源代码,界面源代码在电子设备上经过解析,渲染,最终呈现为用户可以识别的内容。用户界面常用的表现形式是图形用户界面(graphic user interface,GUI),是指采用图形方式显示的与计算机操作相关的用户界面。它可以是在电子设备的显示屏中显示的文本、图标、按钮、菜单、选项卡、文本框、对话框、状态栏、导航栏、Widget等可视的界面元素。
本申请实施例提供了一种控制部件的方法,该方法可以应用于配置非折叠屏的电子设备100,也可以应用于配置折叠屏的电子设备100。其中,上述折叠屏可以是纵向折叠屏或横向折叠屏,折叠屏可沿折叠边折叠形成至少两个屏,例如A屏和B屏。而根据折叠的程度,折叠屏屏可呈现多种形态。在本申请的一些实施例中,电子设备100的折叠屏可呈现展开形态、正向半折叠形态、正向折叠形态、反向半折叠形态和反向折叠形态中的一项或多项。
下面对配置折叠屏的电子设备100的各种形态进行介绍。
示例性的,图1A至图1F示出了本申请实施例提供的一种具有纵向折叠屏的电子设备100的产品形态示意图,纵向折叠屏的折叠边垂直于电子设备100的顶部边缘线和底部边缘线,为便于描述,将顶部边缘线简称为顶边,将底部边缘线简称为底边。
其中,图1A是纵向折叠屏的展开形态的示意图。图1A所示的纵向折叠屏可沿折叠边,按照图1A所示的方向11a和/或11b向内翻折,形成图1B和图1C所示的正向半折叠形态,纵向折叠屏被折叠分成A屏和B屏,A屏可以与电子设备100上的前置摄像头在折叠边的同一侧。图1C所示的纵向折叠屏可沿折叠边,按照方向11a和11b继续向内翻折,可形成图1D所示的正向折叠形态。如图1D所示,电子设备100的纵向折叠屏被完全向内折叠后,A屏和B屏相对,对用户不可见。
在本申请的一些实施例中,图1A所示的纵向折叠屏还可沿折叠边向外翻折,形成图1E所示的反向半折叠形态;按照图1E所示的方向22a和22b继续向外翻折,可形成图1F所示的反向折叠形态。如图1F所示,电子设备100的纵向折叠屏被完全向外折叠后,A屏和B屏相背,电子设备100的背面对用户不可见,电子设备100的背面包括A屏的背面和B屏背面。
示例性的,图2A至图2F示出了本申请实施例提供的一种具有横向折叠屏的电子设备100的产品形态示意图,横向折叠屏的折叠边平行于电子设备100的顶边和底边。
其中,图2A是横向折叠屏的展开形态的示意图。如图2A至图2D所示,类似于纵向折叠屏,图2A所示的横向折叠屏沿折叠边,按照方向33a和/或33b向内翻折,可形成图2B和图2C所示的正向半折叠形态的A屏和B屏;继续向内翻折,可形成图2D所示的正向折叠形态。在本申请的一些实施例中,类似于纵向折叠屏,图2A所示的横向折叠屏还可沿折叠边向外翻折,形成图2E所示的反向半折叠形态;继续 向外翻折,还可形成图2F所示的反向折叠形态。
在本申请的一些实施例中,电子设备100可以基于检测到的A屏和B屏的夹角α,确定配置的折叠屏所处的形态。示例性的,当α∈[0[,P1),电子设备100可以确定折叠屏处于正向折叠形态;当α∈[P4,360],电子设备100可以确定折叠屏处于反向折叠形态。其中,P1和P2可以是电子设备100或用户设定的预设误差值。例如,如P1和P2分别为5[和355[。
图3A示出了电子设备100的结构示意图。
电子设备100可以是手机、平板电脑、桌面型计算机、膝上型计算机、手持计算机、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本,以及蜂窝电话、个人数字助理(personal digital assistant,PDA)、增强现实(augmented reality,AR)设备、虚拟现实(virtual reality,VR)设备、人工智能(artificial intelligence,AI)设备、可穿戴式设备、车载设备、智能家居设备和/或智慧城市设备,电子设备可以是搭载iOS、Android、Microsoft或者其它操作系统,本申请实施例对该电子设备的具体类型不作特殊限制。
电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在本申请的一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在本申请的一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在本申请的一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。
I2S接口可以用于音频通信。在本申请的一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在本申请的一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在本申请的一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在本申请的一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在本申请的一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在本申请的一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在本申请的一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在本申请的一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在本申请的一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在本申请的一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备 (不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在本申请的一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号解调以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在本申请的一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在本申请的一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在本申请的一些实施例中,ISP可以设置在摄像头193中。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在本申请的一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。
内部存储器121可以包括一个或多个随机存取存储器(random access memory,RAM)和一个或多个非易失性存储器(non-volatile memory,NVM)。
随机存取存储器可以包括静态随机存储器(static random-access memory,SRAM)、动态随机存储器(dynamic random access memory,DRAM)、同步动态随机存储器(synchronous dynamic random access memory,SDRAM)、双倍资料率同步动态随机存取存储器(double data rate synchronous dynamic random access memory,DDR SDRAM,例如第五代DDR SDRAM一般称为DDR5SDRAM)等;非易失性存储器可以包括磁盘存储器件、快闪存储器(flash memory)。
快闪存储器按照运作原理划分可以包括NOR FLASH、NAND FLASH、3D NAND FLASH等,按照存储单元电位阶数划分可以包括单阶存储单元(single-level cell,SLC)、多阶存储单元(multi-level cell,MLC)、三阶储存单元(triple-level cell,TLC)、四阶储存单元(quad-level cell,QLC)等,按照存储规范划分可以包括通用闪存存储(英文:universal flash storage,UFS)、嵌入式多媒体存储卡(embedded multi media Card,eMMC)等。
随机存取存储器可以由处理器110直接进行读写,可以用于存储操作系统或其他正在运行中的程序的可执行程序(例如机器指令),还可以用于存储用户及应用程序的数据等。
非易失性存储器也可以存储可执行程序和存储用户及应用程序的数据等,可以提前加载到随机存取存储器中,用于处理器110直接进行读写。
外部存储器接口120可以用于连接外部的非易失性存储器,实现扩展电子设备100的存储能力。外部的非易失性存储器通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部的非易失性存储器中。
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在本申请的一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。
耳机接口170D用于连接有线耳机。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在本申请的一些实施例中,压力传感器180A可以设置于显示屏194。
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在本申请的一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。
需要说明的是,陀螺仪传感器的坐标系是地理坐标系。如图3B所示,地理坐标系的原点O位于运载体所在的点,X轴沿着当地纬线指向东(E),Y轴沿当地子午线指向北(N),Z轴沿当地地理垂线指向上,并与X轴和Y轴构成右手直角坐标系。上述运载体指包含陀螺仪传感器的设备,如电子设备100。
在本申请的一些实施例中,电子设备100的显示屏194可折叠形成多个显示屏,例如A屏和B屏。每个屏中可设置有陀螺仪传感器180B,用于测量该显示屏的朝向,即垂直于该显示屏且从电子设备100的内部指向外部的方向向量。电子设备100可以根据陀螺仪传感器180B测量得到的每个显示屏的朝向变化,从而确定出相邻屏的夹角,例如A屏和B屏的夹角α。
参考图1A至图2F,电子设备100的显示屏194经折叠可形成相邻的A屏和B屏。A屏设置有陀螺仪传感器A,通过陀螺仪传感器A可以测量A屏的朝向,B屏设置有陀螺仪传感器B,通过陀螺仪传感器B可以测量B屏的朝向。下面对A屏和B屏的夹角α的获取原理进行具体说明。
示例性的,图3C示出了A屏和B屏的夹角α的示意图。如图3C所示,电子设备100利用陀螺仪传感器A测得A屏的朝向为向量利用陀螺仪传感器B测得B屏的朝向为向量其中,向量与A屏垂直,向量与B屏垂直。电子设备100利用如下公式(1),便可计算出向量与向量的夹角θ,进而 电子设备100可以确定A屏与B屏的夹角α=180[-θ。
需要说明的是,虽然A屏中的陀螺仪传感器A和B屏中的陀螺仪传感器B的位置并不重叠,即两个陀螺仪传感器的坐标系的原点并不重叠,但是,两个坐标系的两个X轴是平行的,两个Y轴是平行的,两个Z轴也是平行的。这样,虽然向量和向量是通过不同的陀螺仪传感器在不同坐标系下测量的,但是由于两个陀螺仪传感器的坐标系的各轴平行,电子设备100可通过上述公式(1)计算向量与向量的夹角θ。
在本申请的一些实施例中,上述陀螺仪传感器可以是由其他多个传感器配合形成的虚拟陀螺仪传感器,该虚拟陀螺仪传感器可用于计算折叠屏的相邻屏的夹角,例如A屏与B屏的夹角α。
气压传感器180C用于测量气压。
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在本申请的一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。
在本申请的一些实施例中,电子设备100的显示屏194可折叠形成多个显示屏,例如A屏和B屏,上述多个显示屏的部分或全部显示屏中均可设置一个霍尔传感器。电子设备100可以利用霍尔传感器可以检测折叠屏的相邻屏的是否处于正向折叠状态。示例性的,电子设备100的折叠屏的A屏设置有霍尔传感器,B屏设置有磁铁;当用户将电子设备100向内完全折叠时,即将折叠屏折叠为正向折叠状态时,A屏中的霍尔传感器靠近B屏中的磁铁,该霍尔传感器感应到磁场的变化,生成数据1,数据1可用于指示A屏和B屏处于正向折叠状态。
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。
在本申请的一些实施例中,电子设备100的显示屏194可折叠形成多个显示屏,例如A屏和B屏,折叠屏的每个显示屏中均可设置一个加速度传感器。电子设备100可利用加速度传感器测量每个显示屏被转动时的运动加速度;然后根据测量得到的运动加速度计算一个显示屏相对于另一个显示屏转动的角度,例如A屏与B屏的夹角α。
在本申请的一些实施例中,电子设备100的折叠部位上安装有角度传感器,例如上述折叠部位包括转轴;电子设备100可以通过该角度传感器测量折叠屏的相邻屏的夹角,例如A屏和B屏所成夹角α。
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。
环境光传感器180L用于感知环境光亮度。
指纹传感器180H用于采集指纹。
温度传感器180J用于检测温度。在本申请的一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。
触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。
骨传导传感器180M可以获取振动信号。在本申请的一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号、接收血压跳动信号。
按键190包括电源键,音量加键,音量减键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。在本申请的一些实施例中,按键190还可以包括用于开启/关闭隐私模式的按键。
马达191可以产生振动提示。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,消息,通知等。
SIM卡接口195用于连接SIM卡。
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本发明实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。
图4A是本发明实施例的电子设备100的软件结构框图。
软件可以包括若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在本申请的一些实施例中,将Android系统从上至下分别为应用程序层(Application layer),应用程序框架层(Framework layer),安卓运行时(Android runtime)和系统库,硬件抽象层(Hardware abstraction layer,HAL)以及内核层(Kernel layer)。
应用程序层可以包括一系列应用程序包。
如图4A所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
如图4A所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。
2D图形引擎是2D绘图的绘图引擎。
HAL层(硬件抽象层)是位于操作系统内核与硬件电路之间的接口层,其目的在于将硬件抽象化,为操作系统提供虚拟硬件平台。
内核层是硬件和软件之间的层。内核层可以接收HAL层数据以及传递传感器数据给到HAL层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动等。
如图4B所示,电子设备100的硬件装置可以包括:获取隐私信息的第一功能部件。该第一功能部件可以包括摄像头、麦克风、骨传导传感器、定位模块等中的部分或全部,例如上述定位模块包括GPS定位器。其中,摄像头可以采集电子设备100周围的图像,麦克风可以录取电子设备100周围的声音,骨传导传感器可以采集用户的心跳、血压等指标,定位模块可以获取电子设备100的位置信息。
部分第三方应用可能会在用户不知情的情况下,通过上述功能部件采集数据,以获取用户的隐私信息。下面以摄像头(Camera)为例,示例性说明第三方应用如何获取隐私信息获取模块采集的数据。应用程序框架层还可以包括相机服务(CameraServer),硬抽象层还可以包括CameraHAL。其中,相机服务用于提供具体的业务实现规则;CameraHAL可提供标准调用接口,该接口便于应用程序能够正确地操作摄像头,摄像头的硬件功能得到正确地实现。第三方应用想要通过摄像头采集数据时,通过预设API调用
CameraServer开启指定的摄像头,CameraServe与Camera HAL建立连接,Camera HAL调用摄像头驱动,以驱动上述指定摄像头开启;CameraServer向Camera HAL下发获取请求;基于该获取请求,Camera HAL接收摄像头驱动反馈的摄像头采集的图像数据后,Camera HAL通过CameraServer向第三方应用发送该图像数据。需要说明的是,上述第三方应用调用摄像头采集数据的过程是简化的示例性过程,实际的软件调用过程通常更为复杂。
目前,智能终端可以通过软件层面避免第三方应用利用上述第一功能部件窃取用户信息。例如,智能终端的用户界面中设置有隐私模式的开关,用户通过该开关开启隐私模式后,第三方应用请求获取摄像头采集的音频数据时,在软件驱动层将摄像头采集的图像数据替换为空数据,将上述空数据通过CameraServer发送给第三方应用。
然而,第三方应用可以非法获取设备的root权限,root权限类似于Windows系统中的Administrator,root是系统中的超级管理员用户帐户,该帐户拥有整个系统的最高权限,可方便地对于系统的软件模块进行删除或更改。因此,第三方应用利用root权限可以从软件层面控制隐私模式的开关,获取第一功能部件采集的数据,用户的信息安全未得到充分保障。
本申请提供的控制部件的方法和相关装置中,开启隐私模式时,断掉第一功能部件的供电,第一功能部件不能再采集数据;这样,避免第三方应用在隐私模式下依然通过软件系统获取第一功能部件采集的数据。进一步的,通过硬件模块间的信号控制,才能关闭隐私模式,恢复第一功能部件的供电;这样,避免隐私模式开启后,第三方应用通过软件系统关闭隐私模式,进一步保障了用户的信息安全,提高用户的使用体验。
如图4B所示,电子设备100的硬件装置还可以包括以下部分或全部:控制模块、安全芯片、隐私模式的硬件开关、第一传感器。其中,第一功能部件、控制模块、隐私模式的硬件开关和第一传感器,可分别与安全芯片通过电路走线直接或间接连接,并通过该电路走线和安全芯片传输信号。可以理解,以上述控制模块为例,该控制模块与安全芯片直接通过电路走线传输信号时,该信号不经过软件系统,第三方APP不能通过软件系统伪造或更改两者间传输的信号。其中,上述控制模块、第一功能部件、隐私模式的硬件开关和第一传感器,与安全芯片间可以连接其他硬件模块,此处不做具体限定。例如,上述第一功能部件和安全芯片间可以连接控制模块,控制模块可用于控制上述第一功能部件连接或断开电源。例如,上述硬件开关(或第一传感器)和安全芯片间可以连接模数转换模块,模数转换模块可用于将硬件开关(或第一传感器)发送的模拟信号转换成数字信号,以便于安全芯片接收。例如,上述模数转换模块包括传感器控制中心(Sensor Hub)。
本申请实施例中,第一功能部件需要电源供电才能正常工作。控制模块用于断开/恢复第一功能部件和电子设备100的电源间的连接。在一种实现方式中,控制模块可以包括前述电源管理模块141,电源管理模块141用于管理各功能部件的供电。在一种实现方式中,控制模块和上述第一功能部件为同一模块,即第一功能部件可以控制本模块断开或连接电源。在一种实现方式中,控制模块可包括电源开关,电源开关可以控制本开关的开启和闭合,电子设备100的电源和各第一功能部件间分别设置有该电源开关;电源开关处于开启状态时,第一功能部件断开电源;电源开关处于闭合状态时,第一功能部件连接电源。
安全芯片的功能包括向控制模块发送指令,控制模块基于该指令连接/断开第一功能部件的电源。安全芯片是可信任平台模块,一个可独立进行密钥生成、加解密的装置,内部拥有独立的处理器和存储单元。安全芯片对存储在安全芯片里的数据进行高可靠性的加密处理,使这些数据很难被非法窃取和篡改。第三方应用不能获取安全芯片中的数据,也不能篡改和伪造安全芯片发送的指令。
硬件开关的功能包括开启/或关闭隐私模式,即电子设备100预设有通过该硬件开关实施的用于开启隐私模式的输入操作1,和/或通过该硬件开关实施的用于关闭隐私模式的输入操作2。用户实施输入操作1或输入操作2时,该硬件开关可以基于输入操作生成相应的开关信号,例如基于输入操作1生成的信号1,基于输入操作2生成的信号2;硬件开关将该开关信号通过电路走线直接发送给安全芯片;安全芯片可以 根据该开关信号确定开启/或关闭隐私模式。安全芯片确定开启隐私模式时,向上述控制模块发送下电指令,该下电指令用于指示断开上述第一功能部件的供电;安全芯片确定关闭隐私模式时,向上述控制模块发送上电指令,该上电指令用于指示连接第一功能部件的电源,恢复上述第一功能部件的供电。
需要说明的是,硬件开关实际的功能体现,包括控制上述第一功能部件断开或恢复供电。在一种应用场景中,电子设备100开启隐私模式包括断开上述第一功能部件的供电,关闭隐私模式包括恢复上述第一功能部件的供电;该应用场景中,该硬件开关理论上,可用于控制隐私模式的开启和关闭。
本申请实施例中,上述硬件开关可以包括一个或多个功能按键,例如电源键、智能助手键、音量加键、音量减键等,也可以包括新增的专用于开启/关闭隐私模式的功能按键,还可以包括新增的专用于开启/关闭隐私模式的拨片。
在本申请的一些实施例中,通过该硬件开关实施的输入操作1和输入操作2,与该硬件开关的业务逻辑不冲突。下面以输入操作1和信号1为例进行说明。例如,该硬件开关包括电源键,开启隐私模式的输入操作1包括连续按三次电源键,用户实施输入操作1时,电源键生成信号1,信号1包括三个连续的高电平;安全芯片检测到电源键发送的预设时间1内的三个连续的高电平时,确定开启隐私模式,例如预设时间1为2S。例如,该硬件开关包括音量加键和音量减键,开启隐私模式的输入操作1包括同时按压音量加键和音量减键;用户实施输入操作1时,音量加键和音量减键分别生成一个高电平;上述信号1包括音量加键和音量减键分别生成的高电平;安全芯片内检测到音量加键和音量减键在预设时间2分别发送的高电平时,确定开启隐私模式,例如预设时间2为0.5S。
需要说明的是,硬件开关发送的信号通常是模拟信号,例如一个高电平。在一种实现方式中,硬件开关和安全芯片间可以连接模数转换器,安全芯片接收到的信号1,是由该模数转换器进行模数转换后的数字信号。在一种实现方式中,安全芯片包括模数转换器,安全芯片接收到硬件开关发送的信号后,利用该模数转换器将信号由模拟信号转化为数字信号。例如,电源键发送的信号1包括三个连续的高电平,信号1经模数转换后变成数字信号“111”。
本申请实施例中,输入操作2和信号2的实现原理,可以参考前述输入操作1和信号1。
在本申请的一些实施例中,硬件开关可以用于实施输入操作1和输入操作2,输入操作1和输入操作2可以相同,也可以不同。
在本申请的一些实施例中,输入操作1和输入操作2相同,硬件开关生成的信号1和信号2也相同。硬件开关向安全芯片发送信号1或信号2;安全芯片接收到硬件开关发送的信号后,若安全芯片当前记录的隐私模式处于关闭状态,则切换隐私模式为开启状态;若安全芯片当前记录的隐私模式处于开启状态,则切换隐私模式为关闭状态。需要说明的是,用户使用电子设备100前,安全芯片可以记录有隐私模式的初始状态,该初始状态通常为关闭状态;当然,在一些实现方案中,该初始状态也可以设置为开启状态,此处不做具体限定。
在本申请的一些实施例中,输入操作1和输入操作2不同,硬件开关生成的信号1和信号2也不同;安全芯片可以区分信号1和信号2,并根据信号1开启隐私模式,根据信号2关闭隐私模式。
在本申请的一些实施例中,上述硬件开关包括专用于开启/关闭隐私模式的拨片。用户可以将该拨片拨至第一位置和第二位置中任一个,第一位置可用于指示隐私模式的开启状态(ON),第二位置可用于指示隐私模式的关闭状态(OFF)。例如,上述输入操作1包括将拨片拨至第一位置,信号1包括拨片生成的高电平,上述输入操作2包括将拨片拨至第二位置,信号2包括拨片生成的低电平。
在本申请的一些实施例中,上述硬件开关包括专用于开启/关闭隐私模式的按键。可选的,输入操作1和输入操作2均包括按压一次上述按键,信号1和信号2均包括一个高电平。可选的,输入操作1和输入操作2均包括长按上述按键,信号1和信号2均包括至少N个连续的高电平,其中N为大于1的正整数,N的取值与预设的输入操作1的长按时间相关。可选的,输入操作1包括按压一次上述按键,输入操作2包括长按上述按键。
在本申请的一些实施例中,电子设备100可以包括折叠屏和第一传感器,第一传感器检测的传感器数据可以用于确定上述折叠屏是否处于第一姿态,例如前述正向折叠形态。上述第一传感器可以包括霍尔传感器、陀螺仪传感器、加速度传感器和角度传感器中的一或多个,第一传感器中包括的传感器可分别与安全芯片通过电路走线直接或间接连接。第一传感器可以将检测到的传感器数据直接通过电路走线传输给安全芯片。在一种实现方式中,安全芯片根据上述传感器数据确定折叠屏处于预设姿态时,向上述控制模块 发送下电指令;安全芯片确定上述折叠屏由预设姿态调整为第二姿态时,向上述控制模块发送上电指令。例如,由正向折叠形态调整为展开形态。本申请实施例中,第一姿态也可以称为预设姿态。
类似于硬件开关,第一传感器检测的数据通常也包括模拟信号,本申请实施例可以将第一传感器检测的模拟信号转换为数字信号,具体的,可参见硬件开关的相关描述,此处不再赘述。
本申请实施例对预设姿态不做具体限定,电子设备100可以预先设置预设姿态,用户也可以根据使用习惯在电子设备100中修改预设姿态。可选的,预设姿态可以包括图1A至图2F所示的任一种形态,且预设姿态还和折叠屏的朝向有关。示例性的,参考图1D和图2D,预设姿态指电子设备100处于正向折叠形态,且A屏的朝向和地理坐标系的Z轴夹角小于预设角度,例如60度。可以理解,A屏背面包括后置摄像头,A屏的朝向和地理坐标系的Z轴夹角小于预设角度,指后置摄像头所在背面朝向地面;电子设备100正向折叠且后置摄像头所在背面朝向地面,表明用户当前使用电子设备的意图较小。
在一种实现方式中,安全芯片确定上述折叠屏处于正向折叠形态和/或硬件开关开启隐私模式时,向上述控制模块发送下电指令。安全芯片确定上述折叠屏由正向折叠形态展开和/或硬件开关关闭隐私模式时,向上述控制模块发送上电指令。
下面结合前述硬件结构和软件系统,对本申请实施例提供的控制部件的方法进行介绍。
图5为本申请实施例提供的一种控制部件的方法的流程示意图。该方法包括但不限于S101至S106。
S101、电子设备100接收用户的输入操作1,输入操作1用于开启隐私模式。
S102、电子设备100基于输入操作1,向安全芯片发送信号1。
在本申请的一些实施例中,电子设备100包括隐私模式的硬件开关,还预设有通过该硬件开关实施的用于开启隐私模式的输入操作1。上述硬件开关和安全芯片通过电路走线直接或间接连接。用户实施输入操作1时,硬件开关可以生成信号1,并将信号1通过电路走线直接发送给安全芯片,信号1用于指示开启隐私模式。具体的,可以参考图4B的相关描述中的输入操作1和信号1,此处不再赘述。
在本申请的一些实施例中,上述输入操作1可以包括触摸操作、悬空手势或语音指令等操作;上述触摸操作包括但不限于单击、双击、长按、手指滑动、手指拖动或指关节滑动等操作。示例性的,以输入操作1包括单击电子设备100显示的虚拟控件为例进行说明。该虚拟控件可以为隐私模式的开关图标,电子设备100的触摸屏检测到输入操作1后,将输入操作1的相关信息通过内核层传输至应用程序框架层,例如上述相关信息包括触摸位置和触摸时间;应用程序框架层识别该输入操作对应的输入事件为点击隐私模式的开关图标,响应事件为开启隐私模式;应用程序框架层通过内核层向安全芯片发送信号1,信号1用于指示开启隐私模式。
S103、安全芯片基于信号1向控制模块发送下电指令,下电指令用于指示断开第一功能部件的供电。
具体的,根据信号1确定开启隐私模式时,安全芯片可以切换隐私模式的状态为开启状态。安全芯片确定开启隐私模式时,向上述控制模块发送下电指令,该下电指令用于指示断开上述第一功能部件的供电。
在本申请的一些实施例中,控制模块与第一功能部件为同一模块,安全芯片和各第一功能部件分别通过电路走线直接或间接连接,安全芯片可分别向各第一功能部件发送下电指令;第一功能部件可以根据该下电指令断开本模块的供电。
在本申请的一些实施例中,控制模块包括前述电源管理模块,安全芯片和电源管理模块直接通过电路走线直接或间接连接,安全芯片向电源管理模块发送下电指令;电源管理模块可以根据该下电指令分别断开各第一功能部件的供电。
在本申请的一些实施例中,第一功能部件断开电源后,电子设备100显示提示信息;该提示信息用于提示已开启隐私模式,第一功能部件已断开电源。在一种实现方式中,安全芯片发送下电指令后,向应用程序框架层发送指示信息1,应用程序框架层根据指示信息1调用显示模块显示上述提示信息。
在本申请的一些实施例中,只能通过上述硬件开关开启隐私模式。这样,只能通过硬件开关触发安全芯片发送下电指令,硬件开关、安全芯片、控制模块和第一功能部件均通过电路走线进行信号传输,第三方应用不能篡改和伪造安全芯片发送的下电指令;因此,第三方应用无法通过软件系统开启隐私模式,无法控制第一功能部件断开电源。可以理解,第三方应用恶意控制摄像头、麦克风、骨导传感器和定位模块等第一功能部件下电后,用户无法及时使用这些模块,极大影响用户的使用体验。
S104、电子设备100接收用户作用于硬件开关的输入操作2,输入操作2用于关闭隐私模式。
S105、硬件开关向安全芯片发送信号2。
电子设备100包括隐私模式的硬件开关,还预设有通过该硬件开关实施的用于关闭隐私模式的输入操 作2。上述硬件开关和安全芯片通过电路走线直接或间接连接。用户实施输入操作2时,硬件开关可以生成信号2,并将信号2通过电路走线直接发送给安全芯片。具体的,可以参考图4B的相关描述中的输入操作2和信号2,此处不再赘述。
S106、安全芯片基于信号2向控制模块发送上电指令,上电指令用于指示恢复第一功能部件的供电。
具体的,安全芯片可以根据信号2确定关闭隐私模式,安全芯片可以更新并记录隐私模式的状态为关闭状态。安全芯片确定关闭隐私模式时,向上述控制模块发送上电指令,该上电指令用于指示恢复第一功能部件的供电。
在本申请的一些实施例中,控制模块与第一功能部件为同一模块,安全芯片和各第一功能部件分别通过电路走线直接或间接连接,安全芯片可分别向多个第一功能部件发送上电指令;第一功能部件可以根据该上电指令断开本模块的供电。
在本申请的一些实施例中,控制模块包括前述电源管理模块,安全芯片和电源管理模块直接通过电路走线直接或间接连接,安全芯片向电源管理模块发送上电指令;电源管理模块可以根据该上电指令分别断开各第一功能部件的供电。
在本申请的一些实施例中,第一功能部件恢复供电后,电子设备100显示提示信息;该提示信息用于提示已关闭隐私模式,第一功能部件已恢复供电。在一种实现方式中,安全芯片发送上电指令后,向应用程序框架层发送指示信息2,应用程序框架层根据指示信息2调用显示模块显示上述提示信息。
示例性的,以“硬件开关包括电源键,第一功能部件包括摄像头,输入操作1和输入操作2均包括连续按压三次电源键”为例,图6A至图6C示出了用户通过硬件开关控制摄像头断开电源和恢复供电的相关示意图。
示例性的,如图6A所示,电子设备100显示用户界面11;用户连续按压三次电源键后,电源键生成的信号触发摄像头断开电源,电子设备100显示提示信息101,提示信息101用于提示隐私模式已开启,摄像头、麦克风和GPS定位器已断开电源。如图6B所示,用户界面11可以包括相机应用的图标102;摄像头断开电源后,用户点击图标102,触发电子设备100显示相机应用的拍摄界面12;拍摄界面12包括预览区103,预览区103用于显示摄像头采集的图像。由于摄像头未连接电源,图6B所示的预览区103内显示黑屏画面。可选的,如图6B所示,电子设备100还可以在拍摄界面12显示提示信息104,提示信息104用于提示可以通过连续按压三次电源键关闭隐私模式,开启摄像头。如图6C所示,用户连续按压三次电源键后,电源键生成的信号触发摄像头恢复供电,电子设备100在拍摄界面12的预览区103显示摄像头采集的图像,还可以显示提示信息105,提示信息105用于提示已关闭隐私模式,恢复摄像头的供电。
本申请实施例中,由用户通过硬件开关关闭隐私模式。这样,只能通过硬件开关触发安全芯片发送上电指令,硬件开关、安全芯片、控制模块和第一功能部件均通过电路走线进行信号传输,第三方应用不能篡改和伪造安全芯片发送的上电指令。因此,第一功能部件下电后,通过硬件模块间的信号控制才能触发第一功能部件恢复供电,第三方应用不能通过软件系统触发第一功能部件恢复供电,自然也不能进一步控制第一功能部件采集用户的隐私信息,实现更安全的隐私模式,即超级隐私模式。此外,用户可以随时通过硬件开关来开启和关闭隐私模式,实现了隐私模式与正常业务间的快速切换,避免影响用户对正常业务的使用体验。
需要说明的是,输入操作1实际的功能体现,包括控制上述第一功能部件断电;输入操作2实际的功能体现,包括控制上述第一功能部件重新连接电源。本申请提供的控制部件的方法的一种应用场景中,电子设备100开启隐私模式包括断开上述第一功能部件的电源,开启隐私模式包括恢复上述第一功能部件的供电;因此,该应用场景中,理论上,输入操作1用于开启隐私模式的开启,输入操作2用于关闭隐私模式。可以理解,本申请实施例提供的控制部件的方法也可以不涉及隐私模式。
图7为本申请实施例提供的另一种控制部件的方法的流程示意图,该方法适用于配置折叠屏的电子设备100。该方法包括但不限于S107至S112。
S107、电子设备100处于预设姿态时,第一传感器获取信号3,电子设备100包括折叠屏和第一传感器。
S108、第一传感器向安全芯片发送信号3,信号3用于指示电子设备100处于预设姿态。
参考图1A至图1F,电子设备100可包括折叠屏,电子设备100可沿折叠边将折叠屏分为A屏和B屏。电子设备100还包括第一传感器,第一传感器检测的传感器数据,例如信号3,可以用于确定电子设 备100是否处于预设姿态,例如图1D和图2D所示的正向折叠形态。第一传感器可与安全芯片通过电路走线直接或间接连接,第一传感器可以将检测到的传感器数据通过电路走线传输给安全芯片;安全芯片可以根据上述传感器数据确定折叠屏是否处于预设姿态。可以理解,用户将电子设备100的姿态调整为预设姿态时,第一传感器检测的信号3可以用于指示电子设备100处于预设姿态。
本申请实施例中,第一传感器可以包括霍尔传感器、角度传感器、陀螺仪传感器和加速度传感器中的一或多个,此处不做具体限定。
在本申请的一些实施例中,第一传感器包括霍尔传感器,预设姿态包括正向折叠形态。示例性的,折叠屏的A屏设置有霍尔传感器,B屏设置有磁铁;当用户将电子设备100向内折叠为正向折叠形态时,A屏中的霍尔传感器靠近B屏中的磁铁,该霍尔传感器感应到的磁场强度超过预设值1,霍尔传感器输出低电平信号。第一传感器向安全芯片发送的信号3包括上述低电平信号,上述低电平信号可用于指示电子设备100的姿态调整为正向折叠形态。需要说明的是,上述示例中的霍尔传感器为开关型的霍尔传感器,本申请实施例涉及的霍尔传感器还可以是锁键型的或线性型的,此处不做具体限定。
在本申请的一些实施例中,第一传感器包括角度传感器,角度传感器安装在电子设备100的折叠部位,例如转轴上,电子设备100可以通过该角度传感器测量折叠屏的相邻屏的夹角,例如A屏和B屏间的夹角α。第一传感器向安全芯片发送的信号3包括夹角α。安全芯片可以根据夹角α确定电子设备100是否处于预设姿态。例如,预设姿态包括正向折叠形态;夹角α在[0[,P1)的范围内时,安全芯片确定电子设备100处于正向折叠形态。其中,P1可以是电子设备100或用户设定的预设误差值。例如,P1可以为5[。
在本申请的一些实施例中,A屏设置有陀螺仪传感器A,B屏设置有陀螺仪传感器B,第一传感器包括陀螺仪传感器A和陀螺仪传感器B。陀螺仪传感器A可以检测A屏围绕坐标系的三个轴的角速度,陀螺仪传感器B可以检测B屏围绕上述三个轴的角速度。第一传感器向安全芯片发送的信号3包括A屏围绕上述三个轴的角速度和B屏围绕上述三个轴的角速度。安全芯片可以根据A屏围绕上述三个轴的角速度确定A屏的朝向,根据B屏围绕上述三个轴的角速度确定B屏的朝向;安全芯片根据A屏和B屏的朝向,可以确定A屏和B屏的夹角α,进而根据夹角α确定电子设备100是否处于预设姿态。
在本申请的一些实施例中,A屏设置有加速度传感器A,B屏设置有加速度传感器B,第一传感器包括加速度传感器A和加速度传感器B。加速度传感器A可以检测A屏沿坐标系的三个轴的加速度,加速度传感器B可以检测B屏沿上述三个轴的加速度。第一传感器向安全芯片发送的信号3包括A屏沿上述三个轴的加速度和B屏沿上述三个轴的加速度。安全芯片可以A屏沿上述三个轴的加速度和B屏沿上述三个轴的加速度,确定A屏相对于B屏转动的角度,即A屏与B屏的夹角α;进而根据夹角α可以确定电子设备100是否处于预设姿态。
S109、安全芯片基于信号3确定电子设备处于预设姿态时,向控制模块发送下电指令,下电指令用于指示断开第一功能部件的供电。
安全芯片基于信号3确定电子设备处于预设姿态时,开启隐私模式,更新并记录隐私模式的状态为开启状态。安全芯片确定开启隐私模式时,向上述控制模块发送下电指令。具体的,可以参考步骤S103的相关描述,此处不再赘述。
可以理解,用户通过将电子设备100的姿态折叠为预设姿态来开启隐私模式,安全芯片通过第一传感器检测的数据识别预设姿态。这样,通过第一传感器触发安全芯片发送下电指令,第一传感器、安全芯片、控制模块和第一功能部件均通过硬件模块间的电路走线进行信号传输,第三方应用不能篡改和伪造安全芯片发送的下电指令;因此,第三方应用无法通过软件系统开启隐私模式,避免第三方应用恶意控制第一功能部件断开电源。
S110、电子设备100由预设姿态调整为第二姿态时,第一传感器获取信号4。
S111、第一传感器向安全芯片发送信号4,信号4用于指示电子设备100处于第二姿态。
第一传感器可以实时将检测到的传感器数据通过电路走线传输给安全芯片,用户将电子设备100由预设姿态调整为第二姿态时,第一传感器检测到的信号4可以用于指示电子设备100处于第二姿态;第一传感器将检测到的信号4传输给安全芯片,安全芯片根据信号4可以确定电子设备100由预设姿态调整为了第二姿态。
在本申请的一些实施例中,上述第二姿态包括预设姿态之外的任意姿态。例如,预设姿态包括正向折叠形态,安全芯片根据信号4确定电子设备100由正向折叠形态展开了。在本申请的一些实施例中,上述第二姿态包括一或多个特定姿。例如,预设姿态包括正向折叠形态,第二姿态包括前述展开形态。
在本申请的一些实施例中,第一传感器包括霍尔传感器,预设姿态包括正向折叠形态。示例性的,当用户将电子设备100由正向折叠形态展开时,A屏中的霍尔传感器远离B屏中的磁铁,该霍尔传感器感应到的磁场强度小于预设值2时,霍尔传感器输出高电平信号。第一传感器向安全芯片发送的信号4包括上述高电平信号,上述高电平信号可用于指示电子设备100由正向折叠形态展开。
在本申请的一些实施例中,第一传感器包括角度传感器、陀螺仪传感器或加速度传感器;安全芯片根据信号4可以确定A屏与B屏的夹角α,进而根据夹角α可以确定电子设备100是否处于预设姿态。例如,预设姿态包括正向折叠形态,夹角α不在[0[,P1)的范围内时,确定电子设备100未处于预设姿态。具体的,信号4可以参考信号3的相关描述,此处不再赘述。
S112、安全芯片基于信号4确定电子设备100由预设姿态调整为第二姿态时,向控制模块发送上电指令,上电指令用于指示恢复第一功能部件的供电。
具体的,安全芯片基于信号4确定电子设备100由预设姿态调整为第二姿态时,关闭隐私模式,更新并记录隐私模式的状态为关闭状态。安全芯片确定关闭隐私模式时,向上述控制模块发送上电指令,该上电指令用于指示恢复上述第一功能部件的供电。具体的,可以参考步骤S106的相关描述,此处不再赘述。
可以理解,用户通过将电子设备100由预设姿态调整为第二姿态来关闭隐私模式,即通过第一传感器触发第一功能部件恢复供电。这样,通过第一传感器触发安全芯片发送上电指令,第一传感器、安全芯片、电源管理模块和第一功能部件均通过电路走线进行信号传输,第三方应用不能篡改和伪造安全芯片发送的上电指令。因此,第一功能部件下电后,通过硬件模块间的信号控制才能触发第一功能部件恢复供电,第三方应用不能通过软件系统触发第一功能部件恢复供电,自然也不能进一步控制第一功能部件采集用户的隐私信息。此外,用户可以随时通过折叠和展开电子设备100,来控制隐私模式,在折叠和展开间实现隐私模式与正常业务间的无缝切换,避免影响用户对正常业务的使用体验。
图8A为本申请实施例提供的另一种控制部件的方法的流程示意图,该方法适用于配置折叠屏的电子设备100。如图8A所示,电子设备100执行步骤S101-S102和步骤S107-S108之后,还可执行S113。电子设备100执行步骤S104-S105和/或步骤S110-S111之后,还可执行S114。
步骤S101-S102、步骤S107-S108、步骤S104-S105和步骤S110-S111可以参考前述实施例的相关描述,此处不再赘述。
S113、安全芯片基于信号1和信号3,向控制模块发送下电指令,下电指令用于指示断开第一功能部件的供电。
S114、安全芯片基于信号2和/或信号4,向控制模块发送上电指令,上电指令用于指示恢复第一功能部件的供电。
在本申请的一些实施例中,电子设备100执行步骤S101-S102和步骤S107-S108,并执行步骤S113,即用户折叠电子设备100为预设姿态,以及通过硬件开关实施输入操作1后,安全芯片才基于信号1以及信号3才发送下电指令。
在本申请的一些实现方案中,如图8B所示,步骤S113具体可以包括步骤S201至步骤S203,步骤S114具体可以包括步骤S204至步骤S206。图8B所提供的方案中,用户先实施输入操作1,再折叠电子设备100为预设姿态;即电子设备100先执行步骤S101-S102,生成信号1,后执行步骤S107-S108,生成信号3。
S201中,安全芯片接收到信号1时,进入待命状态,信号1用于指示进入待命状态。
在本申请的一些实施例中,安全芯片根据硬件开关实时传输的信号确定是否进入待命状态;当安全芯片接收到硬件开关传输的用于指示进入待命状态的信号1时,安全芯片进入待命状态。可以理解,电子设备100执行S101-S102之后,安全芯片接收到信号1,安全芯片记录当前已进入待命状态。
S202中,待命状态下,安全芯片根据第一传感器传输的信号3确定电子设备100处于预设姿态时,执行S203。
在本申请的一些实施例中,待命状态下,安全芯片根据第一传感器实时传输的信号确定电子设备100当前是否处于预设姿态;若是,则执行S203,即发送下电指令。可以理解,电子设备100执行S107-S108之后,安全芯片基于第一传感器发送的信号3可以确定电子设备100处于预设姿态。
S203中,安全芯片向控制模块发送下电指令,下电指令用于指示断开第一功能部件的供电。
在本申请的一些实施例中,不同于图5和图7描述的方案,图8B所示实现方案中,硬件开关发送的 信号用于开启或关闭待命状态;该待命状态也可以被称为隐私模式的待命状态,或上下电的待命状态。示例性的,用户通过硬件开关实施输入操作1时,硬件开关生成的信号1用于开启隐私模式的待命状态;用户通过硬件开关实施输入操作2时,硬件开关生成的信号2用于关闭隐私模式的待命状态。
在本申请的一些实施例中,进入待命状态时,电子设备100显示提示信息;该提示信息用于提示已进入待命状态,可通过预设姿态开启隐私模式,以及通过将预设姿态调整为第二姿态关闭隐私模式。在一种实现方式中,安全芯片接收信号1后,向应用程序框架层发送指示信息3,应用程序框架层根据指示信息3调用显示模块显示上述提示信息。
待命状态下,用户才可以通过改变电子设备100的姿态,来控制隐私模式开启或关闭,即控制第一功能部件断开或恢复供电。可以理解,未通过输入操作1进入待命状态时,电子设备100处于何种姿态,也不会触发第一功能部件断开电源。可以理解,在一些应用场景中,用户将电子设备100折叠为预设姿态时,并不希望第一功能部件断开电源;相比图7提供的“仅通过预设姿态触发第一功能部件断开电源”的方案,图8B提供的方案中,用户可以根据自己的需求决定是否进入待命状态,进而决定预设姿态是否能触发第一功能部件断开电源。
如图8B所示,S203之后,电子设备100的安全芯片可以分别执行S204和S205。
S204中,安全芯片根据第一传感器传输的信号4确定电子设备100由预设姿态调整为第二姿态时,执行S206。
在本申请的一些实施例中,第一功能部件断电后,安全芯片根据第一传感器传输的信号确定电子设备100是否由预设姿态调整为第二姿态;若是,则执行S206,即发送上电指令。可以理解,用户将电子设备100调整为第二姿态,电子设备100执行S110-S111之后,安全芯片基于第一传感器发送的信号4可以确定电子设备100由预设姿态调整为第二姿态。
S205中,安全芯片接收到硬件开关传输的信号2时,退出待命状态,并执行S204或206,信号2用于指示退出待命状态。
可以理解,用户通过硬件开关实施输入操作2,电子设备100执行S104-S105之后,安全芯片可以接收到硬件开关发送的信号2。
在一种实现方式中,安全芯片存储有预设字段,预设字段取值为第一值时,表征当前进入待命状态;预设字段取值为第二值时,表征当前退出了待命状态。安全芯片接收到信号1后,可以更新上述预设字段的取值为第一值;安全芯片接收到硬件开关发送的信号2后,可以更新上述预设字段的取值为第二值。例如,第一值等于1,第二值等于0。
S206中,安全芯片向控制模块发送上电指令,上电指令用于指示恢复第一功能部件的供电。
可以理解,电子设备100开启隐私模式,第一功能部件断开电源后,用户将电子设备调整为第二姿态,可以触发电子设备100关闭隐私模式,恢复第一功能部件的供电。此外,第一功能部件断开电源后,用户通过硬件开关实施输入操作2,可以触发电子设备100退出待命状态。
在本申请的一些实施例中,S205中,若接收到信号2,则执行S204。即退出待命状态时,若电子设备100依然处于预设姿态,第一功能部件依然断电,则本次等待用户通过调整电子设备100的姿态为第二姿态触发第一功能部件恢复供电。退出待命状态且第一功能部件恢复供电后,用户就不能再通过改变电子设备100的姿态来控制第一功能部件断开和恢复供电,即控制隐私模式开启和关闭。
在本申请的一些实施例中,S205中,若接收到信号2,则执行S206。即信号2触发电子设备100退出待命状态时,还直接触发第一功能部件恢复供电,即使电子设备100还处于预设姿态。
在本申请的另一些实现方案中,如图8C所示,步骤S113具体可以包括步骤S301至步骤S303。图8C所提供的方案中,用户先折叠电子设备100为预设姿态,再实施输入操作1;即电子设备100先执行步骤S107-S108,生成信号3,后执行步骤S101-S102,生成信号1。
S301中,安全芯片根据第一传感器传输的信号3确定电子设备100处于预设姿态。
在本申请的一些实施例中,第一传感器实时将检测到的信号传输给安全芯片,安全芯片根据第一传感器传输的信号确定电子设备100的姿态是否调整为预设姿态;若是,则执行S302。
S302中,预设姿态下,安全芯片接收到信号1时,执行S303,信号1用于指示开启隐私模式。
在本申请的一些实施例中,确定电子设备100处于预设姿态时,安全芯片判断是否接收到硬件开关传输的信号1;若是,则执行S303,即发送下电指令。
S303中,安全芯片向控制模块发送下电指令,下电指令用于指示断开第一功能部件的供电。
可以理解,预设姿态下,用户才可以通过硬件开关控制隐私模式开启或关闭,即控制第一功能部件断开或恢复供电。非预设姿态下,用户操作硬件开关,不会触发第一功能部件断开电源。在一些应用场景中,用户将电子设备100折叠为预设姿态时,并不希望第一功能部件断开电源;相比图7提供的“仅通过预设姿态触发第一功能部件断开电源”的方案,图8C所提供的方案,预设姿态下用户可以根据自己的需求决定是否通过硬件开关触发第一功能部件断开电源。
如图8C所示,S303之后,电子设备100的安全芯片可以分别执行S304和S305。
S304中,安全芯片接收到硬件开关传输的信号2时,执行S306,信号2用于指示退出隐私模式。
在本申请的一些实施例中,第一功能部件断开电源后,安全芯片判断是否接收到硬件开关传输的信号2;若是,则执行S306,即发送上电指令。
S305中,安全芯片根据第一传感器传输的信号4确定电子设备100由预设姿态调整为第二姿态时,执行S304或S306。
在本申请的一些实施例中,第一功能部件断开电源后,安全芯片根据第一传感器传输的信号确定电子设备100是否由预设姿态调整为第二姿态;若是,则执行S306,即发送上电指令。
S306中,安全芯片向控制模块发送上电指令,上电指令用于指示恢复第一功能部件的供电。
可以理解,预设姿态下,用户可以通过硬件开关控制第一功能部件断开/恢复供电,即k开启/关闭隐私模式。
在本申请的一些实施例中,S305中,若调整为第二姿态,则执行S304。即用户将电子设备100的预设姿态调整为第二姿态时,若第一功能部件依然断电,隐私模式处于开启状态,则本次等待用户通过硬件开关控制第一功能部件恢复供电。调整为第二姿态且第一功能部件恢复供电后,用户就不能通过硬件开关来控制第一功能部件断开和恢复供电。
在本申请的一些实施例中,S305中,若调整为第二姿态,则执行S306。即用户将电子设备100的预设姿态调整为第二姿态,还直接触发第一功能部件恢复供电,无需用户操作硬件开关。
图8A至图8C提供的方案中,可以通过硬件开关和第一传感器触发安全芯片发送下电指令,硬件开关、第一传感器、安全芯片、控制模块和第一功能部件均通过电路走线进行信号传输,第三方应用不能篡改和伪造安全芯片发送的下电指令。这样,避免了第三方应用通过软件系统开启隐私模式,以及第三方应用恶意控制第一功能部件断开电源。此外,第一功能部件下电后,通过硬件开关和/或第一传感器触发安全芯片发送上电指令,即通过硬件模块间的信号控制才能触发第一功能部件恢复供电。这样,第三方应用不能通过软件系统触发第一功能部件恢复供电,自然也不能进一步控制第一功能部件采集用户的隐私信息。图8B提供的方案中,待命状态下,用户可以随时通过调整电子设备100的姿态来开启和关闭隐私模式;图8C提供的方案中,预设姿态下,用户可以随时通过硬件开关来开启和关闭隐私模式;均实现了隐私模式与正常业务间的快速切换,保障了用户的使用体验。
在本申请的一些实施例中,电子设备100可以通过硬件开关或将电子设备100折叠为预设姿态,均可触发第一功能部件断开电源。即电子设备100在执行S101-S102和S107-S108中的任一个后,执行S113。示例性的,用户通过硬件开关实施输入操作1后,安全芯片基于信号1发送下电指令;或者,用户折叠电子设备100为预设姿态后,安全芯片基于信号3发送下电指令。这样,在保障信息安全的情况下,为用户提供更多选择,用户可以通过多种方式触发第一功能部件断开电源,满足不同用户的使用需求。
在本申请的一些实施例中,电子设备100可以通过硬件开关或将预设姿态调整为第二姿态,触发第一功能部件恢复供电。即电子设备100在执行S104-S105和S110-S111中的任一个后,执行S114。这样,在保障信息安全的情况下,为用户提供更多选择,用户可以通过多种方式触发第一功能部件恢复供电,满足不同用户的使用需求。
图9A示出了本申请提供的电子设备100的一种结构示意图。
如图9A所示,本申请提供了一种电子设备,所述电子设备包括折叠屏、第一传感器、安全芯片、控制模块和第一功能部件,第一传感器、安全芯片和控制模块通过电路走线直接或间接连接。
其中,第一传感器,用于检测用户的第一操作;第一传感器,还用于根据第一操作向安全芯片发送第一传感器数据,第一传感器数据用于指示电子设备的姿态;安全芯片,用于根据第一传感器数据指示的姿态向控制模块发送第一控制指令,第一控制指令用于指示断开第一功能部件的供电;控制模块用于控制第一功能部件断开或连接电源。
在本申请的一些实施例中,第一传感器,还用于检测用户的第二操作;第一传感器,还用于根据第二 操作向安全芯片发送第二传感器数据,第二传感器数据用于指示电子设备的姿态;安全芯片,还用于根据第二传感器数据指示的姿态,向控制模块发送第二控制指令,第二控制指令用于指示恢复第一功能部件的供电。
本申请实施例中,第一传感器数据可以包括前述信号3,第二传感器数据可以包括前述信号4,第一控制指令可以包括前述下电指令,第二控制指令可以包括前述上电指令。
在本申请的一些实施例中,第一操作包括调整电子设备的姿态为第一姿态的操作,第一传感器数据用于确定电子设备是否处于第一姿态;上述根据第一传感器数据指示的姿态,向控制模块发送第一控制指令,包括:根据第一传感器数确定电子设备处于第一姿态时,向控制模块发送第一控制指令。
在本申请的一些实施例中,第二操作包括调整电子设备的第一姿态为第二姿态的操作,第二传感器数据用于确定电子设备是否处于第二姿态;上述根据第二传感器数据指示的姿态,向控制模块发送第二控制指令,包括:根据第二传感器数据确定电子设备由第一姿态调整为第二姿态时,向控制模块发送第二控制指令。
在本申请的一些实施例中,第一操作包括开启隐私模式,第二操作包括关闭隐私模式。
图9B示出了本申请提供的电子设备100的另一种结构示意图。
如图9B所示,所述电子设备包括检测部件、安全芯片、控制模块和第一功能部件,检测部件、安全芯片和控制模块通过电路走线直接或间接连接。
其中,检测部件,用于检测用户的第一操作;检测部件,还用于根据第一操作,向安全芯片发送第一控制信号,第一控制信号用于指示断开第一功能部件的供电;安全芯片,用于根据第一控制信号向控制模块发送第一控制指令,第一控制指令用于指示断开第一功能部件的供电;控制模块用于控制第一功能部件断开或连接电源。
在本申请的一些实施例中,检测部件,还用于检测用户的第二操作;检测部件,还用于根据第二操作,向安全芯片发送第二控制信号,第二控制信号用于指示恢复第一功能部件的供电;安全芯片,还用于根据第二控制信号向控制模块发送第二控制指令,第二控制指令用于指示恢复第一功能部件的供电。
本申请实施例中,检测部件可以包括前述硬件开关,第一操作可以包括前述输入操作1,第二操作可以包括前述输入操作2,第一控制信号可以包括前述信号1,第二控制信号可以包括前述信号2,第一控制指令可以包括前述下电指令,第二控制指令可以是前述上电指令。
在本申请的一些实施例中,第一操作包括作用于检测部件的操作,第一控制信号包括检测部件根据第一操作生成的信号;第二操作包括作用于检测部件的操作,第二控制信号包括检测部件根据第二操作生成的信号。
在本申请的一些实施例中,第一操作包括开启隐私模式,第二操作包括关闭隐私模式。
在本申请的一些实施例中,电子设备包括折叠屏,检测部件包括硬件开关和第一传感器;第一操作包括作用于硬件开关的操作,以及调整电子设备的姿态为第一姿态的操作,第一控制信号包括硬件开关根据第一操作生成的第一开关信号,以及第一传感器采集的第一传感器数据,第一传感器数据用于确定电子设备是否处于第一姿态;第二操作包括作用于硬件开关的操作,和/或,调整电子设备的第一姿态为第二姿态的操作,第一控制信号包括硬件开关根据第二操作生成的第二开关信号,和/或,第一传感器采集的第二传感器数据,第二传感器数据用于确定电子设备是否处于第二姿态;上述向安全芯片发送第一控制信号,包括:硬件开关向安全芯片发送第一开关信号;第一传感器向安全芯片发送第一传感器数据;上述根据第一控制信号向控制模块发送第一控制指令,包括:接收到第一开关信号,并根据第一传感器数据确定电子设备处于第一姿态时,向控制模块发送第一控制指令;上述向安全芯片发送第二控制信号,包括:硬件开关向安全芯片发送第二开关信号,和/或,第一传感器向安全芯片发送第二传感器数据;上述根据第二控制信号向控制模块发送第二控制指令,包括:接收到第一开关信号,和/或,根据第二控制信号确定电子设备由第一姿态调整为第二姿态时,向控制模块发送第二控制指令。
本申请的各实施方式可以任意进行组合,以实现不同的技术效果。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计 算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘(solid state disk,SSD))等。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,该流程可以由计算机程序来指令相关的硬件完成,该程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法实施例的流程。而前述的存储介质包括:ROM或随机存储记忆体RAM、磁碟或者光盘等各种可存储程序代码的介质。
总之,以上所述仅为本发明技术方案的实施例而已,并非用于限定本发明的保护范围。凡根据本发明的揭露,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。

Claims (15)

  1. 一种电子设备,所述电子设备包括折叠屏、第一传感器、安全芯片、控制模块和第一功能部件,所述第一传感器、所述安全芯片和所述控制模块通过电路走线直接或间接连接;所述控制模块用于控制所述第一功能部件断开或连接电源;
    所述第一传感器,用于检测用户的第一操作;
    所述第一传感器,还用于根据所述第一操作向所述安全芯片发送第一传感器数据,所述第一传感器数据用于指示所述电子设备的姿态;
    所述安全芯片,用于根据所述第一传感器数据指示的姿态向所述控制模块发送第一控制指令,所述第一控制指令用于指示断开所述第一功能部件的供电。
  2. 根据权利要求1所述的电子设备,其特征在于,
    所述第一传感器,还用于检测用户的第二操作;
    所述第一传感器,还用于根据所述第二操作向所述安全芯片发送第二传感器数据,所述第二传感器数据用于指示所述电子设备的姿态;
    所述安全芯片,还用于根据所述第二传感器数据指示的姿态,向所述控制模块发送第二控制指令,所述第二控制指令用于指示恢复所述第一功能部件的供电。
  3. 根据权利要求1或2所述的电子设备,其特征在于,
    所述第一操作包括调整所述电子设备的姿态为第一姿态的操作,所述第一传感器数据用于确定所述电子设备是否处于所述第一姿态;
    所述根据所述第一传感器数据指示的姿态,向所述控制模块发送第一控制指令,包括:
    根据所述第一传感器数确定所述电子设备处于所述第一姿态时,向所述控制模块发送所述第一控制指令。
  4. 根据权利要求2或3所述的电子设备,其特征在于,
    所述第二操作包括调整所述电子设备的第一姿态为第二姿态的操作,所述第二传感器数据用于确定所述电子设备是否处于所述第二姿态;
    所述根据所述第二传感器数据指示的姿态,向所述控制模块发送第二控制指令,包括:
    根据所述第二传感器数据确定所述电子设备由所述第一姿态调整为所述第二姿态时,向所述控制模块发送所述第二控制指令。
  5. 根据权利要求1至4任一项所述的电子设备,其特征在于,所述第一操作包括开启隐私模式,所述第二操作包括关闭隐私模式。
  6. 一种电子设备,所述电子设备包括检测部件、安全芯片、控制模块和第一功能部件,所述检测部件、所述安全芯片和所述控制模块通过电路走线直接或间接连接;所述控制模块用于控制所述第一功能部件断开或连接电源;
    所述检测部件,用于检测用户的第一操作;
    所述检测部件,还用于根据所述第一操作,向所述安全芯片发送第一控制信号,所述第一控制信号用于指示断开所述第一功能部件的供电;
    所述安全芯片,用于根据所述第一控制信号向所述控制模块发送第一控制指令,所述第一控制指令用于指示断开所述第一功能部件的供电。
  7. 根据权利要求6所述的电子设备,其特征在于,
    所述检测部件,还用于检测用户的第二操作;
    所述检测部件,还用于根据所述第二操作,向所述安全芯片发送第二控制信号,所述第二控制信号用于指示恢复所述第一功能部件的供电;
    所述安全芯片,还用于根据所述第二控制信号向所述控制模块发送第二控制指令,所述第二控制指令用于指示恢复所述第一功能部件的供电。
  8. 根据权利要求7所述的电子设备,其特征在于,
    所述第一操作包括作用于所述检测部件的操作,所述第一控制信号包括所述检测部件根据所述第一操作生成的信号;
    所述第二操作包括作用于所述检测部件的操作,所述第二控制信号包括所述检测部件根据所述第二操作生成的信号。
  9. 根据权利要求6至8任一项所述的电子设备,其特征在于,所述第一操作包括开启隐私模式,所述第二操作包括关闭隐私模式。
  10. 一种控制部件的方法,应用于电子设备,所述电子设备包括折叠屏、第一传感器、安全芯片、控制模块和第一功能部件,所述第一传感器、所述安全芯片和所述控制模块通过电路走线直接或间接连接;所述控制模块用于控制所述第一功能部件断开或连接电源;所述方法包括:
    所述第一传感器检测用户的第一操作;
    所述第一传感器根据所述第一操作向所述安全芯片发送第一传感器数据,所述第一传感器数据用于指示所述电子设备的姿态;
    所述安全芯片根据所述第一传感器数据指示的姿态向所述控制模块发送第一控制指令,所述第一控制指令用于指示断开所述第一功能部件的供电。
  11. 根据权利要求10所述的方法,其特征在于,所述方法还包括:
    所述第一传感器检测用户的第二操作;
    所述第一传感器根据所述第二操作向所述安全芯片发送第二传感器数据,所述第二传感器数据用于指示所述电子设备的姿态;
    所述安全芯片根据所述第二传感器数据指示的姿态,向所述控制模块发送第二控制指令,所述第二控制指令用于指示恢复所述第一功能部件的供电。
  12. 根据权利要求10或11所述的方法,其特征在于,
    所述第一操作包括调整所述电子设备的姿态为第一姿态的操作,所述第一传感器数据用于确定所述电子设备是否处于所述第一姿态;
    所述根据所述第一传感器数据指示的姿态,向所述控制模块发送第一控制指令,包括:
    根据所述第一传感器数确定所述电子设备处于所述第一姿态时,向所述控制模块发送所述第一控制指令。
  13. 根据权利要求11或12所述的方法,其特征在于,
    所述第二操作包括调整所述电子设备的第一姿态为第二姿态的操作,所述第二传感器数据用于确定所述电子设备是否处于所述第二姿态;
    所述根据所述第二传感器数据指示的姿态,向所述控制模块发送第二控制指令,包括:
    根据所述第二传感器数据确定所述电子设备由所述第一姿态调整为所述第二姿态时,向所述控制模块发送所述第二控制指令。
  14. 根据权利要求10至13任一项所述的方法,其特征在于,所述第一操作包括开启隐私模式,所述第二操作包括关闭隐私模式。
  15. 一种计算机存储介质,其特征在于,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求10-14任一项所述的方法。
PCT/CN2023/108394 2022-07-22 2023-07-20 控制部件的方法及相关装置 Ceased WO2024017332A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP23842394.1A EP4510031A4 (en) 2022-07-22 2023-07-20 METHOD FOR CONTROLLING A COMPONENT, AND ASSOCIATED APPARATUS
US19/023,334 US20250155934A1 (en) 2022-07-22 2025-01-16 Component control method and related apparatus

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210868752.4A CN117473578A (zh) 2022-07-22 2022-07-22 控制部件的方法及相关装置
CN202210868752.4 2022-07-22

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US19/023,334 Continuation US20250155934A1 (en) 2022-07-22 2025-01-16 Component control method and related apparatus

Publications (1)

Publication Number Publication Date
WO2024017332A1 true WO2024017332A1 (zh) 2024-01-25

Family

ID=89617189

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/108394 Ceased WO2024017332A1 (zh) 2022-07-22 2023-07-20 控制部件的方法及相关装置

Country Status (4)

Country Link
US (1) US20250155934A1 (zh)
EP (1) EP4510031A4 (zh)
CN (1) CN117473578A (zh)
WO (1) WO2024017332A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110602689A (zh) * 2019-07-30 2019-12-20 华为技术有限公司 一种设备安全操作的方法和装置
WO2020155876A1 (zh) * 2019-01-31 2020-08-06 华为技术有限公司 控制屏幕显示的方法及电子设备
CN112860359A (zh) * 2019-11-28 2021-05-28 华为技术有限公司 一种折叠屏的显示方法及相关装置
CN114329496A (zh) * 2021-12-31 2022-04-12 龙芯中科(成都)技术有限公司 操作系统的可信启动方法和电子设备

Family Cites Families (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5303171A (en) * 1992-04-03 1994-04-12 Zenith Data Systems Corporation System suspend on lid close and system resume on lid open
US7620830B2 (en) * 2006-06-30 2009-11-17 Lenovo Singapore Pte. Ltd. Halt state for protection of hard disk drives in a mobile computing environment
US8924708B2 (en) * 2007-01-22 2014-12-30 Simon Yoffe Security switch
US8090961B2 (en) * 2007-01-22 2012-01-03 Simon Yoffe Security switch
KR20150048575A (ko) * 2013-10-28 2015-05-07 엘지전자 주식회사 이동 단말기 및 이동 단말기의 제어 방법
US10051176B2 (en) * 2014-08-27 2018-08-14 Hewlett-Packard Development Company, L.P. Enablement and disablement of cameras
KR20170075327A (ko) * 2015-12-23 2017-07-03 삼성전자주식회사 전력을 관리하는 전자 장치 및 그 제어 방법
CN205485729U (zh) * 2016-01-14 2016-08-17 程晟 辅助装置和移动电子设备组件
US20170263254A1 (en) * 2016-03-10 2017-09-14 lntel IP Corporation Malware-proof privacy indicator
US10915484B2 (en) * 2017-02-24 2021-02-09 Digital 14 Llc Peripheral disconnection switch system and method
ES2902776T3 (es) * 2017-08-11 2022-03-29 Signify Holding Bv Procedimientos y aparatos para detectar la conexión o desconexión de una carga auxiliar a un circuito excitador
US10761404B2 (en) * 2017-12-11 2020-09-01 Handstands Promo, Llc Privacy shutter for computer camera
CN109815676B (zh) * 2019-01-29 2021-07-02 维沃移动通信有限公司 一种隐私空间操作方法及终端设备
KR102859175B1 (ko) * 2019-04-09 2025-09-15 삼성전자 주식회사 전자 장치 및 폴더블 디스플레이를 제어 및 운영하는 방법
KR102780906B1 (ko) * 2019-04-24 2025-03-17 삼성전자주식회사 폴더블 전자 장치 및 그 동작 방법
US11379016B2 (en) * 2019-05-23 2022-07-05 Intel Corporation Methods and apparatus to operate closed-lid portable computers
CN210201916U (zh) * 2019-10-16 2020-03-27 深圳市雅士长华智能科技有限公司 一种反黑客、防窃听的移动通信终端
KR20210101089A (ko) * 2020-02-07 2021-08-18 삼성전자주식회사 전자 장치의 디스플레이의 열화를 감소시키는 방법 및 그 방법을 적용한 폴더블 전자 장치
KR102176046B1 (ko) * 2020-06-01 2020-11-06 주식회사 정현씨앤씨 사생활 보호 기능을 갖춘 노트북 컴퓨터
KR102920042B1 (ko) * 2021-01-29 2026-01-30 삼성전자주식회사 접이식 전자 장치 및 그 접이식 전자 장치를 이용하여 외부 전자 장치로 전력을 공급하는 방법
EP4395636A1 (en) * 2021-08-31 2024-07-10 Masimo Corporation Privacy switch for mobile communications device
US20240028780A1 (en) * 2022-07-21 2024-01-25 Luis Perez Secure Computerized Device
US12265434B2 (en) * 2023-02-27 2025-04-01 Dell Products L.P. Disregarding spurious power-on and power-off triggers

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020155876A1 (zh) * 2019-01-31 2020-08-06 华为技术有限公司 控制屏幕显示的方法及电子设备
CN110602689A (zh) * 2019-07-30 2019-12-20 华为技术有限公司 一种设备安全操作的方法和装置
CN112860359A (zh) * 2019-11-28 2021-05-28 华为技术有限公司 一种折叠屏的显示方法及相关装置
CN114329496A (zh) * 2021-12-31 2022-04-12 龙芯中科(成都)技术有限公司 操作系统的可信启动方法和电子设备

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4510031A4

Also Published As

Publication number Publication date
US20250155934A1 (en) 2025-05-15
CN117473578A (zh) 2024-01-30
EP4510031A1 (en) 2025-02-19
EP4510031A4 (en) 2025-08-13

Similar Documents

Publication Publication Date Title
KR102470275B1 (ko) 음성 제어 방법 및 전자 장치
US12032410B2 (en) Display method for flexible display, and terminal
CN112671976B (zh) 电子设备的控制方法、装置及电子设备、存储介质
CN110543287B (zh) 一种屏幕显示方法及电子设备
WO2022257889A1 (zh) 显示方法及相关装置
WO2021213164A1 (zh) 应用界面交互方法、电子设备和计算机可读存储介质
KR20210068097A (ko) 시스템 탐색 바 표시 제어 방법, 그래픽 사용자 인터페이스 및 전자 디바이스
CN110602273A (zh) 一种消息显示方法与电子设备
WO2023088459A1 (zh) 设备协同方法及相关装置
CN114556294A (zh) 一种主题切换方法以及主题切换装置
WO2021036770A1 (zh) 一种分屏处理方法及终端设备
US12554371B2 (en) Window display method and related apparatus
WO2021190524A1 (zh) 截屏处理的方法、图形用户接口及终端
CN110647731A (zh) 一种显示方法及电子设备
WO2020107463A1 (zh) 一种电子设备的控制方法及电子设备
WO2021218429A1 (zh) 应用窗口的管理方法、终端设备及计算机可读存储介质
WO2022143180A1 (zh) 协同显示方法、终端设备及计算机可读存储介质
CN115268809A (zh) 多屏协同过程中恢复窗口的方法、电子设备和系统
CN116820288A (zh) 窗口控制方法、电子设备及计算机可读存储介质
US20240220670A1 (en) Device control method and related apparatus
WO2024017332A1 (zh) 控制部件的方法及相关装置
CN115952564B (zh) 数据写入方法和终端设备
US20250165622A1 (en) Device security processing method and electronic device
CN116592756B (zh) 折叠屏夹角的检测方法及电子设备
CN120917416A (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: 23842394

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2023842394

Country of ref document: EP

Ref document number: 23842394.1

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2023842394

Country of ref document: EP

Effective date: 20241114

NENP Non-entry into the national phase

Ref country code: DE