Information protection method and electronic equipment

By setting a privacy protection level for the interface controls of electronic devices and determining whether to perform protection processing based on the privacy protection level of the controls, the problem of insufficient flexibility in protection methods in existing technologies is solved, more fine-grained and flexible privacy information protection is achieved, and the user experience is improved.

CN120705899APending Publication Date: 2025-09-26HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410349586.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-25
Publication Date
2025-09-26

AI Technical Summary

Technical Problem

Existing privacy protection methods are too simple and crude, not flexible enough, and difficult to adapt to the differences in privacy of different information, resulting in an increased risk of user privacy information leakage.

Method used

By setting the privacy protection level for the controls on the interface of the electronic device, determining whether to perform protection processing based on the privacy protection level of the control, generating corresponding images to protect the information, and adopting a control-based protection method, the privacy protection needs of different information can be flexibly responded to.

Benefits of technology

It achieves more fine-grained and flexible privacy information protection, reduces the risk of user privacy information leakage, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120705899A_ABST
    Figure CN120705899A_ABST
Patent Text Reader

Abstract

The invention provides an information protection method and electronic equipment, which are beneficial to improving the flexibility of privacy information protection. The method comprises the steps that a first interface of an application is displayed, first information is displayed on the first interface, a first control used for bearing the first information has a first privacy protection level, and the first privacy protection level corresponds to the privacy degree of the first information; in response to a first operation of the user on the first interface, determining whether to protect the first information according to the first privacy protection level, the first operation being a screen capture operation, a screen recording operation or a screen sharing operation; and when it is determined that the first information is subjected to the protection processing, generating a first image, the first image comprising information after the first information is subjected to the protection processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminals, and in particular to a method for protecting information and an electronic device. Background Art

[0002] Currently, users have increasingly high demands for privacy protection. To protect users' private information, electronic devices can prohibit certain actions that could potentially leak private information on screens displaying private information. For example, on the payment screen in a wallet app, electronic devices can prohibit actions such as screenshots, recordings, and screencasting. This prevents private information from being leaked.

[0003] However, the above protection measures are too simple and crude, and the protection methods are not flexible enough. Summary of the Invention

[0004] The present application provides a method and electronic device for protecting information, which are conducive to improving the flexibility of protecting private information.

[0005] On the first aspect, a method for protecting information is provided. The method can be executed by an electronic device, or by a component configured in the electronic device (such as a processor, chip, or chip system, etc.), or by a logic module or software that can realize all or part of the functions of the electronic device. This application does not limit this.

[0006] The method includes: displaying a first interface of an application, where the first interface displays first information, and a first control for carrying the first information has a first privacy protection level, where the first privacy protection level corresponds to the privacy degree of the first information; in response to a first operation of the user on the first interface, determining whether to perform protection processing on the first information based on the first privacy protection level, where the first operation is: a screenshot operation, a screen recording operation, or a screen sharing operation; and generating a first image when it is determined that the first information is to be protected, where the first image includes information after the protection processing of the first information.

[0007] In this application, the information on the interface of the electronic device is carried by controls. The privacy protection level of the control is an attribute of the control. The application can set the privacy protection level of the control, and each control has its corresponding privacy protection level.

[0008] In this application, the first control is a control used to carry the first information, or in other words, the control used to carry the first information is called the first control.

[0009] Based on the technical solution of the present application, in scenarios where users perform operations such as screenshots, screen recording, and screen sharing, the electronic device can determine whether to protect the first information based on the privacy protection level of the first control. This control-based protection method makes the electronic device's protection of information more targeted and the protection method more flexible, thereby improving the user experience.

[0010] In combination with the first aspect, in certain implementations of the first aspect, the first image also includes second information, and the second control used to carry the second information has a second privacy protection level, the second privacy protection level corresponds to the privacy degree of the second information, and the second privacy protection level is lower than the first privacy protection level.

[0011] In this application, the second information is information in the first interface that is different from the first information, and the first information and the second information have different privacy levels. In scenarios such as screenshots, screen recordings, and screen sharing, the first image generated by the electronic device can achieve differentiated processing of different information based on the privacy protection levels of different controls. For example, the first information may be protected while the second information is not protected. This protection method is more flexible.

[0012] In combination with the first aspect, in certain implementations of the first aspect, in response to a user's first operation on the first interface, determining whether to perform protection processing on the first information is determined according to the first privacy protection level, including: in response to the user's first operation on the first interface, determining whether the first privacy protection level is higher than or equal to a first threshold, the first threshold being a judgment threshold of the privacy protection level for determining whether to perform protection processing on the information carried by the control; when the privacy protection level of the first control is higher than or equal to the first threshold, determining to perform protection processing on the first information; or, when the privacy protection level of the first control is lower than the first threshold, determining not to perform protection processing on the first information.

[0013] In the present application, the decision threshold may be a global decision threshold, that is, the electronic device may implement protection processing for information displayed on the interface of any application in the electronic device based on the decision threshold.

[0014] The decision threshold may also be a decision threshold for the application, that is, the decision threshold is only applicable to the application, and the electronic device may implement protection processing of information displayed on the interface of the application based on the decision threshold.

[0015] In combination with the first aspect, in some implementations of the first aspect, the method further includes: adjusting the decision threshold to a second threshold based on a second operation of the user, where the second threshold is different from the first threshold.

[0016] In the present application, the electronic device can adjust the decision threshold based on the user's second operation, so as to meet the user's protection needs for different information in different scenarios, and the protection method is more flexible.

[0017] In combination with the first aspect, in some implementations of the first aspect, the second threshold is lower than the first threshold, and the method also includes: displaying a second interface of the application, the second interface displaying the first information carried by the first control and the second information carried by the second control; in response to a third operation of the user on the second interface, determining whether the first privacy protection level is higher than or equal to the second threshold, and determining whether the second privacy protection level is higher than or equal to the second threshold, the third operation being: a screenshot operation, a screen recording operation, or a screen sharing operation; when it is determined that the first privacy protection level is higher than or equal to the second threshold, and the second privacy protection level is higher than or equal to the second threshold, generating a second image, the second image including information after protection processing of the first information, and information after protection processing of the second information.

[0018] In the present application, the first information and the second information can also be displayed on the second interface. The first information displayed on the second interface is carried by the first control, and the second information displayed is carried by the second control.

[0019] In combination with the first aspect, in some implementations of the first aspect, the second threshold is higher than the first threshold, and the method also includes: displaying a third interface of the application, the third interface displaying the first information carried by the first control and the second information carried by the second control; in response to a fourth operation of the user on the third interface, determining whether the first privacy protection level is higher than or equal to the second threshold, and determining whether the second privacy protection level is higher than or equal to the second threshold, the fourth operation being: a screenshot operation, a screen recording operation, or a screen sharing operation; when it is determined that the first privacy protection level is lower than the second threshold, and the second privacy protection level is lower than the second threshold, generating a third image, the third image including the first information and the second information.

[0020] In the present application, the first information and the second information can also be displayed on a third interface. The first information displayed on the third interface is carried by the first control, and the second information displayed is carried by the second control.

[0021] In combination with the first aspect, in certain implementations of the first aspect, based on the user's second operation, the decision threshold is adjusted to the second threshold, including: in response to the user's second operation, a fourth interface is displayed, the fourth interface is used to remind the user to adjust the decision threshold to the second threshold, the fourth interface displays an agree option and a reject option, the agree option is for the user to select when agreeing to adjust to the second threshold, and the reject option is for the user to select when rejecting the adjustment to the second threshold; in response to the user selecting the agree option, the decision threshold is adjusted to the second threshold.

[0022] In combination with the first aspect, in certain implementations of the first aspect, there are multiple decision thresholds, and the first threshold is one of the multiple decision thresholds.

[0023] In combination with the first aspect, in some implementations of the first aspect, the first privacy protection level is one of multiple privacy protection levels.

[0024] In combination with the first aspect, in certain implementations of the first aspect, before displaying the first interface of the application, the method further includes: receiving first information; and determining the privacy protection level of the first control as the first privacy protection level based on the privacy degree of the first information.

[0025] For example, the first information is a bank's SMS verification code, and the electronic device receives the first information from the bank's server.

[0026] In a second aspect, an electronic device is provided, comprising one or more processors and one or more memories. The one or more memories are coupled to the one or more processors and configured to store computer program code, wherein the computer program code comprises computer instructions that, when executed by the one or more processors, cause the electronic device to perform the method of any possible implementation of the first aspect.

[0027] In a third aspect, a computer program product is provided, comprising: a computer program (also referred to as code, or instructions), which, when executed, enables a computer to execute the method in any possible implementation of the first aspect.

[0028] In a fourth aspect, a computer-readable storage medium is provided, which stores a computer program (also referred to as code, or instructions) which, when run on a computer, enables the computer to execute the method in any possible implementation of the first aspect above.

[0029] In a fifth aspect, the present application provides a chip system comprising at least one processor for supporting the functions involved in any possible implementation of the first aspect above, such as receiving or processing the data involved in the above method.

[0030] In one possible design, the chip system further includes a memory, which is used to store program instructions and data, and the memory is located inside or outside the processor.

[0031] Optionally, the chip system may consist of a chip, or may include a chip and other discrete devices. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 This is a schematic diagram of the architecture of a declarative UI development framework provided in an embodiment of the present application;

[0033] Figure 2 This is a schematic structural diagram of an electronic device provided in an embodiment of the present application;

[0034] Figure 3 This is a schematic diagram of the architecture of a software system of an electronic device provided in an embodiment of the present application;

[0035] Figure 4 is a schematic flow chart of a method for protecting information provided in an embodiment of the present application;

[0036] Figure 5 This is a logic diagram for processing protection information provided by an embodiment of the present application;

[0037] Figures 6 to 10 This is a schematic diagram of an interface for displaying information on an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0038] The technical solution in this application will be described below with reference to the accompanying drawings.

[0039] Before introducing the information protection method and electronic device provided in the embodiments of the present application, the following points are explained.

[0040] First, in the embodiments described below, various terms and abbreviations, such as control, user interface (UI) framework, etc., are provided for ease of description and should not constitute any limitation on this application. This application does not exclude the possibility of defining other terms in existing or future protocols that can achieve the same or similar functions.

[0041] Second, the first, second and various numerical numbers in the embodiments shown below are only used for the convenience of description and are not intended to limit the scope of the embodiments of the present application.

[0042] Third, "at least one" means one or more, and "more" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b and c can mean: a, or b, or c, or a and b, or a and c, or b and c, or a, b and c, where a, b, c can be single or multiple.

[0043] The following is an introduction to the relevant technologies and concepts involved in this application.

[0044] The applications provided herein with privacy protection features can be implemented based on the Ark Development Framework. The Ark Development Framework is a declarative UI development framework for building distributed application interfaces (such as the Harmony operating system (Harmony OS) application interface and the open source Harmony (OpenHarmony) application interface). Unlike imperative UI frameworks, applications using the Ark Development Framework can intuitively describe the UI interface without having to worry about how the framework implements UI drawing and rendering, thereby achieving minimalist and efficient application development.

[0045] The Ark development framework provides UI capabilities such as controls (also known as components), animations, and state management. In the Ark development framework, UI display is described by control properties, and switching is handled by the framework. Based on this, when the privacy protection mode is set as a control property, the application can dynamically change this property in response to expected events to achieve the effect of switching between normal display mode and privacy protection display mode.

[0046] In this application, controls of the UI framework provide common properties related to privacy protection. For example, the common properties related to privacy protection of UI controls (hereinafter referred to as controls) in this application may include one or more of the following:

[0047] 1. Privacy attributes (private)

[0048] The privacy attribute is used to indicate the display mode of the control. The display modes include normal display mode and privacy protection display mode.

[0049] For example, when the privacy property of a control is set to "true" or "privacy", it indicates that the control is a privacy control, indicating that the display mode is a privacy protection display mode, and the control needs to be displayed using its corresponding display style.

[0050] For example, when the privacy property of a control is set to "false" or "non-privacy", it indicates that the control is a normal control, indicating that the display mode is the normal display mode, and the control can be displayed normally.

[0051] 2. Privacy Protection Display Mode (Private Mode)

[0052] The privacy protection display mode is the display style of privacy information, that is, the display style of the control in the privacy protection display mode. Display styles include fog style, black style, asterisk style, etc., which can be expanded and customized at the framework level.

[0053] 3. Switching privacy attributes (onPrivateChange)

[0054] This callback event is triggered when the control switches between normal display mode and privacy protection display mode.

[0055] 4. Switching the privacy protection display mode (onPrivateModeChange)

[0056] This callback event is triggered when the control switches to a different privacy protection display mode.

[0057] 5. Privacy Level (Private Level)

[0058] The privacy protection level of a control is related to the information it carries. Different controls have different privacy protection levels depending on the information they carry. Optionally, when the electronic device sets the privacy attribute of the control to "true" or "privacy", the electronic device can further set the privacy protection level of the control. Optionally, the privacy attribute of the control and the privacy protection level of the control can be set independently without affecting each other. For example, when the electronic device sets the privacy attribute of the control to "false" or "non-privacy", the electronic device can also set the privacy protection level of the control, that is, the setting of the privacy protection level is not affected by the setting result of the privacy attribute.

[0059] It should be understood that the privacy attributes of controls apply to global scenarios, including but not limited to screen display, screen casting, screenshots, and screen sharing. Screen display can be considered a non-sharing scenario, while screen casting, screenshots, and screen sharing can be considered sharing scenarios. The privacy protection level of controls supplements sharing scenarios such as screen casting, screenshots, and screen sharing, which may disclose personal privacy information to others.

[0060] When the privacy attribute of a control is set to "true" or "private" on an electronic device, the control's privacy protection level is set to any value without affecting the final electronic device's presentation. When the privacy attribute of a control is set to "false" or "non-private" on an electronic device, the control's privacy protection level can also be set to achieve privacy protection in sharing scenarios such as screen casting, screenshots, and screen sharing, which may disclose personal privacy information to others.

[0061] It should be understood that the properties of the control are not limited to the above properties, and may include more or fewer properties than those shown above, or other properties, which is not limited in this application.

[0062] It should be understood that the names of the above control attributes are only examples and should not constitute any limitation to this application. This application does not exclude the possibility of defining other terms that can achieve the same or similar functions in existing or future protocols.

[0063] Figure 1 This is an architectural diagram of a declarative UI development framework provided in an embodiment of the present application. The UI development framework is an infrastructure for developing UIs provided to application developers, including controls, view layouts, animation mechanisms, interaction time processing, etc., as well as corresponding programming languages ​​and models. The UI development framework also includes a runtime, which is responsible for resource loading, UI rendering, and event response required for the application to execute in the system. The architecture of the UI development framework adopts a layered mechanism, including: a front-end framework layer, a language runtime, a declarative UI back-end engine, a rendering engine, and a platform adaptation layer & platform bridging layer.

[0064] The front-end framework layer provides the application with the basic language specifications of the declarative UI development paradigm, and provides built-in controls, layouts, animations, interactions, etc.

[0065] The language runtime can be selected from the Ark Language Runtime, which provides parsing capabilities for UI paradigm syntax, cross-language call support, and a high-performance runtime environment for the TS language.

[0066] The declarative UI backend engine provides a UI rendering pipeline compatible with different development paradigms, as well as a variety of basic controls, layout calculations, animations, and interactive events, providing state management and drawing capabilities.

[0067] The rendering engine provides drawing capabilities and the ability to draw the rendering instructions collected by the rendering pipeline to the screen.

[0068] The platform adaptation layer and platform bridging layer provide an abstract interface to the system platform and have the ability to access different systems, such as the system rendering pipeline and lifecycle scheduling.

[0069] Figure 2is a structural diagram of an electronic device provided in an embodiment of the present application, Figure 2 The electronic device 100 can be equipped with the Harmony operating system and run one or more applications, where each application can be a built-in application of the electronic device 100 (i.e., a system application), such as text messages, gallery, desktop, wallet, phone, etc., or a third-party application, such as instant messaging applications, payment applications, etc. The UI of the above-mentioned application that includes privacy protection function can be developed based on the above-mentioned declarative UI development framework.

[0070] The electronic device 100 may be a terminal device, such as 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 (PDA), an augmented reality (AR) device, a virtual reality (VR) device, an artificial intelligence (AI) device, a wearable device, an in-vehicle device, a smart home device, and / or a smart city device. The embodiments of the present application do not limit the specific form of the electronic device.

[0071] 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, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identification module (SIM) card interface 195. It will be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or combine some components, split some components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0072] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, a display processing unit (DPU), and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors. In some embodiments, the electronic device 100 may also include one or more processors 110. The processor may serve as the nerve center and command center of the electronic device 100. The processor may generate operation control signals based on instruction opcodes and timing signals to control instruction fetching and execution. The processor 110 may also include memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory may store instructions or data used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can directly call it from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110 , and thus improves the efficiency of the electronic device 100 .

[0073] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a USB interface.

[0074] It is understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is for illustrative purposes only and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods from the above embodiments, or a combination of multiple interface connection methods.

[0075] The electronic device 100 can implement display functions through a GPU, display screen 194, and an application processor. The application processor may include an NPU and / or a DPU. The GPU is a microprocessor for image processing that connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute instructions to generate or change display information.

[0076] Display screen 194 is used to display images, videos, and the like. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-oLED, or a quantum dot light-emitting diode (QLED). In some embodiments, electronic device 100 may include one or N display screens 194, where N is a positive integer greater than one.

[0077] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 via the external memory interface 120 to implement data storage functions. For example, data files such as music, photos, and videos can be stored on the external memory card.

[0078] The internal memory 121 can be used to store one or more computer programs, which include instructions. The processor 110 can enable the electronic device 100 to perform various functional applications and data processing by running the above instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. The program storage area may store an operating system; the program storage area may also store one or more applications (such as a gallery, contacts, etc.). The data storage area may store data created during the use of the electronic device 100 (such as photos, contacts, etc.). In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. In some embodiments, the processor 110 can enable the electronic device 100 to perform various functional applications and data processing by running the instructions stored in the internal memory 121 and / or the instructions stored in the memory provided in the processor 110.

[0079] The sensor module 180 may include a pressure sensor 180A, a gyroscope 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, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.

[0080] Figure 3 This is a schematic diagram of the software system architecture of an electronic device provided in an embodiment of the present application. The electronic device may have the above Figure 2 The software system may adopt the Hongmeng architecture and may include an application layer 310, an application framework layer 320, a system service layer 330, and a kernel layer 340. In other embodiments, the distributed operating system may also include other number of hierarchical structures, which are not limited here.

[0081] The application layer 310 may include a series of applications such as system applications, extended applications (or third-party applications), etc. For example, desktop, phone, camera, SMS, gallery, instant messaging applications, payment applications, etc.

[0082] The application framework layer 320 provides a multi-language framework for the application layer 310 , including a UI framework 321 , a user program framework 322 , and a capability framework 323 .

[0083] Among them, the UI framework 321 is, for example, the above Figure 1The declarative UI framework shown. The UI framework 321 parses the UI interface of the application, generates specific drawing instructions by creating specific backend controls, performing layout calculations, loading resources, etc., and sends the drawing commands to the rendering engine. The rendering engine converts the drawing instructions into specific screen pixels and finally displays the UI interface of the application through the display device. Among them, the controls of the UI interface of the application with privacy protection function include but are not limited to the above Figure 1 The privacy-related properties described in the UI framework shown above require that controls consider their privacy properties, privacy protection level, and display style when performing layout calculations, and then draw the UI interface based on these properties, privacy protection level, and display style.

[0084] The application framework layer 320 provides an application programming interface (API) for applications in the application layer 310. In the present application, the application framework layer 320 includes a first interface through which an application can set properties of a control, for example, the length, width, privacy protection level, or display style of the control.

[0085] The system service layer 330 is the core capability set of the operating system, providing services to applications through the application framework layer 320. The system service layer 330 includes the following parts:

[0086] System basic capability subsystem set: provides basic capabilities for the operation, scheduling, migration and other operations of distributed applications on multiple devices. It consists of distributed soft bus, distributed data management, distributed task scheduling, Ark multi-language runtime, public basic library, multi-mode input, graphics, security, AI and other subsystems.

[0087] Among them, the distributed soft bus is a logical channel that can be used for communication between devices.

[0088] Basic software service subsystem set: Provides public and general software services for the system. It consists of subsystems such as event notification, telephone, multimedia, design for X (DFX) for various / certain links in the product life cycle, mobile sensing development platform (MSDP), and device virtualization (DV).

[0089] Enhanced software service subsystem set: Provides the system with differentiated capability-enhancing software services for different devices, including subsystems such as smart screen proprietary services, wearable proprietary services, and Internet of Things (IoT) proprietary services.

[0090] Hardware service subsystem set: provides hardware services and consists of subsystems such as location services, biometric recognition, wearable proprietary hardware services, and IoT proprietary hardware services.

[0091] According to the deployment environment of different device forms, the basic software service subsystem set, enhanced software service subsystem set, and hardware service subsystem set can be tailored according to the subsystem granularity, and each subsystem can be tailored according to the functional granularity.

[0092] The kernel layer 340 mainly includes the kernel subsystem and the driver subsystem. The kernel subsystem can adopt a multi-core design to support the selection of appropriate operating system kernels for different resource-constrained devices. The driver subsystem: provides unified peripheral access capabilities and a driver development and management framework.

[0093] Taking the mobile phone as an example, as a device that processes personal information, mobile phone applications inevitably contain personal privacy information. Currently, private information within applications is primarily protected by specific controls or by the application itself. For example, entered passwords are marked with a star, asset information is hidden in the interface of financial applications, and gallery, browser, and player applications require password verification before viewing history.

[0094] However, the privacy protection capabilities provided by controls are limited to certain features, making them difficult to expand and inflexible. Furthermore, self-implemented protection logic by applications increases the operational complexity of applications.

[0095] In some scenarios, users may accidentally leak personal privacy information. For example, users may accidentally leak a screenshot containing a text message verification code, or users may accidentally leak a chat history containing sensitive content through screen sharing.

[0096] In the current solution, for interfaces within an application that contain private information, the application can declare a privacy mode window, prohibiting the operating system from taking screenshots, recording screens, or sharing screens on the interface, thereby protecting the user's private information from being leaked.

[0097] For example, screenshots of the entire payment code interface of payment apps are not allowed, and the payment code interface appears black when recording or casting a screen. Another example is that when casting a screen, the phone's privacy protection mode is turned on by default, and the phone's notification bar and status bar cannot be shared. This protects the information displayed in the notification bar and status bar from being leaked.

[0098] However, the protection method for declaring a privacy mode window is too simple and crude, and the protection method is not flexible enough.

[0099] In view of this, an embodiment of the present application provides a method for protecting information. In this method, the electronic device can set a privacy protection level for the control that carries information in the application interface. The electronic device can determine whether the information carried by the control needs to be protected based on the privacy protection level of the control. In this way, the information can be protected in a more fine-grained manner and the protection method is more flexible.

[0100] Figure 4 This is a schematic flow chart of a method 400 for protecting information provided by an embodiment of the present application. The method 400 may be executed by an electronic device, which may have the above-mentioned Figure 2 and / or Figure 3 The architecture shown is not limited to this.

[0101] Method 400 includes S401 to S403, and the specific steps are as follows:

[0102] S401, displaying a first interface of an application, where the first interface displays first information, and a first control for carrying the first information has a first privacy protection level corresponding to a privacy degree of the first information.

[0103] In the embodiments of the present application, the information displayed in the interface of the electronic device is carried by corresponding controls, and each control has a privacy protection level. This embodiment of the present application uses the first interface of the application displayed by the electronic device as an example to describe how to protect the information displayed in the first interface. The information in other interfaces displayed by the electronic device can also be protected using the methods of the embodiments of the present application.

[0104] The application is any application in the electronic device. The application can be a system application in the electronic device or a third-party application in the electronic device. This embodiment of the present application does not limit this.

[0105] The first interface is any interface in the application, and the information displayed in the first interface is carried by controls. Among them, controls can also be called components, and can include controls such as text, buttons, images, input boxes, progress indicators, and sliders.

[0106] For example, if the first information is text information, the first control used to carry the first information is a text control.

[0107] For another example, if the first information is picture information, the first control used to carry the first information is a picture control.

[0108] Not limited to the above basic controls, controls may also include container controls, scroll controls, functional controls, drawing controls, and custom controls, etc., which are not limited in the embodiments of the present application.

[0109] Based on the above introduction to the common properties of controls, we can know that the common properties related to privacy protection provided by controls include privacy protection levels. Applications can set privacy protection levels for controls that carry information.

[0110] In the embodiment of the present application, the first control has a first privacy protection level, which can be understood as the privacy protection attribute of the first control being set to the first privacy protection level. The purpose of setting the privacy protection level of the control is to distinguish the privacy level (or sensitivity) of different information, so that the electronic device can decide whether to protect the information based on the privacy level of the information.

[0111] In one possible implementation, the electronic device may classify and label information to distinguish the privacy levels of different information.

[0112] For example, privacy levels include low, medium, and high. Examples of low-privacy information include nicknames and avatars on social apps, chat logs, playlists on audio apps, and historical access records on browser apps. Examples of medium-privacy information include the user's real name, balances in payment apps, transaction records, and bank card numbers. Examples of high-privacy information include SMS verification codes, plaintext passwords, and payment codes.

[0113] The privacy protection level of the first control can be determined according to the privacy degree of the first information carried by the first control. Therefore, the first privacy protection level corresponds to the privacy degree of the first information.

[0114] For example, if the privacy level of the first information is low, then the privacy protection level of the first control used to carry the first information is, for example, low.

[0115] S402 , in response to a first operation of a user on a first interface, determining whether to perform protection processing on first information according to a first privacy protection level, where the first operation is: a screenshot operation, a screen recording operation, or a screen sharing operation.

[0116] In an embodiment of the present application, in a scenario where a user needs to take a screenshot, record a screen, or share the screen of the first interface, the electronic device determines whether to perform protection processing on the first information carried by the first control based on the first privacy protection level of the first control.

[0117] Determining whether to perform protection processing on the first information according to the first privacy protection level can be replaced by determining whether to perform protection processing on the first control according to the first privacy protection level. In other words, protecting the first control is equivalent to protecting the first information.

[0118] The protection processing method is related to the display style of the control described above, such as a fogging style, a blackening style, a mosaic style, an asterisk style, etc. The protection processing is performed on the first information, for example, a fogging process, a blackening process, a mosaic process, or an asterisk process, etc.

[0119] S403: If it is determined that the first information is to be protected, generate a first image, where the first image includes information after the first information is protected.

[0120] The first image is an image generated by the electronic device in response to a first operation of the user on the first interface.

[0121] For example, the first operation is a screenshot operation, and the first image is a screenshot image of the first interface.

[0122] For another example, the first operation is a screen recording operation, and the first image is a screen recording image of the first interface.

[0123] For another example, the first operation is a screen sharing operation, and the first image is a projection image of the first interface that needs to be projected to the opposite-end device.

[0124] The information after the protection processing of the first information will not disclose the user's private content, and plays a role in protecting the user's privacy.

[0125] In an embodiment of the present application, the first control in the interface of the electronic device has the attribute of a privacy protection level. When the user performs operations such as screenshots, screen recording, and screen sharing, the electronic device can determine whether to protect the first information carried by the first control based on the privacy protection level of the first control. In this way, the protection method with controls as the granularity is more targeted, can protect information in a more fine-grained manner, and the protection method is more flexible.

[0126] In one possible implementation, the first privacy protection level is one of multiple privacy protection levels. For example, the multiple privacy protection levels include "high," "medium," and "low." Another example includes "strong," "medium," and "weak." Another example includes "level 1," "level 2," "level 3," and "level 4," where level 1 is the highest protection level and level 4 is the lowest. Alternatively, level 1 is the lowest protection level and level 4 is the highest protection level.

[0127] It should be understood that the privacy protection levels are not limited to the above examples, and the privacy protection levels may also include more or fewer levels than those shown above, and this application does not impose any limitation on this.

[0128] In one possible implementation, the electronic device may determine whether to perform protection processing on the first information based on a decision threshold and a first privacy protection level. The decision threshold is a privacy protection level decision threshold used to determine whether to perform protection processing on the information carried by the control. When the electronic device leaves the factory, the privacy protection policy of the electronic device is the first privacy protection policy, which is the default privacy protection policy of the electronic device, and the corresponding decision threshold is the default threshold. During the user's use of the electronic device, the electronic device may sense the user's usage scenario or adjust the decision threshold based on the user's settings.

[0129] Optionally, there are multiple decision thresholds, and the first threshold is one of the multiple decision thresholds. The number of the multiple decision thresholds is the same as the number of the multiple privacy protection levels, and the decision thresholds are expressed in a manner consistent with the manner in which the privacy protection levels are expressed. For example, if the multiple privacy protection levels include "strong," "medium," and "weak," then the multiple decision thresholds include "strong," "medium," and "weak."

[0130] In the embodiments of the present application, a decision threshold is set because not all information requires protection processing. In some scenarios, a single interface may contain both highly private information and less private information. The user only needs to protect the more private information, while the less private information needs to be displayed normally. Therefore, based on the setting of the decision threshold, the electronic device can determine whether to protect the first control, or in other words, whether to protect the first information carried by the first control, based on the decision threshold and the privacy protection level of the first control.

[0131] It should be noted that when the electronic device leaves the factory, under the first privacy protection strategy, the default threshold of the privacy protection level is, for example, "high". In this way, the electronic device only protects the information carried by controls with a privacy protection level of "high". In scenarios such as screenshots, screen recording, and screen sharing, the electronic device can protect the user's key privacy information from being leaked while minimizing the interference caused to the user's viewing of information.

[0132] More privacy protection strategies can also be provided in electronic devices, and different privacy protection strategies correspond to different decision thresholds. For example, a second privacy protection strategy and a third privacy protection strategy are also included. Under the second privacy protection strategy, the decision threshold is, for example, "medium", and the electronic device can protect the information carried by controls with a privacy protection level of "medium" and the information carried by controls with a privacy protection level of "high". Under the third privacy protection strategy, the decision threshold is, for example, "low", and the electronic device can protect the information carried by controls with a privacy protection level of "low", the information carried by controls with a privacy protection level of "medium", and the information carried by controls with a privacy protection level of "high".

[0133] The following description uses multiple privacy protection levels including "high", "medium", and "low" and multiple decision thresholds including "high", "medium", and "low" as examples.

[0134] Figure 5 This is a processing logic diagram of protecting information provided by an embodiment of the present application. After obtaining the first information, the application of the electronic device determines the privacy of the first information, and then the application of the electronic device determines the privacy of the first information through the application framework layer of the electronic device (for example Figure 2 The first interface provided by the application framework layer 320 in the electronic device sets the privacy protection level of the first control to the first privacy protection level. Afterwards, the application framework layer of the electronic device determines whether the first privacy protection level is higher than or equal to the first threshold. In the case of determining that the privacy protection level of the first control is higher than or equal to the first threshold, the application framework layer of the electronic device determines to perform protection processing on the first information, and then outputs the first information after performing protection processing in response to the user's first operation. In the case of determining that the privacy protection level of the first control is lower than the first threshold, the application framework layer of the electronic device determines not to perform protection processing on the first information, and then outputs the first information as is in response to the user's first operation.

[0135] As an optional embodiment, the first image further includes second information, and the second control for carrying the second information has a second privacy protection level, the second privacy protection level corresponding to the privacy level of the second information, and the second privacy protection level is lower than the first privacy protection level. In other words, the first interface also displays second information, and the first and second information have different privacy levels. In response to the user's first operation on the first interface, the electronic device determines whether to protect the first information based on whether the first privacy protection level is greater than or equal to the first threshold, and determines whether to protect the second information based on whether the second privacy protection level is greater than or equal to the first threshold.

[0136] When the first privacy protection level is greater than or equal to the first threshold and the second privacy protection level is less than the first threshold, the electronic device generates a first image. The first image includes information after the first information has been protected and the second information, wherein the second information has not been protected, that is, the second information is output as is.

[0137] The following combination Figures 6 to 10 This section describes a schematic diagram of an electronic device's interface for displaying information.

[0138] Figure 6 This is a schematic diagram of an interface provided by an embodiment of the present application. The first interface is, for example, Figure 6The notification interface shown in a in FIG. 1 displays a text message notification message, which includes a title, the number of the text sender, and the text of the text message. In this example, the text of the text message includes a verification code, which is usually highly private information.

[0139] The first information is, for example, the text of a text message, such as "Your text message verification code is: 854195, please do not disclose." The second information is, for example, the title of the text message notification message or the number of the text message sender. The title of the text message notification message is, for example, "Text message," and the text message sender's number is, for example, "955XX."

[0140] pass Figure 6 As can be seen from a in the figure, the first information and the second information can be displayed normally in the interface presented to the user by the electronic device, which does not affect the user's normal browsing of information.

[0141] See also Figure 6 From the application perspective shown in b in FIG, the SMS application sets the control used to carry the body text of the SMS to the first privacy protection level, and sets the privacy protection level of the control used to carry the title of the SMS notification message or the number of the SMS sender to the second privacy protection level.

[0142] Assuming the first threshold is "Medium," the text of the SMS message, including the verification code, has a high degree of privacy, so the first privacy protection level is, for example, "High." The subject line of the SMS notification message and the SMS sender's number have a low degree of privacy, so the second privacy protection level is, for example, "Low." If the first privacy protection level is above the first threshold, the electronic device protects the text of the SMS message. If the second privacy protection level is below the first threshold, the electronic device does not protect the subject line of the SMS notification message and the SMS sender's number.

[0143] In response to a first operation of the user on the first interface, such as a screenshot operation, the electronic device generates a first image, such as a screenshot image. Figure 6 As shown in Figure c, the text of the SMS message is starred in the first image, while the title of the SMS notification message and the sender's number are displayed normally in the screenshot. This allows electronic devices to provide targeted protection for the information carried by different controls based on their privacy protection levels, providing a more flexible protection approach.

[0144] In one possible implementation, the SMS application can set the privacy attributes of the controls used to carry the title of the SMS notification message and the control used to carry the SMS sender's number to "false." This means that the title of the SMS notification message and the SMS sender's number do not require privacy protection, and therefore do not need to set a privacy protection level. In this way, when the user triggers the first operation, the electronic device will display the title of the SMS notification message and the SMS sender's number normally if it determines that the privacy attributes of the controls used to carry the title of the SMS notification message and the SMS sender's number are set to "false."

[0145] Figure 7 This is another interface diagram provided by the embodiment of the present application. The first interface is, for example, Figure 7 The payment code interface of the wallet application shown in a in FIG. 1 shows the payment code text, a QR code, and bank card information. The first information is, for example, a QR code, and the second information is, for example, bank card information, such as "XX Bank Credit Card (55XX)".

[0146] See also Figure 7 From the application perspective shown in b in Figure 1, the wallet app sets the control used to carry the QR code to the first privacy protection level and the control used to carry the bank card information to the second privacy protection level. In this example, the QR code is highly private information, so the first privacy protection level is, for example, "High." The bank card information is moderately private information, so the second privacy protection level is, for example, "Medium."

[0147] Assuming that the first threshold is "high", in response to the user's first operation on the first interface, such as a screenshot operation, the electronic device generates a first image when it determines that the first privacy protection level is equal to the first threshold and the second privacy protection level is lower than the first threshold. Figure 7 As shown in c in FIG, it can be seen that the QR code is mosaiced in the first image, and the bank card information is displayed normally in the first image.

[0148] Regarding the payment code displayed on the first interface, in one possible implementation, the wallet application can set the privacy attribute of the control that carries the payment code to "false." This means that the payment code does not require privacy protection, and there is no need to set the privacy protection level of the control that carries the payment code. When the user triggers the first operation, the electronic device can display the payment code normally.

[0149] In one possible implementation, electronic devices provide the strictest protection for controls with a "high" privacy protection level. When the decision threshold is "low," "medium," or "high," even if an application sets the privacy attribute of a control with a "high" privacy protection level to "false," the electronic device's operating system will still protect the information carried by controls with a "high" privacy protection level in scenarios such as screenshots, screen recordings, and screen sharing.

[0150] In another possible implementation, if the application sets the privacy attribute of the control to "false" and also sets the privacy protection level of the control to "medium," when the decision threshold is "high," the operating system of the electronic device may not protect the information carried by the control in scenarios such as screenshots, screen recordings, and screen sharing. When the decision threshold is "medium" or "low," the operating system of the electronic device may protect the information carried by the control in scenarios such as screenshots, screen recordings, and screen sharing.

[0151] In another possible implementation, if the application sets the privacy attribute of the control to "false" and also sets the privacy protection level of the control to "low," when the decision threshold is "high" or "medium," the operating system of the electronic device may not protect the information carried by the control in scenarios such as screenshots, screen recordings, and screen sharing. When the decision threshold is "low," the operating system of the electronic device may protect the information carried by the control in scenarios such as screenshots, screen recordings, and screen sharing.

[0152] As an optional embodiment, the method 400 further includes: the electronic device adjusting the decision threshold to a second threshold based on a second operation of the user, where the second threshold is one of a plurality of decision thresholds and is different from the first threshold.

[0153] In one possible design, the second operation involves, for example, setting a decision threshold for the user. For example, a user can adjust the decision threshold in scenarios where they perceive a risk of privacy leakage, or in scenarios such as "conference presentations," proactively enhancing information protection. In scenarios like "conference presentations," more information that users don't normally pay much attention to or that is of low privacy concern can be fully protected during screen sharing, preventing unexpected information leaks.

[0154] For example, the setting interface of the electronic device includes an option for setting a decision threshold, and the user can set the decision threshold in the setting interface.

[0155] In another possible design, the second operation is, for example, an operation for setting a privacy protection policy by the user. Adjustment of the privacy protection policy by the user will result in adjustment of the decision threshold. The operation for setting the privacy protection policy by the user includes direct setting and indirect setting.

[0156] In the case of direct setting, for example, the setting interface of the electronic device includes an option to set a privacy protection policy, and the user can set the privacy protection policy in the setting interface.

[0157] In the case of indirect settings, for example, the user sets the system font to the largest, or sets the system to the elderly version, the electronic settings can sense that the user currently using the electronic device is most likely an elderly person. Therefore, the electronic device can enable a privacy protection policy corresponding to the elderly mode, such as the second privacy protection policy or the third privacy protection policy mentioned above, thereby strengthening the protection of privacy information.

[0158] The above-mentioned method of adjusting the decision threshold requires the user to actively set it. In addition, the operating system of the electronic device can also automatically adjust the decision threshold according to the specific scenario.

[0159] For example, when an electronic device receives a risky text message, it automatically lowers the judgment threshold to better protect the user's privacy information from being leaked.

[0160] For another example, when an electronic device receives a risky call, it automatically lowers the decision threshold to better protect the user's privacy information from being leaked.

[0161] Electronic devices adjust the decision threshold based on specific scenarios and user settings, allowing them to flexibly protect the information carried by controls and prevent the leakage of private information. This eliminates the need for electronic device applications to declare privacy protection windows for screens containing private information in scenarios such as screenshots, thus reducing the application's workload.

[0162] In one possible implementation, the electronic device adjusts the decision threshold to the second threshold based on the second user operation, including: the electronic device displays a fourth interface in response to the second user operation, the fourth interface displaying an "Agree" option and a "Reject" option. The "Agree" option is for the user to select if the user agrees to adjust the decision threshold to the second threshold, and the "Reject" option is for the user to select if the user refuses to adjust the decision threshold to the second threshold.

[0163] In this manner, the electronic device can adjust the decision threshold with the user's consent, so that the adjustment of the decision threshold meets the user's needs.

[0164] Figure 8This is another interface diagram provided by an embodiment of the present application. The browser application sets the privacy protection level of the control used to carry historical access records to "low". Assuming the first threshold is "high", the electronic device will not protect the historical access records in operation scenarios such as screenshots, screen recording, and screen sharing. However, in some scenarios, such as when the user needs to hide the browser's historical access records during screen sharing, the user can lower the decision threshold to the second threshold.

[0165] Assuming the second threshold is "low", the first interface is, for example, Figure 8 As shown in a, the user's historical access records are displayed, and the historical access records include "URL 1", "URL 2" and "URL 3". Taking the first information as "URL 1" as an example, the privacy protection level of the control carrying "URL 1" is the first privacy protection level. Figure 8 From the application perspective shown in b in FIG, the browser application sets the first privacy protection level to “low”.

[0166] In response to a first operation of the user on the first interface, such as a screenshot operation, the electronic device generates a first image when determining that the first privacy protection level is equal to the second threshold. Figure 8 As shown in c in FIG, it can be seen that the content "URL 1" in the historical access record is star-marked in the first image. Similarly, "URL 2" and "URL 3" are also star-marked.

[0167] As an optional embodiment, based on the judgment threshold being a second threshold and the second threshold being lower than the first threshold, in one possible scenario, the electronic device displays a second interface of the application, which may be the same as or different from the first interface, and this application does not limit this. The second interface displays the first information carried by the first control, and the first control has a first privacy protection level. The second interface also displays the second information carried by the second control, and the second control has a second privacy protection level.

[0168] Assume that the first threshold is "high" and the adjusted second threshold is "medium". Figure 9 This is another interface diagram provided by the embodiment of the present application. The second interface is as follows: Figure 9 As shown in a, the first information is, for example, a QR code, and the privacy protection level of the control carrying the QR code is the first privacy protection level; the second information is, for example, bank card information, and the privacy protection level of the control carrying the bank card information is the second privacy protection level.

[0169] See also Figure 9In the application perspective shown in b in FIG, the wallet application sets the first privacy protection level to "high" and the second privacy protection level to "medium". In response to the user's third operation on the second interface, the electronic device generates a second image when it determines that the first privacy protection level is higher than the second threshold and the second privacy protection level is equal to the second threshold. Figure 9 As shown in b, the second image generated by the electronic device in response to the third operation includes information obtained by protection processing on the first information and information obtained by protection processing on the second information.

[0170] Regarding the payment code displayed on the second interface, in one possible implementation, the wallet application can set the privacy attribute of the control that carries the payment code to "false." This means that the payment code does not require privacy protection, and there is no need to set the privacy protection level of the control that carries the payment code. When the user triggers the first operation, the electronic device can display the payment code normally.

[0171] In this embodiment of the present application, after the electronic device lowers the decision threshold to the second threshold, because the first privacy protection level is higher than the second threshold and the second privacy protection level is equal to the second threshold, the electronic device can simultaneously protect the first information and the second information. Lowering the decision threshold can protect some information with lower privacy, which helps prevent the accidental leakage of user information.

[0172] As an optional embodiment, based on the judgment threshold being the second threshold, which is higher than the first threshold, in another possible scenario, the electronic device displays a third interface of the application. The third interface may be the same as or different from the first interface, and this application does not limit this. The third interface displays the first information carried by the first control, and the first control has a first privacy protection level. The second interface also displays the second information carried by the second control, and the second control has a second privacy protection level.

[0173] Assume that the first threshold is "medium" and the adjusted second threshold is "high". Figure 10 This is another interface diagram provided in the embodiment of the present application. For example, the third interface Figure 10 As shown in a, the first information is, for example, bank card information, and the privacy protection level of the control carrying the first information is the first privacy protection level. The second information is, for example, a payment code, and the privacy protection level of the control carrying the payment code is the second privacy protection level.

[0174] See also Figure 10 As shown in b, the wallet application sets the first privacy protection level to "medium" and the second privacy protection level to "low". The privacy protection level of the control used to carry the QR code in this interface is set to "high".

[0175] In response to the user's fourth operation on the third interface, the electronic device generates a third image when it determines that the first privacy protection level is lower than the second threshold and the second privacy protection level is lower than the second threshold. The third image includes the first information and the second information, that is, the electronic device does not perform protection processing on the first information and the second information, and outputs the first information and the second information as is.

[0176] In this embodiment of the present application, after the electronic device raises the decision threshold to the second threshold, because the first privacy protection level is lower than the second threshold, and the second privacy protection level is lower than the second threshold, the electronic device can simultaneously output the first information and the second information as is. Raising the decision threshold can protect some critical information while omitting some less private information, thus satisfying the user's need to share information with a lower degree of privacy.

[0177] An embodiment of the present application further provides a computer-readable storage medium for storing a computer program. When the computer program is run on a computer, the electronic device executes the method described in the above embodiment.

[0178] An embodiment of the present application further provides a computer program product, which includes: a computer program or instructions, which, when executed, enables an electronic device to execute the method described in the above embodiment.

[0179] The terms used in the embodiments of the present application are for the purpose of describing specific embodiments only and are not intended to limit the present application. As used in the specification and appended claims of this application, the singular expressions "a," "an," "said," "above," "the," and "this" are intended to include plural expressions as well, unless the context clearly indicates otherwise. It should also be understood that the term "and / or" as used in this application refers to and encompasses any and all possible combinations of one or more of the listed items.

[0180] As used in the above embodiments, the terms “when…” or “in the case of…” may be interpreted as “if…” or “after…” or “in response to determining…” or “in response to detecting…”, depending on the context. Similarly, the phrases “upon determining…” or “if (stated condition or event) is detected” may be interpreted as “if determining…” or “in response to determining…” or “upon detecting (stated condition or event)” or “in response to detecting (stated condition or event)”, depending on the context.

[0181] Those skilled in the art will appreciate that the modules and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0182] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and modules described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0183] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the modules is merely a logical function division. In actual implementation, there may be other division methods, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.

[0184] The modules described as separate components may or may not be physically separate, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules may be selected to achieve the purpose of the present embodiment according to actual needs.

[0185] In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.

[0186] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0187] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.

Claims

1. A method for protecting information, characterized in that: include: Displaying a first interface of an application, where the first interface displays first information, and a first control for carrying the first information has a first privacy protection level, where the first privacy protection level corresponds to a degree of privacy of the first information; In response to a first operation of the user on the first interface, determining whether to perform protection processing on the first information according to the first privacy protection level, the first operation being: a screenshot operation, a screen recording operation, or a screen sharing operation; In a case where it is determined that the first information is to be protected, a first image is generated, where the first image includes information after the protection processing has been performed on the first information.

2. The method according to claim 1, characterized in that The first image also includes second information, and a second control for carrying the second information has a second privacy protection level, the second privacy protection level corresponds to the privacy degree of the second information, and the second privacy protection level is lower than the first privacy protection level.

3. The method according to claim 2, characterized in that The determining, in response to a first operation of the user on the first interface, whether to perform protection processing on the first information according to the first privacy protection level includes: In response to a first user operation on the first interface, determining whether the first privacy protection level is greater than or equal to a first threshold, where the first threshold is a privacy protection level decision threshold for determining whether to perform protection processing on information carried by the control; When the privacy protection level of the first control is higher than or equal to the first threshold, determining to perform protection processing on the first information; or When the privacy protection level of the first control is lower than the first threshold, it is determined not to perform protection processing on the first information.

4. The method according to claim 3, characterized in that The method further comprises: Based on a second operation of the user, the decision threshold is adjusted to a second threshold, where the second threshold is different from the first threshold.

5. The method according to claim 4, characterized in that The second threshold is lower than the first threshold, and the method further includes: displaying a second interface of the application, where the second interface displays the first information carried by the first control and the second information carried by the second control; In response to a third operation performed by the user on the second interface, determining whether the first privacy protection level is higher than or equal to the second threshold, and determining whether the second privacy protection level is higher than or equal to the second threshold, wherein the third operation is: a screenshot operation, a screen recording operation, or a screen sharing operation; When it is determined that the first privacy protection level is higher than or equal to the second threshold, and the second privacy protection level is higher than or equal to the second threshold, a second image is generated, where the second image includes information after protection processing of the first information and information after protection processing of the second information.

6. The method according to claim 4, characterized in that The second threshold is higher than the first threshold, and the method further includes: displaying a third interface of the application, wherein the third interface displays the first information carried by the first control and the second information carried by the second control; In response to a fourth operation of the user on the third interface, determining whether the first privacy protection level is higher than or equal to the second threshold, and determining whether the second privacy protection level is higher than or equal to the second threshold, the fourth operation being: a screenshot operation, a screen recording operation, or a screen sharing operation; When it is determined that the first privacy protection level is lower than the second threshold and the second privacy protection level is lower than the second threshold, a third image is generated, where the third image includes the first information and the second information.

7. The method according to any one of claims 4 to 6, characterized in that The adjusting the decision threshold to the second threshold based on the second operation of the user includes: In response to the second operation of the user, displaying a fourth interface, the fourth interface being used to remind the user to adjust the decision threshold to the second threshold, the fourth interface displaying an agree option and a reject option, the agree option being selected by the user if the user agrees to adjust the decision threshold to the second threshold, and the reject option being selected by the user if the user rejects the adjustment to the second threshold; In response to the user selecting the consent option, the decision threshold is adjusted to the second threshold.

8. The method according to any one of claims 3 to 7, characterized in that There are multiple decision thresholds, and the first threshold is one of the multiple decision thresholds.

9. The method according to any one of claims 1 to 8, characterized in that The first privacy protection level is one of multiple privacy protection levels.

10. The method according to any one of claims 1 to 9, characterized in that Before displaying the first interface of the application, the method further includes: receiving the first information; The privacy protection level of the first control is determined to be the first privacy protection level according to the privacy degree of the first information.

11. An electronic device, characterized in that: The method comprises one or more processors coupled to a memory, wherein the memory is used to store programs or instructions. When the programs or instructions are executed by the one or more processors, the method according to any one of claims 1 to 10 is performed.

12. A computer-readable storage medium, characterized in that Used for storing a computer program, which enables the method according to any one of claims 1 to 10 to be performed when the computer program is run on a computer.

13. A computer program product, characterized in that include: A computer program or instructions which, when executed, causes the method according to any one of claims 1 to 10 to be performed.