Application icon updating method and electronic equipment
Send application icon resource files through the server to achieve instant updates, solve the problem of cumbersome application icon updates, improve users' perception of special dates or activity information, and improve user experience.
Patent Information
- Application Number
- CN202411759367.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-30
- Publication Date
- 2025-08-05
AI Technical Summary
In the prior art, the process of updating application icons is cumbersome and inefficient, resulting in users being unable to perceive special dates or activity information in a timely manner, affecting user experience.
The resource files of application icons are sent to electronic devices through the server, including application information and icon information of the target application, realizing instant updates of application icons, and supporting timeliness information to automatically update icons.
Simplifies the icon update process, improves users' perception of key content and information of the application, and improves user experience.
Smart Images

Figure CN120428997A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of terminal technology, and more particularly to a method for updating an application icon and an electronic device. Background Art
[0002] With the development of terminal technology, electronic devices can be installed with a variety of applications to meet the growing business needs of users. After the electronic device installs an application, an application icon of the application can be displayed on the desktop of the electronic device for user operation.
[0003] In related technologies, the application icon of each application is set by the developer and remains unchanged. However, in actual use, due to the arrival of special dates or special events, it is necessary to display an updated application icon to convey more information to the user. In this case, the developer can release a new version of the application package, so that the electronic device can download and install the new version of the application package, and display the updated application icon on the electronic device's desktop.
[0004] However, this method of updating app icons requires downloading and installing a new version of the application package each time the app icon is updated, which is cumbersome and inefficient. Furthermore, if the electronic device has not downloaded and installed the new version of the application package, the app icon cannot be updated, making it impossible to convey more information to the user through the app icon. This results in users being less aware of special dates or events, affecting the user experience. Summary of the Invention
[0005] The present application provides an application icon updating method and electronic device, which are used to solve the problem of complexity and cumbersome operation in updating application icons, and solve the problem that users cannot perceive information about special dates or special events in a timely manner.
[0006] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:
[0007] In a first aspect, a method for updating an application icon is provided, which is applied to an icon update system including a server and an electronic device; the method includes: the server receives a first resource file; wherein the first resource file includes application information of a target application and icon information of a first icon; the application information includes an application package name and an application type of the target application; the icon information includes one or more of an icon version, an icon format, a color mode, and a layered form corresponding to the first icon; the server sends the first resource file to the electronic device; the electronic device receives the first resource file from the server, and updates the application icon of the target application to the first icon.
[0008] Based on the first aspect, compared with the technical solution of updating the application icon by downloading and installing a new version of the application package, the solution of the present application can realize that when the application icon needs to be updated, the resource file of the application icon is sent to the electronic device through the server in a timely manner, so that the electronic device can update the application icon in a timely manner, thereby satisfying the exposure demand of the key content / information of the application through the application icon, and before the version of the target application is updated, it can first attract users to perceive the key content / information of the application, thereby improving the user experience.
[0009] In a possible implementation of the first aspect, the first resource file also includes expiration information, which is used to indicate the effective period of the first resource file; the method also includes: in response to the expiration information, the server sends a second resource file to the electronic device; wherein the second resource file includes application information of the target application and icon information of the second icon; the icon information includes one or more of the icon version, icon format, color mode and layered form corresponding to the second icon; the electronic device receives the second resource file from the server and updates the application icon of the target application to the second icon.
[0010] In this implementation, since the first resource file also includes expiration information, when the expiration information arrives, the server can actively send the second resource file to the electronic device so that the electronic device can update the application icon in a timely manner, further simplifying the complexity of icon updates and reducing device power consumption.
[0011] In a possible implementation of the first aspect, the target application includes a main application and a clone application; the main application and the clone application log in to different application accounts; wherein the electronic device receives a first resource file from a server and updates the application icon of the target application to a first icon, including: the electronic device receives a first resource file from a server and updates the application icons of the main application and the clone application to the first icon.
[0012] In this implementation, the electronic device can update the main application and the clone application at the same time to ensure the uniformity of icon display.
[0013] In a possible implementation of the first aspect, the target application includes a main application and a parallel application; the main application and the parallel application log in to different application accounts, and the main application and the parallel application run simultaneously; wherein, the electronic device receives a first resource file from a server and updates the application icon of the target application to a first icon, including: the electronic device receives a first resource file from a server and updates the application icons of the main application and the parallel application to the first icon.
[0014] In this implementation, the electronic device can update the main application and the parallel application at the same time to ensure the uniformity of icon display.
[0015] In a possible implementation of the first aspect, the electronic device includes a resource update end, a resource directory module, a desktop application and a resource framework module; wherein the electronic device receives the first resource file from the server and updates the application icon of the target application to the first icon, including: the resource update end receives the first resource file from the server and saves the first resource file to the resource directory module; the resource update end parses the first resource file, obtains and sends the application package name of the target application and the icon version of the first icon to the desktop application; the desktop application sends the application package name of the target application and the icon version of the first icon to the resource framework module; the resource framework module downloads the first resource file from the resource update directory according to the application package name of the target application and the icon version of the first icon; the resource framework module sends the first resource file to the desktop application, so that the desktop application updates the application icon of the target application to the first icon.
[0016] In a possible implementation of the first aspect, after the desktop application sends the application package name of the target application and the icon version of the first icon to the resource framework module, the method also includes: the resource framework module determines whether the target application supports the FRRO function; the FRRO function is used to indicate that the target application allows the application icon to be updated to the operation icon; wherein, the resource framework module sends the first resource file to the desktop application so that the desktop application updates the application icon of the target application to the first icon, including: when the target application supports the FRRO function, the resource framework module sends the first resource file to the desktop application so that the desktop application updates the application icon of the target application to the first icon.
[0017] In a possible implementation of the first aspect, after the resource framework module receives the application package name of the target application and the icon version of the first icon, the method also includes: the resource framework module generates a resource mapping file; the resource mapping file stores the mapping relationship between the index of the first resource file corresponding to the target application and the first icon; the resource framework module sends a notification to the desktop application, the notification is used to indicate that the mapping relationship between the index of the first resource file corresponding to the target application and the first icon has been generated; wherein, the resource framework module sends the first resource file to the desktop application so that the desktop application updates the application icon of the target application to the first icon, including: the desktop application sends a first request to the resource framework module; the first request is used to request to obtain the first resource file; the resource framework module sends the first resource file to the desktop application so that the desktop application updates the application icon of the target application to the first icon.
[0018] In a possible implementation of the first aspect, when the target application does not support the FRRO function, the method also includes: the resource framework module returns the resource file corresponding to the theme icon to the desktop application according to the priority of the theme icon supported by the target application; the desktop application updates the application icon of the target application according to the resource file corresponding to the theme icon; wherein the theme icon includes a target theme icon, a default theme icon or other theme icons; wherein the priority of the target theme icon is higher than that of the default theme icon, and the priority of the default theme icon is higher than that of other theme icons.
[0019] In a second aspect, an electronic device is provided, which has the function of implementing the first aspect or any one of the functions described in the first aspect. The function can be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.
[0020] In a third aspect, a server is provided, the server having the functionality of implementing the first aspect or any one of the first aspects. The functionality may be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the functionality.
[0021] In a fourth aspect, an electronic device is provided, comprising: a memory and one or more processors; computer program code is stored in the memory, and the computer program code includes computer instructions; when the computer instructions are executed by the processor, the electronic device executes the above-mentioned first aspect or any one of the methods in the first aspect.
[0022] In a fifth aspect, a server is provided, comprising: a memory and one or more processors; the memory stores computer program code, the computer program code including computer instructions; when the computer instructions are executed by the processor, the server executes the above-mentioned first aspect or any one of the methods in the first aspect.
[0023] In a sixth aspect, an icon update system is provided, comprising an electronic device and a server for executing the above-mentioned first aspect or any one of the methods in the first aspect.
[0024] In the seventh aspect, a chip system is provided for use in electronic devices and servers, the chip system comprising: at least one processor and an interface, the interface being used to receive instructions and transmit them to at least one processor; at least one processor executing instructions enables the electronic device and the server to execute any one of the methods described in the first aspect above.
[0025] In an eighth aspect, a computer-readable storage medium is provided, wherein instructions are stored in the computer-readable storage medium, which, when executed on a computer, enables the computer to execute any one of the methods described in the first aspect.
[0026] In a ninth aspect, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute any one of the methods described in the first aspect.
[0027] Among them, the technical effects brought about by any implementation method in the second to ninth aspects can refer to the technical effects brought about by different implementation methods in the first and second aspects, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 A schematic diagram of the structure of an icon updating system provided in an embodiment of the present application;
[0029] Figure 2 A schematic diagram of the hardware structure of a mobile phone provided in an embodiment of the present application;
[0030] Figure 3 A schematic diagram of the software structure of a mobile phone provided in an embodiment of the present application;
[0031] Figure 4 A schematic diagram of an interface of a method for updating an application icon provided in an embodiment of the present application;
[0032] Figure 5 A schematic diagram of a method for updating an application icon provided in an embodiment of the present application Figure 1 ;
[0033] Figure 6 A schematic diagram of a method for updating an application icon provided in an embodiment of the present application Figure 2 ;
[0034] Figure 7 A schematic diagram of a method for updating an application icon provided in an embodiment of the present application Figure 3 ;
[0035] Figure 8 A schematic structural diagram of a chip system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0036] 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 this article is merely a way to describe the association relationship of associated objects, indicating that three relationships can exist, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0037] The terms "first" and "second" below are used for descriptive purposes only and should not be understood to indicate or imply relative importance or implicitly specify the number of the technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of this application, unless otherwise specified, "plurality" means two or more.
[0038] In the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be interpreted as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.
[0039] To facilitate understanding, some descriptions of concepts related to the embodiments of the present application are given as examples for reference.
[0040] In order to improve the privacy and security of user data, many electronic devices support dual systems. Users can use the main system for daily use, and users can use the subsystem as a privacy system.
[0041] 1. Host system
[0042] The main system is the core of the mobile phone operating system, responsible for managing and controlling the hardware and software resources of the mobile phone, as well as providing the user interface and various functions.
[0043] 2. Guest system
[0044] A subsystem is a system that runs within the main system's application layer. This means that it resides within the main system's application layer and relies on the main system's support for operation. Therefore, a subsystem is a private space within the main system, existing as an application. A subsystem can be used to run application clones and / or parallel spaces. Subsystems can run applications independently, and each subsystem maintains its own data, settings, and account information.
[0045] It should be noted that the aforementioned subsystems are not completely parallel to the main system, but rather systems running in the application layer of the main system. The subsystems can have the functions of the main system. For example, after the subsystem is started, the subsystem main interface can be displayed, and the main interface can include icons of multiple applications installed in the subsystem (for example, icons of instant messaging applications, camera applications, and game applications). Of course, the subsystem also has independent storage space, which can also store user data that is not accessible to the main system and can only be accessed after entering the subsystem.
[0046] Among them, the main system and subsystem each have independent system desktop, wallpaper and storage space, etc.
[0047] Exemplarily, a mobile phone can activate a subsystem in a variety of ways. For example, the mobile phone can activate the subsystem by receiving a user operation on a preset control. Exemplarily, the mobile phone displays a main system interface (which may be the main system's system desktop or the main system's settings interface), and the main system interface includes a preset control for activating the subsystem. The mobile phone receives and responds to the user's operation on the preset control to activate the subsystem.
[0048] Alternatively, the mobile phone can receive a preset gesture from the user on the main system interface to activate the subsystem. For example, the mobile phone displays the main system interface and can receive a preset gesture from the user on the main system interface to activate the subsystem. For example, the preset gesture can be a pinch-out gesture, etc., without limitation.
[0049] Based on the above description, a subsystem implements its functions in the form of an application. When a user launches a subsystem, they can launch it from the main system interface, and the subsystem is launched through the main system. After launching the subsystem, the phone can display the subsystem's main interface, and display the application icons in the subsystem on the main interface.
[0050] The above process of entering the main interface of the subsystem can be a process of opening a parallel space, or a process of opening an application clone.
[0051] 3. App cloning
[0052] App clones allow users to run multiple instances of the same application on a single device at the same time. Each instance can run independently and has its own account information and data storage space.
[0053] For example, the application clone can realize the following functions as shown in ①-④:
[0054] ①. Multi-account management: App clones allow users to easily manage multiple accounts for social media, email, or other online services without having to switch accounts. Multiple accounts can be accessed and managed simultaneously, improving work efficiency.
[0055] ②. Privacy protection: By establishing a strict privacy mechanism, App Clone ensures that each clone application has independent data storage space, effectively preventing the risk of information cross-border and leakage between different accounts, and providing users with higher privacy protection.
[0056] ③. Multitasking: Users can run multiple instances of the same application on the same device to perform different tasks. For example, they can chat with family members in the main application while communicating with colleagues in another clone application.
[0057] ④ Personalized customization: Each clone app can be independently customized according to the user's needs, including application selection, theme settings, etc. This highly personalized approach can improve the user experience.
[0058] In the embodiment of the present application, the application downloaded through the application store can be called the main application, and the application obtained by splitting the main application using the application clone function is called the clone application.
[0059] 4. Parallel Space
[0060] Parallel Space is an independent and secure space used to protect device data. It is independent of the main space (the device's regular usage environment), but at the same time operates under the same system framework. The design of Parallel Space allows users to have two completely independent spaces on the same device, each of which can install and run different applications, and the data is independent of each other. This means that the applications and data users use in Parallel Space will not affect the applications and data in the main space. This data isolation feature provides users with higher data security and avoids privacy risks caused by application or data leaks.
[0061] In addition, Parallel Space also provides convenient application management functions. Users can add or remove applications in Parallel Space without affecting the applications in the main space. Furthermore, users can quickly switch between Parallel Space and the main space, enjoying a more flexible and convenient user experience.
[0062] In an embodiment of the present application, an application installed in the main space may be referred to as a main application, and an application installed in the parallel space may be referred to as a parallel application.
[0063] App clones and parallel spaces can be applied to a variety of scenarios. For example, in social networking apps, users can use parallel spaces or app clones to log in to multiple accounts and manage different social circles. On e-commerce platforms, users can use parallel spaces or app clones to log in to different accounts and shop with different membership levels to earn more discounts or points. In gaming scenarios, users can also use parallel spaces or app clones to create virtual accounts and own multiple characters of different levels or different game professions, enhancing the gaming experience.
[0064] In this way, using App Clone or Parallel Space allows users to conveniently manage multiple social media or gaming accounts without having to frequently switch between accounts. Furthermore, using App Clone and Parallel Space can separate data from different applications, preventing data cross-talk or leakage and enhancing privacy protection.
[0065] The technical solutions provided by the embodiments of the present application are described in detail below in conjunction with the accompanying drawings.
[0066] The embodiment of the present application provides an icon updating system, such as Figure 1 As shown, the icon update system may include a server and an electronic device. The server may provide the electronic device with a resource file of an application icon (which may be referred to as an icon resource file), and the electronic device may update the application icon based on the resource file of the application icon provided by the server.
[0067] Among them, the server and the electronic device can establish a connection in a wired or wireless manner. Based on the established connection, the server and the electronic device can be used together. Specifically, the server can receive the resource file of the application icon and send the resource file of the application icon to the electronic device. Correspondingly, the electronic device can receive the resource file of the application icon from the server and update the application icon according to the resource file of the application icon. Among them, the resource file of the application icon may include information for updating the application icon, such as application information, icon information, etc. For the relevant description of the resource file of the application icon, please refer to the following embodiment and will not be repeated here.
[0068] In summary, in the embodiment of the present application, the server can provide the electronic device with the resource file of the application icon, and after the electronic device receives the resource file of the application icon from the server, the application icon is updated. Compared with the technical solution of updating the application icon by downloading and installing the new version of the application package, the solution of the embodiment of the present application can realize that when the application icon needs to be updated, the resource file of the application icon is sent to the electronic device in a timely manner through the server, so that the electronic device can update the application icon in a timely manner, thereby meeting the exposure demand of the key content / information of the application through the application icon, and before the version of the application is updated, it first attracts the user's perception of the key content / information of the application, thereby improving the user's usage experience.
[0069] In a specific implementation, the server may be a cloud server that provides resource files of application icons for electronic devices. For example, the server may be a cloud server of an electronic device manufacturer.
[0070] The electronic device may be a mobile phone, tablet computer, desktop computer, laptop computer, handheld computer, notebook computer, ultra-mobile personal computer (UMPC), netbook, as well as cellular phone, personal digital assistant (PDA), augmented reality (AR) device, virtual reality (VR) device, artificial intelligence (AI) device, wearable device, vehicle-mounted device, smart home device and / or smart city device and other electronic devices. The embodiment of the present application does not specifically limit the form of the electronic device. In the embodiment of the present application, the electronic device is described as a mobile phone.
[0071] Exemplary, reference Figure 2 , is a schematic diagram of the hardware structure of a mobile phone provided in an embodiment of the present application. Figure 2 As shown, the mobile phone 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, 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 positioning module 181, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a user identification card (such as a SIM card) interface 195, etc.
[0072] It should be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the mobile phone 100. In other embodiments, the mobile phone 100 may include more or fewer components than shown, or may combine or separate certain components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0073] The processor 110 may include one or more processing units, for example, the processor 110 may include an AP, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a modem, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.
[0074] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity card (e.g., SIM) interface, and / or a universal serial bus (USB) interface.
[0075] The charging management module 130 is configured to receive charging input from a charger. The charger can be either a wireless charger or a wired charger. The power management module 131 is configured to connect the battery 132, the charging management module 130, and the processor 110. The power management module 131 receives input from the battery 132 and / or the charging management module 130 and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, and the wireless communication module 153.
[0076] The wireless communication function of the mobile phone 100 can be realized through antenna 1, antenna 2, mobile communication module 251, wireless communication module 153, AP and modem, etc. Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals.
[0077] The mobile communication module 151 can provide solutions for cellular communications (such as 2G / 3G / 4G / 5G) and satellite communications used on the mobile phone 100. The mobile communication module 251 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 151 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the baseband processor for demodulation. The mobile communication module 151 can also amplify the signal modulated by the baseband processor and convert it into electromagnetic waves for radiation through the antenna 1.
[0078] The wireless communication module 153 can provide wireless communication solutions applied to the mobile phone 100, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth, global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), etc. The wireless communication module 153 can be one or more devices that integrate at least one communication processing module. The wireless communication module 153 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 153 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0079] The AP may output a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or may display an image or video through the display screen 194 .
[0080] The mobile phone 100 implements display functions through the GPU, the display screen 194 , and the AP, such as displaying application interfaces of various applications such as Bluetooth.
[0081] 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 mobile phone 100 by running the instructions stored in the internal memory 121. The internal memory 121 can include a program storage area and a data storage area.
[0082] The mobile phone 100 can implement audio functions such as music playback and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0083] The SIM card interface 195 is used to connect a SIM card. The SIM card interface 195 can be a SIM card slot. The mobile phone 100 can include 1-N SIM card interfaces 295. A SIM card can be connected to and disconnected from the mobile phone 100 by inserting or removing it from the SIM card interface 195. The mobile phone 100 can support one or more SIM card interfaces. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 simultaneously. The multiple cards can be of the same or different types. The SIM card interface 195 is also compatible with different types of SIM cards. The SIM card interface 195 is also compatible with external memory cards. The mobile phone 100 communicates with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the mobile phone 100 uses an eSIM, or embedded SIM card. The eSIM card can be embedded in the mobile phone 100 and cannot be separated from the mobile phone 100.
[0084] The above embodiments describe the hardware structure of the mobile phone involved in the embodiments of this application. The following describes the software framework of the mobile phone. The software framework of the mobile phone can adopt a layered architecture, an event-driven architecture, a microkernel architecture, or a cloud architecture. This embodiment of the application uses a layered architecture software framework as an example to illustrate the software structure of the mobile phone.
[0085] Figure 3 A software structure diagram of a mobile phone provided in an embodiment of the present application. The layered architecture can divide the software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the software framework layer of the mobile phone includes an application layer, a framework layer, etc., which are not limited. Optionally, the software framework layer of the mobile phone may also include a kernel layer, a hardware abstraction layer, system libraries, or dynamic libraries, shared libraries, etc., which are not limited. Figure 3 Not shown.
[0086] The application layer can include a series of application packages. Figure 3As shown, the application layer can include desktop applications, system applications, and third-party applications. Among them, desktop applications can also be understood as desktop launchers. Desktop launchers are used to provide a user interface on the mobile phone, allowing users to easily access and launch other applications. In the embodiment of the present application, desktop applications can be used to update application icons of other applications.
[0087] System applications may include, for example, settings applications, phone applications, SMS applications, Bluetooth applications, browser applications, etc., without limitation. Third-party applications may include, for example, instant messaging applications, video applications, game applications, etc., without limitation. Figure 3 Not shown.
[0088] The framework layer provides application programming interface (API) and programming framework for the application layer. Figure 3 As shown, the framework layer may include a resource update module (also referred to as a resource update terminal, i.e., a resource update module on the mobile phone side), a basic service module, a resource framework module, a resource directory module, etc., without limitation. Among them, on the one hand, the resource update terminal is used to receive resource files of application icons from the server, and save the resource files of application icons to the resource directory module. On the other hand, the resource update terminal is used to send a notification to the basic service module, notifying the basic service module which applications need to update their application icons. Accordingly, after receiving the notification from the resource update terminal, the basic service module sends a notification to the desktop application, notifying the desktop application which applications need to update their application icons.
[0089] Furthermore, the desktop application sends a request message to the resource framework module to request the resource file for the application icon. After receiving the request message from the desktop application, the resource framework module scans (or loads) the resource directory module, obtains the resource file for the corresponding application icon, and returns it to the desktop application. After receiving the resource file for the application icon from the resource framework module, the desktop application updates the corresponding application icon.
[0090] Optionally, the framework layer may also include a package manager service (PMS), which is responsible for managing the applications installed on the mobile phone, including functions such as application installation, uninstallation, and information query. Figure 3 Not shown.
[0091] The above embodiment introduces the software framework of the mobile phone. Figure 3 Introduce the server's related framework. For example, Figure 3As shown, the server includes a configuration management module, a version release module, and a resource update module (also called a resource update cloud, i.e., the resource update module on the server side). The configuration management module is used to receive resource files for application icons. For example, when an application needs to update its application icon, the resource files for the application icon can be sent to the configuration management module through user configuration or other means. Correspondingly, the configuration management module can receive resource files for application icons.
[0092] After the component configuration management module (CCM) receives the resource file of the application icon, it sends the resource file of the application icon to the version release module (TRC). After the version release module receives the resource file of the application icon, it is used to release the version of the resource file of the application icon. For example, the version release module sends the resource file of the application icon to the resource update cloud to realize the version release of the resource file of the application icon. Correspondingly, after the resource update cloud receives the resource file of the application icon from the version sending module, it sends the resource file of the application icon to the mobile phone side through over-the-air technology (OTA). For example, the resource update cloud sends the resource file of the application icon to the resource update terminal (online update client, OUC) of the mobile phone through OTA technology.
[0093] Based on the above description, in an embodiment of the present application, after receiving the resource file of the application icon of a certain application, the server sends the resource file of the application icon to the mobile phone. After the mobile phone receives the resource file of the application icon, it can update the application icon of the application based on the resource file of the application icon. In this way, when the application icon needs to be updated, the resource file of the application icon can be sent to the mobile phone in a timely manner through the server, so that the mobile phone can update the application icon in a timely manner, thereby meeting the exposure demand of the key content / information of the application through the application icon, and before the application version is updated, it takes the lead in attracting users' perception of the key information / information in the application, thereby improving the user experience.
[0094] For example, Figure 4 As shown in (1), the mobile phone displays interface 101, which can be, for example, the main interface (or desktop) of the mobile phone. Interface 101 displays application icons of shopping applications. Optionally, interface 101 can also display application icons of settings applications, recorders, clocks, calendars, galleries, and other applications. Of course, interface 101 can also display application icons of phone applications, text messaging applications, and other applications. Taking the shopping application as an example, for example, Figure 4The application icon of the shopping application shown in (1) is the default icon. The default icon does not include other content except the icon logo of the shopping application (including text information and / or graphic information). When the shopping application needs to update the application icon, such as when a special date or brand event node is reached, the server receives the resource file of the application icon of the shopping application and sends the resource file of the application icon to the mobile phone. After the mobile phone receives the resource file of the application icon from the server, it updates the application icon of the shopping application. For example, Figure 4 As shown in (2), the mobile phone displays interface 102, and the application icon of the shopping application in interface 102 is the updated application icon. For example, the updated application icon can be called an operation icon. The operation icon refers to a graphical symbol with clear directionality, timeliness and decorativeness, which is usually used to represent operation activities, festival atmosphere, product characteristics, etc. The design of the operation icon is usually closely related to the current activity theme, and conveys specific information or atmosphere through elements such as color, shape, and pattern.
[0095] For example, Figure 4 As shown in (2), in addition to the icon logo of the shopping application (including text information and / or icon information), the operation icon also includes key content / information related to the operation activity, such as "Brand Promotion". In the embodiment of the present application, the key content / information related to the operation activity can also be called "streamers". Through "streamers", content promotion, special date nodes, and brand image building are carried out to attract users to perceive the key content / information of the shopping application, thereby improving the user experience.
[0096] Combine Figure 3 The software framework of the mobile phone shown, as well as the related framework of the server, are used to introduce the technical solution of the embodiment of the present application in detail. Taking the example that the server includes a configuration management module, a version release module, and a resource update cloud; the mobile phone includes a resource update terminal, a basic service module, a desktop application, a resource framework module, and a resource directory module, the interaction process of each module in the solution provided by this application is illustrated. It should be noted that the above-mentioned modules are only examples of the embodiment of the present application and do not constitute a limitation of the embodiment of the present application. Of course, the server and the mobile phone can also include more or fewer modules than the above-mentioned modules, or combinations of modules, etc., without limitation.
[0097] For example, Figure 5 As shown, the method includes the following steps:
[0098] S1. A configuration management module of a server receives a first resource file.
[0099] As an example, the server may receive the first resource file after receiving an operation from an operator, such as an operation from an operator to list / update a resource file for an application icon. For example, the server may receive an operation from an operator to list / update an application icon resource file based on a mobile phone model, thereby enabling the listing / updating of application icons for the same mobile phone model, thereby simplifying the operator's operation.
[0100] The first resource file includes application information of the target application and icon information of the first icon. The application information may include the application package name and application type, where the application type may include a system application or a third-party application. The icon information may include one or more of the following: an icon format, a color mode, and a layered format corresponding to the first icon.
[0101] Exemplarily, the icon format may be an icon (ICO), a bitmap format of a lossless compression algorithm (portable network graphics, PNG), a scalable vector graphics (SVG), an encapsulated PostScript format (EPS), etc., without limitation.
[0102] For example, a color mode refers to the color representation method used in icon design, which determines the display effect of the icon on different media. For example, a color mode may include an RGB mode. The RGB mode is a color representation method based on optical principles, using different mixtures of red, green, and blue primary colors to present the desired color.
[0103] Exemplarily, the layered form refers to dividing an entire icon according to its different parts or features to form multiple independent graphic layers. The layered form may include an overall outline layer, a main graphic layer, and an auxiliary graphic layer. Among them, the overall outline layer mainly defines the overall shape and outline of the icon, such as a circle, square, triangle, etc., which belongs to the basic framework of the icon and determines the basic form of the icon. The main graphic layer contains the main graphic elements of the icon, which are usually the core part of the icon and are used to convey the main information or function of the icon. The auxiliary graphic layer contains some auxiliary graphic elements, such as lines, arrows, symbols, etc., which are used to enhance the readability and recognition of the icon, or provide additional information.
[0104] Optionally, the icon information further includes an icon size corresponding to the first icon. The icon size may include, for example, 12×12px, 16×16px, 48×48px, etc., without limitation.
[0105] It should be noted that the target application can indicate one application or multiple applications. In the case where the target application indicates one application, the first resource file includes application information of the application and icon information of the first icon. In the case where the target application indicates multiple applications, the first resource file includes application information of each application in the multiple applications and icon information of the first icon. Exemplarily, the application information of each application in the multiple applications and the icon information of the first icon can be located in the first resource file in the form of a list.
[0106] S2. The configuration management module of the server sends the first resource file to the version publishing module. Correspondingly, the version publishing module of the server receives the first resource file from the configuration management module.
[0107] S3. The version publishing module of the server sends the first resource file to the resource update cloud. Correspondingly, the resource update cloud of the server receives the first resource file from the version publishing module.
[0108] S4. The resource update cloud of the server sends the first resource file to the resource update terminal of the mobile phone.
[0109] Exemplarily, the resource update cloud of the server may send the first resource file to the resource update terminal of the mobile phone via OTA download.
[0110] Exemplarily, after receiving the first resource file, the resource update terminal of the mobile phone is configured to send the first resource file to the resource directory module. Furthermore, the resource update terminal of the mobile phone is configured to manage the first resource file. For example, the resource update terminal of the mobile phone decompresses the first resource file, obtains and sends the application package name of the target application and the icon version of the first icon to the mobile phone desktop application, and deletes the application package name and icon version obtained by the previous parsing.
[0111] S5. The resource update terminal of the mobile phone sends the first resource file to the resource directory module. Correspondingly, the resource directory module of the mobile phone receives the first resource file from the resource update terminal.
[0112] Exemplarily, after the resource directory module of the mobile phone receives the first resource file from the resource update end, the resource directory module of the mobile phone saves the first resource file. Exemplarily, the resource directory module of the mobile phone is divided into a first partition (such as the / data partition), and the second partition is used for storage. For example, the target partition includes system and third-party directories, and the resource directory of the mobile phone can determine the directory corresponding to the first resource file based on the application type in the first resource file. For example, when the target application is a system application, the resource directory module of the mobile phone stores the first resource file in the system directory; when the target application is a third-party application, the resource directory module of the mobile phone stores the first resource file in the third-party directory.
[0113] Exemplarily, the name of the preset directory may be expressed as: iconManifest.json.
[0114]
[0115] It should be noted that in the embodiment of the present application, the mobile phone is provided with permission management for the resource directory module, and the permission management is used to manage read and write permissions. The permission management set by the mobile phone for the resource directory module allows the resource update terminal to write files to the resource directory module and allows the resource framework module to read from the resource directory module.
[0116] S6. The resource update terminal of the mobile phone sends a notification message to the basic service module.
[0117] The notification message is used to notify the basic service module that the application icon needs to be updated. The notification message carries the application package name of the target application and the icon version of the first icon. In the case where the target application indicates multiple applications, the notification message can carry the application package name of the target application and the icon version of the first icon in the form of a list. In other words, the notification message carries the application package name of the target application and a list of icon versions of the first icon.
[0118] In some embodiments, the basic service module of the mobile phone is encapsulated with a software development kit (SDK) and a development kit (kit), wherein the SDK is used to forward notification messages, and the kit is used to verify the icon version carried in the notification message.
[0119] Exemplarily, the basic service module of the mobile phone calls the kit to verify whether the icon version of the first icon is the latest version. If the basic service module of the mobile phone determines that the icon version of the first icon is not the latest version, the mobile phone stops subsequent operations, that is, stops executing the operation of updating the application icon of the target application. If the basic service module of the mobile phone determines that the icon version of the first icon is the latest version, the mobile phone continues to execute the operation of updating the application icon of the target application, for example, the basic service module of the mobile phone continues to execute the following steps, such as continuing to execute S7.
[0120] In this embodiment, the mobile phone verifies whether the icon version of the first icon is the latest version through the basic service module, which can effectively ensure the reliability of icon updates and reduce power consumption.
[0121] S7. The basic service module of the mobile phone sends a notification message to the desktop application.
[0122] Exemplarily, the basic service module of the mobile phone broadcasts a notification message to the desktop application in a targeted manner. Targeted broadcasting is a special broadcasting method, and only designated recipients can receive the message. Exemplarily, the process of implementing targeted broadcasting between the basic service module of the mobile phone and the desktop application includes the steps of creating a broadcast receiver, registering a broadcast receiver, and sending a targeted broadcast. Optionally, the mobile phone can implement the steps of creating a broadcast receiver and registering a broadcast receiver between the basic service module and the desktop application when the phone is turned on (including the first time or each time it is turned on).
[0123] Exemplarily, after the basic service module of the mobile phone broadcasts a notification message to the desktop application, the desktop application of the mobile phone will also reply with a broadcast response to the basic service module. The broadcast response is used to indicate that the desktop application has received the notification message. Optionally, if the desktop application of the mobile phone does not reply with a broadcast response to the basic service module, it means that the desktop application of the mobile phone has not received the notification message, that is, the basic service module of the mobile phone has failed in the targeted broadcast to the desktop application. On this basis, the basic service module of the mobile phone can repeatedly broadcast notification messages to the desktop application. For example, the basic service module of the mobile phone can broadcast notification messages to the desktop application at predetermined intervals. The predetermined time can be set according to specific needs and is not limited. For example, the predetermined time can be 1 minute.
[0124] Optionally, if the mobile phone's basic service module repeatedly broadcasts notification messages to the desktop application a preset number of times, the mobile phone's basic service module stops broadcasting notification messages to the desktop application. Alternatively, if the mobile phone's basic service module repeatedly broadcasts notification messages to the desktop application for a preset duration, the mobile phone's basic service module stops broadcasting notification messages to the desktop application. The preset number of times and the preset duration are not limited and are subject to actual settings. For example, the preset number of times may be, for example, 5 times, and the preset duration may be, for example, 5 minutes or 10 minutes, etc., and are not limited.
[0125] In this embodiment, since the mobile phone may not currently be running a desktop application, including running a desktop application in the foreground and running a desktop application in the background, the basic service module of the mobile phone broadcasts a notification message to the desktop application in a targeted manner, which can ensure that the desktop application receives the notification message, thereby ensuring the reliability of the icon update.
[0126] In addition, if the basic service module of the mobile phone fails to broadcast the notification message to the desktop application, the basic service module of the mobile phone can also repeatedly broadcast the notification message to the desktop application to further ensure that the desktop application receives the notification message, thereby ensuring the reliability of the icon update.
[0127] In some embodiments, after the mobile phone desktop application receives a notification message from the basic service module, the mobile phone desktop application stores the target application's application package name and the icon version of the first icon carried in the notification message. For example, the mobile phone desktop application stores the target application's application package name and the icon version of the first icon in a desktop application database. This facilitates subsequent mobile phone desktop applications to obtain the target application's application icon resource file based on the stored target application's application package name and the icon version of the first icon.
[0128] For example, Figure 5 As shown, the method further includes the following steps:
[0129] S8. The mobile phone's desktop application sends a notification message to the resource framework module. Correspondingly, the mobile phone's resource framework module receives the notification message from the desktop application.
[0130] It is understandable that the notification message carries the application package name of the target application and the icon version of the first icon. Therefore, the resource framework module of the mobile phone can receive the application package name of the target application and the icon version of the first icon from the desktop application.
[0131] In addition, in the case that the target application includes multiple applications, the resource framework module of the mobile phone receives a list of application package names and icon versions from the desktop application.
[0132] S9. The resource framework module of the mobile phone downloads the first resource file from the resource directory module.
[0133] Exemplarily, after the mobile phone's resource framework module receives a notification message from the desktop application, the mobile phone's resource framework module downloads the first resource file from the resource directory module according to the application package name of the target application and the icon version of the first icon carried in the notification message.
[0134] Exemplarily, if the target application is a system application, the resource framework module of the mobile phone downloads the first resource file from the system directory of the resource directory module. If the target application is a third-party application, the resource framework module of the mobile phone downloads the first resource file from the third-party directory of the resource directory.
[0135] S10: The resource framework module of the mobile phone returns the first resource file to the desktop application. Accordingly, the desktop application of the mobile phone receives the first resource file.
[0136] For example, after receiving the first resource file, the mobile phone desktop application updates the application icon of the target application according to the first resource file. For example, the mobile phone desktop application generates a first icon according to the first resource file and replaces the target icon with the first icon, thereby updating the application icon of the target application.
[0137] In summary, compared with the technical solution of updating application icons by downloading and installing a new version of the application package, the solution of the embodiment of the present application can send the resource file of the application icon to the mobile phone through the server in a timely manner when the application icon needs to be updated, so that the mobile phone can update the application icon in a timely manner, thereby satisfying the exposure demand of the key content / information of the application through the application icon, and before the version of the target application is updated, it can first attract users to perceive the key content / information of the application, thereby improving the user experience.
[0138] To improve user experience, increase the accuracy of app icon updates, and reduce power consumption, in some embodiments, after the mobile phone's resource framework module receives a notification message from a desktop application, the mobile phone's resource framework module determines whether the target application supports fabricated runtime resource overlays (FRRO). FRRO refers to an application allowing the mobile phone's operating system to update the application icon to an operational icon to provide additional information or status display.
[0139] Exemplarily, the resource framework module of the mobile phone queries the settings or configuration options of the target application through the PMS. If the resource framework module of the mobile phone queries that the target application has settings or configuration options related to allowing updates of operation icons, it means that the target application supports the FRRO function.
[0140] For example, if the mobile phone's resource framework module determines that the target application supports the FRRO function, the mobile phone uses method 1 to update the application icon to an operational icon. If the mobile phone's resource framework module determines that the target application does not support the FRRO function, that is, the target application does not support updating the application icon to an operational icon, the mobile phone uses method 2 to update the application icon. Method 1 refers to the method in which the mobile phone's resource framework module and desktop application implement updating the application icon of the target application to an operational icon, and method 2 refers to the mobile phone's desktop application updating the theme of the application icon according to the priority of the theme icon.
[0141] That is to say, if the target application does not support updating the application icon to the operation icon, then after the resource framework module of the mobile phone receives the notification message, it can determine whether the target application needs to change the icon theme, and thus can use method 2 to update the application icon theme.
[0142] For example, Figure 6 As shown, the mobile phone adopts method 1 to update the application icon of the target application to the operation icon (i.e., steps S8-S10), which may specifically include the following steps:
[0143] S11. The mobile phone's desktop application sends a notification message to the resource framework module. Correspondingly, the mobile phone's resource framework module receives the notification message from the desktop application.
[0144] Exemplarily, the desktop application of the mobile phone can call the FRRO registration and enabling interface to send a notification message to the resource framework module. It is understandable that the notification message carries the application package name of the target application and the icon version of the first icon.
[0145] S12. The resource framework module of the mobile phone generates a resource mapping file.
[0146] The resource mapping file stores a mapping relationship between an index of a first resource file corresponding to a target application and a first icon.
[0147] It should be noted that in S12, the reason why the resource framework module of the mobile phone generates a resource mapping file is that the resource mapping file stores the mapping relationship between the index of the first resource file and the first icon, so that the resource framework module can locate and load the required resource file more quickly. This mapping relationship simplifies the resource management and access process, and improves the operating efficiency and maintainability of the resource framework module.
[0148] S13. The resource framework module of the mobile phone sends a notification to the desktop application. Accordingly, the desktop application of the mobile phone receives the notification from the resource framework module. The notification is used to notify the desktop application that a mapping relationship between the index of the first resource file and the first icon has been generated.
[0149] Exemplarily, the resource framework module of the mobile phone calls a first interface (such as a configchange interface) to send a notification to the desktop application.
[0150] S14: The mobile phone's desktop application sends a first request to the resource framework module. Correspondingly, the mobile phone's resource framework receives the first request from the desktop application.
[0151] The first request is used to request the resource file of the application icon of the target application. For example, the mobile phone desktop application can call the second interface (such as the loaddrawable interface) to send the first request to the resource framework module. The first request carries the application package name of the target application and the icon version of the first icon.
[0152] It is understood that in the above S7, after receiving the notification message from the basic service module, the mobile phone desktop application stores the application package name of the target application and the icon version of the first icon carried in the notification message in the desktop application database. Based on this, in S13, after receiving the notification from the resource framework module, the mobile phone desktop application can refresh the desktop application database, obtain the application package name of the target application and the icon version of the first icon from the desktop application database, and then send a first request to the resource framework module.
[0153] S15. The resource framework module of the mobile phone downloads the first resource file from the resource directory module.
[0154] Exemplarily, the resource framework module of the mobile phone may call a third interface (such as an idmap interface) to download the first resource file from the resource directory module.
[0155] S16: The resource framework module of the mobile phone returns the first resource file to the desktop application. Accordingly, the desktop application of the mobile phone receives the first resource file from the resource framework module.
[0156] Illustratively, after the mobile phone desktop application receives the first resource file, the mobile phone desktop application generates a first icon using the first resource file and replaces the target icon with the first icon, thereby updating the application icon of the target application.
[0157] It should be noted that, under normal circumstances, the FRRO function allows the mobile phone's operating system to dynamically modify the application theme and style. However, by adopting the solution of the embodiment of the present application, through the interactive design of each module in the framework layer of the mobile phone, the above-mentioned method 1 can be used to update the application icon to the operation icon, simplifying the update process of the operation icon and improving the user experience. In addition, in the embodiment of the present application, the mobile phone is provided with permission management for the desktop application, which is used to indicate that the desktop application of the mobile phone has the permission to update the application icon to the operation icon.
[0158] In some embodiments of the present application, the target application includes a primary application and a clone application, meaning the mobile phone is in the application clone scenario described in the above embodiments. In this scenario, after receiving the first resource file from the server, the mobile phone updates the application icons of the primary application and the clone application to the first icon. In other words, in embodiments of the present application, the mobile phone can simultaneously update the application icons of the primary application and the clone application to ensure uniform display of the operational icons.
[0159] In conjunction with S12 above, for example, when the target application includes a main application and a clone application, the resource mapping file generated by the mobile phone's resource framework module stores the mapping relationship between the index of the first resource file and the first icon corresponding to the main application and the clone application. Based on this, the specific implementation method of the mobile phone updating the application icons of the main application and the clone application can be referred to the relevant description of S13-S16 and will not be repeated here.
[0160] In other embodiments of the present application, the target application includes a main application and a parallel application, that is, the mobile phone is in the parallel space scenario shown in the above embodiments. In this scenario, after the mobile phone receives the first resource file from the server, it updates the application icons of the main application and the parallel application to the first icon. In other words, in embodiments of the present application, the mobile phone can simultaneously update the application icons of the main application and the parallel application to ensure the uniformity of the operation icon display.
[0161] In conjunction with the above S12, for example, when the target application includes a main application and a parallel application, the resource mapping file generated by the resource framework module of the mobile phone stores the mapping relationship between the index of the first resource file corresponding to the main application and the parallel application and the first icon. Based on this, the specific implementation method of the mobile phone updating the application icons of the main application and the parallel application can be referred to the relevant description of S13-S16, which will not be repeated here.
[0162] The following describes how to update the icon theme using method 2 on a mobile phone.
[0163] First, it should be noted that icon themes can include a target theme icon, a default icon, and other theme icons. The target theme icon has a higher priority than the default icon, which in turn has a higher priority than other theme icons. The target theme icon can be a theme icon customized by the phone manufacturer for the user. There is no limit to the name of the target theme icon; it is subject to the actual setting. Other theme icons can be understood as all theme icons supported by the phone, excluding the target theme icon.
[0164] In addition, in combination with the above embodiment, after the mobile phone desktop application sends a notification message to the resource framework module, if the mobile phone resource framework module determines that the target application does not support the FRRO function, it means that this icon update is not an instruction to update the application icon of the target application to an operation icon, but may be used to indicate that the application icon of the target application is updated to a theme icon. Therefore, the mobile phone resource framework module can update the target application icon to the theme icon through Figure 7 The method shown obtains resource files of theme icons from different directories to implement the update of theme icons.
[0165] For example, Figure 7As shown, the mobile phone may use method 2 to update the theme icon of the target application, which may specifically include the following steps.
[0166] S21. The resource framework module of the mobile phone determines whether to obtain the application icon of the target application.
[0167] For example, if the mobile phone's resource framework module determines that the desktop application is not the application icon for obtaining the target application, the mobile phone's resource framework module returns a normal image to the desktop application. If the mobile phone's resource framework module determines that the desktop application is the application icon for obtaining the target application, the mobile phone's resource framework module continues to perform the following steps, such as continuing to perform S23.
[0168] It should be noted that ordinary pictures are also icons, but ordinary pictures refer to icons obtained by the resource framework module without decompressing the APK resources of the application; in other words, ordinary pictures are non-icon icons.
[0169] S22. The resource framework module of the mobile phone determines whether the target application supports the target theme icon.
[0170] For example, if the resource framework module of the mobile phone determines that the target application supports the target theme icon, the resource framework module of the mobile phone returns the resource file corresponding to the target theme icon to the desktop application. Figure 3 As shown, the mobile phone's resource directory module also includes a second partition (such as / data / themes / ()), which is used to store resource files for theme icons. In this way, when the mobile phone's resource framework module determines that the target application supports the target theme icon, the mobile phone's resource framework module downloads the resource file corresponding to the target theme icon from the second partition of the resource directory module and returns it to the desktop application.
[0171] Exemplarily, if the resource framework module of the mobile phone determines that the target application does not support the target theme icon, the resource framework module of the mobile phone continues to execute the following steps, such as continuing to execute S24.
[0172] S23. The resource framework module of the mobile phone determines whether the target application supports the default theme icon.
[0173] For example, if the mobile phone's resource framework module determines that the target application supports the default theme icon, the mobile phone's resource framework module returns the resource file corresponding to the default theme icon to the desktop application. For example, the mobile phone's resource framework module can download the resource file corresponding to the default theme from the PMS and return it to the desktop application.
[0174] For example, if the resource framework of the mobile phone determines that the target application does not support the default theme icon, the resource framework of the mobile phone continues to perform the following steps, such as continuing to perform S25.
[0175] S24. The resource framework module of the mobile phone obtains other theme icons supported by the target application.
[0176] Exemplarily, the resource framework module of the mobile phone obtains other theme icons supported by the target application from the second partition of the resource directory module.
[0177] S25. The resource framework module of the mobile phone determines whether other theme icons are obtained.
[0178] For example, if the resource framework module of the mobile phone does not obtain other theme icons, the resource framework module of the mobile phone returns an invalid value to the desktop application. For example, the resource framework module of the mobile phone returns null (ie, returnnull) to the desktop application.
[0179] Exemplarily, if the resource framework module of the mobile phone obtains other theme icons, the resource framework module of the mobile phone continues to execute the following steps, such as continuing to execute S27.
[0180] S26. The resource framework module of the mobile phone rounds the corners of other theme icons.
[0181] Among them, rounded corner processing refers to making the corners of other theme icons rounded, making the icons look softer, friendlier, and in line with the aesthetic trend of modern design, which is conducive to improving the user's visual effect.
[0182] Exemplarily, after the mobile phone's resource framework module rounds off the other theme icons, the mobile phone's resource framework module returns the processed resource files corresponding to the other theme icons to the desktop application, so that the mobile phone's desktop application updates the theme icons.
[0183] In summary, in the embodiment of the present application, if the target application supports the FRRO function, the mobile phone can update the application icon of the target application to an operational icon, satisfying the exposure demand of the key content / information of the target application and attracting users to click to enter the target application. If the target application does not support the FRRO function, the theme icon of the target application can be updated according to the priority of the theme icon to improve the user experience.
[0184] In some embodiments of the present application, the first resource file further includes expiration information, which is used to indicate the validity period of the first resource file. Exemplarily, the expiration information may include the validity start time, validity end time, and validity period of the first resource file, without limitation.
[0185] Exemplarily, the method further includes: in response to the timeliness information, the server sending a second resource file to the mobile phone. The second resource file includes application information of the target application and icon information of the second icon, wherein the icon information includes one or more of an icon version, an icon format, a color mode, and a layering structure corresponding to the second icon. Furthermore, after receiving the second resource file from the server, the mobile phone updates the application icon of the target application to the second icon.
[0186] It should be noted that, for the application information of the target application and the example of the icon information of the second icon, please refer to the relevant description of the above embodiment, which will not be repeated here. In addition, for the specific implementation process of the mobile phone receiving the second resource file and updating the application icon of the target application to the second icon, please refer to the above embodiment. Figure 5-Figure 7 The relevant description in will not be repeated here.
[0187] In this embodiment, since the first resource file also includes timeliness information, when the timeliness information arrives, the server can actively send the second resource file to the mobile phone so that the mobile phone can update the application icon in time, simplifying the complexity of icon updating and reducing device power consumption.
[0188] It should be noted that the contents recorded in each embodiment of the present application can explain the technical solutions in other embodiments of the present application, and the technical features recorded in each embodiment can also be applied in other embodiments and combined with the technical features in other embodiments to form a new solution. This application only lists several embodiments for illustration, and does not mean that this application is limited to this.
[0189] The embodiment of the present application provides an electronic device, which may include: a memory and one or more processors; the memory stores computer program code, which includes computer instructions. When the computer instructions are executed by the processor, the electronic device performs the functions or steps performed by the mobile phone. The structure of the electronic device can refer to the above. Figure 2 The structure of the mobile phone 100 is shown.
[0190] An embodiment of the present application provides a server, which may include: a memory and one or more processors; the memory stores computer program code, and the computer program code includes computer instructions. When the computer instructions are executed by the processor, the server performs the various functions or steps performed by the above-mentioned server.
[0191] The embodiment of the present application provides an icon update system, including an electronic device and a server, wherein the electronic device can be used to execute the various functions or steps executed by the mobile phone, and the server can be used to execute the various functions or steps executed by the server. The structure of the electronic device can refer to the above Figure 2 The structure of the mobile phone 100 is shown.
[0192] The present application also provides a chip system. Figure 8 As shown, the chip system 1800 includes at least one processor 1801 and at least one interface circuit 1802. The processor 1801 and the interface circuit 1802 can be interconnected via lines. For example, the interface circuit 1802 can be used to receive signals from other devices (such as the memory of an electronic device). For another example, the interface circuit 1802 can be used to send signals to other devices (such as the processor 1801). Exemplarily, the interface circuit 1802 can read the instructions stored in the memory and send the instructions to the processor 1801. When the instructions are executed by the processor 1701, the electronic device can perform the various steps in the above embodiments. Of course, the chip system can also include other discrete devices, which is not specifically limited in the embodiments of the present application.
[0193] An embodiment of the present application further provides a computer storage medium, in which computer instructions are stored. When the computer instructions are executed on an electronic device, the electronic device executes each function or step in the above method embodiment.
[0194] The embodiment of the present application further provides a computer program product, which, when executed on a computer, enables the computer to execute the various functions or steps in the above method embodiment.
[0195] In addition, an embodiment of the present application also provides a device, which can specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer-executable instructions, and when the device is running, the processor can execute the computer-executable instructions stored in the memory to enable the chip to perform the various functions or steps in the above-mentioned method embodiments.
[0196] Among them, the chip system, computer-readable storage medium, computer program product or device provided in this embodiment are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.
[0197] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0198] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0199] The units described as separate components may or may not be physically separate, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0200] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0201] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0202] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application and are not intended to limit the present application. Although the present application has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present application may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present application.
Claims
1. A method for updating an application icon, characterized in that: Applicable to an icon updating system including a server and an electronic device; the method includes: The server receives a first resource file; wherein the first resource file includes application information of a target application and icon information of a first icon; the application information includes an application package name and an application type of the target application; and the icon information includes one or more of an icon version, an icon format, a color mode, and a layered form corresponding to the first icon; The server sends the first resource file to the electronic device; The electronic device receives the first resource file from the server and updates the application icon of the target application to the first icon.
2. The method according to claim 1, characterized in that The first resource file further includes timeliness information, where the timeliness information is used to indicate the validity period of the first resource file; and the method further includes: In response to the timeliness information, the server sends a second resource file to the electronic device; wherein the second resource file includes application information of the target application and icon information of the second icon; the icon information includes one or more of an icon version, an icon format, a color mode, and a layered form corresponding to the second icon; The electronic device receives the second resource file from the server and updates the application icon of the target application to a second icon.
3. The method according to claim 1 or 2, characterized in that The target application includes a main application and a clone application; the main application and the clone application log in to different application accounts; The electronic device receiving the first resource file from the server and updating the application icon of the target application to the first icon includes: The electronic device receives the first resource file from the server and updates the application icons of the main application and the clone application to the first icons.
4. The method according to claim 1 or 2, characterized in that The target application includes a main application and a parallel application; the main application and the parallel application log in to different application accounts, and the main application and the parallel application run simultaneously; The electronic device receiving the first resource file from the server and updating the application icon of the target application to the first icon includes: The electronic device receives the first resource file from the server, and updates the application icons of the main application and the parallel application to the first icons.
5. The method according to any one of claims 1 to 4, characterized in that The electronic device includes a resource update terminal, a resource directory module, a desktop application and a resource framework module; The electronic device receiving the first resource file from the server and updating the application icon of the target application to the first icon includes: The resource update terminal receives the first resource file from the server and saves the first resource file to the resource directory module; The resource update end parses the first resource file, obtains and sends the application package name of the target application and the icon version of the first icon to the desktop application; The desktop application sends the application package name of the target application and the icon version of the first icon to the resource framework module; The resource framework module downloads the first resource file from the resource update directory according to the application package name of the target application and the icon version of the first icon; The resource framework module sends the first resource file to the desktop application, so that the desktop application updates the application icon of the target application to the first icon.
6. The method according to claim 5, characterized in that The first icon is an operation icon; After the desktop application sends the application package name of the target application and the icon version of the first icon to the resource framework module, the method further includes: The resource framework module determines whether the target application supports the FRRO function; the FRRO function is used to instruct the target application to allow the application icon to be updated to the operation icon; The resource framework module sends the first resource file to the desktop application so that the desktop application updates the application icon of the target application to the first icon, including: In a case where the target application supports the FRRO function, the resource framework module sends the first resource file to the desktop application, so that the desktop application updates the application icon of the target application to the first icon.
7. The method according to claim 6, characterized in that After the resource framework module receives the application package name of the target application and the icon version of the first icon, the method further includes: The resource framework module generates a resource mapping file; the resource mapping file stores a mapping relationship between an index of the first resource file corresponding to the target application and the first icon; The resource framework module sends a notification to the desktop application, where the notification is used to indicate that a mapping relationship between the index of the first resource file corresponding to the target application and the first icon has been generated; The resource framework module sends the first resource file to the desktop application so that the desktop application updates the application icon of the target application to the first icon, including: The desktop application sends a first request to the resource framework module; the first request is used to request to obtain the first resource file; The resource framework module sends the first resource file to the desktop application, so that the desktop application updates the application icon of the target application to the first icon.
8. The method according to claim 6 or 7, characterized in that In the case that the target application does not support the FRRO function, the method further includes: The resource framework module returns the resource file corresponding to the theme icon to the desktop application according to the priority of the theme icon supported by the target application; The desktop application updates the application icon of the target application according to the resource file corresponding to the theme icon; The theme icon includes a target theme icon, a default theme icon or other theme icons; wherein the priority of the target theme icon is higher than that of the default theme icon, and the priority of the default theme icon is higher than that of the other theme icons.
9. An electronic device, characterized in that: include: memory and one or more processors; The memory stores computer program code, which includes computer instructions. When the computer instructions are executed by the processor, the electronic device executes the method according to any one of claims 1 to 8.
10. A server, characterized in that: include: memory and one or more processors; The memory stores computer program code, which includes computer instructions. When the computer instructions are executed by the processor, the processor is enabled to perform the method according to any one of claims 1 to 8.
11. An icon updating system, characterized in that: include: An electronic device and a server for executing the method according to any one of claims 1 to 8.
12. A chip system, characterized in that: Applied to servers and electronic devices, the chip system includes: at least one processor and an interface; The interface is used to receive instructions and transmit them to the at least one processor; the at least one processor executes the instructions so that the server and the electronic device execute the method according to any one of claims 1 to 8.
13. A computer-readable storage medium, characterized in that The method comprises computer instructions, which, when executed on an electronic device and a server, enable the electronic device and the server to execute the method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Application icon updating method and device
CN108021377A
Desktop icon dynamic replacement method and device and computer readable storage medium
CN110399195A
Theme application method and device, electronic equipment and readable storage medium
CN116627566A
Resource switching method and display equipment
CN118426798A
Icon updating method and device, electronic equipment and storage medium
CN118626113A