Lock screen wallpaper display method, storage medium, electronic device, and product

By creating an independent lock screen wallpaper window in the terminal operating system and adjusting its hierarchy, and using a unified wallpaper management framework, the problem of excessive coupling between lock screen wallpaper and desktop wallpaper is solved. This enables flexible setting of lock screen wallpaper and reuse by third-party applications, thus improving the user experience.

WO2026051765A1PCT designated stage Publication Date: 2026-03-12ZTE CORP
View PDF 4 Cites 0 Cited by

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2025-08-21
Publication Date
2026-03-12

AI Technical Summary

Technical Problem

In existing technologies, lock screen wallpapers on terminal devices cannot be set independently of desktop wallpapers, resulting in low playability and development potential of lock screen wallpapers. Furthermore, they are too tightly coupled with lock screen applications, making them unusable by other applications and resulting in inflexible system management.

Method used

By creating an independent lock screen wallpaper window in the terminal operating system and setting it to a different window level from the desktop wallpaper window, the lock screen and desktop wallpapers are managed in a unified manner using a wallpaper management framework, decoupling the lock screen application from the lock screen wallpaper and supporting independent settings for lock screen live wallpapers.

Benefits of technology

It enables independent display and management of lock screen wallpapers and desktop wallpapers, improves the flexibility and developability of lock screen wallpapers, supports reuse by third-party applications, and enhances user experience and system freedom.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025116153_12032026_PF_FP_ABST
    Figure CN2025116153_12032026_PF_FP_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure provide a lock screen wallpaper display method, a storage medium, an electronic device, and a product, which are applied to a terminal operating system. The method comprises: a wallpaper management framework in a terminal operating system creates a lock screen wallpaper window, and a lock screen wallpaper is displayed by means of the lock screen wallpaper window, wherein the lock screen wallpaper window and a desktop wallpaper window are at different window levels.
Need to check novelty before this filing date? Find Prior Art

Description

Lock screen wallpaper display method, storage medium, electronic device and product

[0001] Cross-reference of related disclosures

[0002] The present disclosure is based on Chinese Patent Publication 2024112439776 entitled "Lock screen wallpaper display method, storage medium, electronic device and product" filed on September 5, 2024, and claims priority to the patent publication, the disclosure of which is incorporated herein by reference in its entirety. TECHNICAL FIELD

[0003] Embodiments of the present disclosure relate to the technical field of electronics, and in particular, to a lock screen wallpaper display method, a storage medium, an electronic device and a product. BACKGROUND

[0004] In related technologies, a terminal (e.g., a mobile phone) usually sets a dynamic wallpaper for a desktop, and then controls a lock screen window to be transparent to achieve the effect of a lock screen dynamic wallpaper. This method cannot achieve independent setting of dynamic wallpapers for the lock screen and the desktop, because the design of the framework bottom layer of the operating system of the terminal does not support independent lock screen dynamic wallpaper. In related technologies, the lock screen wallpaper can only be used by the lock screen application, and cannot be used by other third-party applications, which reduces the playability and developability of the lock screen wallpaper, and also makes the lock screen application and the lock screen wallpaper display too highly coupled, which makes the system less flexible in managing the lock screen wallpaper. SUMMARY

[0005] Embodiments of the present disclosure provide a lock screen wallpaper display method, a storage medium, an electronic device and a product.

[0006] According to an embodiment of the present disclosure, a lock screen wallpaper display method is provided, including: creating, by a wallpaper management framework in a terminal operating system, a lock screen wallpaper window, and displaying a lock screen wallpaper through the lock screen wallpaper window, wherein the lock screen wallpaper window and a desktop wallpaper window are in different window levels.

[0007] According to another embodiment of the present disclosure, a computer program product is also provided, including a computer program, wherein the computer program is executed by a processor to implement the steps in the above method embodiments.

[0008] According to another embodiment of the present disclosure, a computer readable storage medium is also provided, which stores a computer program, wherein the computer program is set to run to execute the steps in the above method embodiments.

[0009] According to still another embodiment of the present disclosure, an electronic device is also provided, comprising a memory and a processor, the memory having stored therein a computer program, the processor being arranged to run the computer program to perform the steps of the above-mentioned method embodiments. BRIEF DESCRIPTION OF DRAWINGS

[0010] FIG. 1 is a structural block diagram of a lock screen wallpaper display system according to an embodiment of the present disclosure;

[0011] FIG. 2 is a flowchart of a lock screen wallpaper display method according to an embodiment of the present disclosure;

[0012] FIG. 3 is a flowchart of a lock screen wallpaper display method according to still another embodiment of the present disclosure;

[0013] FIG. 4 is a flowchart of a lock screen wallpaper display method in the related art. DETAILED DESCRIPTION

[0014] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings and in conjunction with embodiments.

[0015] It should be noted that the terms "first", "second", and the like in the description and claims of the present disclosure and the above-described drawings are used to distinguish similar objects, and do not necessarily have to be used to describe a specific order or sequence.

[0016] The method embodiments provided in the embodiments of the present disclosure can be executed in a mobile terminal, a computer terminal or a similar computing device using an open source operating system (such as an Android operating system), and FIG. 1 is a structural block diagram of a lock screen wallpaper display system according to an embodiment of the present disclosure. The system framework layer in FIG. 1 is located above the Linux kernel layer, and is mainly responsible for providing various system services and application development interfaces, as shown in FIG. 1, the system framework layer (such as the Android operating system framework layer) includes a display framework and a wallpaper management framework, the system application layer (such as the Android operating system application layer) includes a desktop application / other application, and a lock screen application / other application, and the hardware device includes a smart device screen.

[0017] The display framework (such as the Android display framework) is a core component in the system responsible for managing and rendering the user interface (UI), and the functions of the display framework at least include:

[0018] (1) Interface rendering: the display framework is responsible for rendering the user interface of an application to the screen, including text, images, graphics and other UI elements, 2D and 3D graphics rendering is performed through a graphics API, and the native lock screen wallpaper display is performed by obtaining the lock screen image saved by the system and displaying it to the screen through 2D graphics rendering.

[0019] (2) Window management: responsible for managing all application windows, each application's UI is rendered in its own window, these windows are combined together and decide their display order and hierarchy on the screen. The principle of wallpaper display is to combine the wallpaper window and the window of the specified application that displays the wallpaper itself, and display the final wallpaper display effect we see.

[0020] (3) Composition and layering: the display framework composes multiple application UI elements on one screen, creates the final display effect by composing multiple layers of images, which can include application UI layers, system interface layers, and other application layers.

[0021] That is, the display framework is the key component to ensure the correct, efficient and smooth display of the user interface, providing a unified display management mechanism for the operating system, while ensuring the compatibility and performance of multiple applications on different hardware.

[0022] The wallpaper management framework (such as the Android wallpaper management framework) is a set of systems and APIs for managing, displaying and setting mobile wallpapers, and the wallpaper management framework at least includes the following functions:

[0023] (1) Wallpaper management: the wallpaper management framework provides interfaces for managing wallpapers, allowing users to browse, select and change wallpapers on their mobile phones.

[0024] (2) Dynamic wallpaper support: the wallpaper management framework supports dynamic wallpapers, which are special wallpapers that can display dynamic content such as animations, real-time data, etc.

[0025] (3) Third-party wallpaper application integration: the wallpaper management framework also supports the integration of third-party wallpaper applications. For example, some third-party wallpaper libraries or applications (such as PicSpeed) allow users to download and set full-screen wallpapers.

[0026] That is, the wallpaper management framework provides a complete set of functions that allow developers to easily create and integrate various types of wallpapers for users.

[0027] The desktop application (such as the Android desktop application) is a very important component in the terminal operating system, at least including the following functions:

[0028] (1) User interface: provides a personalized user interface for users, through which users can manage, organize and use applications.

[0029] (2) Application startup: users can quickly start an application by clicking on the application icon on the desktop.

[0030] (3) Desktop management: Users can add, remove, or move application shortcuts and widgets on the desktop.

[0031] (4) Themes and customization: Users can usually customize the style of the desktop application, including themes, icons, fonts, and layout, to suit personal preferences, including displaying desktop wallpaper.

[0032] (5) Multitasking: Some desktop applications support displaying a list of recently used applications, making it easy for users to quickly switch back to previous tasks.

[0033] In other words, the desktop Launcher plays the role of organizer and manager in the Android system, providing a platform for users to interact with Android devices, greatly improving the convenience and personalized experience of users using smart devices.

[0034] Other applications can also make their interface transparent and achieve the effect of displaying the desktop wallpaper by setting the flag (window marker for displaying the desktop wallpaper window).

[0035] Lock screen applications (such as Android lock screen applications) are part of the system user interface and at least include the following functions:

[0036] (1) Security protection: The lock screen application provides the first layer of security protection for the device, preventing unauthorized users from accessing the device. Users need to unlock the screen to access the main interface of the device.

[0037] (2) Display information: The lock screen application can display basic information such as time, date, battery level, signal strength, etc. In addition, it can also display missed calls, SMS, email, and other notification information.

[0038] (3) Personalization settings: Users can personalize the lock screen interface, such as changing the lock screen wallpaper, setting the unlocking method (such as PIN code, pattern, password, or biometric technology, etc.).

[0039] In other words, the main functions of the lock screen application are to protect device security, provide basic information display, and provide convenient operation and personalized experience for users in the lock screen state.

[0040] Other applications: Other applications can also make their interface transparent and achieve the effect of displaying the lock screen wallpaper by setting the flag (window marker for displaying the lock screen wallpaper window).

[0041] Smart device screen: Mainly used to display the content of the smart device and interact with the user.

[0042] In this embodiment, a lock screen wallpaper display method is provided, and FIG. 2 is a flowchart of the lock screen wallpaper display method according to an embodiment of the present disclosure. As shown in FIG. 2, the flow includes the following steps:

[0043] In step S202, a wallpaper management framework in the terminal operating system creates a lock screen wallpaper window, and displays the lock screen wallpaper through the lock screen wallpaper window. The lock screen wallpaper window and the desktop wallpaper window are in different window levels.

[0044] In one embodiment, the terminal operating system includes an Android system, which is mainly used for terminal devices such as smartphones and tablets. The Android system is based on the Linux kernel, has the characteristics of open source code and customizability, and has a rich ecosystem of applications. The Android system can download various applications and games through the application store, and users can customize the interface and functions of the device according to their own needs and preferences.

[0045] It should be noted that the desktop wallpaper is the background of the home screen that the user sees after unlocking. Users can choose various pictures as desktop wallpapers according to their own preferences, such as landscapes, animals, anime characters, family photos, etc. Some systems also provide dynamic wallpapers, such as animations, videos, or real-time weather, etc.

[0046] The lock screen wallpaper is the background that the user sees in the unlocked state. Similar to the desktop wallpaper, users can choose their favorite pictures as lock screen wallpapers. The lock screen wallpaper and the desktop wallpaper can be the same picture, but they can also be different pictures to meet the visual needs of users in different states.

[0047] According to the embodiments of the present disclosure, since the lock screen wallpaper window for displaying the lock screen wallpaper is created by the wallpaper management framework in the terminal operating system, rather than the lock screen application, the coupling between the lock screen application and the lock screen wallpaper is eliminated, and the lock screen wallpaper window and the desktop wallpaper window are in different window levels, which can make the desktop wallpaper and the lock screen wallpaper both be normally displayed. Therefore, the problem that the coupling between the lock screen wallpaper and the lock screen application is too high due to the lock screen wallpaper window being the window of the lock screen application, and the lock screen wallpaper cannot be reused by other applications in the related art can be solved, thereby improving the flexibility of setting the lock screen wallpaper.

[0048] In the exemplary embodiments of the present disclosure, after the wallpaper management framework creates the lock screen wallpaper window, it further includes adjusting the level order of the vertical height of the window in the terminal operating system, and adjusting the window level of the lock screen wallpaper window to be higher than the window level of the desktop wallpaper window.

[0049] In one embodiment, the adjustment of the hierarchical order of the vertical height of the window is achieved by adjusting the Z-axis of the window in the terminal operating system, that is, adjusting the vertical height of the window. Adjusting the window level of the lock screen wallpaper window can ensure that the lock screen interface can correctly cover other content when needed, providing a safe, efficient and user-friendly unlocking experience.

[0050] In one embodiment, the window level of the lock screen wallpaper window is adjusted to be 1 level higher than that of the desktop wallpaper window, so that if the desktop wallpaper window and the lock screen wallpaper window are displayed at the same time, the lock screen wallpaper window will be displayed preferentially.

[0051] In an example embodiment of the present disclosure, before the wallpaper management framework creates the lock screen wallpaper window, the wallpaper management framework further includes: loading lock screen wallpaper information from the wallpaper persistent storage; in the case that the lock screen wallpaper information includes dynamic lock screen wallpaper information, binding a lock screen dynamic wallpaper service; or, in the case that the lock screen wallpaper information includes static lock screen wallpaper information, binding a lock screen static wallpaper service; and performing lock screen wallpaper engine initialization.

[0052] It should be noted that the native lock screen wallpaper display is strongly coupled with the wallpaper management framework, that is, the lock screen application window obtains the lock screen picture saved by the wallpaper management framework and displays it, but the display of the lock screen wallpaper is not managed by the wallpaper management framework, which has a sense of fragmentation and is not conducive to the secondary development of the lock screen wallpaper.

[0053] The embodiment of the present disclosure modifies the original architecture, so that the display process of the lock screen wallpaper is also managed and triggered by the wallpaper management framework, similar to the desktop wallpaper display process. After modification, the lock screen application and the wallpaper display framework can be decoupled, so that they do not need to pay attention to the setting, display and update process of the lock screen wallpaper, which is completely managed by the wallpaper management framework. In addition, the function of separately setting the lock screen dynamic wallpaper can be realized, which is not supported on the native terminal operating system (such as the Android system) because the underlying architecture does not support it. The embodiment of the present disclosure can completely support the separate setting of the lock screen dynamic wallpaper.

[0054] In one embodiment, the information of the lock screen and the desktop wallpaper is loaded from the wallpaper persistent storage maintained by the wallpaper management framework into the memory, including the wallpaper position, whether it is a dynamic wallpaper, the user identity (ID), the wallpaper color, the name, etc.

[0055] In an example embodiment of the present disclosure, in the case that the window in the terminal operating system changes, the wallpaper management framework controls the desktop wallpaper window and the lock screen wallpaper window.

[0056] It should be noted that in the related art, the wallpaper management framework cannot control the lock screen wallpaper window, which is not conducive to the management and secondary development of the lock screen wallpaper.

[0057] In the example embodiments of the present disclosure, the wallpaper management framework controls the desktop wallpaper window and the lock screen wallpaper window, including: judging whether the window currently existing in the lock screen application or the terminal operating system is in a visible state, and whether the window includes a window mark for displaying the lock screen wallpaper window; in the case that both of the judgment results are yes, updating the state of the lock screen wallpaper window to visible, and updating the desktop wallpaper window to invisible; or, in the case that the window currently existing in the lock screen application or the terminal operating system is in an invisible state, or the window does not include the window mark for displaying the lock screen wallpaper window, updating the state of the lock screen wallpaper window to invisible.

[0058] In the example embodiments of the present disclosure, in the case that the window currently existing in the lock screen application or the terminal operating system is in an invisible state, or the window does not include the window mark for displaying the lock screen wallpaper window, the method further includes: judging whether the window in the desktop application or the terminal operating system is in a visible state, and whether the window includes a window mark for displaying the desktop wallpaper window; in the case that both of the judgment results are yes, updating the state of the desktop wallpaper window to visible; or, in the case that the window in the desktop application or the terminal operating system is in an invisible state, or the window does not include the window mark for displaying the desktop wallpaper window, updating the state of the desktop wallpaper window to invisible.

[0059] In one embodiment, updating the visibility state of the current window can be used for subsequent window superposition and synthesis display, and finally the display state of the wallpaper on the screen of the smart device is display or non-display, and the wallpaper is the lock screen wallpaper or the desktop wallpaper.

[0060] In the example embodiments of the present disclosure, in the case that the state of the lock screen wallpaper window or the desktop wallpaper window is visible, the method further includes: sending a visibility update notification of the current window to the window management framework.

[0061] In one embodiment, sending the visibility update notification of the current window to the window management framework means notifying the window management framework that the visibility of the current window has been updated.

[0062] Through the embodiments of the present disclosure, the display architecture of the system lock screen wallpaper and the desktop wallpaper is changed, the lock screen wallpaper window is no longer the window of the lock screen application, but the window controlled independently by the system framework, similar to the desktop wallpaper window, and the window level is one level higher than that of the desktop wallpaper window; the lock screen dynamic wallpaper and the desktop dynamic wallpaper can be independently set, improving the user experience; the lock screen wallpaper and the desktop wallpaper are uniformly managed by the system wallpaper management framework, decoupling the coupling with the lock screen application, so that the lock screen wallpaper can also be reused by the three-party application like the desktop wallpaper, improving the freedom of the system.

[0063] Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be realized by means of software on a general hardware platform as necessary, and of course can also be realized by hardware, but in many cases the former is a better embodiment. Based on such understanding, the technical solutions of the present disclosure can be embodied in the form of a software product in essence or in the form of a part of the prior art that makes a contribution. The computer software product is stored in a storage medium (such as a ROM / RAM, a magnetic disk, or an optical disk) and includes a plurality of instructions for causing an end device (which can be a mobile phone, a computer, a server, or a network device) to execute the method described in the various embodiments of the present disclosure.

[0064] In order to facilitate the understanding of the technical solutions provided by the present disclosure, the following will be described in detail in conjunction with specific scene embodiments.

[0065] FIG. 3 is a flowchart of a lock screen wallpaper display method according to still another embodiment of the present disclosure, as shown in FIG. 3, the flow includes the following steps:

[0066] Step S301: wallpaper management framework, indicating that the following steps are performed in the wallpaper management framework.

[0067] Step S302: loading wallpaper information from the wallpaper persistent storage, this step loads the information of the lock screen and desktop wallpaper into the memory from the wallpaper persistent storage location maintained by the wallpaper management framework, including wallpaper location, whether it is a dynamic wallpaper, user Id, wallpaper color, name, etc., to prepare for the following wallpaper operation process.

[0068] Step S303a: desktop wallpaper, indicating that the following process is to set the display process of the desktop wallpaper.

[0069] The display process of the desktop wallpaper in the embodiment of the present disclosure has two trigger sources: the smart device actively changes the wallpaper, when the smart device changes the wallpaper, the wallpaper service bound by the wallpaper management framework is determined by the wallpaper service name called by the application layer to the wallpaper management framework interface, and the wallpaper information is saved in the persistent information for the next time the device is restarted. The binding work of the wallpaper service is performed when the device is turned on; the smart device is restarted / turned on, and the wallpaper name to be bound when turned on is determined by the latest wallpaper information saved by the system before the last shutdown. If the system has never changed the wallpaper (first boot), then the system default configured wallpaper service is read for binding work.

[0070] Judgment C301a: whether the desktop wallpaper is a dynamic wallpaper.

[0071] Specifically, in the case of a yes judgment result, S304a is entered; in the case of a no judgment result, S305a is entered.

[0072] It should be noted that the desktop wallpaper of the terminal operating system (for example, the Android system) is divided into dynamic wallpaper and static wallpaper. The static wallpaper service is provided by the Android system, and when a user needs to change the static wallpaper, the user actually changes the picture information read in the static wallpaper service. When the static wallpaper is replaced during application development, the data stream of the picture is transmitted to the interface of the wallpaper management framework, and the display logic of the picture is completely controlled by the Android system. The dynamic wallpaper service is implemented by a third-party application that inherits the wallpaper service abstract class provided by the wallpaper management framework. The service name is not fixed, for example, a certain wallpaper service abstract class, which is completely determined by the wallpaper application developer. When the user needs to change the dynamic wallpaper, the user actually binds the specified dynamic wallpaper service to achieve the change. When the dynamic wallpaper is replaced during application development, the service name of the dynamic wallpaper is transmitted to the interface of the wallpaper management framework. The specific content of the dynamic wallpaper display is controlled by the developer of the third-party application.

[0073] Step S304a: binding the desktop dynamic wallpaper service, indicating that the desktop dynamic wallpaper service is bound next. After the binding is completed, the wallpaper service name is saved in the persistent information, which is used for binding the wallpaper service next time the device is restarted.

[0074] Step S305a: binding the desktop static wallpaper service, indicating that the desktop static wallpaper service is bound next. If the trigger mode of changing the desktop wallpaper is changed, the wallpaper picture resource is replaced first, and then the static wallpaper service is bound.

[0075] Step S306a: desktop wallpaper engine initialization, indicating that the initialization of the desktop wallpaper engine is processed next. The desktop wallpaper engine is an inner class of the wallpaper service abstract class, that is, whether it is a dynamic wallpaper or a static wallpaper, the initialization of the wallpaper engine is performed. The key is the creation of the wallpaper window, and the focus is on the transmission of the window type as the desktop wallpaper type window.

[0076] Step S303b: lock screen wallpaper, indicating that the display process of setting the lock screen wallpaper is processed next.

[0077] Specifically, the display process of the lock screen wallpaper is different from the display architecture process of the original lock screen wallpaper of the Android. The display of the original lock screen wallpaper is to obtain the lock screen picture saved by the wallpaper management framework in the application window of the lock screen and draw and display, which is strongly coupled with the wallpaper management framework. However, the display of the lock screen wallpaper is not managed by the wallpaper management framework, which has a sense of fragmentation and is not conducive to the secondary development of the lock screen wallpaper. In the embodiment of the disclosure, the original architecture is modified, so that the display process of the lock screen wallpaper is also managed and triggered by the wallpaper management framework, which is similar to the display process of the desktop wallpaper.

[0078] The lock screen wallpaper is managed by the wallpaper management framework, which decouples the lock screen application and the wallpaper display framework, so that the lock screen application does not need to pay attention to the setting, display and updating of the lock screen wallpaper, and the lock screen dynamic wallpaper can be set separately, which is not supported in the original Android system because the underlying architecture does not support it, but the lock screen dynamic wallpaper can be set separately in the embodiment of the present disclosure.

[0079] The display process of the lock screen wallpaper also has two trigger sources, which are the same as S303a.

[0080] Step S301b: Determine whether the lock screen wallpaper is a dynamic wallpaper.

[0081] Specifically, if the determination result is yes, go to S304b; if the determination result is no, go to S305b.

[0082] It should be noted that the modified lock screen wallpaper also includes dynamic wallpaper and static wallpaper. The static wallpaper service follows the desktop static wallpaper service and inherits from the wallpaper service abstract class. The dynamic wallpaper service also follows the desktop dynamic wallpaper service and inherits the wallpaper service abstract class, which is customized by other third-party applications. The difference lies in the subsequent wallpaper engine, the creation of the lock screen wallpaper window, and the window type, which is a lock screen wallpaper type window newly added in the embodiment of the present disclosure, used to identify the current created window as a lock screen wallpaper window.

[0083] Step S304b: Bind the lock screen dynamic wallpaper service, which means that the lock screen dynamic wallpaper service is bound next. After the binding is completed, the lock screen wallpaper service name is saved in the persistent information, which is used to bind the lock screen wallpaper service next time the device is restarted.

[0084] Step S305b: Bind the lock screen static wallpaper service, which means that the lock screen static wallpaper service is bound next. If the trigger mode of changing the lock screen wallpaper is changed, the lock screen wallpaper picture resource will be replaced first, and then the lock screen wallpaper service will be bound.

[0085] Step S306b: Lock screen wallpaper engine initialization, which means that the initialization of the lock screen wallpaper engine is handled next. The lock screen wallpaper engine is an inner class of the wallpaper service abstract class, that is, whether it is a lock screen dynamic wallpaper or a static wallpaper, the initialization of the wallpaper engine is performed. The key is the creation of the wallpaper window, and the focus is on the transmission of the window type, which is the lock screen wallpaper type window.

[0086] Step S307: Window management framework, which means that the following steps are performed in the window management framework.

[0087] Step S308a: add a desktop wallpaper type window, the window type is a desktop wallpaper type window, which is a window type provided by the native Android system.

[0088] Step S308b: add a lock screen wallpaper type window, the window type is a lock screen wallpaper type window.

[0089] Step S309: adjust the Z-axis level order of the windows in the system, which means adjusting the Z-axis order of the lock screen wallpaper window and the desktop wallpaper window, for subsequent window superposition and synthesis display. The level of the lock screen wallpaper window is only one level higher than that of the desktop wallpaper window, so if the desktop wallpaper window and the lock screen wallpaper window are displayed at the same time, the lock screen wallpaper window will be displayed preferentially.

[0090] Step S310: trigger a new layout every time the window in the system changes, which means that when the window in the Android system changes, for example, an application window is opened, the window size, transparency, and visibility change, etc. When these scenarios occur, the visibility of the subsequent desktop wallpaper window and lock screen wallpaper window needs to be adjusted.

[0091] Determination C302: determine whether the lock screen application or the window existing in the current system is visible and holds the window flag for displaying the lock screen wallpaper window.

[0092] Specifically, if the window existing in the current system (which can be a lock screen application window) is visible and holds the flag (lock screen wallpaper window display flag), then step S311 is performed; otherwise, step S312 is performed.

[0093] Step S311: update the lock screen wallpaper window to be visible and the desktop wallpaper window to be invisible.

[0094] Specifically, the window management system of Android is notified to update the visibility of the lock screen wallpaper window and the desktop wallpaper window. Since it is determined in C302 that the window existing in the current system (which can be a lock screen application window) is visible and holds the flag (lock screen wallpaper window display flag), the lock screen wallpaper window is displayed preferentially, and the desktop wallpaper window does not need to be displayed. Then step S315 is performed.

[0095] Step S312: update the lock screen wallpaper window to be invisible.

[0096] Specifically, since it is determined in C302 that the window existing in the current system (which can be a lock screen application window) is not visible or does not hold the flag (lock screen wallpaper window display flag), the lock screen wallpaper window does not need to be displayed at this time.

[0097] Judgment C303: judging whether the desktop application or the window existing in the current system is visible and holds the window mark for displaying the desktop wallpaper window.

[0098] Specifically, it is indicated that if the window existing in the current system is visible and holds the flag (the desktop wallpaper window mark) flag, the S314 step processing will be performed; otherwise, the S313 step processing is entered.

[0099] Step S313: updating the desktop wallpaper window to be invisible.

[0100] Specifically, it is indicated that the desktop wallpaper window is not ready to be displayed.

[0101] Step S314: updating the desktop wallpaper window to be visible.

[0102] Specifically, it is indicated that the desktop wallpaper window is ready to be displayed, and step S315 is entered.

[0103] Step S315: when visible, performing drawing and composite display.

[0104] Specifically, it is indicated that the window management framework is notified that the visibility of the current window has been updated, and the window superposition composite display is performed. Finally, the lock screen wallpaper or the desktop wallpaper is displayed or not displayed on the screen of the smart device.

[0105] FIG. 4 is a flowchart of a lock screen wallpaper display method in the related art. As shown in FIG. 4, the display process of the desktop wallpaper is basically the same as that in FIG. 3, and the difference is that the display process of the lock screen wallpaper. After the lock screen wallpaper picture is obtained, the lock screen wallpaper picture is displayed through the Systemui window.

[0106] In the related art, the lock screen dynamic wallpaper scheme cannot be independently set with the desktop dynamic wallpaper, or is independently implemented by the lock screen application, which causes the system wallpaper management framework and the lock screen wallpaper display to be disconnected, and the three-party application cannot use the highly customized dynamic wallpaper display of the lock screen application, so that the lock screen wallpaper function becomes closed, which is not friendly to the three-party developers and will also lose the freedom of product customization.

[0107] In the embodiments of the present disclosure, the display architecture of the system lock screen and desktop wallpaper is changed, so that the lock screen wallpaper window and the desktop wallpaper window are maintained from the system framework layer. In this way, the lock screen wallpaper and the desktop wallpaper can be independent of each other and do not affect each other, and the lock screen and desktop dynamic wallpaper can be independently set and displayed.

[0108] Through the embodiments of the present disclosure, the coupling degree of the lock screen application and the lock screen wallpaper is optimized, the wallpaper is uniformly managed by a wallpaper management service of a system framework layer, and the wallpaper includes a lock screen wallpaper and a desktop wallpaper. In this way, when the lock screen application needs to display the lock screen wallpaper, only a window flag (a window mark for displaying the lock screen wallpaper window) needs to be set, and then the system framework performs automatic update determination to select and display the lock screen wallpaper or the desktop wallpaper in a proper scene.

[0109] The embodiments of the present disclosure further provide a computer readable storage medium, and the computer readable storage medium stores a computer program. When the computer program is executed, the steps in any of the method embodiments described above are performed.

[0110] In an example embodiment, the computer readable storage medium described above can include, but is not limited to, a U disk, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and various media that can store a computer program.

[0111] The embodiments of the present disclosure further provide an electronic device, which includes a memory and a processor. The memory stores a computer program, and the processor is configured to execute the computer program to perform the steps in any of the method embodiments described above.

[0112] In an example embodiment, the electronic device described above can further include a transmission device and an input / output device. The transmission device is connected to the processor, and the input / output device is connected to the processor.

[0113] The specific examples in the embodiments can refer to the examples described in the above embodiments and example embodiments, and the embodiments will not be described here again.

[0114] The above only describes the preferred embodiments of the present disclosure and is not used to limit the present disclosure. For those skilled in the art, the present disclosure can have various modifications and changes. Any modification, equivalent replacement, improvement, etc. within the principles of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A lock screen wallpaper display method applied to a terminal operating system, comprising: a wallpaper management framework in the terminal operating system creating a lock screen wallpaper window through which a lock screen wallpaper is displayed, wherein the lock screen wallpaper window and a desktop wallpaper window are in different window levels.

2. The method of claim 1, wherein, After the wallpaper management framework creates the lock screen wallpaper window, the method further comprises adjusting the level order of the vertical height of windows in the terminal operating system, and adjusting the window level of the lock screen wallpaper window to be higher than the window level of the desktop wallpaper window.

3. The method of claim 1, wherein, The method further comprises: In the case of a change in the window in the terminal operating system, the wallpaper management framework controls the desktop wallpaper window and the lock screen wallpaper window.

4. The method of claim 3, wherein, The wallpaper management framework controlling the desktop wallpaper window and the lock screen wallpaper window comprises: determining whether the lock screen application or the currently existing window in the terminal operating system is in a visible state, and whether the window includes a window mark for displaying the lock screen wallpaper window; in the case of both determination results being yes, updating the state of the lock screen wallpaper window to be visible, and updating the desktop wallpaper window to be invisible; or in the case of the lock screen application or the currently existing window in the terminal operating system being in an invisible state, or the window not including the window mark for displaying the lock screen wallpaper window, updating the state of the lock screen wallpaper window to be invisible.

5. The method of claim 4, wherein, In the case of the lock screen application or the currently existing window in the terminal operating system being in an invisible state, or the window not including the window mark for displaying the lock screen wallpaper window, the method further comprises: determining whether the desktop application or the window in the terminal operating system is in a visible state, and whether the window includes a window mark for displaying the desktop wallpaper window; in the case of both determination results being yes, updating the state of the desktop wallpaper window to be visible; or in the case of the desktop application or the window in the terminal operating system being in an invisible state, or the window not including the window mark for displaying the desktop wallpaper window, updating the state of the desktop wallpaper window to be invisible.

6. The method of claim 5, wherein, In the case of the state of the lock screen wallpaper window or the desktop wallpaper window being visible, the method further comprises sending a notification of the visibility of the current window to a window management framework.

7. The method of claim 1, wherein, Before the wallpaper management framework creates the lock screen wallpaper window, the method further comprises: the wallpaper management framework loading lock screen wallpaper information from a wallpaper persistent storage; in the case of the lock screen wallpaper information including dynamic lock screen wallpaper information, binding a lock screen dynamic wallpaper service; or in the case of the lock screen wallpaper information including static lock screen wallpaper information, binding a lock screen static wallpaper service; performing lock screen wallpaper engine initialization.

8. A computer-readable storage medium having stored therein a computer program, wherein, The computer program, when executed by a processor, implements the steps of the method described in any one of claims 1 to 7. 9.An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor, when executing the computer program, implements the steps of the method described in any one of claims 1 to 7.

10. A computer program product comprising a computer program which, when executed by a processor, implements the steps of the method as claimed in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Dynamic wallpaper display method, device, electronic device and storage medium

    CN109308207A

  • Terminal display method, terminal and computer readable storage medium

    CN112363785A

  • Lock screen display control method and device, mobile terminal and storage medium

    CN112882779A

  • Display method and apparatus for virtual desktop

    US20240177371A1