A method for displaying application information and related equipment

By detecting update events of application information on smartphones and displaying locked views when application locks, the problem of insufficient security of application information is solved, achieving higher privacy protection and user experience.

CN113360222BActive Publication Date: 2025-01-10HUAWEI TECH CO LTD

Patent Information

Application Number
CN202010153658.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-03-06
Publication Date
2025-01-10
Estimated Expiration
2040-03-06

AI Technical Summary

Technical Problem

The prior art is difficult to effectively improve the security of smartphone application information, especially when the application is protected by application locks, information may still be presented in other forms, resulting in the risk of privacy leakage.

Method used

By detecting the update event of application information, if the application is locked by the application lock, the electronic device displays a locked view on the widget or notification message of the application information to protect user privacy and directly display application information after unlocking, reducing user operations.

Benefits of technology

It effectively improves the security of application information, prevents privacy leakage, and improves the efficiency of users to view application information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113360222B_ABST
    Figure CN113360222B_ABST
Patent Text Reader

Abstract

The present application discloses a method for displaying application information and related devices, the method comprising: an electronic device detects an update event of application information of a first application, and in response to the update event, the electronic device determines whether the first application is locked by an application lock, the application information may be a widget or a notification message; after determining that the first application is locked by the application lock, the electronic device displays a lock view above the application message. The method provided by the embodiment of the present application can protect the privacy information of the user and improve the security of the application information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electronic technology, and in particular to a method for displaying application information and related equipment. Background Art

[0002] With the gradual improvement and development of the smartphone ecosystem and the gradual increase in smartphone storage, the applications installed on smartphones are becoming more and more diverse. When using applications, users will interact with a large amount of user information, including a lot of user privacy information, such as transaction records, photos, email information, etc.

[0003] In order to prevent the user's private information from being viewed by others, those skilled in the art have proposed the concept of application lock. Application lock is a function on smartphones that is used to protect the private information in applications. If an application is locked by application lock, when the user opens or jumps from the current interface to the protected application, the smartphone will display the lock interface to verify the user's identity. After the user successfully unlocks the application, the smartphone will display the user interface in the application.

[0004] However, in actual use, information in an application is not only displayed in the user interface of the application, but also presented in other forms, such as in a widget on the home screen, in a message notification interface, etc. How to improve the security of application information is an urgent problem to be solved by those skilled in the art. Summary of the invention

[0005] The present application provides a method and related device for displaying application information, which can improve the security of application information.

[0006] In a first aspect, an embodiment of the present application provides a method for displaying application information, the method comprising: an electronic device detects an update event of first application information, the first application information is a widget or a notification message, and the first application information has a corresponding relationship with a first application; the electronic device responds to the update event of the first application information, the electronic device determines that the first application is locked by an application lock, and then the electronic device displays a lock view above the first application information.

[0007] For example, see Figure 4A-4B The first application information may be a view 401 of a calendar application, and the first application may be a calendar application. In this example, the calendar application is locked by the application, and the electronic device displays a locked view above the view 401 of the calendar application, and the locked view may be a locked view 403. For another example, referring to Figure 10A-10BThe embodiment shown. The first application information may be a notification message 1001 of a calendar application, and the locked view may be a locked view 1002. The first application information may also be a notification message 1003 of a calendar application, and the locked view may be a locked view 1004. In this way, when an application is locked by an application lock, the electronic device will display the locked view on the widget or notification message corresponding to the application, which can protect user privacy and improve the security of application information.

[0008] In combination with the first aspect, in a possible implementation method, the first application information is a widget, and the update event of the first application information includes: the electronic device switches from displaying other interfaces to displaying the main screen, the electronic device switches from a screen-off state to displaying the main screen, or the first application information is added to one or more of the main screen; wherein the other interface is a user interface other than the main screen in the user interface displayed by the electronic device; the first application information is a notification message, and the update event of the first application information includes: the first application receives the notification message, the current time reaches the preset display time of the notification message, or one or more items in the outgoing notification message list are called out.

[0009] In combination with the first aspect, in a possible implementation, the electronic device determines that the first application is locked by the application lock, and then the electronic device displays a lock view above the first application information, including: the electronic device determines that the first application is locked by the application lock, and the first application is in an unlocked state, and then the electronic device displays a lock view above the first application information. Wherein, the electronic device determines that the first application is in an unlocked state includes: the electronic device determines that the current moment is more than a first preset time period away from the moment when the application lock of the first application was last successfully unlocked; the electronic device determines that the current moment is more than a second preset time period away from the moment when the user interface of the first application was last displayed; the electronic device determines that after the application lock of the first application was last successfully unlocked, the electronic device performed one or more of the lock screen.

[0010] This possible implementation can be found in Figure 4D In this way, when an application is protected by an application lock and the application is not unlocked, a lock view will be displayed above the application information corresponding to the application, which can protect the application information from being leaked and improve the security of the application information. In addition, when an application is protected by an application lock and the application is unlocked, the electronic device directly displays the application information, which can reduce the user's operations and improve the efficiency of the user in viewing the application information.

[0011] In combination with the first aspect, in a possible implementation, the electronic device determines that the first application is locked by the application lock, and the electronic device displays a lock view above the first application information, including: the electronic device determines that the first application is locked by the application lock, and the data in the first application information is in an unlocked state, and the electronic device displays a lock view above the first application information. This possible implementation can refer to Figure 5C In this way, when an application provides application information in a locked state, the electronic device can display the application information normally and retain the locking mode of the application information of the application itself.

[0012] In combination with the first aspect, in a possible implementation, the electronic device determines that the first application is locked by the application lock, and the electronic device displays a lock view above the first application information, including: the electronic device determines that the first application is locked by the application lock, and the data in the first application information contains data in a locked state, and the electronic device displays a lock view above the data in the first application information in a locked state. This possible implementation can refer to Fig. 5F The corresponding embodiment. The first application information may be a view 511 of a calendar application, in which the display data "coal chemical project report meeting all day" and "community owner committee election 5:50 pm-8:00 pm" are in a locked state. The locked view may be a locked view 512. In this way, the electronic device can encrypt and display the information that needs to be protected and display the regular information normally.

[0013] In combination with the first aspect, in a possible implementation, the electronic device determines that the first application is locked by the application lock, and then the electronic device displays a lock view above the first application information, including: the electronic device determines that the first application is locked by the application lock, the first application is in an unlocked state, and the data in the first application information is in an unlocked state, and then the electronic device displays a lock view above the first application information. This possible implementation can refer to Fig. 6A The corresponding embodiments.

[0014] In combination with the first aspect, in a possible implementation, the method also includes: the electronic device detects an operation on the lock view; in response to the operation, the electronic device displays a password input box, and the password input box is used to receive an unlock password or an unlock trajectory; the electronic device receives the input unlock password or unlock trajectory; when the electronic device determines that the unlock password is the same as a pre-stored unlock password, or the unlock trajectory is the same as a pre-stored unlock trajectory, the electronic device unlocks the lock view.

[0015] This possible implementation can be found in Figure 7A-7C The operation on the locked view may be an operation on the locked view 701. The password input box may be a password input box 703 or a graphic password 704. In other embodiments, the locked view displayed by the electronic device may include a password input box. The user may directly enter the unlock password through the password input box, or enter the unlock track through the graphic password, without operating the locked view. For example, Fig. 10C In the corresponding embodiment, the lock view 1006 includes a password input box 1007. For another example, you can refer to Fig. 10D In the corresponding embodiment, the lock view 1008 includes a password input box 1009. In other embodiments, the electronic device detects an operation on the lock view; in response to the operation, the electronic device may display a dialog box, which may include a password input box. Fig.7D The dialog box 705 in the Fig. 7E Dialog box 707 in.

[0016] In combination with the first aspect, in a possible implementation, the method also includes: the electronic device detects an operation on the locked view; in response to the operation, the electronic device obtains physiological data of the user, and the physiological data includes one or more of fingerprint information, voiceprint information, iris information, and facial information; when the electronic device determines that the physiological data matches pre-stored physiological data, the electronic device unlocks the locked view.

[0017] In combination with the first aspect, in a possible implementation, there are multiple first application information, and the first application information includes second application information and third application information. The method also includes: the electronic device detects a touch operation on the target lock view, and the target lock view is one of the lock view on the second application information and the lock view on the third application information; the electronic device obtains the user's fingerprint information through the screen area where the target lock view is located; when the electronic device determines that the fingerprint information matches the pre-stored fingerprint information and the target lock view is the lock view on the second application information, the electronic device unlocks the lock view above the second application information; when the electronic device determines that the fingerprint information matches the pre-stored fingerprint information and the target lock view is the lock view on the third application information, the electronic device unlocks the lock view above the third application information.

[0018] This possible implementation can be found in Figure 7F-7GIn the corresponding embodiment, the lock view on the second application information may be a lock view 711, and the lock view on the third application information may be a lock view 712. When the user's finger touches the screen area where the lock view 711 is located, and the electronic device matches the fingerprint information obtained by the fingerprint recognition input by the user with the fingerprint information pre-stored in the electronic device, the electronic device unlocks the lock view 711.

[0019] In combination with the first aspect, in a possible implementation, there are multiple first application information, the first application information includes fourth application information and fifth application information, the main screen of the electronic device also includes third application information or the notification message list of the electronic device also includes third application information, and the method also includes: the electronic device collects the user's eye position and facial information; the electronic device determines the gaze position of the human eye according to the eye position; when the electronic device determines that the facial information matches the pre-stored facial information and the gaze position corresponds to the locked view above the fourth application information, the electronic device unlocks the locked view above the fourth application information; when the electronic device determines that the facial information matches the pre-stored facial information and the gaze position corresponds to the locked view above the fifth application information, the electronic device unlocks the locked view above the fifth application information.

[0020] This possible implementation can be found in Figure 7H The electronic device can collect the user's eyeball position through the camera 193 to determine the current gaze position of the human eye, and then determine the application information corresponding to the gaze position as the locked view 733 according to the gaze position. If the electronic device determines that the facial information recognized from the user image obtained by the camera 193 matches the pre-stored facial information, the electronic device unlocks the locked view 733.

[0021] In second aspect, an embodiment of the present application provides a method for displaying application information, the method comprising: the electronic device detects an operation of calling out a historical task interface, the historical task interface including user interfaces of one or more applications running in the background of the electronic device; in response to the operation of calling out the historical task interface, the electronic device determines that a first application is locked by an application lock, then the electronic device displays a lock view above the application interface of the first application, the first application being an application corresponding to a user interface in the historical task interface.

[0022] For example, please refer to Fig.12In the corresponding embodiment, the historical task interface can refer to the user interface 121. The historical task interface includes a contact application interface 1201, a WeChat application interface 1201, and a mailbox application interface 1203. In this example, the WeChat application on the electronic device is locked by the application lock, and the electronic device displays a lock view above the WeChat application interface 1201. In this way, when an application has been locked by the application lock, the electronic device can lock the application interface of the application in the historical task interface, which can avoid the leakage of application information and improve the security of application information.

[0023] In combination with the second aspect, in a possible implementation, the electronic device determines that a first application is locked by an application lock, and the electronic device displays a lock view above the application interface of the first application, including: the electronic device determines that the first application is locked by the application lock, and the first application is in an unlocked state, and the electronic device displays a lock view above the application interface of the first application; wherein the electronic device determines that the first application is in an unlocked state including: the electronic device determines that the current moment is more than a first preset time period away from the last successful unlocking of the application lock of the first application; the electronic device determines that the current moment is more than a second preset time period away from the last display of the user interface of the first application; the electronic device determines that after the last successful unlocking of the application lock of the first application, the electronic device performed one or more of the lock screen operations.

[0024] In combination with the second aspect, in a possible implementation method, the electronic device determines that the first application is locked by the application lock, and the electronic device displays a lock view above the application interface of the first application, including: the electronic device determines that the first application is locked by the application lock, and the data in the application interface of the first application is in an unlocked state, and the electronic device displays a lock view above the application interface of the first application.

[0025] In combination with the second aspect, in a possible implementation method, the electronic device determines that the first application is locked by the application lock, and the electronic device displays a lock view above the application interface of the first application, including: the electronic device determines that the first application is locked by the application lock, and the data in the application interface of the first application contains data in a locked state, then the electronic device displays a lock view above the data in a locked state in the application interface of the first application.

[0026] In combination with the second aspect, in a possible implementation method, the electronic device determines that the first application is locked by the application lock, and the electronic device displays a lock view above the application interface of the first application, including: the electronic device determines that the first application is locked by the application lock, the first application is in an unlocked state, and the data in the application interface of the first application is in an unlocked state, and the electronic device displays a lock view above the application interface of the first application.

[0027] In combination with the second aspect, in a possible implementation, the method also includes: the electronic device detects an operation on the lock view; in response to the operation, the electronic device displays a password input box, and the password input box is used to receive an unlock password or an unlock trajectory; the electronic device receives the input unlock password or unlock trajectory; when the electronic device determines that the unlock password is the same as a pre-stored unlock password, or the unlock trajectory is the same as a pre-stored unlock trajectory, the electronic device unlocks the lock view.

[0028] In combination with the second aspect, in a possible implementation, the method also includes: the electronic device detects an operation on the locked view; in response to the operation, the electronic device obtains physiological data of the user, and the physiological data includes one or more of fingerprint information, voiceprint information, iris information, and facial information; when the electronic device determines that the physiological data matches pre-stored physiological data, the electronic device unlocks the locked view.

[0029] In combination with the second aspect, in a possible implementation, the historical task interface includes user interfaces of multiple applications running in the background of the electronic device, and the historical task interface includes an application interface of a second application and an application interface of a third application. The method also includes: the electronic device detects a touch operation on the target lock view, and the target lock view is one of a lock view on the application interface of the second application and a lock view on the application interface of the third application; the electronic device obtains the user's fingerprint information through the screen area where the target lock view is located; when the electronic device determines that the fingerprint information matches the pre-stored fingerprint information and the target lock view is the lock view on the application interface of the second application, the electronic device unlocks the lock view above the application interface of the second application; when the electronic device determines that the fingerprint information matches the pre-stored fingerprint information and the target lock view is the lock view on the application interface of the third application, the electronic device unlocks the lock view above the application interface of the third application.

[0030] In combination with the second aspect, in a possible implementation, the historical task interface includes user interfaces of multiple applications running in the background of the electronic device, and the historical task interface includes an application interface of a fourth application and an application interface of a fifth application. The method also includes: the electronic device collects the user's eye position and facial information; the electronic device determines the gaze position of the human eye based on the eye position; when the electronic device determines that the facial information matches the pre-stored facial information and the gaze position corresponds to the locked view above the application interface of the fourth application, the electronic device unlocks the locked view above the application interface of the fourth application; when the electronic device determines that the facial information matches the pre-stored facial information and the gaze position corresponds to the locked view above the application interface of the fifth application, the electronic device unlocks the locked view above the application interface of the fifth application.

[0031] In a third aspect, an embodiment of the present application provides a method for displaying application information, the method comprising: the electronic device receives a voice command, the voice command being used to obtain application information in a first application; in response to the voice command, the electronic device determines that the first application is locked by an application lock, then the electronic device does not display or broadcast the application information corresponding to the voice command, or the electronic device displays or broadcasts a prompt message that the first application is locked by the application lock.

[0032] For example, see Fig.13A In the corresponding embodiment, when the user's voice command "What is today's schedule" is detected, in response to the voice command, the electronic device determines that the calendar application is locked by the application lock. The electronic device can display prompt information 1301 and fingerprint prompt 1302. Among them, the prompt information 1301 is used to prompt the user that the calendar application has been protected by the application lock and needs to be unlocked to view the internal information of the application. The fingerprint indicator 1302 is used to indicate the screen area on the display screen that receives the user's fingerprint. The user can unlock the application information through fingerprint unlocking.

[0033] In combination with the third aspect, in a possible implementation, the electronic device determines that the first application is locked by the application lock, then the electronic device does not display or broadcast the application information corresponding to the voice command, or the electronic device displays or broadcasts a prompt message that the first application is locked by the application lock, including: the electronic device determines that the first application is locked by the application lock, and the first application is in an unlocked state, then the electronic device does not display or broadcast the application information corresponding to the voice command, or the electronic device displays or broadcasts a prompt message that the first application is locked by the application lock; wherein, the electronic device determines that the first application is in an unlocked state including: the electronic device determines that the current moment is more than a first preset time period away from the last successful unlocking of the application lock of the first application; the electronic device determines that the current moment is more than a second preset time period away from the last display of the user interface of the first application; the electronic device determines that after the last successful unlocking of the application lock of the first application, the electronic device performed one or more of the lock screen.

[0034] In combination with the third aspect, in a possible implementation method, the method also includes: the electronic device displays a password input box, and the password input box is used to receive an unlock password or an unlock trajectory; the electronic device receives the input unlock password or unlock trajectory; when the electronic device determines that the unlock password is the same as a pre-stored unlock password, or the unlock trajectory is the same as a pre-stored unlock trajectory, the electronic device displays or broadcasts application information corresponding to the voice command.

[0035] In combination with the third aspect, in a possible implementation, the method further includes: the electronic device obtains physiological data of the user, the physiological data including one or more of fingerprint information, voiceprint information, iris information, and facial information; when the electronic device determines that the physiological data matches the pre-stored physiological data, the electronic device displays or broadcasts the application information corresponding to the voice command. For example, refer to Fig. 13B When the electronic device successfully matches the fingerprint information input by the user with the pre-stored fingerprint information, the electronic device queries the calendar application for the itinerary for the day and displays it on the display screen. In addition, while the electronic device displays the prompt message 1303, the electronic device can also broadcast the content of the prompt message 1303.

[0036] In a fourth aspect, an embodiment of the present application provides an electronic device, which includes one or more memories and one or more processors, the one or more memories being coupled to the one or more processors, the one or more memories being used to store computer program code, the program code including computer instructions, and when the one or more processors execute the computer instructions, the electronic device executes the method described in the above-mentioned first aspect and any possible implementation of the first aspect; or executes the method described in the above-mentioned second aspect and any possible implementation of the second aspect; or executes the method described in the above-mentioned third aspect and any possible implementation of the third aspect.

[0037] In a fifth aspect, the present application provides a computer program product, comprising computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the method described in the first aspect and any possible implementation of the first aspect; or executes the method described in the second aspect and any possible implementation of the second aspect; or executes the method described in the third aspect and any possible implementation of the third aspect.

[0038] In a sixth aspect, the present application provides a computer-readable storage medium comprising instructions. When the instructions are executed on an electronic device, the electronic device executes the method described in the first aspect and any possible implementation of the first aspect; or executes the method described in the second aspect and any possible implementation of the second aspect; or executes the method described in the third aspect and any possible implementation of the third aspect.

[0039] It can be understood that the beneficial effects that can be achieved by the computer program product described in the fifth aspect and the computer-readable storage medium described in the sixth aspect can be referred to the beneficial effects in the corresponding methods provided above, and will not be repeated here.

[0040] In an embodiment of the present application, when an application is locked by an application lock, the electronic device will display a lock view on the widget or notification message corresponding to the application, which can protect user privacy and improve the security of application information. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1A is a schematic diagram of a user interface of an electronic device provided in an embodiment of the present application;

[0042] Figure 1B is a schematic diagram of a locking interface provided in an embodiment of the present application;

[0043] Figure 1C This is a flow chart of displaying a lock interface on an electronic device provided by an embodiment of the present application;

[0044] Figure 2A is a schematic diagram of a main screen on an electronic device provided in an embodiment of the present application;

[0045] Figure 2B This is a flowchart of updating view information of a Widget provided in an embodiment of the present application;

[0046] Figure 3A It is a structural schematic diagram of an electronic device provided in an embodiment of the present application;

[0047] Figure 3B It is a software structure block diagram of an electronic device provided in an embodiment of the present application;

[0048] Figure 4A is a schematic diagram of a main screen on another electronic device provided in an embodiment of the present application;

[0049] Figure 4B is a flowchart of a display widget provided by an embodiment of the present application;

[0050] Figure 4C is a schematic diagram of a main screen on another electronic device provided in an embodiment of the present application;

[0051] Figure 4D This is another flowchart of displaying a widget provided by an embodiment of the present application.

[0052] Figure 5A is a schematic diagram of a user interface for displaying a widget provided in an embodiment of the present application;

[0053] Figure 5B is a schematic diagram of another user interface for displaying a widget provided in an embodiment of the present application;

[0054] Figure 5C is another flowchart of displaying a widget provided by an embodiment of the present application;

[0055] Figure 5D This is a flowchart of obtaining view information provided by an embodiment of the present application;

[0056] Figure 5E This is another flowchart for obtaining view information provided by an embodiment of the present application;

[0057] Fig. 5F is a schematic diagram of another user interface for displaying a widget provided in an embodiment of the present application;

[0058] Fig. 6A is another flowchart of displaying a widget provided by an embodiment of the present application;

[0059] Figure 6B is a schematic diagram of some user interfaces provided in the embodiments of the present application;

[0060] Figure 7A-7G is a schematic diagram of some display interfaces provided in the embodiments of the present application;

[0061] Figure 7H is a schematic diagram of an unlocking and locking view provided in an embodiment of the present application;

[0062] Figure 8 is a flow chart of a method for unlocking a locked view provided by an embodiment of the present application;

[0063] Fig. 9A is a schematic diagram of displaying a notification message provided by an embodiment of the present application;

[0064] Fig. 9B is another schematic diagram of displaying a notification message provided in an embodiment of the present application;

[0065] Fig. 10A is a schematic diagram of displaying a notification message provided by an embodiment of the present application;

[0066] Fig. 10B is another schematic diagram of displaying a notification message provided by an embodiment of the present application;

[0067] Fig. 10C is a schematic diagram of a user interface displaying a locked view provided in an embodiment of the present application;

[0068] Fig. 10D is a schematic diagram of another user interface displaying a locked view provided in an embodiment of the present application;

[0069] Fig.10E is a schematic diagram of some user interfaces provided in the embodiments of the present application;

[0070] Fig.11 is a flow chart of a method for unlocking a locked view provided by an embodiment of the present application;

[0071] Fig.12 is a schematic diagram of a historical task interface provided by an embodiment of the present application;

[0072] Fig.13A is a schematic diagram of a display interface provided in an embodiment of the present application;

[0073] Fig. 13B It is a schematic diagram of another display interface provided in an embodiment of the present application. DETAILED DESCRIPTION

[0074] The technical solutions in the embodiments of the present application will be described clearly and in detail below in conjunction with the accompanying drawings. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in the text is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.

[0075] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.

[0076] The following describes electronic devices, user interfaces for such electronic devices, and embodiments for using such electronic devices. In some embodiments, the electronic device may be a personal digital assistant and / or a portable electronic device, such as a mobile phone, a tablet computer, a wearable electronic device with wireless communication capabilities (such as a smart watch), etc. Exemplary embodiments of portable electronic devices include but are not limited to devices equipped with Or a portable electronic device with other operating systems. The portable electronic device may also be other portable electronic devices, such as a laptop computer with a touch-sensitive surface or a touch panel. It should also be understood that in some other embodiments, the electronic device may not be a portable electronic device, but a desktop computer with a touch-sensitive surface or a touch panel.

[0077] The following is an introduction to some terms involved in the embodiments of the present application.

[0078] The term user interface (UI) in the specification, claims and drawings of this application refers to the medium interface for interaction and information exchange between an application or operating system and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. The user interface of an application is a source code written in a specific computer language such as Java and extensible markup language (XML). The interface source code is parsed and rendered on an electronic device, and finally presented as content that the user can recognize, such as pictures, text, buttons and other controls. Controls are the basic elements of the user interface. Typical controls include buttons, widgets, toolbars, menu bars, text boxes, scroll bars, pictures and text. The properties and contents of controls in the interface are defined by tags or nodes, such as XML through <textview> 、 <imgview> 、 <videoview>The controls contained in the interface are specified by nodes such as <head> and <body>. A node corresponds to a control or attribute in the interface. After being parsed and rendered, the node is presented as user-visible content. In addition, many applications, such as hybrid applications, usually also contain web pages in their interfaces. A web page, also known as a page, can be understood as a special control embedded in the application interface. A web page is source code written in a specific computer language, such as hypertext markup language (HTML), cascading style sheets (CSS), JavaScript (JS), etc. The web page source code can be loaded and displayed as user-recognizable content by a browser or a web page display component with similar functions to a browser. The specific content contained in a web page is also defined by tags or nodes in the web page source code. For example, HTML is defined by <body>. 、 、 <video> 、 <canvas>To define the elements and attributes of a web page.

[0079] The most common form of user interface is graphical user interface (GUI), which refers to a user interface related to computer operation that is displayed in a graphical manner. It can be an icon, window, control or other interface element displayed on the display screen of an electronic device.

[0080] The term application lock in the specification, claims and drawings of this application is a function of locking an application, which can protect the user's privacy information. If an application is protected by an application lock, when the user opens or jumps from the current interface to the protected application, or jumps from the current interface to some preset protected interfaces of the protected application (for example, an interface for displaying consumption records, an interface for displaying hidden albums, etc.), or displays some protected views of the protected application (for example, widgets, notification messages, historical task interfaces, etc.), the smartphone can display the lock interface through the main screen application to verify the user's identity, or can display the lock interface through the protected application to verify the user's identity. After the user successfully unlocks the application, the smartphone will display the user interface in this application.

[0081] For example, see Figure 1A , is a schematic diagram of a user interface of an electronic device provided in an embodiment of the present application. The user interface 10 is used to display an application lock setting interface, and the user interface 10 includes: a status bar 206, a return control 207, a switch control 201, a switch control 202, a switch control 203, a switch control 204, and a switch control 205.

[0082] The status bar 206 may include icons such as a signal indicator, a battery indicator, and a time indicator.

[0083] The return control 207 can be used to switch to the previous interface of the current interface. It should be noted that the previous interface has been determined when the application program is set.

[0084] The switch control 201 can be used to turn on or off the application lock function. Figure 1A The switch control 201 in the display is in the on state. When the user clicks the switch control 201, in response to the click operation, the electronic device turns off the application lock function and switches the switch control 201 from the display on state to the display off state (refer to the display state of the control 202).

[0085] The switch control 202 can be used to turn on or off the application lock function of the "Calendar" application. Figure 1A The switch control 202 in the "Calendar" application is in the closed state. When the user clicks the switch control 202, in response to the click operation, the electronic device turns on the application lock function of the "Calendar" application, and switches the switch control 202 from the display closed state to the display open state (refer to the display state of the control 202). After the application lock function of the "Calendar" application is turned on, when the user turns on or jumps to the "Calendar" application from the current interface, the smartphone will display a lock interface to verify the user's identity. Similarly, the user can control the opening or closing of the application lock of the corresponding application through the switch control 203, the switch control 204 and the switch control 205, which will not be repeated here.

[0086] See also Figure 1B , is a schematic diagram of a lock interface provided in an embodiment of the present application. The user interface 11 includes an unlock indicator 211. The screen area where the unlock indicator 211 is located can receive the user's fingerprint information. When the received user's fingerprint information matches the pre-stored fingerprint information, the electronic device successfully verifies the user's identity, and the electronic device no longer displays the lock interface, and switches to display the user interface of the "Calendar" application. It should be noted that the electronic device can also unlock the application lock in other ways, such as: face recognition, iris recognition, voiceprint recognition, password verification, pattern verification, and so on. Corresponding to different forms of unlocking methods, the lock interface can also be other forms of user interfaces.

[0087] See also Figure 1C , is a flow chart of displaying a lock interface on an electronic device provided in an embodiment of the present application. First, the electronic device displays a main screen on the display screen, and the main screen can display application icons of multiple applications. Afterwards, in response to a user's operation (for example, single-click, double-click, etc.) on an application icon (an example is an application icon of a "Calendar" application), the electronic device loads the application interface of the "Calendar" application. If the electronic device detects that the "Calendar" application has turned on the application lock, the electronic device superimposes the lock interface on the upper layer of the application interface. In this way, the user cannot view the application interface of the "Calendar" application, and the user information in the "Calendar" application can be protected. In addition, after the user unlocks the lock interface, the electronic device displays the application interface under the lock interface.

[0088] The term widget (or small part, micro-piece) in the specification, claims and drawings of this application is a form of presentation of application information. A widget corresponds to an application. For example, a calendar widget corresponds to a calendar application, and a mailbox widget corresponds to a mailbox application. Widgets can be embedded in other applications (such as home screen applications) and can update the information they present. Users can view application information of other applications through the widgets in the home screen. Typically, users can customize the widgets displayed on the home screen of an electronic device. Exemplarily, the widgets displayed on the home screen of an electronic device may include a clock, weather, calendar, memo, and so on. Exemplarily, the widgets in the home screen can refer to Figure 2A Calendar widget221 in Figure 4A View 402 of the mailbox application in, and so on.

[0089] The term home screen in the specification, claims and drawings of this application refers to a user interface in an electronic device. The home screen application in an electronic device can be used to display the home screen of the electronic device. The home screen usually includes a status bar, one or more application icons, a page indicator, and a tray of commonly used application icons, etc. Optionally, the user can add some widgets to the home screen as needed. For example, see Figure 2A , is a schematic diagram of a main screen on an electronic device provided in an embodiment of the present application. The user interface 21 includes: a status bar 206, a calendar widget 221, application icons 222, a page indicator 223, and a tray 224 of commonly used application icons. Among them:

[0090] The status bar 206 can be described with reference to the above contents, which will not be described again here.

[0091] Application icon 222 is an icon of an application installed on the electronic device. It should be noted that the main screen of the electronic device may also include application icons of other applications, such as WeChat icon, QQ icon, Twitter icon, mailbox icon, setting icon, etc.

[0092] The page indicator 223 can be used to indicate the number of pages and which page the user is currently browsing. In addition, the user can slide left and right on the current page to browse application icons in other pages.

[0093] The tray 224 of commonly used application icons can display application icons commonly used by users. For example, the tray 224 of commonly used application icons displays: phone icon 225, SMS icon 226, camera icon 227 and browser icon 228. Users can customize the application icons contained in the tray 224 of commonly used application icons.

[0094] Calendar widget 221 is a widget provided by the "Calendar" application, which can be used to indicate the current time, such as date, day of the week, etc. It can also be used to display the schedule information set by the user, illustratively including the project name set by the user and the time information corresponding to the project. It should be noted that the display form and content of calendar widget 221 can be determined by the design of the "Calendar" application. The view information of calendar widget 221 displayed on the main screen is provided by the "Calendar" application.

[0095] In some embodiments, the electronic device may include a home screen button. The home screen button may be a physical button or a virtual button. The home screen button may be used to receive instructions from the user and return the currently displayed user interface to the home screen, so that the user can check the home screen at any time. The above instructions may specifically be an operation instruction for the user to press the home screen button once, or an operation instruction for the user to press the home screen button twice in a short period of time, or an operation instruction for the user to long press the home screen button within a predetermined time. In other embodiments, the electronic device does not include a home screen button, and the electronic device may return the currently displayed user interface to the home screen according to a preset operation. For example, the preset operation may be an operation of sliding upward from the bottom of the display screen of the electronic device, and so on.

[0096] See also Figure 2B , is a flowchart of updating the view information of a widget provided in an embodiment of the present application. The main screen application of an electronic device detects a widget update event, and the main screen application initiates an update operation. Exemplarily, widget update events may include: turning the main screen page, turning on the electronic device, lighting the screen after locking the screen, switching from the application interface to the main screen, or adding a new widget, and other events. The main screen application sends a request to the application corresponding to the widget, and the request is used to request view information. In response to the request, the application feeds back the view information to the main screen application. Among them, the view information may include information such as the display style, position, and display data of the widget.

[0097] The hardware structure of the electronic device is introduced below. The electronic device 10 is taken as an example for introduction. Figure 3A , Figure 3A It is a schematic diagram of the structure of an electronic device 10 provided in an embodiment of the present application.

[0098] The electronic device 10 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 screen 194, and a subscriber identification module (SIM) card interface 195, etc. 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, etc.

[0099] It should be understood that Figure 3A The electronic device 10 shown is only an example, and the electronic device 10 may have more Figure 3A The more or less components shown in the figure can be combined with two or more components, or can have different component configurations. The various components shown in the figure can be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and / or application specific integrated circuits.

[0100] 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 processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0101] The controller may be the nerve center and command center of the electronic device 10. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0102] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0103] In some embodiments, the processor 110 may include one or more interfaces. The interface 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 universal serial bus (USB) interface, etc.

[0104] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). The processor 110 can be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface to realize the touch function of the electronic device 10.

[0105] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to achieve communication between the processor 110 and the audio module 170.

[0106] The PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface.

[0107] The UART interface is a universal serial data bus for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function.

[0108] The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the display screen 194 communicate via the DSI interface to realize the display function of the electronic device 10.

[0109] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc.

[0110] The USB interface 130 is an interface that complies with USB standard specifications, and may be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 may be used to connect a charger to charge the electronic device 10, and may also be used to transmit data between the electronic device 10 and a peripheral device.

[0111] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration and does not constitute a structural limitation on the electronic device 10. In other embodiments of the present application, the electronic device 10 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0112] The charging management module 140 is used to receive charging input from a charger. The charger can be a wireless charger or a wired charger. While the charging management module 140 charges the battery 142, it can also power the electronic device through the power management module 141.

[0113] 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 to power the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160.

[0114] The wireless communication function of the electronic device 10 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.

[0115] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 10 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0116] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 10. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, etc. the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1.

[0117] The 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. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194.

[0118] The wireless communication module 160 can provide wireless communication solutions for application in the electronic device 10, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication technology (NFC), infrared technology (IR), etc.

[0119] In some embodiments, the antenna 1 of the electronic device 10 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 10 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), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology.

[0120] The electronic device 10 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which 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 program instructions to generate or change display information.

[0121] The display screen 194 is used to display images, videos, etc. The 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 or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 10 may include 1 or N display screens 194, where N is a positive integer greater than 1.

[0122] The electronic device 10 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.

[0123] The ISP is used to process data fed back by the camera 193. For example, when taking a photo, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, and the light signal is converted into an electrical signal. The camera photosensitive element transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye.

[0124] The camera 193 is used to capture still images or videos. In some embodiments, the electronic device 10 may include 1 or N cameras 193, where N is a positive integer greater than 1.

[0125] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 10 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

[0126] Video codecs are used to compress or decompress digital videos. The electronic device 10 may support one or more video codecs. Thus, the electronic device 10 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0127] The NPU is a neural network (NN) computing processor, and can realize intelligent cognition and other applications of the electronic device 10, such as image recognition, face recognition, voice recognition, text understanding, etc.

[0128] 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 10. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.

[0129] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 10 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 10 (such as audio data, a phone book, etc.), etc.

[0130] The electronic device 10 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.

[0131] The audio module 170 is used to convert digital audio information into analog audio signal output, and also used to convert analog audio input into digital audio signal. The audio module 170 can also be used to encode and decode audio signals.

[0132] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 10 can listen to music or listen to a hands-free call through the speaker 170A.

[0133] The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 10 receives a call or voice message, the voice can be received by placing the receiver 170B close to the human ear.

[0134] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by approaching the microphone 170C with his mouth to input the sound signal into the microphone 170C. The electronic device 10 can be provided with at least one microphone 170C.

[0135] The earphone interface 170D is used to connect a wired earphone and can be a USB interface 130 or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.

[0136] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 194. When a touch operation is applied to the display screen 194, the electronic device 10 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 10 can also calculate the touch position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions.

[0137] The gyro sensor 180B can be used to determine the motion posture of the electronic device 10. In some embodiments, the angular velocity of the electronic device 10 around three axes (i.e., x, y, and z axes) can be determined by the gyro sensor 180B. The gyro sensor 180B can be used for anti-shake shooting. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.

[0138] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 10 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.

[0139] The magnetic sensor 180D includes a Hall sensor, and the electronic device 10 can detect the opening and closing of the flip leather case by using the magnetic sensor 180D.

[0140] The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 10 in all directions (generally three axes). When the electronic device 10 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.

[0141] The distance sensor 180F is used to measure the distance. The electronic device 10 can measure the distance by infrared or laser.

[0142] The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 10 emits infrared light outward through the light emitting diode. The electronic device 10 uses the photodiode to detect infrared reflected light from nearby objects.

[0143] The ambient light sensor 180L is used to sense the brightness of the ambient light. The electronic device 10 can adaptively adjust the brightness of the display screen 194 according to the sensed brightness of the ambient light.

[0144] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 10 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.

[0145] The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 10 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy.

[0146] The touch sensor 180K is also called a "touch panel". The touch sensor 180K can be arranged on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. For example, the touch event type can be a single-click event, a double-click event, a long press event, a press (force touch) event, a drag event, and so on. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be arranged on the surface of the electronic device 10, which is different from the position of the display screen 194.

[0147] The bone conduction sensor 180M can obtain vibration signals. In some embodiments, the bone conduction sensor 180M can obtain vibration signals of vibrating bones of the human body. The bone conduction sensor 180M can also contact the human body's pulse to receive blood pressure beating signals.

[0148] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The electronic device 10 may receive key input and generate key signal input related to user settings and function control of the electronic device 10.

[0149] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects.

[0150] The indicator 192 may be an indicator light, which may be used to indicate the charging status, power changes, messages, missed calls, notifications, etc.

[0151] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to or separated from the electronic device 10 by inserting the SIM card interface 195 or pulling the SIM card interface 195 out. The electronic device 10 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. In some embodiments, the electronic device 10 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 10 and cannot be separated from the electronic device 10.

[0152] The software system of the electronic device 10 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The present application embodiment takes the Android system of the layered architecture as an example to exemplify the software structure of the electronic device 10.

[0153] Figure 3B It is a software structure block diagram of an electronic device 10 provided in an embodiment of the present application.

[0154] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and the system library, and the kernel layer.

[0155] The application layer may include one or more applications, and may include music player, video player, gallery, WeChat, home screen application, memo and other applications. It should be noted that the application layer may also include other applications, which are not listed here. Among them, the home screen application can be used to display the home screen of the electronic device, and may include a widget display module and a view locking module. The widget display module can be used to display the widget in the home screen. The view locking module can be used to determine whether the view is locked, and whether the view is locked may be related to the lock state of the application corresponding to the view.

[0156] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.

[0157] like Figure 3B As shown, the application framework layer may include a window manager, a content provider, a view system, an application lock module, a resource manager, a notification manager, an unlock module, and the like.

[0158] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.

[0159] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

[0160] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.

[0161] The resource manager provides various resources for the application, such as localized strings, icons, images, layout files, video files, and so on.

[0162] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in the status bar, a prompt sound is issued, the smart terminal vibrates, the indicator light flashes, etc. The notification manager can also be used to display notification information in the notification message list.

[0163] The application lock module can be used to implement the application lock function. Users can set protected (or locked) applications through the application lock module.

[0164] The unlocking module can be used to realize the unlocking function of the application lock. It should be noted that the unlocking methods corresponding to the unlocking module include but are not limited to password unlocking, fingerprint unlocking, under-screen fingerprint unlocking, face recognition unlocking, iris recognition unlocking, voiceprint recognition unlocking, etc. In addition, the module can return the result of whether the application lock is unlocked successfully to the main screen application.

[0165] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.

[0166] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.

[0167] The application layer and the application framework layer run in the virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.

[0168] The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.

[0169] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.

[0170] 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, G.264, MP3, AAC, AMR, JPG, PNG, etc.

[0171] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0172] A 2D graphics engine is a drawing engine for 2D drawings.

[0173] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.

[0174] The following is a detailed description of the method for displaying application information provided in an embodiment of the present application based on the electronic device 10 introduced in the above content and in combination with other drawings.

[0175] In some embodiments of the present application, if an application is locked by the application lock, the electronic device displays a lock view above the widget view of the application on the main screen. After the user unlocks the lock view, the electronic device displays the information in the widget view of the application. Among them, displaying the lock view above the widget of the application means: a lock view is superimposed and displayed above the layer where the view of the widget of the application is located, and this lock view can cover the widget of the application. For example, see Figure 4A , is a schematic diagram of a main screen on an electronic device provided in an embodiment of the present application. User interface 41 includes a lock view 403 and a view 402 of an email application. Among them, the calendar application has the application lock turned on, and the email application has not turned on the application lock. The electronic device superimposes a lock view 403 on top of the layer where the view 401 of the calendar application is located, and the lock view 403 can block the view 401 of the calendar application. In some embodiments, after the user unlocks the lock view 403, the electronic device no longer displays the lock view 403, and can display the view 401 of the calendar application below. The way in which the user unlocks the lock view will be introduced in the subsequent content and will not be elaborated here.

[0176] See also Figure 4B , is a flowchart of displaying a widget provided by an embodiment of the present application. When the electronic device detects a widget update event, the electronic device determines whether the application corresponding to the view is protected by an application lock. Exemplarily, the widget update event may include: turning the home screen page, turning on the electronic device, lighting the screen after locking the screen, switching from the application interface to the home screen, or adding a new widget, and so on. If the electronic device determines that the application is protected by an application lock, the electronic device displays the widget and displays a locked view above the widget. Exemplarily, this display method can refer to Figure 4A If the electronic device determines that the application is not protected by the application lock, the electronic device displays the widget. Figure 4C User interface 42 is shown. In this way, when an application is protected by an application lock, a lock view will be displayed above the widget corresponding to the application, which can protect the application information from being leaked and improve the security of the application information.

[0177] In other embodiments of the present application, the process of displaying a widget by an electronic device can also refer to Figure 4D Flowchart shown. In this embodiment, when the electronic device detects a widget update event, the electronic device determines whether the application corresponding to the view is protected by an application lock. If the electronic device determines that the application is not protected by an application lock, the electronic device displays the widget. If the electronic device determines that the application is protected by an application lock, the electronic device determines whether the application is in an unlocked state. If the application is in an unlocked state, the electronic device displays the widget. If the application is in an unlocked state, the electronic device displays the widget and displays a locked view above the widget.

[0178] In some possible implementations, the electronic device may query the application corresponding to the widget through the application lock module to see whether it is in an unlocked state. For example, the application lock module stores records of whether each application is in an unlocked state. The electronic device may query the records in the application lock module according to the application identifier of the application corresponding to the widget, thereby determining whether the application corresponding to the widget is in an unlocked state. Alternatively, the application lock module may determine the state of the application corresponding to the widget when the electronic device queries whether the application corresponding to the widget is in an unlocked state; and then feed the determination result back to the electronic device.

[0179] The following describes some ways in which the application lock module determines whether an application is in an unlocked state. In an optional manner, if the application lock module determines that the user has unlocked the application lock of the application, and the current moment is not more than a preset time period from the last successful unlocking moment (or, the moment when the display screen displays the user interface of the application), the application lock module determines that the application is in an unlocked state. Otherwise, the application lock module determines that the application is in an unlocked state. In another optional manner, if the application lock module determines that the user has unlocked the application lock of the application, and the electronic device is not locked after the last successful unlocking, the application lock module determines that the application is in an unlocked state. Otherwise, the application lock module determines that the application is in an unlocked state. In another optional manner, if the user has unlocked the application lock of the application, and the electronic device is not locked after the last successful unlocking, and the current moment is not more than a preset time period from the last successful unlocking moment (or, the moment when the display screen displays the user interface of the application), the application is determined to be in an unlocked state. Otherwise, the application lock module determines that the application is in an unlocked state. The application lock module can update the record of whether each application is in the unlocked state in real time according to the determination result. Alternatively, the application lock module can also determine the state of the application corresponding to the widget queried by the electronic device, and then feed back the determination result of the application to the electronic device.

[0180] In this way, when an application is protected by an application lock and the application is not unlocked, a lock view will be displayed above the widget corresponding to the application, which can protect the application information from being leaked and improve the security of the application information. In addition, when an application is protected by an application lock and the application is unlocked, the electronic device displays the widget, which can reduce the user's operations and improve the efficiency of the user viewing the widget. For example, in actual applications, if the calendar application in an electronic device is protected by an application lock, a lock view will be displayed above the widget corresponding to the calendar application on the main screen. Other users will not be able to view the information of the calendar application through the main screen of the electronic device, which protects the user's privacy information. For example, the main screen of the electronic device can refer to Figure 4A User interface 41 shown. After the user unlocks the application lock of the calendar application, the user can view the application interface of the calendar application and operate the calendar application. Afterwards, the user jumps to other user interfaces to operate, such as editing an email through a mailbox application. At this time, the user needs to view the schedule information, and the user can switch back to the main screen to view the calendar application widget to obtain the schedule information. Because the current moment is less than a preset time period (for example, 3 minutes, 5 minutes, etc.) from the last successful unlocking moment (or the last time the display screen displayed the user interface of the calendar application), the electronic device determines that the calendar application is in an unlocked state, and the calendar application widget is directly displayed on the main screen. Exemplarily, the main screen of the electronic device can be seen Figure 4C User interface 42 shown. In this way, the user can reduce the operation of unlocking the calendar application widget or the calendar application to view the schedule information, which can improve the user's operating efficiency. In another case, if the user wants to lock the calendar application widget, the user can lock the screen of the electronic device. After the screen is locked, the screen of the electronic device is lit again. Since the electronic device has been locked after the calendar application was last successfully unlocked, the electronic device can determine that the calendar application is in an unlocked state. Then, a lock view will be displayed above the widget of the calendar application on the main screen. In this way, the user can easily lock the widget, protect the application information from being leaked, and improve the security of the application information.

[0181] In a possible implementation, if the application is protected by an application lock, the view information of the widget provided by the application may be in a locked state. In this case, the widget displayed by the electronic device is a widget in a locked state. For example, Figure 5A , Figure 5A is a schematic diagram of a display widget provided by an embodiment of the present application. In this example, the view information that the calendar should provide is already in a locked state. In the user interface 51, the user interface includes a view 501 of the calendar application, and the view 501 is already in a locked state.

[0182] In some embodiments of the present application, after the electronic device determines that an application is protected by an application lock, the electronic device displays a lock view above the widget of the application. Figure 5B , Figure 5B 501 is a schematic diagram of a display widget provided by an embodiment of the present application. The calendar application originally provides a view 501 in a locked state. The electronic device can display a locked view 502 above the view 501.

[0183] In other embodiments of the present application, before the electronic device displays the widget of the application protected by the application lock, it can determine whether the view information provided by the application is in a locked state. Figure 5C , is a flowchart of displaying a widget provided by an embodiment of the present application. In this embodiment, when the electronic device detects a widget update event, the electronic device determines whether the application corresponding to the view is protected by an application lock. If the electronic device determines that the application is not protected by an application lock, the electronic device displays the widget. If the electronic device determines that the application is protected by an application lock, the electronic device determines whether the view information provided by the application is in a locked state. If the view information provided by the application is in a locked state, the electronic device displays the widget. If the view information provided by the application is not in a locked state, the electronic device displays the widget and displays a locked view above the widget. In this way, when the application provides view information in a locked state, the electronic device can display the widget normally and can retain the application's own widget locking method.

[0184] The following describes some ways for electronic devices to determine whether the view information provided by an application is in a locked state. Figure 5D , Figure 5D This is a flowchart for obtaining view information provided by an embodiment of the present application. The main screen application of the electronic device detects a widget update event, and the main screen application initiates an update operation. The main screen application sends a request to the application corresponding to the widget, and the request is used to request view information. In response to the request, the application feeds back view information to the main screen application. Among them, the view information may include the display style, position, display data of the widget, and indication information indicating whether the view information is in a locked state, and other information. The main screen application can determine whether the view information provided by the application is in a locked state based on the acquired view information.

[0185] The second method can be found in Figure 5E , Figure 5E It is another flowchart for obtaining view information provided by an embodiment of the present application. The main screen application of the electronic device detects a widget update event, and the main screen application initiates an update operation. The main screen application sends a first request to the application corresponding to the widget, and the first request is used to request view information. In response to the first request, the application feeds back view information to the main screen application. Among them, the view information may include information such as the display style, position, display data, etc. of the widget. Afterwards, the main screen application sends a second request to the application, and the second request is used to query whether the view information is in a locked state. Among them, the second request includes the identifier of each item of view information. Then, the application can feed back indication information indicating whether the view information is in a locked state to the main screen application according to the second request. Specifically, the application can determine whether the view information corresponding to the identifier is in a locked state according to the identifier of each item of view information. Among them, the indication information may include information whether each item of view information is in a locked state.

[0186] In the third way, the main screen application of the electronic device detects the widget update event, and the main screen application initiates an update operation. The main screen application sends a request to the application corresponding to the widget, and the request is used to request view information. In response to the request, the application feeds back the view information to the main screen application. Afterwards, the main screen application can query whether the view information is in a locked state through the database or preset storage area of ​​the electronic device. Among them, the database or preset storage area of ​​the electronic device can be used to store information whether the view information is in a locked state. The application can write information whether the view information is in a locked state in the database or preset storage area, and the main screen application can read information whether the view information is in a locked state from the database or preset storage area.

[0187] In the fourth mode, the main screen application of the electronic device detects the widget update event, and the main screen application initiates an update operation. The main screen application sends a request to the application corresponding to the widget, and the request is used to request view information. In response to the request, the application feeds back the view information to the main screen application. Afterwards, the application can broadcast information on whether the view information is in a locked state. The main screen application can determine whether the view information provided by the application is in a locked state through the received broadcast information.

[0188] It should be noted that there may be other ways to determine whether the view information provided by the application is in a locked state.

[0189] In other embodiments of the present application, the electronic device may display a locked view above the view information in the locked state, and normally display the view information that is not in the locked state. Fig. 5F The user interface 53 includes a view 511 of a calendar application and a view 513 of a mailbox application. In view 511, the displayed data "coal chemical project report meeting all day" and "community homeowner committee election 5:50 pm-8:00 pm" are in a locked state. The electronic device displays a locked view 512 above these view information. In this way, the electronic device can encrypt and display the information that needs to be protected and display the regular information normally.

[0190] In other embodiments of the present application, the process of displaying a widget by an electronic device can also refer to Fig. 6A Flowchart shown. In this embodiment, when the electronic device detects a widget update event, the electronic device determines whether the application corresponding to the view is protected by an application lock. If the electronic device determines that the application is not protected by an application lock, the electronic device displays the widget. If the electronic device determines that the application is protected by an application lock, the electronic device determines whether the application is in an unlocked state. If the application is in an unlocked state, the electronic device displays the widget. If the application is in an unlocked state, the electronic device determines whether the view information provided by the application is in a locked state. If the view information provided by the application is in a locked state, the electronic device displays the widget. If the view information provided by the application is not in a locked state, the electronic device displays the widget and displays a locked view above the widget.

[0191] It should be noted that the above-listed lock views are only examples. In some possible implementations, the lock view can also be in other forms of expression. For example, the lock view can also be displayed as a magazine view. Optionally, the magazine view can periodically update some landscape or character images. Alternatively, the lock view can display weather information or time information, etc. Alternatively, the lock view can be displayed as an image or image preset by the user. In this way, the aesthetics of the electronic device display can be further improved, and the lock view can also be hidden to a certain extent to improve the security of user information.

[0192] By using the method for displaying a widget provided by the embodiment of the present application, when an application has been locked by an application locker, the electronic device can lock the widget of the application on the main screen. In this way, the leakage of application information can be avoided and the security of application information can be improved.

[0193] The above describes a method for displaying a widget in an electronic device. Next, a method for unlocking a locked view of a widget is described. The locked view may be a view displayed on the main screen above the widget, or may be a locked widget provided by an application.

[0194] First, let's introduce the unlocking method of a locked widget provided by an application in the prior art. Figure 6B , is a schematic diagram of some user interfaces provided in an embodiment of the present application. When a user operates the widget view 601 (for example, long press, click, double-click, press, etc.), in response to the operation, the electronic device opens the message application corresponding to the widget view 601, and switches from displaying the user interface 61 to displaying the user interface 62. The user interface 62 is a user interface in the message application, which includes a prompt message 602 and a fingerprint prompt 603. The prompt message 602 is used to prompt the user that the message application has been protected by an application lock and the message application needs to be unlocked. The fingerprint indicator 603 is used to indicate the screen area on the display screen that receives the user's fingerprint.

[0195] When the electronic device successfully matches the fingerprint information input by the user with the pre-stored fingerprint information, the electronic device can switch from displaying the user interface 62 to displaying the user interface 63. The user interface 63 is a user interface in the message application, wherein the interface can display the message content. It can be seen that in the prior art, if the user wants to view the protected application information in the widget, he needs to jump into the application and unlock the application before viewing it. After viewing, the user needs to perform additional operations to return to the main screen, which is cumbersome for the user to operate and the user experience is poor.

[0196] The following describes a method for unlocking a locked view of a widget provided in an embodiment of the present application.

[0197] like Figure 7A-7B As shown exemplarily, in some embodiments of the present application, when a user operates the lock view (for example, long press, double click, single click, floating operation, etc.), in response to the operation, the electronic device displays a password input box on the lock view.

[0198] See also Fig. 7A , is a schematic diagram of a display interface provided by an embodiment of the present application. User interface 71 is used to display the main screen of the electronic device, and user interface 71 includes a lock view 701 and a view 702 of the mailbox application. When the user operates the lock view, in response to the operation, the electronic device switches from displaying user interface 71 to displaying user interface 72. Figure 7B , is a schematic diagram of another display interface provided in an embodiment of the present application. The user interface 72 is used to display the main screen of the electronic device, and the user interface 72 includes a lock view 701 and a view 702 of the mailbox application. A password input box 703 is displayed above the lock view 701. The user can enter an unlock password through the password input box 703, and the unlock password can be one or more of numbers, letters, and symbols. When the unlock password entered by the user is the same as the pre-stored unlock password, the electronic device unlocks the lock view. It should be noted that the meaning of the electronic device unlocking the lock view includes that the electronic device no longer displays the lock view, and the electronic device updates the widget corresponding to the lock view. Among them, the information contained in the updated widget is unlocked information. Exemplarily, after the unlocking is successful, the electronic device can switch from displaying the user interface 72 to displaying the user interface 42.

[0199] In another possible implementation, when the user operates the lock view (for example, long press, double click, single click, floating operation, etc.), in response to the operation, the electronic device may also display the graphic password on the lock view. Figure 7C The user interface 73 shown. The user interface 73 includes a lock view 701 and a view 702 of the mailbox application. A graphic password 704 is displayed above the lock view 701. The user can enter an unlocking trajectory through the graphic password 704. When the unlocking trajectory entered by the user is the same as the pre-stored unlocking trajectory, the electronic device unlocks the lock view. Exemplarily, after the unlocking is successful, the electronic device can switch from displaying the user interface 73 to displaying the user interface 42.

[0200] In other embodiments, the lock view displayed by the electronic device may include a password input box or a graphic password. The user may directly enter the unlock password through the password input box, or enter the unlock track through the graphic password, without operating the lock view.

[0201] In other embodiments, when the user operates the locked view (e.g., long press, double click, single click, floating operation, etc.), in response to the operation, the electronic device may display a dialog box. The dialog box may include a password input box or a graphic password, etc. For example, see Fig.7D , is a schematic diagram of another display interface provided by an embodiment of the present application. The user interface 74 includes a dialog box 705. The dialog box 705 includes a password input box 706. The user can enter the unlock password through the password input box 706. Fig. 7E , which is a schematic diagram of another display interface provided in an embodiment of the present application. The user interface 75 includes a dialog box 707. The dialog box 707 includes a graphic password 708. The user can enter an unlocking trajectory through the graphic password 708. It is understandable that the dialog box can also have other display modes, or the dialog box can be displayed above (or around) the locked view that needs to be unlocked, and the embodiment of the present application does not limit the display mode and display position of the dialog box.

[0202] In some other embodiments, the electronic device can also unlock the locked view by means of fingerprint unlocking under the screen. Figure 7F , Figure 7F 71 is a schematic diagram of another display interface provided by an embodiment of the present application. User interface 76 includes lock view 711 and lock view 712. The fingerprint received in the screen area where lock view 711 is located can be used to unlock lock view 711, and the fingerprint received in the screen area where lock view 712 is located can be used to unlock lock view 712. If the fingerprint information identified by the electronic device based on the fingerprint input by the user matches the fingerprint information pre-stored in the electronic device, the electronic device unlocks the lock view corresponding to the fingerprint. For example, Figure 7F As shown, the user's finger touches the screen area where the lock view 711 is located. If the fingerprint information identified by the electronic device based on the fingerprint input by the user matches the fingerprint information pre-stored in the electronic device, the electronic device unlocks the lock view 711. After the unlocking is successful, the display interface of the electronic device can refer to Figure 7G User interface 77 is shown. User interface 77 includes a calendar application view 713 and a lock view 712. Optionally, in order to prevent the user from accidentally touching the lock view or accidentally touching the lock view while browsing the home screen interface, the electronic device can verify the user's fingerprint after detecting that the user touches the lock view and continues for a preset time.

[0203] In some other possible implementations, the fingerprint unlocking of the electronic device may also be located in a specific area. In this case, if the fingerprint information identified by the electronic device based on the fingerprint input by the user matches the fingerprint information pre-stored in the electronic device, the electronic device may unlock all locked views, or the electronic device may unlock the locked view on the currently displayed user interface, or the electronic device may unlock the locked view that the user most recently touched.

[0204] In other embodiments, the electronic device can also unlock the locked view by face unlocking. In a possible implementation, if the facial information recognized by the electronic device based on the user image acquired by the camera matches the pre-stored facial information, the electronic device can unlock all locked views, or the electronic device unlocks the locked view on the currently displayed user interface, or the electronic device unlocks the locked view that the user touched most recently.

[0205] In another possible implementation, the electronic device can collect the eyeball position through the camera to determine the current gaze position of the human eye; the electronic device then determines the widget corresponding to the gaze position based on the gaze position. If the facial information recognized by the electronic device based on the user image obtained by the camera matches the pre-stored facial information, the electronic device unlocks the widget corresponding to the gaze position. For example, see Figure 7H , Figure 7H 733. The electronic device can collect the user's eye position through the camera 193, determine the current gaze position of the human eye, and then determine the widget corresponding to the gaze position as the locked view 733 according to the gaze position. If the facial information recognized by the electronic device based on the user image obtained by the camera 193 matches the pre-stored facial information, the electronic device unlocks the locked view 733.

[0206] The above describes the method of unlocking a locked view by an electronic device. Next, the unlocking process of a locked view by an electronic device is described.

[0207] See also Figure 8 , is a flow chart of a method for unlocking a locked view provided in an embodiment of the present application. The method is applied to the electronic device introduced in the above content, and the method includes the following steps.

[0208] S801. The main screen application displays a lock view.

[0209] For example, the user interface for displaying the lock view on the electronic device may refer to Figure 4A The user interface 41 shown, Figure 5B The user interface 52 shown, Fig. 7A The user interface 71 shown, Figure 7F The user interface 76 shown, Figure 7H User interface 78 is shown, etc.

[0210] S802: The unlocking module detects an unlocking operation and verifies the user's identity.

[0211] Referring to the introduction in the above content, the unlocking operation can be one operation or a series of operations. For different unlocking operations, the electronic device executes the method for verifying the user identity corresponding to the unlocking operation. Exemplarily, the unlocking operation can be Figure 7A-7B In the illustrated embodiment, the user operates the lock view 701 and inputs the unlock password in the password input box 703. The electronic device can verify the user's identity by verifying the password.

[0212] The unlock operation can also be Fig. 7A and Figure 7C In the illustrated embodiment, the user operates the lock view 701 and inputs an unlocking track in the graphic password 704. The electronic device can verify the identity of the user by verifying the input track.

[0213] The unlock operation can also be Fig. 7A and Fig.7D In the illustrated embodiment, the user operates the lock view 701 and inputs the unlock password in the password input box 706 in the dialog box 705. The electronic device can verify the user's identity by verifying the password.

[0214] The unlock operation can also be Fig. 7A and Fig. 7E In the illustrated embodiment, the user operates the lock view 701 and inputs an unlocking track in the graphic password 708 in the dialog box 707. The electronic device can verify the identity of the user by verifying the input track.

[0215] The unlock operation can also be Figure 7F-7G In the illustrated embodiment, the user operates the lock view 701. The electronic device can verify the identity of the user by verifying the user's fingerprint information.

[0216] The unlock operation can also be Figure 7H In the illustrated embodiment, the user looks at the operation of locking view 733. The electronic device can verify the identity of the user by verifying the user's facial information.

[0217] It should be noted that the electronic device is not limited to the unlocking methods described above, and can also verify the user's identity in other ways. For example, the electronic device can also verify the user's identity through iris recognition unlocking, voiceprint recognition unlocking, and other unlocking methods.

[0218] S803: The unlocking module successfully verifies the user identity, and sends an indication message to the main screen application.

[0219] The indication information is used to indicate that the user identity verification has been passed. In a possible implementation, the indication information may include location information of the locked view. The location information may be determined by an unlocking operation input by the user. Figure 7A-7B In the illustrated embodiment, the position information may be determined by the user's operation on the locked view 701, and the position information may be the position information touched by the user's operation on the locked view. Figure 7H In the illustrated embodiment, the position information may be determined by a gaze operation of the user, and the position information may be a gaze position determined based on a collected eye position of the user.

[0220] S804: The main screen application sends a request to the application according to the indication message, where the request is used to request view information.

[0221] In some embodiments, the application may be a home screen application determined according to the received location information, and the application is an application corresponding to the widget view located at the location information. Figure 7A-7B In the embodiment shown, the home screen application can determine that the application is the calendar application corresponding to the locked view 701 according to the location information. Figure 7H In the illustrated embodiment, the home screen application may determine that the application is the calendar application corresponding to the lock view 733 based on the location information.

[0222] In other embodiments, the application may be an application corresponding to a widget view in a user interface currently displayed by the electronic device. In other embodiments, the application may be an application corresponding to a widget view included on a main screen of the electronic device.

[0223] S805: The application feeds back view information to the main screen application according to the request.

[0224] The view information may include the display style, position, and display data of the widget, etc. It should be noted that the view information is unlocked view information.

[0225] S806: The main screen application displays the widget according to the view information fed back by the application.

[0226] In this way, the user can unlock the locked widget directly on the home screen. Different from the prior art method of jumping into the application to unlock the application and then viewing the information, the embodiment of the present application can reduce the user's operation and improve the convenience of operation. In addition, the electronic device can unlock a specific widget based on the unlocked location information, further improving the security of the application information.

[0227] The above content introduces the method of locking and unlocking the widget of the application in the electronic device. In the embodiment of the present application, the electronic device can also lock and unlock the notification message.

[0228] See also Fig. 9A , is a schematic diagram of displaying a notification message provided by an embodiment of the present application. The user interface 91 includes: a status bar 901, a notification message 902, a weather indicator 903, a time indicator 904, an application icon display area 905, a page indicator 906, and a tray 907 for commonly used application icons. Among them:

[0229] The status bar 901 can refer to the description of the status bar in the above content, which will not be repeated here.

[0230] Notification message 902, when the application receives the notification message, or when the current time reaches the reminder time preset by the application, the electronic device can pop up the notification message 902. Optionally, when the user slides up the notification message 902, in response to the user's sliding up operation, the electronic device can no longer display the notification message 902. Optionally, when the display time of the notification message 902 exceeds the preset time, the electronic device can no longer display the notification message 902. A notification message has a corresponding relationship with an application, for example, the notification message 902 has a corresponding relationship with the information application, and for another example, the notification message of the schedule has a corresponding relationship with the calendar application, and the notification message of receiving an email has a corresponding relationship with the mailbox application.

[0231] The weather indicator 903 may be used to indicate the weather type, such as cloudy to sunny, light rain, etc., and may also be used to indicate information such as the temperature.

[0232] The time indicator 904 may be used to indicate the current time, such as date, day of the week, hour and minute information, etc.

[0233] The application icon display area 905 may be used to display icons of applications installed on the electronic device. The application icons included in the application icon display area 905 may be customized by the user.

[0234] Page indicator 906 can be used to indicate the number of pages and which page the user is currently browsing. In addition, the user can slide left and right on the current page to browse application icons in other pages.

[0235] The tray 907 of commonly used application icons can refer to the description of the tray of commonly used application icons in the above content, which will not be repeated here.

[0236] See also Fig. 9B , is another schematic diagram of displaying notification messages provided by an embodiment of the present application. When the user slides down from the status bar, in response to the user's sliding operation, the electronic device displays a notification message list. The user interface 92 includes a notification message list 911. The notification message list 911 includes a shortcut menu 912, a notification message 913, a notification message 914, and a notification message 915.

[0237] The shortcut menu 912 can be used to display one or more operation controls, and the user can use these operation controls to quickly turn on or off the functions corresponding to the operation controls. The shortcut menu 912 includes a WLAN control, a Bluetooth control, a GPS control, and an airplane mode control. Taking the WLAN control as an example, the user can turn on or off the WLAN function of the electronic device through the WLAN control.

[0238] Notification message list 911 also includes notification message 913, notification message 914, and notification message 915. Notification message 913 corresponds to a message application, notification message 914 corresponds to an email application, and notification message 915 corresponds to a calendar application. One notification message may correspond to one application. It should be noted that the notification list may also include multiple notification messages corresponding to one application.

[0239] In the embodiment of the present application, similar to the widget that displays the application, if an application is locked by the application lock, the electronic device displays a lock view above the notification message corresponding to the application.

[0240] See also Fig. 10A , is a schematic diagram of displaying a notification message provided by an embodiment of the present application. The calendar application in the electronic device is locked by the application lock. In the user interface 101, the electronic device displays a lock view 1002 above the notification message 1001 of the calendar application.

[0241] See also Fig. 10B , is another schematic diagram of displaying a notification message provided by an embodiment of the present application. The calendar application in the electronic device is locked by the application lock. In the user interface 102, the electronic device displays a lock view 1004 above the notification message 1003 of the calendar application.

[0242] By using the method for displaying notification messages provided by the embodiment of the present application, when an application has been locked by an application lock, the electronic device can lock the notification messages of the application. In this way, the leakage of application information can be avoided and the security of application information can be improved.

[0243] It should be noted that the process of an electronic device displaying a notification message can refer to the process of an electronic device displaying a widget in the above content. Exemplarily, in a possible implementation, when an electronic device detects a notification message display event, the electronic device determines whether the application corresponding to the notification message is protected by an application lock. Exemplarily, a notification message display event may include: receiving an application notification message, detecting an outgoing notification message list, and other events. If the electronic device determines that the application is protected by an application lock, the electronic device displays the notification message and displays a lock view above the notification message. If the electronic device determines that the application is not protected by an application lock, the electronic device displays the notification message.

[0244] In another possible implementation, when the electronic device detects a notification message display event, the electronic device determines whether the application corresponding to the notification message is protected by an application lock. If the electronic device determines that the application is not protected by an application lock, the electronic device displays the notification message. If the electronic device determines that the application is protected by an application lock, the electronic device determines whether the application is in an unlocked state. If the application is in an unlocked state, the electronic device displays the notification message. If the application is in an unlocked state, the electronic device displays the notification message and displays a lock view above the notification message.

[0245] The above content introduces the method of displaying notification messages on electronic devices. The following introduces the method of unlocking notification messages on electronic devices. The method of unlocking notification messages on electronic devices can also refer to the method of unlocking widgets introduced in the above content.

[0246] It should be noted that in the prior art, the notification message displayed by the application can also be a notification message in a locked state. First, the unlocking method for the notification message in the locked state in the prior art is introduced. Fig.10E , is a schematic diagram of some user interfaces provided in an embodiment of the present application. When a user operates the notification message 1011 (for example, long press, click, double click, press, etc.), in response to the operation, the electronic device opens the message application corresponding to the notification message 1011, and switches from displaying the user interface 105 to displaying the user interface 106. User interface 106 is a user interface in the message application, which includes prompt information 1012 and a fingerprint prompt 1013. The prompt information 1012 is used to prompt the user that the message application has been protected by an application lock and the message application needs to be unlocked. Fingerprint indicator 1013 is used to indicate the screen area on the display screen that receives the user's fingerprint.

[0247] When the electronic device successfully matches the fingerprint information input by the user with the pre-stored fingerprint information, the electronic device can switch from displaying the user interface 106 to displaying the user interface 107. The user interface 107 is a user interface in the message application, wherein the interface can display the message content. It can be seen that in the prior art, if the user wants to view the protected application information in the notification message, it is necessary to jump into the application and unlock the application before viewing it. After viewing, the user needs to perform additional operations to return to the main screen, which is cumbersome for the user to operate and the user experience is poor.

[0248] The following describes a method for unlocking a locked view of a notification message provided in an embodiment of the present application.

[0249] In some embodiments, the lock view on the notification message includes a password input box. Fig. 10C , Fig. 10C 1006 is a schematic diagram of displaying a lock view provided by an embodiment of the present application. As shown in the user interface 103, a lock view 1006 is displayed on the notification message. Among them, the lock view 1006 includes a password input box 1007. The user can enter an unlock password through the password input box 1007. When the electronic device determines that the unlock password entered by the user is the same as the pre-stored unlock password, the electronic device no longer displays the lock view 1006.

[0250] See also Fig. 10D , Fig. 10D 1008. As shown in the user interface 104, the notification message list includes a lock view 1008. The lock view 1008 includes a password input box 1009. The user can enter an unlock password through the password input box 1009. When the electronic device determines that the unlock password entered by the user is the same as the pre-stored unlock password, the electronic device no longer displays the lock view 1008.

[0251] In a possible implementation, the lock view does not include a password input box. When the user operates the lock view (e.g., clicks, long presses, presses (force touch), etc.), in response to the operation, the electronic device displays the password input box in the lock view. Exemplarily, the electronic device displays user interface 101, and when the user operates lock view 1002, in response to the operation, the electronic device displays user interface 103. In another example, the electronic device displays user interface 102, and when the user operates lock view 1004, in response to the operation, the electronic device displays user interface 104.

[0252] In other embodiments, the electronic device can also unlock the locked view by means of an under-screen fingerprint unlocking method. Exemplarily, the electronic device receives a notification message from a calendar application, the calendar application has been locked by the application lock, and the electronic device displays the user interface 101. The electronic device detects the user's operation on the locked view 1002 (e.g., a long press operation, a press operation, etc.), and in response to the operation, the electronic device identifies the user's fingerprint information. If the identified fingerprint information matches the fingerprint information pre-stored in the electronic device, the electronic device unlocks the locked view 1002 and no longer displays the locked view.

[0253] In another example, the electronic device detects an operation of a user inputting an outgoing notification message list, and in response to the operation, the electronic device displays the user interface 102. The electronic device detects an operation of the user on the lock view 1004 (e.g., a long press operation, a press operation, etc.), and in response to the operation, the electronic device identifies the user's fingerprint information. If the identified fingerprint information matches the fingerprint information pre-stored in the electronic device, the electronic device unlocks the lock view 1004 and no longer displays the lock view.

[0254] In other embodiments, the electronic device can also unlock the locked view by fingerprint unlocking in a specific area. Exemplarily, the electronic device receives a notification message from a calendar application, and the calendar application has been locked by the application lock, and the electronic device displays the user interface 101. If the electronic device detects a fingerprint unlocking operation of the user in a specific area, in response to the operation, the electronic device identifies the fingerprint information of the user. If the identified fingerprint information matches the fingerprint information pre-stored in the electronic device, the electronic device unlocks the locked view and no longer displays the locked view.

[0255] In another example, the electronic device detects an operation of a user inputting an outgoing notification message list, and in response to the operation, the electronic device displays the user interface 102. If the electronic device detects a fingerprint unlocking operation of the user in a specific area, in response to the operation, the electronic device identifies the fingerprint information of the user. If the identified fingerprint information matches the fingerprint information pre-stored in the electronic device, the electronic device can unlock all locked views, or the electronic device unlocks the locked view on the currently displayed user interface, or the electronic device unlocks the locked view that the user most recently touched.

[0256] In other embodiments, the electronic device can also unlock the locked view by face unlocking. Exemplarily, the electronic device receives a notification message from a calendar application, the calendar application has been locked by the application lock, and the electronic device displays the user interface 101. If the facial information recognized by the electronic device based on the user image obtained by the camera matches the pre-stored facial information, the electronic device unlocks the locked view and no longer displays the locked view.

[0257] In another example, the electronic device detects an operation of a user inputting an outgoing notification message list, and in response to the operation, the electronic device displays a user interface 102. The electronic device can collect the user's facial information through a camera. The electronic device can also collect the user's eye position through a camera to determine the current gaze position of the human eye; and then determine the notification message corresponding to the gaze position based on the gaze position. If the facial information recognized by the electronic device matches the pre-stored facial information, the electronic device unlocks the locked view on the notification message corresponding to the gaze position.

[0258] The above describes the method of unlocking the locked view on the notification message by the electronic device. Next, the unlocking process of the locked view by the electronic device is introduced.

[0259] See also Fig.11 , is a flow chart of a method for unlocking a locked view provided in an embodiment of the present application. The method is applied to the electronic device introduced in the above content, and the method includes the following steps.

[0260] S1101. The application obtains a notification message.

[0261] S1102. The application sends first indication information to the main screen application, where the first indication information is used to instruct the main screen application to display a notification message.

[0262] S1103: After the main screen application receives the first indication information, the main screen application displays a notification message and displays a lock view on the notification message.

[0263] Optionally, the home screen application determines that the application is protected by an application lock, and the home screen application displays a lock view above the notification message.

[0264] Optionally, the main screen application determines that the application is protected by an application lock and the application is in an unlocked state, and the main screen application displays a lock view above the notification message.

[0265] S1104: The unlocking module detects an unlocking operation and verifies the user's identity.

[0266] It should be noted that the implementation method of this step can refer to the introduction of step S802 in the above content, and will not be repeated here.

[0267] S1105: The unlocking module successfully verifies the user identity, and sends a second indication message to the main screen application.

[0268] The second indication information is used to indicate that the user identity authentication has passed. In a possible implementation, the indication information may include the location information of the locked view. The location information may be determined by the unlocking operation input by the user. Exemplarily, the location information may be determined by the user's operation on the locked view, and the location information may be the location information touched by the user's operation on the locked view. Exemplarily, the location information may be determined by the user's gaze operation, and the location information may be the gaze position determined based on the collected user's eye position.

[0269] S1106: The main screen application unlocks the locked view according to the second indication information.

[0270] The main screen application unlocks the locked view, that is, the main screen application no longer displays the locked view above the notification message. The user can directly view the content of the notification message. In a possible implementation, the second indication message includes location information, and the main screen application unlocks the locked view on the notification message corresponding to the location message.

[0271] In this way, the user can unlock the locked notification message directly on the home screen. Different from the prior art method of jumping into the application to unlock the application and then viewing the information, the embodiment of the present application can reduce the user's operation and improve the convenience of operation. In addition, the electronic device can unlock specific notification messages according to the unlocked location information, further improving the security of application information.

[0272] The above content introduces the way in which the electronic device locks and unlocks the notification message of the application in the embodiment of the present application. In the embodiment of the present application, the electronic device can also lock and unlock the historical task interface. In the embodiment of the present application, similar to the widget that displays the application, if an application is locked by the application lock, the electronic device displays a lock view above the application interface of the application in the historical task interface.

[0273] The user can call out the historical task interface in a variety of ways. For example, the user can perform an operation (e.g., click, long press, etc.) on a button for calling out the historical task interface, and in response to the operation, the electronic device displays the historical task interface. For example, the user can swipe upward from the bottom of the display screen of the electronic device, and in response to the swiping operation, the electronic device displays the historical task interface. The embodiments of the present application do not limit the way in which the user calls out the historical task interface.

[0274] See also Fig.12 , is a schematic diagram of a historical task interface provided in an embodiment of the present application. The user interface 121 includes a contact application interface 1201, a WeChat application interface 1201 and an email application interface 1203, wherein the contact application interface 1201 and the email application interface 1203 are only partially displayed. When the user swipes up the application interface in the historical task interface (for example, the email application interface 1203), in response to the swiping operation, the electronic device may no longer display the email application interface 1203 and terminate the operation of the email application. The user can also swipe left and right in the user interface 121 to browse the application interfaces of other applications in the historical task interface.

[0275] In this example, the WeChat application on the electronic device is protected by an application lock, and the electronic device displays a lock view above the WeChat application interface 1201. Through the method for displaying the historical task interface provided by the embodiment of the present application, when an application has been locked by an application lock, the electronic device can lock the application interface of the application in the historical task interface. In this way, the leakage of application information can be avoided and the security of application information can be improved.

[0276] In some embodiments, when the electronic device detects an event of calling out the historical task interface, the electronic device determines whether the running application is protected by the application lock. If the electronic device determines that a running application is protected by the application lock, the electronic device displays a lock view above the application interface of the application. If the electronic device determines that a running application is not protected by the application lock, the electronic device displays the application interface.

[0277] In other embodiments, when the electronic device detects an event of calling out the historical task interface, the electronic device determines whether the running application is protected by the application lock. If the electronic device determines that a running application is not protected by the application lock, the electronic device displays the application interface of the application. If the electronic device determines that a running application is protected by the application lock, the electronic device determines whether the application is in an unlocked state. If the application is in an unlocked state, the electronic device displays the application interface of the application. If the application is in an unlocked state, the electronic device displays a lock view on the application interface of the application. The method for determining whether an application is in an unlocked state can refer to the introduction in the above content and will not be repeated here.

[0278] In addition, similar to the unlocking method of the locked view described in the above content, the user can also unlock the locked view on the user interface in a variety of ways. The unlocking methods include but are not limited to unlocking by entering a password, unlocking by entering a graphic trajectory, unlocking by fingerprint, unlocking by voiceprint, unlocking by face, unlocking by iris, and the like. After successfully verifying the user's identity, the electronic device no longer displays the locked view, but displays the obscured application interface. The user can view the content in the application interface. Through the unlocking method provided in the embodiment of the present application, the user does not need to enter the application to unlock the application and view the information, so that the user can conveniently view the application interface. The embodiment of the present application can reduce the user's operations, improve the convenience of operation, and thus improve the user experience.

[0279] In some application scenarios, users can use voice assistants to call up applications on electronic devices and obtain application information in the applications. For example, when a user inputs a voice command "What is today's schedule?", in response to the voice command, the electronic device can query the calendar application to obtain the schedule for the day and broadcast it in the form of voice.

[0280] In an embodiment of the present application, before the electronic device displays or announces the application information corresponding to the voice command, it can be determined whether the application is protected by an application lock. If the application is not protected by an application lock, the electronic device can display or announce the application information corresponding to the voice command. If the application is protected by an application lock, the electronic device will not display or announce the application information. Optionally, the electronic device can remind the user that the application is protected by an application lock. The reminder can include voice and / or text.

[0281] For example, see Fig.13A , is a schematic diagram of a display interface provided by an embodiment of the present application. As shown in the figure, the user interface 131 includes prompt information 1301 and a fingerprint prompt 1302. When the user's voice command "What is today's schedule" is detected, in response to the voice command, the electronic device determines whether the calendar application is protected by the application lock. In this example, the calendar application is protected by the application lock. When the electronic device determines that the calendar application is protected by the application lock, the electronic device displays prompt information 1301 and fingerprint prompt 1302. The prompt information 1301 is used to prompt the user that the calendar application has been protected by the application lock and that the application needs to be unlocked to view the internal information of the application. The fingerprint indicator 1302 is used to indicate the screen area on the display screen that receives the user's fingerprint. In addition, while the electronic device displays the prompt message 1301, the electronic device can also broadcast the content of the prompt message 1301.

[0282] In this embodiment, when an application is protected by an application lock, the voice assistant of the electronic device needs to confirm the identity of the user when accessing the application information. In this way, the security of the application information can be improved.

[0283] When the electronic device successfully verifies the user's identity (for example, the fingerprint information input by the user is successfully matched with the pre-stored fingerprint information), the electronic device may switch from displaying the user interface 131 to displaying the user interface 132. Fig. 13B , is a schematic diagram of another display interface provided by an embodiment of the present application. The user interface 132 includes indication information 1303. The indication information 1303 is used to indicate the itinerary information pre-stored by the user. Specifically, when the electronic device successfully matches the fingerprint information input by the user with the pre-stored fingerprint information, the electronic device queries the calendar application for the itinerary arrangements for the day and displays it on the display screen. In addition, while the electronic device displays the prompt message 1303, the electronic device can also broadcast the content of the prompt message 1303.

[0284] It should be noted that the above content uses fingerprint unlocking as an example to introduce a method of unlocking application information. Electronic devices can also use other unlocking methods to unlock application information. Unlocking methods include but are not limited to password unlocking, graphic trajectory unlocking, voiceprint unlocking, face unlocking, iris unlocking, etc. After successfully verifying the user's identity, the electronic device displays the application information corresponding to the voice command. Through the unlocking method provided in the embodiment of the present application, the user does not need to enter the application to unlock the application and then view the information, so that the user can easily view the application information. The embodiment of the present application can reduce the user's operations, improve the convenience of operation, and thus improve the user experience.

[0285] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more available media integrations. The available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk), etc.

[0286] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.< / canvas> < / video> < / videoview> < / imgview> < / textview>

Claims

1. A method for displaying application information, characterized in that: The method comprises: The electronic device detects an update event of first application information, the presentation interface of the first application information is a widget or a notification message interface, and the first application information has a corresponding relationship with the first application; In response to the update event of the first application information, the electronic device determines that the first application is locked by the application lock and the first application is in an unlocked state, and if the electronic device determines that the data in the first application information is in an unlocked state, the electronic device displays a lock view on a presentation interface of the first application information; Among them, the way in which the electronic device determines that the first application is in an unlocked state includes one or more of the following ways: the electronic device determines that the current moment is more than a first preset time period away from the moment when the application lock of the first application was last successfully unlocked; the electronic device determines that the current moment is more than a second preset time period away from the moment when the user interface of the first application was last displayed; the electronic device determines that after the electronic device determines that the application lock of the first application was last successfully unlocked, the electronic device locked the screen.

2. The method according to claim 1, characterized in that The presentation interface of the first application information is a widget, and the update event of the first application information includes: the electronic device switches from displaying other interfaces to displaying the main screen, the electronic device switches from a screen-off state to displaying the main screen, or the first application information is added to the main screen. One or more of the above; wherein the other interface is a user interface other than the main screen in the user interface displayed by the electronic device; The presentation interface of the first application information is a notification message, and the update events of the first application information include: the first application receives the notification message, the current time reaches the preset display time of the notification message, or one or more items in the outgoing notification message list are called out.

3. The method according to claim 1 or 2, characterized in that: The method further comprises: If the electronic device determines that the data in the first application information includes data in a locked state, the electronic device displays a lock view on a presentation interface of the data in a locked state in the first application information.

4. The method according to claim 1 or 2, characterized in that: The method further comprises: The electronic device detects an operation on the locked view; In response to the operation, the electronic device displays a password input box, where the password input box is used to receive an unlock password or an unlock trajectory; The electronic device receives the input unlock password or unlock track; When the electronic device determines that the unlock password is the same as a pre-stored unlock password, or the unlock trajectory is the same as a pre-stored unlock trajectory, the electronic device unlocks the locked view.

5. The method according to claim 1 or 2, characterized in that: The method further comprises: The electronic device detects an operation on the locked view; In response to the operation, the electronic device acquires physiological data of the user, where the physiological data includes one or more of fingerprint information, voiceprint information, iris information, and facial information; When the electronic device determines that the physiological data matches the pre-stored physiological data, the electronic device unlocks the locked view.

6. The method according to claim 1 or 2, characterized in that: The first application information is multiple, the first application information includes second application information and third application information, and the method further includes: The electronic device detects a touch operation on a target lock view, where the target lock view is one of a lock view on the second application information and a lock view on the third application information; The electronic device obtains the user's fingerprint information through the screen area where the target lock view is located; When the electronic device determines that the fingerprint information matches the pre-stored fingerprint information, and the target locked view is the locked view of the presentation interface of the second application information, the electronic device unlocks the locked view of the presentation interface of the second application information; When the electronic device determines that the fingerprint information matches the pre-stored fingerprint information and the target locked view is the locked view of the presentation interface of the third application information, the electronic device unlocks the locked view of the presentation interface of the third application information.

7. The method according to claim 1 or 2, characterized in that: The first application information is multiple, the first application information includes fourth application information and fifth application information, and the method further includes: The electronic device collects the user's eye position and facial information; The electronic device determines the gaze position of the human eye according to the eyeball position; When the electronic device determines that the facial information matches the pre-stored facial information and the gaze position corresponds to the locked view of the presentation interface of the fourth application information, the electronic device unlocks the locked view of the presentation interface of the fourth application information; When the electronic device determines that the facial information matches the pre-stored facial information and the gaze position corresponds to the locked view of the presentation interface of the fifth application information, the electronic device unlocks the locked view of the presentation interface of the fifth application information.

8. An electronic device, characterized in that: The electronic device includes one or more processors and a memory; the memory is coupled to the one or more processors, the memory is used to store program codes, and the one or more processors call the program codes so that the electronic device performs the following operations: An update event of first application information is detected, the presentation interface of the first application information is a widget or a notification message interface, and the first application information has a corresponding relationship with the first application; In response to an update event of the first application information, determining that the first application is locked by an application lock and the first application is in an unlocked state, and if it is determined that the data in the first application information is in an unlocked state, displaying a lock view on a presentation interface of the first application information; The one or more processors call the program code to cause the electronic device to further perform one or more of the following operations, and the one or more operations are used to determine that the first application is in an unlocked state: determining that the current moment is more than a first preset time period away from the moment when the application lock of the first application was last successfully unlocked; determining that the current moment is more than a second preset time period away from the moment when the user interface of the first application was last displayed; determining that the electronic device has locked the screen after the application lock of the first application was last successfully unlocked.

9. The electronic device according to claim 8, characterized in that: The presentation interface of the first application information is a widget, and the update event of the first application information includes: the electronic device switches from displaying other interfaces to displaying the main screen, the electronic device switches from a screen-off state to displaying the main screen, or the first application information is added to the main screen. One or more of the above; wherein the other interface is a user interface other than the main screen in the user interface displayed by the electronic device; The presentation interface of the first application information is a notification message, and the update events of the first application information include: the first application receives the notification message, the current time reaches the preset display time of the notification message, or one or more items in the outgoing notification message list are called out.

10. The electronic device according to claim 8 or 9, characterized in that: The one or more processors call the program code to enable the electronic device to specifically perform the following operations: If the electronic device determines that the data in the first application information includes data in a locked state, the electronic device displays a lock view on a presentation interface of the data in a locked state in the first application information.

11. The electronic device according to claim 8 or 9, wherein the one or more processors call the program code so that the electronic device further performs the following operations: The electronic device detects an operation on the locked view; In response to an operation on the lock view, the electronic device displays a password input box, where the password input box is used to receive an unlock password or an unlock track; The electronic device receives the input unlock password or unlock track; When the electronic device determines that the unlock password is the same as a pre-stored unlock password, or the unlock trajectory is the same as a pre-stored unlock trajectory, the electronic device unlocks the locked view.

12. The electronic device according to claim 8 or 9, characterized in that: The one or more processors call the program code so that the electronic device further performs the following operations: The electronic device detects an operation on the locked view; In response to the operation on the locked view, the electronic device obtains physiological data of the user, where the physiological data includes one or more of fingerprint information, voiceprint information, iris information, and facial information; When the electronic device determines that the physiological data matches the pre-stored physiological data, the electronic device unlocks the locked view.

13. The electronic device according to claim 8 or 9, characterized in that: The first application information is multiple, and the first application information includes second application information and third application information. The one or more processors call the program code so that the electronic device specifically performs the following operations: The electronic device detects a touch operation on a target lock view, where the target lock view is one of a lock view on the second application information and a lock view on the third application information; The electronic device obtains the user's fingerprint information through the screen area where the target lock view is located; When the electronic device determines that the fingerprint information matches the pre-stored fingerprint information, and the target locked view is the locked view of the presentation interface of the second application information, the electronic device unlocks the locked view of the presentation interface of the second application information; When the electronic device determines that the fingerprint information matches the pre-stored fingerprint information and the target locked view is the locked view of the presentation interface of the third application information, the electronic device unlocks the locked view of the presentation interface of the third application information.

14. The electronic device according to claim 8 or 9, characterized in that: The first application information is multiple, and the first application information includes fourth application information and fifth application information. The one or more processors call the program code so that the electronic device specifically further performs the following operations: The electronic device collects the user's eye position and facial information; The electronic device determines the gaze position of the human eye according to the eyeball position; When the electronic device determines that the facial information matches the pre-stored facial information and the gaze position corresponds to the locked view of the presentation interface of the fourth application information, the electronic device unlocks the locked view of the presentation interface of the fourth application information; When the electronic device determines that the facial information matches the pre-stored facial information and the gaze position corresponds to the locked view of the presentation interface of the fifth application information, the electronic device unlocks the locked view of the presentation interface of the fifth application information.

15. A computer program product, characterized in that The computer program product comprises computer instructions, and when the computer instructions are executed on an electronic device, the electronic device executes the method according to any one of claims 1 to 7.

16. A computer-readable storage medium comprising instructions, characterized in that: When the instructions are executed on an electronic device, the electronic device is caused to execute the method as claimed in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Interactive avatar for social network services

    CN101910992A

  • Display method based on user identity recognition and electronic equipment

    CN110348186A

  • Method for viewing information content, and terminal

    WO2019227488A1

Cited By

  • Method for displaying application information and related device

    WO2021175272A1