Method for restoring application program, and related apparatus
By displaying recovery controls on the service card of the terminal device, users can directly restore uninstalled applications, solving the cumbersome problems of the recovery process in the existing technology, and achieving a fast recovery and convenient experience.
Patent Information
- Application Number
- PCT/CN2024/101102
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-07-26
- Filing Date
- 2024-06-24
- Publication Date
- 2025-01-02
AI Technical Summary
The recovery process of uninstalled applications in the terminal device is cumbersome, and users need to look for the recovery functions provided by the system, which leads to slow and inconvenient recovery speed.
By displaying recovery controls on the service card of the terminal device, users can directly click on the service card and icon. The terminal device displays controls to guide users to restore applications on the landing page of the service card, realizing rapid recovery of applications without passing Recovery function provided by the system.
It enables users to quickly recover uninstalled applications without looking for system recovery function, improving user experience and recovery speed.
Smart Images

Figure CN2024101102_02012025_PF_FP_ABST
Abstract
Description
Method and related device for restoring application program
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on June 30, 2023, with application number 202310802072.7 and application name “Card Recall Method and Electronic Device”, and claims priority to the Chinese patent application filed with the China Patent Office on July 26, 2023, with application number 202310928660.5 and application name “Method and Related Device for Restoring Application Programs”, all contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of terminal devices, and in particular to a method and related apparatus for restoring an application program. Background Art
[0003] Terminal devices often have applications (APPs) installed in them, and when using the terminal devices, users may need to uninstall and then restore the applications.
[0004] Therefore, how to restore uninstalled applications in terminal devices has become a technical problem that needs to be solved urgently.
[0005] Summary of the Invention
[0006] The present application provides a method and related apparatus for restoring an application program, so as to quickly restore an application program that has been uninstalled by a user, thereby improving the user experience.
[0007] In the first aspect, the present application provides a method for restoring an application, which is applied to a terminal device, including: displaying a first icon and a second icon on the desktop of the terminal device, the first icon being an icon of a first application, and the second icon being an icon of a first service card; uninstalling the first application in response to a user input of an operation instruction to uninstall the first application; displaying a landing page of the first service card and displaying a first control in response to a user input of a first operation of clicking the second icon; and installing the first application in response to the user clicking the first control.
[0008] Specifically, the first service card can be considered as a service card that can provide some functions of the first application, and is also called a service card of the first application.
[0009] The first service card may be pre-installed, i.e. displayed on the desktop when the terminal device is initially powered on. Alternatively, the first service card is not pre-installed, but is added to the desktop of the terminal device by the user.
[0010] In this application, after the user uninstalls the first application in the terminal device, if the user clicks on the icon of the first service card, the terminal device will display the first control when displaying the landing page of the first service card, and then in response to the user clicking on the first control, the terminal device will restore the first application.
[0011] Specifically, in the method for restoring an application provided herein, after a user uninstalls a first application, the terminal device guides the user to restore the first application by displaying a first control on the landing page of a first service card for guiding the user to restore the first application. It should be understood that under this solution, the user can restore the first application without having to search for the restore function provided by the terminal device, thereby enabling rapid restoration of the uninstalled first application.
[0012] In one implementation, in addition to displaying the landing page of the first service card and the first control, the terminal device also displays the icon of the first application and a second control for determining not to restore the first application.
[0013] In one implementation, the terminal device may pop up a pop-up window on the landing page, also called a recovery pop-up window, and display the icons of the first control, the second control, and the first application in the recovery pop-up window.
[0014] In combination with the first aspect, in one implementation, the first service card includes first information, and the first information indicates that the application associated with the first service card is the first application; the method further includes: determining that the application to be installed is the first application.
[0015] It should be understood that in existing terminal devices, the first application and the service card of the first application are independent of each other and do not affect each other. In the present application, in order to ensure that the terminal device knows that it is the first application that needs to be restored after the user clicks the icon of the first service card, first information is added to the first service card. This first information indicates that the application associated with the first service card is the first application. In this way, when the user uninstalls the first application and clicks the icon of the first service card, the terminal device can determine that it is the first application that needs to be restored, rather than other applications, based on the first information.
[0016] In other words, in this implementation, by improving the first service card, the first service card is associated with the first application, so that after the user clicks the first service card, the terminal device can find the associated first application that needs to be restored based on the first information.
[0017] In an example, the first information may be configured in a profile file included in the first service card.
[0018] In one example, the first information includes an application package name of the first application.
[0019] In combination with the first aspect, in a possible implementation, the first application is a preinstalled application; installing the first application includes: installing the first application based on an installation package of the first application stored in a read-only memory (ROM) partition of the terminal device.
[0020] In combination with the first aspect, in a possible implementation, the terminal device includes a first configuration file, the first configuration file indicates at least one service card, and the application associated with each service card in the at least one service card is a pre-installed application; wherein, installing the first application includes: when the first service card is included in at least one service card, installing the first application.
[0021] Since some installation packages of pre-installed applications are stored in the ROM partition of the terminal device (these installation packages are present regardless of whether the pre-installed applications are uninstalled or not), and for non-pre-installed applications uninstalled by the user, the terminal device does not retain the installation packages of non-pre-installed applications. Therefore, in this embodiment, if you only want to restore the pre-installed APP, and do not consider the way in which the terminal device obtains the installation package through the server for installation, then in order to avoid the terminal device from invalidly triggering the display of the first control (or the restoration pop-up window), the first configuration file is also stored in the ROM partition of the terminal device. The first configuration file indicates at least one service card, and the application associated with each service card in the at least one service card is a pre-installed application. Accordingly, when the user clicks on the icon of the first service card, the terminal device first determines whether the first service card is included in the first configuration file. If it is included, the terminal device determines that the application associated with the first service card is a pre-installed application, that is, it can be restored. Otherwise, the first control is not displayed on the landing page.
[0022] As an example, the first configuration file is stored in a ROM partition of the terminal device.
[0023] In combination with the first aspect, in a possible implementation, the first information also indicates the signature certificate of an application associated with the first service card; wherein, displaying the first control includes: obtaining the signature certificate of the first application from the ROM partition of the terminal device; and displaying the first control when the signature certificate indicated by the first information is successfully verified based on the signature certificate in the ROM partition.
[0024] In this implementation, the terminal device determines whether the restored first application is legal by judging whether the signature certificate of the application associated with the first service card is the same as the signature certificate of the first application stored in the ROM partition. If it is legal, the first control for guiding the user to restore the first application is displayed.
[0025] In combination with the first aspect, in a possible implementation, displaying the landing page of the first service card and displaying the first control includes: displaying the first control after the landing page is completely displayed.
[0026] In combination with the first aspect, in a possible implementation, displaying the first control includes: if the duration between the first operation and the second operation of the last user input clicking the second icon is greater than or equal to a preset duration threshold, displaying the first control.
[0027] In this implementation, excessive interference to users can be reduced and user experience can be improved.
[0028] In combination with the first aspect, in one possible implementation, a recovery pop-up window is displayed on the landing page, and the recovery pop-up window includes a first control and any one of the following items: a second control, the application name of the first application, the icon of the first application, and a description prompting the user whether to restore the first reference program. The second control is used to instruct the terminal device not to restore the first application.
[0029] In combination with the first aspect, in a possible implementation manner, the method further includes: acquiring an application name of the first application and an icon of the first application from a ROM partition of the terminal device.
[0030] In a second aspect, the present application provides a device for restoring an application. The device may include various functional modules for implementing the method of the first aspect. For example, the device may include a display module, an uninstall module, and an installation module. Optionally, the device may also include an acquisition module and a verification module.
[0031] In some implementations, these modules may be implemented in software and / or hardware. In this implementation, the device may include a processor and a transceiver. For example, the display module, uninstallation module, installation module, and verification module may be implemented by the processor executing program code stored in a memory, while the acquisition module may be implemented by a transceiver. Optionally, the device may also include a memory.
[0032] In a third aspect, the present application provides a terminal device, which may include various functional modules for implementing the method in the first aspect. In some implementations, these modules may be implemented in software and / or hardware.
[0033] In a fourth aspect, the present application provides a computer-readable storage medium storing a program code for execution by a communication device, wherein the program code includes instructions for implementing the method in the first aspect.
[0034] In a fifth aspect, the present application provides a computer program product comprising instructions, which, when executed on a communication device, enables the communication device to implement the method in the first aspect.
[0035] It can be understood that the effects that can be obtained in the second, third, fourth and fifth aspects can be referred to the description in the first aspect and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] FIG1 is a schematic structural diagram of a terminal device provided in an embodiment of the present application;
[0037] FIG2 is a schematic diagram of a desktop of a terminal device provided by one embodiment of the present application;
[0038] FIG3 is a schematic diagram of an existing recovery application provided by the present application;
[0039] FIG4 is a schematic diagram of another existing recovery application provided by the present application;
[0040] FIG5 is a flow chart of a method for restoring an application program according to an embodiment of the present application;
[0041] FIG6 is a schematic diagram of an interface for restoring a first application according to an embodiment of the present application;
[0042] FIG7 is a schematic diagram of a system architecture applicable to the method provided in this application, provided in one embodiment of this application;
[0043] FIG8 is a schematic diagram of a process of restoring a first application on a terminal device according to an embodiment of the present application;
[0044] FIG9 is a schematic diagram of a terminal device performing a legitimacy check according to an embodiment of the present application;
[0045] FIG10 is a schematic diagram of a terminal device obtaining and displaying restoration pop-up information according to an embodiment of the present application;
[0046] FIG11 is a schematic diagram of a process of restoring a first application on a terminal device according to another embodiment of the present application;
[0047] FIG12 is a schematic diagram of an apparatus for restoring a first application on a terminal device according to an embodiment of the present application;
[0048] FIG13 is a schematic diagram of an apparatus for restoring a first application on a terminal device provided in another embodiment of the present application. DETAILED DESCRIPTION
[0049] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
[0050] To facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first" and "second" are used to distinguish between identical or similar items with substantially the same functions and effects. Those skilled in the art will understand that the words "first" and "second" do not limit the quantity or execution order, and the words "first" and "second" do not necessarily mean different.
[0051] It should be noted that, in this application, words such as "exemplarily" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described in this application as "exemplary" or "for example" should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplarily" or "for example" is intended to present the relevant concepts in a concrete manner.
[0052] In addition, "at least one" means one or more, and "more" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b and c can mean: a, or b, or c, or a and b, or a and c, or b and c, or a, b and c, where a, b, c can be single or multiple.
[0053] The application recovery method provided in the embodiment of the present application can be applied to a terminal device with a display function.
[0054] The terminal devices in the embodiments of the present application may be wearable terminal devices such as mobile phones, tablet computers, personal computers (PCs), smart screens, car equipment, and smart watches. They may also be various teaching aids (such as learning machines, early childhood education machines), smart toys, portable robots, personal digital assistants (PDAs), augmented reality (AR) devices, virtual reality (VR) devices, etc. They may also be devices with mobile office functions, devices with smart home functions, devices with audio and video entertainment functions, devices that support smart travel, etc. It should be understood that the embodiments of the present application do not limit the specific technology and specific device form adopted by the terminal devices.
[0055] The APP in the embodiment of the present application is an application (APP).
[0056] In the embodiments of this application, service cards refer to the following: To provide users with a convenient and intelligent service experience, each service requires the development of at least one service card. These cards must be easy to use, visible, intelligently selectable, and adaptable across multiple terminals. A service can be understood as a specific function provided. For example, the search function can be considered to provide users with a search service.
[0057] Optionally, the service card in this application does not depend on the application, that is, the service card and the application exist independently of each other. For example, when the user clicks on the service card, when the terminal device displays in response to the user's click on the service card, the information required for the displayed interface comes from the server, not from the application (or also called not provided through the application). Or from another perspective, for a certain application (for example, called the target application) and the service card provided for the target application (for example, called the target service card), in this application, after the target application is uninstalled, the icon of the target service card still exists and can provide services.
[0058] Optionally, in some embodiments, taking the Hongmeng operating system as an example, the above services can be atomic services (meta-services). Among them, meta-services are a future-oriented service provision method provided by the Hongmeng system, with independent entrances (users can directly trigger them by clicking, touching, scanning, etc.), installation-free (no explicit installation is required, and they can be used after being installed in the background of the system program framework), and user program forms that can provide users with one or more convenient services.
[0059] In this application, after the user clicks the icon of the service card, the page displayed by the terminal device in response to the user clicking the icon of the service card is also called the landing page.
[0060] Restoring an application in the embodiment of the present application refers to reinstalling an application that was previously installed but uninstalled.
[0061] In order to better understand the embodiment of the present application, the hardware structure of the terminal device of the embodiment of the present application is first introduced. For example, Figure 1 is a schematic diagram of the structure of a terminal device provided by the embodiment of the present application.
[0062] Figure 1 shows a schematic diagram of the structure of a terminal device. The terminal device may include a processor 110, an internal memory 121, a charging management module 140, a power management module 141, antenna 1, 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, a sensor module 180, a button 190, a display 194, a timer 196, and the like.
[0063] Optionally, the sensor module 180 may include a pressure sensor 180A, a touch sensor 180B, and the like.
[0064] It is understood that the structures illustrated in the embodiments of the present application do not constitute specific limitations on the terminal device. In other embodiments of the present application, the terminal device may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0065] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, etc. The different processing units may be independent devices or integrated into one or more processors. The processor 110 may also include a memory for storing instructions and data.
[0066] The charging management module 140 is used to receive charging input from a charger. The charger can be a wireless charger or a wired charger. The power management module 141 is used to connect the charging management module 140 to the processor 110.
[0067] The wireless communication function of the terminal device can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor.
[0068] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. The antennas in a terminal device can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
[0069] Mobile communication module 150 can provide wireless communication solutions for terminal devices, including 2G / 3G / 4G / 5G. It can include at least one filter, switch, power amplifier, and low-noise amplifier (LNA). Mobile communication module 150 receives electromagnetic waves from antenna 1, filters and amplifies the received electromagnetic waves, and transmits them to the modem processor for demodulation.
[0070] The wireless communication module 160 can provide wireless communication solutions applied to terminal devices, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), etc.
[0071] In some embodiments, antenna 1 of the terminal device is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, so that the mobile phone can communicate with the network and other devices through wireless communication technology.
[0072] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. In some embodiments, the terminal device may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0073] The terminal device can implement display functions through a graphics processing unit (GPU), display screen 194, and application processor. The GPU is a microprocessor for image processing that connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The GPU can also be called a display core, a visual processor, or a display chip.
[0074] The internal memory 121 can be used to store computer-executable program code, which includes instructions. The internal memory 121 can include a program storage area and a data storage area. The program storage area can store applications required for at least one function of the operating system (such as a sound playback function, an image playback function, etc.). The data storage area can store data created during the use of the terminal device (such as audio data, a phone book, etc.).
[0075] As an example, the program storage area includes a read-only memory (ROM) partition, which can store installation packages for various pre-installed applications. When a user uninstalls a pre-installed application from a terminal device, the terminal device can pull up the installation package of the pre-installed application stored in the ROM partition to install it, thereby restoring the pre-installed application.
[0076] The terminal device can implement audio functions such as music playback and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, and the application processor.
[0077] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The speaker 170A, also known as the "speaker", is used to convert audio electrical signals into sound signals. The terminal device can listen to music or listen to hands-free calls through the speaker 170A. The receiver 170B, also known as the "earpiece", is used to convert audio electrical signals into sound signals. When the terminal device answers a call or voice message, the voice can be heard by placing the receiver 170B close to the human ear. The microphone 170C, also known as the "microphone" or "microphone", is used to convert sound signals into electrical signals.
[0078] The pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. In some embodiments, the pressure sensor 180A can be set on the display screen 194. When a touch operation is applied to the display screen 194, the terminal device can detect the intensity of the touch operation based on the pressure sensor 180A. The terminal device can also calculate the position of the touch based on the detection signal of the pressure sensor 180A. The touch sensor 180B can be set on the display screen 194, and the touch sensor 180B and the display screen 194 form a touch screen, also known as a "touch screen". The touch sensor 180B is used to detect touch operations applied thereto or nearby. The touch sensor 180B can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180B can also be set on the surface of the mobile phone, at a different location from the display screen 194.
[0079] Keys 190 include a power button, a volume button, and the like. Keys 190 can be mechanical or touch-sensitive. The terminal device can receive key inputs and generate key signal inputs related to user settings and function control of the terminal device. Indicator 192 can be an indicator light that can be used to indicate charging status, battery level changes, messages, missed calls, notifications, and the like. Timer 196 can be used to record time information. For example, when the terminal device is recording a video, the start and end times of the video can be recorded, as well as the duration of the recorded video.
[0080] For the terminal device shown in FIG1 , when the terminal device leaves the factory, some applications are pre-installed on the terminal device (ie, it comes with some built-in applications). These applications are also called pre-installed applications. Then, when the terminal device displays the desktop, the desktop includes icons of the pre-installed applications.
[0081] For example, taking the terminal device as a smart phone, when the mobile phone leaves the factory, the Douyin application, the App Store application, the Mobile Manager application, the Device Search application, the Calendar application, the JD application, the Book application and the Weather application are pre-installed in the mobile phone. Accordingly, referring to Figure 2, the desktop of the smart phone includes the Douyin application icon, the App Store application icon, the Mobile Manager application icon, the Device Search application icon, the Calendar application icon, the JD application icon, the Book application icon and the Weather application icon.
[0082] In one example, the pre-installed application may be a system-type application.
[0083] In another example, the pre-installed application may be a third-party application. For example, the Douyin application and the JD application in FIG2 are third-party applications.
[0084] It should be noted that for pre-installed applications, the installation packages of the pre-installed applications are stored in the ROM partition of the terminal device (these installation packages are there regardless of whether the pre-installed applications are uninstalled or not). Therefore, when a pre-installed application is uninstalled, the terminal device can install the installation package of the pre-installed application in the ROM partition, thereby restoring the pre-installed application.
[0085] Optionally, in addition to pre-installed applications, the desktop of the terminal device may also include applications added by the user. Referring to FIG2 , the desktop of a smartphone also includes a video application downloaded by the user from the application market.
[0086] In this application, the desktop also includes an icon of a service card. Referring to Figure 2, the desktop also includes an icon 201 of a service card of a JD application, which can provide some functions of the JD application.
[0087] In one implementation, the service card displayed on the desktop is also pre-installed.
[0088] In another implementation, the service card displayed on the desktop is added by the user independently.
[0089] The user may input an instruction to uninstall the application to the terminal device. After the terminal device detects the instruction, it responds to the instruction, uninstalls the application, and deletes the icon of the application on the desktop.
[0090] For example, a user long-presses an application icon, and the terminal device displays a control 1 for confirming to uninstall the application in response to the long-press operation. The terminal device completes the uninstallation of the application in response to the user clicking the control 1. Alternatively, the terminal device completes the uninstallation of the application in response to the user inputting an uninstall instruction through a microphone.
[0091] As an example, the terminal device detects a click operation, a long press operation, etc. on the application icon through a pressure sensor, a touch sensor, etc.
[0092] When a user uses a terminal device, there may be a scenario where the user uninstalls an application and then wants to restore the uninstalled application. For example, after the user uninstalls the Douyin application on the desktop shown in Figure 2, the user wants to restore the uninstalled Douyin application.
[0093] Therefore, how to restore uninstalled applications on terminal devices has become a technical problem that needs to be solved urgently.
[0094] Currently, a first solution for a terminal device to restore an uninstalled application is to add a restoration entry in the system application "Settings" of the terminal device to provide the ability to restore the uninstalled application.
[0095] Specifically, referring to Figure 3, in response to the user clicking on the system application "Settings", the terminal device displays a first user interface (also called a first-level interface), as shown in (a) of Figure 3, and the first user interface includes application and service options; in response to the user clicking on the application and service option, the terminal device displays a second user interface (also called a second-level interface), as shown in (b) of Figure 3, and the second user interface includes a restore application option; in response to the user clicking on the restore application option, the terminal device displays a third user interface (also called a third-level interface), as shown in (c) of Figure 3, and the third user interface displays the icons, application names, and restore settings buttons of each application to be restored. Among them, the applications to be restored displayed on the third user interface are all pre-installed applications. Afterwards, when the user clicks on the restore settings button of an application (for example, a clock application) in the third user interface, the restore settings button displays "Restoring", as shown in Figure 3 (d).
[0096] If the restoration is successful, the name of the restore settings button changes to "Open", and the user can pull up the restored clock application by clicking "Open". Conversely, if the restoration fails, the terminal device outputs a prompt message indicating that the restoration failed.
[0097] The second solution for restoring uninstalled applications on a terminal device is to provide a global search interface in the terminal device for restoring some applications that are installed on the terminal device when it leaves the factory after being uninstalled.
[0098] Specifically, referring to Figure 4, this solution adds a "Restorable Apps" option to the global search: global search (e.g., by swiping down on the desktop) - enter the name of the application to search for - the local & general page tab of the search results - the Restorable Apps option. In this solution, when the user clicks the "Restoration" control on the global search page, a "Restoring" message will appear.
[0099] If the restoration is successful, the device will display "Open". Click "Open" to launch the restored app. If the restoration fails, the device will display a message stating that the app has failed to restore.
[0100] Regardless of the first or second method for restoring an uninstalled application, both require the user to actively search for the application, resulting in a slow recovery speed. In addition, if the user is not familiar with the recovery function provided by the terminal device, the user will not be able to use the recovery function provided by the terminal device to restore the uninstalled application.
[0101] In view of this, the present application provides a method and electronic device for restoring applications, so as to quickly restore applications uninstalled by users, thereby improving user experience.
[0102] Referring to FIG5 , the method for restoring an application program on a terminal device provided by the present application is described. As shown in FIG5 , the method includes:
[0103] S501: The terminal device displays a first icon and a second icon on the desktop, where the first icon is an icon of a first application program, and the second icon is an icon of a first service card.
[0104] Specifically, the first service card can be considered as a service card that can provide some functions of the first application program. For the convenience of description, it is also referred to as the service card of the first application program.
[0105] In one implementation, the first service card may be pre-installed, that is, the first service card is pre-installed on the terminal device and displayed on the desktop when the terminal device leaves the factory.
[0106] In another implementation, the first service card is not pre-installed, but is added to the desktop of the terminal device by the user.
[0107] S502 : In response to a user inputting an operation instruction to uninstall the first application, uninstall the first application.
[0108] In this embodiment, the first application and the first service card are independent of each other and do not affect each other. That is, after uninstalling the first application, the first service card can still provide services.
[0109] S503 : In response to a first operation of the user inputting a click on the second icon, a landing page of the first service card and a first control are displayed.
[0110] In this embodiment, the first control is used to determine to restore the first application.
[0111] As an example, the name of the first control is Restore. When the user clicks Restore, the terminal device restores the first application.
[0112] It should be noted that the recovery name here is only an example. As long as the function is the same as the recovery function here, it can be included in the scope of the first control in the embodiment of the present application.
[0113] As described in S502, the first application and the first service card are independent of each other and do not affect each other. Therefore, in order for the terminal device to know that the first application is restored after the user clicks the first service card, in a specific implementation, it is necessary to write first information into the first service card, where the first information indicates that the application associated with the first service card is the first application.
[0114] In one example, the first information includes, for example, an application package name of the first application.
[0115] As an example, the application package name of the first application program may be written into the profile file included in the first service card.
[0116] Accordingly, when the user clicks on the first service card, the terminal device determines based on the first information that the first application needs to be restored, and then displays the first control on the landing page of the first service card to guide the user to restore the first application.
[0117] In one implementation, in addition to displaying the landing page of the first service card and the first control, the terminal device also displays the icon of the first application, the second control for determining whether to restore the first application, and a description prompting the user whether to restore the first application. Optionally, the terminal device can pop up a pop-up window on the landing page, also known as a restoration pop-up window, and display the first control, the second control, the icon of the first application, and a description prompting the user whether to restore the first application in the restoration pop-up window.
[0118] For example, the second control is called a cancel control. Similarly, the cancel here is just an example of a name, and as long as the function is the same as the cancel function here, it can be included in the scope of the second control in the embodiment of the present application.
[0119] S504: The terminal device restores the first application in response to the user clicking the first control.
[0120] In this embodiment, the first application may be a pre-installed application or may not be a pre-installed application (for example, referred to as a non-pre-installed APP).
[0121] For example, when the first application is a pre-installed application, the terminal device's read-only memory (ROM) partition always contains the first application's installation package, regardless of whether the first application is uninstalled. Furthermore, the installation package still exists in the ROM partition even after the terminal device is restored to factory settings and the system is reactivated. Therefore, when the user clicks the first control, the terminal device, in response to the user's click of the first control, may install the first application based on the installation package in the ROM partition to restore the first application.
[0122] For another example, when the first application is not a pre-installed APP, the terminal device can download the installation package of the first application from the server side and then install it. In this scenario, in specific implementation, for example, the profile file included in the first service card can also include the address information or application identifier of the installation package of the first application in the application market cloud; accordingly, in this case, the terminal device can obtain the installation package of the first application based on the address information or application identifier for installation. It should be noted that the address information and application identifier are only used as examples here and do not constitute a limitation of this application. For example, it can also be other information, as long as the terminal device can obtain the installation package of the first application based on the other information.
[0123] Optionally, in this application, when installing the first application, the terminal device may use a silent installation method or a non-silent installation method. The silent installation method refers to an installation method in which the terminal device installs the first application in the background but does not display the application installation process. In addition to silent installation, the terminal device may also display the application installation process, including the installation progress percentage.
[0124] That is, in the method for restoring an application provided in this embodiment, after the user uninstalls the first application, the user clicks on the first service card. The terminal device responds to the user's click on the first service card. When displaying the landing page of the first service card, the terminal device also displays a first control on the landing page for guiding the user to restore the first application. Then, when the user clicks on the first control, the terminal device installs the first application.
[0125] It can be seen that through the method of restoring applications provided in this application, the user can complete the restoration of the first application without having to search for the restoration function provided by the terminal device, thereby achieving rapid restoration of the uninstalled first application.
[0126] Based on the method described in FIG5 , FIG6 is a schematic diagram of an interface for restoring an application provided by the present application. Referring to FIG6 , the terminal device displays the desktop shown in FIG6 (a), which includes an icon 601 of application 1, an icon 602 of application 2, an icon 603 of application 3, an icon 604 of a first application (also referred to as a first APP), and an icon 605 of a first service card. For example, the first service card can provide some sub-functions of the first application. In response to the user's operation instruction to uninstall the first application, the terminal device uninstalls the first application and displays the desktop shown in FIG6 (b). After the user clicks the icon 605 on the desktop shown in FIG6 (b), the terminal device displays the landing page of the first service card and displays a restoration pop-up window 607 on the landing page. As shown in FIG6 (c), the restoration pop-up window 607 includes a restoration control (also referred to as a first control) and a cancel control (also referred to as a second control), prompting the user whether to restore the description of the first application and the icon 606 of the first application.
[0127] Afterwards, if the user clicks the restore control, the terminal device restores the first application based on the first application's installation package. Otherwise, if the user clicks the cancel control, the terminal device does not restore the first application. The implementation of how the terminal device obtains the first application's installation package can be found in the description of the embodiment shown in FIG. 5 and will not be further elaborated here.
[0128] It should be understood that under this solution, the user can complete the recovery of the first application without having to search for the recovery function provided by the terminal device, so the uninstalled first application can be quickly restored.
[0129] It should be noted that the icons of the application programs included on the desktop shown in FIG6 are merely examples and do not constitute a limitation of the present application. For example, the desktop shown in FIG6 may also include icons of more application programs, or icons of fewer application programs, or icons of more service cards.
[0130] Figure 7 is a software structure diagram of a system for restoring an application according to an embodiment of the present invention. As shown in Figure 7, the system architecture includes a cloud side and a terminal device side.
[0131] The cloud side includes the APPGallery (AG) cloud, pre-installed cloud, and big data platform, while the terminal device side includes the service card module, monitoring module, recovery module, and operating system (OS) module.
[0132] The OS module includes: providing Bundle manager service (BMS), package manager service (PMS), capability management service (AMS) and ROM.
[0133] Specifically, in this embodiment, the BMS can provide the module with the ability to obtain profile information in the service card, the PMS can provide the ability to install the application to be restored, and the ROM can provide the information required for the restoration pop-up window of the application to be restored.
[0134] Below, in combination with the software structure diagram shown in Figure 7 and two detailed embodiments, taking the first application that needs to be restored as a pre-installed application and the terminal device installing it through the installation package stored in the ROM partition as an example, it is explained how the terminal device restores the first application through various modules.
[0135] Example 1
[0136] Precondition: Write the application package name of the associated first application and the associated signature certificate information in the profile file of the first service card corresponding to the first application. Specifically, during implementation, when developing the first service card, the developer applies to the AG cloud to write the application package name of the associated first application and the associated signature certificate information in the profile file of the first service card; accordingly, after receiving the application, the AG cloud writes the application package name of the first application and the associated signature certificate in the profile file of the first service card, and then the developer downloads the profile file associated with the application package name and signature certificate of the first application, packages the profile file into the first service card, and publishes the packaged first service card to the cloud.
[0137] For example, the packaged first service card can be published to the pre-installed cloud via pre-installed publishing, or can be published to the service center cloud via service center publishing. If the pre-installed publishing method is used, the first service card is pre-installed on the terminal device. If the service center publishing method is used, the user can download the first service card from the service center cloud to the terminal device.
[0138] As an example, the content of the application package name and signing certificate of the associated first application written into the profile file of the first service card is as follows:
[0139] "Associated application information": {
[0140] "Application Package Name":"*****",
[0141] "Signature Certificate":"********",
[0142] }.
[0143] After the above prerequisites are met, as shown in FIG8 , the method for restoring the preinstalled first application in this embodiment includes:
[0144] S801, in response to the user clicking on the first service card, the terminal device enters the landing page of the first service card.
[0145] S802, the monitoring module determines whether the first configuration file includes the first service card and whether the landing page of the first service card is completely displayed. If the first configuration file includes the first service card and the landing page of the first service card is completely displayed, execute S803.
[0146] For example, if it is monitored that the landing page of the first service card is in the Resume state, it is determined that the landing page state of the first service card is completed and displayed.
[0147] In this embodiment, the first configuration file indicates at least one service card, and the application associated with each service card in the at least one service card is a pre-installed application.
[0148] Since the ROM partition of the terminal device stores some installation packages of pre-installed applications (these installation packages are present regardless of whether the pre-installed applications are uninstalled or not), and the installation packages downloaded by the user are not retained on the terminal device after being uninstalled, if the terminal device does not consider the method of obtaining the installation package from the server for installation, when the terminal device restores the associated application through the service card, only the pre-installed application can be restored. Therefore, in this embodiment, a first configuration file is configured in the ROM partition of the terminal device, and the first configuration file indicates at least one service card. Accordingly, when the user clicks the icon of the first service card, the terminal device executes S803 if it determines that the first service card is included in the first configuration file, otherwise it determines not to install the first application.
[0149] As an example, a restore_fa_list.xml configuration file (the name here is only an example and does not constitute a limitation of this application) can be added to the pre-installed package stored in the ROM partition. The restore_fa_list.xml configuration file includes the package name of at least one service card and the application package name of the application associated with each service card.
[0150] It should be understood that this method can reduce the resource consumption of the terminal device. For example, if the profile file of a service card is not associated with a pre-installed application, such as a third application, at this time, if the terminal device is not configured with the first configuration file, then when the terminal device determines that the third application needs to be restored, it will execute the process of obtaining the information of the recovery pop-up window for guiding the user to restore the third application from the ROM partition and obtaining the installation package of the third application from the ROM partition. It should be understood that in this case, the terminal device cannot obtain the above-mentioned information of the recovery pop-up window for guiding the user to restore the third application and the installation package of the third application. However, if the second information is configured, the terminal device can determine not to restore the third application, and thus will not execute the process of obtaining the information of the recovery pop-up window for guiding the user to restore the third application and obtaining the installation package of the third application from the ROM partition, thereby reducing the resource consumption of the terminal device.
[0151] S803: The monitoring module launches the recovery module based on the package name of the first service card and the application package name of the associated first application.
[0152] For example, the monitoring module starts the recovery module through StartService(bundleName, relatedBundleName).
[0153] S804: The recovery module determines whether the first application to be recovered has been uninstalled. If it has been uninstalled, S805 is executed.
[0154] During specific implementation, the terminal device may determine whether the first application to be restored has been uninstalled by calling the PMS interface.
[0155] S805: The recovery module parses the first application installation package included in the ROM partition to obtain information required for a recovery pop-up window to guide the user to recover, and displays the recovery pop-up window on the landing page of the first service card.
[0156] In one example, as shown in Figure 10, the recovery module executes S1001 and S1002: obtains and parses the application name, application icon (ICON) and description information of the first application from the ROM partition, and then when the landing page of the first service card is displayed, a recovery pop-up window for restoring the first application is popped up to guide the user to restore.
[0157] S806 , in response to the user clicking the control instructing the terminal device to restore the first application, the restoration module installs the first application.
[0158] Furthermore, if the recovery fails, a message indicating the recovery failure is output.
[0159] For example, the restore module calls the installation capability of the PMS module to install the first application to perform the installation.
[0160] As an optional embodiment, the signature certificate of the associated application (for example, called certificate 1) can also be configured in the profile file of the first service card. Accordingly, S807 needs to be executed before S805: verify the legitimacy of the first application restored by the first service card, and then execute S805 when it is determined that the first application is legal.
[0161] Specifically, when the recovery module verifies the legitimacy of the first application to be restored, as shown in Figure 9, it includes: S901, the recovery module obtains the package name and signature certificate (for example, called certificate 1) of the associated application from the profile file of the first service card; S902, the recovery module obtains the signature certificate (for example, called certificate 2) corresponding to the application associated with the first service card from the ROM partition; S903, the recovery module compares whether certificate 1 and certificate 2 are the same. If they are the same, the legitimacy check passes.
[0162] Example 2
[0163] In this embodiment, when restoring the uninstalled first application through the first service card, the pop-up frequency of the restoration pop-up window is further controlled to avoid excessive interference to the user, thereby further improving the user experience.
[0164] Specifically, the preconditions of this embodiment are the same as those of the embodiment and will not be repeated here.
[0165] When the above preconditions are met, as shown in FIG11 , the method includes:
[0166] S1101, in response to the user clicking on the first service card, the terminal device enters the landing page of the first service card.
[0167] S1102, the monitoring module determines whether the first configuration file includes the first service card and whether the landing page of the first service card is completely displayed. If the first configuration file includes the first service card and the landing page of the first service card is completely displayed, execute S1103.
[0168] S1103: The monitoring module launches the recovery module based on the package name of the first service card and the application package name of the associated first application.
[0169] S1104: The recovery module determines whether the first application to be recovered has been uninstalled. If it has been uninstalled, execute S1105.
[0170] S1105: Verify the validity of the first service card restoring the first application program. If the verification passes, execute S1106.
[0171] For details about each step in S1101 to S1105 , please refer to the description of the relevant parts in FIG8 , which will not be repeated here.
[0172] S1106: The recovery module determines whether the time period between the time when the icon of the first service card is clicked this time and the time when the icon of the first service card is clicked last time meets a condition. If the condition is met, execute S1107.
[0173] During implementation, the method includes: 1) the recovery module sends some data when the user operates the recovery pop-up window to the big data platform on the cloud side, such as: the user clicks to cancel the recovery pop-up window, the user presses the home button to exit the recovery pop-up window, the user exits the recovery pop-up window, and the time when the user exits the recovery pop-up window; 2) the big data platform processes the user data sent by the terminal device; 3) the big data platform sends the processed user data of the terminal device to the pre-installed cloud; 4) the pre-installed cloud determines the first duration based on the identifier of the terminal device, such as the device identifier UDID; 5) the UDID is sent to the pre-installed cloud to request the first duration of the terminal device; 6) it is determined whether the time period between the time when the icon of the first service card is clicked this time and the time when the icon of the first service card is clicked last time meets the preset requirements. For example, if the user who uploaded the UDID ******* obtains the first duration of the UDID from the pre-installed cloud as 7 days, it means that when the time since the last time the recovery pop-up window was entered is greater than or equal to 7 days and all its recovery conditions are met, the recovery pop-up window is allowed to pop up again when the user clicks the icon of the first service card.
[0174] S1107, the recovery module parses the first application installation package in the ROM partition to obtain information required for a recovery pop-up window to guide the user to recover, and displays the recovery pop-up window on the landing page of the first service card.
[0175] S1108 , in response to the user clicking the control instructing the terminal device to restore the first application, the restoration module installs the first application.
[0176] The detailed description of S1108 can refer to the description of S806 and will not be repeated here.
[0177] The above describes how to restore uninstalled pre-installed apps on a terminal device through a service card.
[0178] It should be noted that the above service card may also be replaced by a second application, for example, and then the uninstalled first application may be restored by associating the second application with the first application.
[0179] That is, after the service card is replaced with the second application, the method includes: displaying the icon of the first application and the icon of the second application on the desktop; uninstalling the first application in response to the user's operation instruction to uninstall the first application; displaying the landing page of the second application and displaying the first control on the landing page of the second application in response to the user clicking on the icon of the second application, the first control being used to determine the restoration of the first application; and restoring the first application in response to the user clicking on the first control.
[0180] Similarly, the second application is independent of the first application, that is, after the first application is uninstalled, the icon of the second application still exists.
[0181] Furthermore, a second control may be displayed, and in response to the user clicking on the second control, the first application is not restored.
[0182] Optionally, the terminal device may not display the first and second controls on the landing page of the second application. Instead, after determining that the first application has been uninstalled, if the user clicks the icon of the second application, the terminal device may install the second application when the landing page of the second application is displayed. In other words, in this manner, the method includes: displaying the icon of the first application and the icon of the second application on the desktop; uninstalling the first application in response to the user's operation instruction to uninstall the first application; and restoring the first application in response to the user clicking the icon of the second application.
[0183] Optionally, when restoring the first application through the second application, the second application includes first information, and the first information indicates that the application associated with the second application is the first application; the method also includes: determining that the application to be restored is the first application based on the first information.
[0184] Optionally, the first application is a pre-installed application.
[0185] Optionally, when the first application is restored through the second application, second information is stored in the read-only memory ROM partition of the terminal device, and the second information indicates at least one application, and the application associated with each application in the at least one application is a pre-installed application; accordingly, the first control is displayed on the landing page, including: when the second application is included in at least one application and the landing page of the second application is completed, the first control is displayed on the landing page.
[0186] Optionally, when restoring the first application through the second application, the first information also indicates the signature certificate of the application associated with the second application. The method also includes: displaying the first control on the landing page, and also includes: obtaining the first signature certificate corresponding to the application package name of the first application from the ROM partition according to the application package name of the first application; when the first signature certificate is the same as the signature certificate indicated by the first information, displaying the first control and the second control on the landing page.
[0187] FIG12 is a schematic diagram of the structure of an apparatus for restoring an application provided by an embodiment of the present application. As shown in FIG12 , the apparatus 1200 for restoring an application includes a display module 1201 and a processing module 1202 .
[0188] As an example, the display module 1401 can be used to execute displaying the first icon and the second icon on the desktop in S501, and displaying the landing page of the first service card and the first control in S503.
[0189] As an example, the processing module 1202 may be configured to execute the operations of uninstalling the first application and installing the first application in S502 .
[0190] As another example, the processing module 1202 may be configured to perform the validity check in S806 .
[0191] FIG13 is a schematic diagram of the structure of an apparatus for restoring an application program according to another embodiment of the present application. As shown in FIG13 , a processing apparatus 1300 may include a processor 1301 and an interface circuit 1302. The processor 1301 and the interface circuit 1302 are coupled to each other. It will be appreciated that the interface circuit 1302 may be a transceiver or an input / output interface. Optionally, the processing apparatus 1300 may further include a memory 1303 for storing instructions executed by the processor 1301, or for storing input data required by the processor 1301 to execute instructions, or for storing data generated after the processor 1301 executes instructions.
[0192] It is understood that the processor in the embodiments of the present application may be a central processing unit (CPU), or may be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. The general-purpose processor may be a microprocessor or any conventional processor.
[0193] The method steps in the embodiments of the present application can be implemented by hardware or by a processor executing software instructions. The software instructions can be composed of corresponding software modules, and the software modules can be stored in a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an erasable programmable read-only memory, an electrically erasable programmable read-only memory, a register, a hard disk, a mobile hard disk, a CD-ROM or any other form of storage medium well known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be an integral part of the processor. The processor and the storage medium can be located in an ASIC. In addition, the ASIC can be located in a network device or a terminal device. Of course, the processor and the storage medium can also be present in a network device or a terminal device as discrete components.
[0194] In the above embodiments, all or part of the embodiments may be implemented using software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments may be implemented in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are performed in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user device, or other programmable device. The computer program or instructions may be stored in a computer-readable storage medium or transferred from one computer-readable storage medium to another. For example, the computer program or instructions may be transferred from one website, computer, server, or data center to another website, computer, server, or data center via wired or wireless means. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium may be a magnetic medium, such as a floppy disk, hard disk, or magnetic tape; an optical medium, such as a digital video disk; or a semiconductor medium, such as a solid-state drive.
[0195] In the various embodiments of the present application, unless otherwise specified or there is a logical conflict, the terms and / or descriptions between different embodiments are consistent and can be referenced by each other. The technical features in different embodiments can be combined to form new embodiments according to their inherent logical relationships.
[0196] It is understood that the various numbers used in the embodiments of this application are merely for ease of description and are not intended to limit the scope of the embodiments of this application. The order of the sequence numbers of the above-mentioned processes does not necessarily imply a specific order of execution; the order of execution of the processes should be determined by their functions and inherent logic.
Claims
1. A method for restoring an application, characterized in that: Applied to terminal equipment, including: Displaying a first icon and a second icon on the desktop of the terminal device, wherein the first icon is an icon of a first application program, and the second icon is an icon of a first service card; In response to a user inputting an operation instruction to uninstall the first application, uninstalling the first application; In response to a first operation of a user inputting a click on the second icon, displaying a landing page of the first service card and displaying a first control; In response to the user clicking the first control, the first application is installed.
2. The method according to claim 1, characterized in that The first service card includes first information, and the first information indicates that the application associated with the first service card is a first application; The method further comprises: It is determined that the application program to be installed is the first application program.
3. The method according to claim 2, characterized in that The first application is a pre-installed application; The installing the first application comprises: The first application is installed based on the installation package of the first application stored in the read-only memory ROM partition of the terminal device.
4. The method according to claim 3, characterized in that The terminal device includes a first configuration file, the first configuration file indicates at least one service card, and the application associated with each service card in the at least one service card is a pre-installed application; The step of installing the first application program includes: When the at least one service card includes the first service card, the first application is installed.
5. The method according to claim 4, characterized in that The first configuration file is stored in a read-only memory ROM partition of the terminal device.
6. The method according to any one of claims 2 to 5, characterized in that The first information further indicates a signature certificate of an application associated with the first service card; The displaying of the first control comprises: Obtaining a signature certificate of the first application from the ROM partition of the terminal device; When the signature certificate indicated by the first information is successfully verified based on the signature certificate in the ROM partition, the first control is displayed.
7. The method according to any one of claims 1 to 6, characterized in that The step of displaying the landing page of the first service card and displaying the first control includes: After the landing page is displayed, the first control is displayed.
8. The method according to any one of claims 1 to 7, characterized in that The displaying of the first control comprises: If the duration between the first operation and the second operation of the last user input clicking the second icon is greater than or equal to a preset duration threshold, the first control is displayed.
9. The method according to any one of claims 3 to 8, characterized in that A recovery pop-up window is displayed on the landing page, and the recovery pop-up window includes the first control and any one of the following items: the second control, the application name of the first application, the icon of the first application, and a description prompting the user whether to restore the first reference program. The second control is used to instruct the terminal device not to restore the first application.
10. The method according to claim 9, characterized in that The method further comprises: The application name and the icon of the first application are obtained from the ROM partition of the terminal device.
11. A device for restoring an application, characterized in that: The method comprises a functional module for implementing the method according to any one of claims 1 to 10.
12. A device for restoring an application, characterized in that: include: Memory and processor; The memory is used to store program instructions; The processor is configured to execute program instructions in the memory to implement the method according to any one of claims 1 to 10.
13. A terminal device, characterized in that: Comprising the device as claimed in claim 11 or 12.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program code for computer execution, wherein the program code includes instructions for implementing the method according to any one of claims 1 to 10.
15. A computer program product, characterized in that The computer program product comprises instructions for implementing the method according to any one of claims 1 to 10.
Citation Information
Patent Citations
Application program management method and device of mobile terminal and mobile terminal
CN103268239A
Mobile terminal and method, system and cloud server for managing application programs of mobile terminal
CN103281350A
Rapid application recovery method
CN103914317A
Application pre-installation method and device, terminal, server and storage medium
CN110851151A
Preinstalled Application Management Method for Mobile Terminal and Mobile Terminal
US20140298320A1