Method for recovering application program and related device
By displaying the service card icon on the desktop of the terminal device and responding to user clicks, providing direct recovery controls, the problem of cumbersome application recovery process in the terminal device is solved, and fast and intuitive application recovery is achieved, improving the user experience.
Patent Information
- Application Number
- CN202310928660.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-06-30
- Filing Date
- 2023-07-26
- Publication Date
- 2024-12-31
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, resulting in slow and unintuitive recovery speed.
By displaying the service card icon on the desktop of the terminal device, and displaying the landing page and controls after clicking by the user, users can directly restore uninstalled applications through the control without looking for system recovery functions.
It enables users to quickly recover uninstalled applications without complex operations, improving user experience and recovery efficiency.
Smart Images

Figure CN119225747A_ABST
Abstract
Description
[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on June 30, 2023, with application number 202310802072.7, and invention name “Card Recall Method and Electronic Device”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of terminal equipment, and in particular to a method for restoring an application program and related devices. Background Art
[0003] An application (APP) is often installed in a terminal device. When a user uses the terminal device, there is a need to restore the application after uninstalling the application.
[0004] Therefore, how to restore uninstalled applications in terminal devices has become a technical problem that needs to be solved urgently. Summary of the invention
[0005] The present application provides a method and related device 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.
[0006] In a first aspect, the present application provides a method for restoring an application, which is applied to a terminal device, comprising: 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 a user clicking the first control.
[0007] 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.
[0008] The first service card may be pre-installed, that is, 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.
[0009] In the present 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.
[0010] That is, in the method for restoring an application provided by the present application, after the user uninstalls the first application, the terminal device guides the user to restore the first application by displaying a first control for guiding the user to restore the first application on the landing page of the first service card. It should be understood that under this solution, the user can complete the restoration of the first application without having to search for the restoration function provided by the terminal device, so the uninstalled first application can be quickly restored.
[0011] 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.
[0012] 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.
[0013] In combination with the first aspect, in one implementation, the first service card includes first information, and the first information indicates that an application associated with the first service card is a first application; the method further includes: determining that the application to be installed is the first application.
[0014] 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 enable the terminal device to know 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, and the 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 the user clicks the icon of the first service card, the terminal device can determine based on the first information that it is the first application that needs to be restored, rather than other applications.
[0015] In other words, in this implementation, the first service card is improved and associated with the first application, so that after the user clicks on the first service card, the terminal device can find the associated first application that needs to be restored based on the first information.
[0016] In an example, the first information may be configured in a profile file included in the first service card.
[0017] In one example, the first information includes an application package name of the first application.
[0018] 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.
[0019] 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 preinstalled application; wherein, installing the first application includes: when the first service card is included in at least one service card, installing the first application.
[0020] Since some installation packages of 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), 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 recovery 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.
[0021] As an example, the first configuration file is stored in a ROM partition of the terminal device.
[0022] In combination with the first aspect, in a possible implementation, the first information also indicates a 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; when the signature certificate indicated by the first information is verified successfully based on the signature certificate in the ROM partition, displaying the first control.
[0023] 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 is displayed to guide the user to restore the first application.
[0024] In combination with the first aspect, in a possible implementation, displaying a landing page of a first service card and displaying a first control includes: after the landing page is completely displayed, displaying the first control.
[0025] 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.
[0026] In this implementation, excessive interference to users can be reduced and user experience can be improved.
[0027] In combination with the first aspect, in a possible implementation method, 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.
[0028] 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.
[0029] In a second aspect, the present application provides a device for restoring an application, which may include various functional modules for implementing the method in the first aspect. For example, the device includes a display module, an uninstall module, and an installation module. Optionally, the device may also include an acquisition module and a verification module.
[0030] In some implementations, these modules may be implemented by software and / or hardware. In this implementation, the device may include a processor and a transceiver. For example, the display module, the uninstall module, the installation module, and the verification module may be implemented by the processor executing the program code stored in the memory, and the acquisition module may be implemented by the transceiver. Optionally, the device may also include a memory.
[0031] 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.
[0032] 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.
[0033] In a fifth aspect, the present application provides a computer program product comprising instructions, and when the computer program product is executed on a communication device, the communication device implements the method in the first aspect.
[0034] It can be understood that the effects that can be obtained in the second, third, fourth and fifth aspects can refer to the description in the first aspect and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 A schematic diagram of the structure of a terminal device provided in an embodiment of the present application;
[0036] Figure 2 A schematic diagram of a desktop of a terminal device provided by an embodiment of the present application;
[0037] Figure 3 A schematic diagram of an existing recovery application provided for this application;
[0038] Figure 4 A schematic diagram of another existing recovery application provided for this application;
[0039] Figure 5 A flow chart of a method for restoring an application provided in one embodiment of the present application;
[0040] Figure 6 A schematic diagram of an interface for restoring a first application provided by an embodiment of the present application;
[0041] Figure 7 A schematic diagram of a system architecture applicable to the method provided in this application, provided for one embodiment of this application;
[0042] Figure 8 A schematic diagram of a process of restoring a first application program on a terminal device provided in one embodiment of the present application;
[0043] Fig. 9 A schematic diagram of a terminal device performing a legitimacy check according to an embodiment of the present application;
[0044] Fig.10 A schematic diagram of a terminal device obtaining and displaying restoration pop-up window information provided by an embodiment of the present application;
[0045] Fig.11 A schematic diagram of a process of restoring a first application program on a terminal device provided in another embodiment of the present application;
[0046] Fig.12 A schematic diagram of an apparatus for restoring a first application on a terminal device provided by an embodiment of the present application;
[0047] Fig.13A schematic diagram of an apparatus for restoring a first application on a terminal device provided in another embodiment of the present application. DETAILED DESCRIPTION
[0048] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0049] In order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish the same or similar items with substantially the same functions and effects. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit the difference.
[0050] 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 as "exemplarily" or "for example" in this application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplarily" or "for example" is intended to present related concepts in a specific way.
[0051] In addition, "at least one" means one or more, and "plurality" 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" or similar expressions refers to any combination of these items, including any combination of single 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.
[0052] The application recovery method provided in the embodiment of the present application can be applied to a terminal device with a display function.
[0053] The terminal device in the embodiments of the present application may be a mobile phone, a tablet computer, a personal computer (PC), a smart screen, a car device, a wearable terminal device such as a smart watch, or various teaching aids (such as a learning machine, an early education machine), a smart toy, a portable robot, a personal digital assistant (PDA), an augmented reality (AR) device, a virtual reality (VR) device, etc. It may also be a device with a mobile office function, a device with a smart home function, a device with an audio-visual entertainment function, a device supporting 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 device.
[0054] The APP in the embodiment of the present application is an application (application, APP).
[0055] The service card in the embodiment of the present application means that in order to provide users with a convenient and intelligent service experience, each service needs to develop at least one service card, which needs to be easy to use, visible, intelligent and optional, and multi-terminal. Among them, the service can be understood as a certain function provided, for example, the search function can be considered as providing a search service to the user.
[0056] Optionally, the service card in the present application is independent of 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 by 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 the present application, after the target application is uninstalled, the icon of the target service card still exists and can provide services.
[0057] Optionally, in some embodiments, taking 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 Hongmeng system, with independent entrances (users can directly trigger by clicking, touching, scanning, etc.), installation-free (no explicit installation is required, and it can be used after being installed by the system program framework background), and user program forms that can provide users with one or more convenient services.
[0058] 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.
[0059] Restoring an application in the embodiment of the present application refers to reinstalling an application that was previously installed but uninstalled.
[0060] 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 A schematic diagram of the structure of a terminal device provided in an embodiment of the present application.
[0061] Figure 1 The terminal device may include a processor 110, an internal memory 121, a charging management module 140, a power management module 141, 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, a sensor module 180, a button 190, a display screen 194, a timer 196, and the like.
[0062] Optionally, the sensor module 180 may include a pressure sensor 180A, a touch sensor 180B, and the like.
[0063] It is to be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the terminal device. In other embodiments of the present application, the terminal device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0064] 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. Among them, different processing units may be independent devices or integrated into one or more processors. A memory may also be provided in the processor 110 for storing instructions and data.
[0065] The charging management module 140 is used to receive charging input from a charger, which may 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 .
[0066] 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.
[0067] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. The antenna in the terminal device can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antenna.
[0068] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to terminal devices. The mobile communication module 150 can include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, etc. the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
[0069] 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.
[0070] 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.
[0071] 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.
[0072] The terminal device can realize the display function through a graphics processing unit (GPU), a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The GPU can also be called a display core, a visual processor, a display chip, etc.
[0073] The internal memory 121 can be used to store computer executable program codes, and the executable program codes include instructions. The internal memory 121 can include a program storage area and a data storage area. Among them, the program storage area can store applications required for at least one function in 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.).
[0074] As an example, the storage program area includes a read-only memory (ROM) partition, and the ROM partition can store installation packages of 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.
[0075] The terminal device can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, and the application processor.
[0076] 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 answered 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.
[0077] The pressure sensor 180A is used to sense the pressure signal and convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be arranged on the display screen 194. When a touch operation acts on the display screen 194, the terminal device can detect the intensity of the touch operation according to the pressure sensor 180A. The terminal device can also calculate the position of the touch according to the detection signal of the pressure sensor 180A. The touch sensor 180B can be arranged 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 acting on or near it. 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 arranged on the surface of the mobile phone, which is different from the position of the display screen 194.
[0078] The button 190 includes a power button, a volume button, etc. The button 190 may be a mechanical button. It may also be a touch button. The terminal device may receive the button input and generate a key signal input related to the user settings and function control of the terminal device. The indicator 192 may be an indicator light, which may be used to indicate the charging status, the change of the power, or may be used to indicate messages, missed calls, notifications, etc. The timer 196 may be used to record time information. For example, when the terminal device records a video, the start time and the end time of the video may be recorded, and the duration of the recorded video may be recorded.
[0079] for Figure 1 The terminal device shown in the figure has some applications pre-installed on it (that is, it comes with some built-in applications) when it leaves the factory. These applications are also called pre-installed applications. Then, when the terminal device displays the desktop, the desktop contains icons of the pre-installed applications.
[0080] For example, when the terminal device is a smartphone, the phone is pre-installed with the Douyin application, the App Store application, the Mobile Manager application, the Find Device application, the Calendar application, the JD application, the Book application, and the Weather application. Figure 2 , the desktop of the smartphone includes the icon of the Douyin application, the icon of the App Store application, the icon of the Mobile Manager application, the icon of the Find Device application, the icon of the Calendar application, the icon of the JD application, the icon of the Book application and the icon of the Weather application.
[0081] In one example, the preinstalled application may be a system-type application.
[0082] In another example, the pre-installed application may be a third-party application. Figure 2 The TikTok app and JD app in the app are third-party apps.
[0083] It should be noted that for preinstalled applications, the installation packages of the preinstalled applications are stored in the ROM partition of the terminal device (these installation packages are there regardless of whether the preinstalled applications are uninstalled or not). Therefore, when a preinstalled application is uninstalled, the terminal device can install the installation package of the preinstalled application in the ROM partition, thereby restoring the preinstalled application.
[0084] Optionally, in addition to pre-installed applications, the desktop of the terminal device may also include applications added by the user. Figure 2 , the smartphone desktop also includes video applications downloaded by users from the application market.
[0085] In this application, the desktop also includes an icon of the service card. Figure 2 For example, the desktop also includes an icon 201 of a service card of the JD application, and the service card of the JD application can provide some functions of the JD application.
[0086] In one implementation, the service card displayed on the desktop is also pre-installed.
[0087] In another implementation, the service card displayed on the desktop is added by the user himself.
[0088] The user may input an instruction to uninstall the application program to the terminal device. After the terminal device detects the instruction, it uninstalls the application program and deletes the icon of the application program on the desktop in response to the instruction.
[0089] For example, the user long presses the icon of the application, and the terminal device displays a control 1 for determining to uninstall the application in response to the long press operation, and 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 uninstallation instruction input by the user through the microphone.
[0090] 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.
[0091] When a user uses a terminal device, there may be the following scenario: after the user uninstalls an application, the user wants to restore the uninstalled application. Figure 2 After uninstalling the Tik Tok application on the desktop, I want to restore the uninstalled Tik Tok application.
[0092] Therefore, how to restore uninstalled applications on terminal devices has become a technical problem that needs to be solved urgently.
[0093] Currently, the first solution for a terminal device to restore an uninstalled application is to add a restore entry in the system application "Settings" of the terminal device to provide the ability to restore the uninstalled application.
[0094] Specifically, refer 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). The first user interface is as follows: Figure 3 As shown in (a) of FIG. 1 , the first user interface includes application and service options; in response to the user clicking on the application and service options, the terminal device displays a second user interface (also called a secondary interface), and the second user interface is as shown in FIG. Figure 3As shown in (b) of FIG. 1 , the second user interface includes a restore application option; in response to the user clicking the restore application option, the terminal device displays a third user interface (also called a third-level interface), and the third user interface is as shown in FIG. Figure 3 As shown in (c) of FIG. 1 , the third user interface displays icons, application names, and a restore settings button for each application to be restored. The applications to be restored displayed on the third user interface are all pre-installed applications. Afterwards, when the user clicks the restore settings button of an application (e.g., a clock application) in the third user interface, the restore settings button displays “Restoring”, as shown in FIG. Figure 3 (d) as shown.
[0095] If the restoration is successful, the name of the restore setting button is changed to "Open", and the user can pull up the restored clock application by clicking "Open". On the contrary, if the restoration fails, the terminal device outputs a prompt message indicating that the restoration failed.
[0096] 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.
[0097] Specifically, refer to Figure 4 , this solution adds a "Recoverable Apps" option in the global search: global search (for example, by swiping down on the desktop) - enter the name of the application to search for - the local & comprehensive page label of the search results - the Recoverable Apps option. In this solution, when the user clicks the "Restore" control on the full search page, it will display "Recovering".
[0098] After that, if the recovery is successful, the terminal device will display "Open". The user can pull up the restored application by clicking "Open". If the recovery fails, the terminal device will prompt that the application recovery failed.
[0099] Regardless of the first or second method of restoring an uninstalled application, the user needs 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 cannot use the recovery function provided by the terminal device to restore the uninstalled application.
[0100] In view of this, the present application provides a method for restoring an application and an electronic device, so as to quickly restore an application uninstalled by a user, thereby improving the user experience.
[0101] refer to Figure 5 , describes the method for restoring an application program on a terminal device provided by this application. Figure 5 As shown, the method includes:
[0102] S501, the terminal device displays a first icon and a second icon on the desktop, the first icon is an icon of a first application program, and the second icon is an icon of a first service card.
[0103] Specifically, the first service card can be considered as a service card that can provide some functions of the first application program, and for the convenience of description, is also referred to as the service card of the first application program.
[0104] 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.
[0105] In another implementation, the first service card is not pre-installed, but is added to the desktop of the terminal device by the user.
[0106] S502: In response to a user inputting an operation instruction to uninstall the first application, uninstall the first application.
[0107] 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.
[0108] S503, in response to a first operation of the user inputting a click on the second icon, displaying a landing page of the first service card and displaying a first control.
[0109] In this embodiment, the first control is used to determine to restore the first application.
[0110] As an example, the name of the first control is Restore, and when the user clicks Restore, the terminal device restores the first application.
[0111] 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.
[0112] 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 to realize that the terminal device knows that the first application is restored after the user clicks the first service card, in specific implementation, it is necessary to write first information in the first service card, and the first information indicates that the application associated with the first service card is the first application.
[0113] In one example, the first information includes, for example, an application package name of the first application.
[0114] 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.
[0115] 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.
[0116] 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 called a recovery 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 recovery pop-up window.
[0117] For example, the second control is called a cancel control. Similarly, the cancel here is just a name example, 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.
[0118] S504: In response to the user clicking on the first control, the terminal device restores the first application.
[0119] 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).
[0120] For example, when the first application is a pre-installed application, no matter whether the first application is uninstalled or not, the installation package of the first application is in the read-only memory (ROM) partition of the terminal device, and after the terminal device is restored to factory settings and the system is reactivated, the installation package still exists in the ROM partition. Therefore, when the user clicks the first control, the terminal device can install the first application based on the installation package of the first application in the ROM partition in response to the user's operation of clicking the first control to restore the first application.
[0121] For another example, when the first application is not a pre-installed APP, at this time, the terminal device can download the installation package of the first application from the server side and then install it. In this scenario, in the specific implementation, for example, the profile file included in the first service card may 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 only address information and application identifier are used as examples here, and do not constitute limitations of the present 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.
[0122] Optionally, in the present application, when installing the first application, the terminal device may or may not install the first application silently. 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 the silent installation, the terminal device may also display the application installation process, including the percentage of the installation progress, etc.
[0123] 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 by displaying the landing page of the first service card. The first control for guiding the user to restore the first application is also displayed on the landing page. Then, when the user clicks on the first control, the terminal device installs the first application.
[0124] It can be seen that through the method of restoring an application 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.
[0125] based on Figure 5 The method described, Figure 6 A schematic diagram of the interface of the recovery application provided by this application. Figure 6 , the terminal device displays Figure 6 (a) shows a desktop, 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 may 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 Figure 6 (b) The desktop shown; the user clicks Figure 6 (b) After the icon 605 on the desktop is clicked, the terminal device displays the landing page of the first service card and displays a recovery pop-up window 607 on the landing page, such as Figure 6 As shown in (c), the restore pop-up window 607 includes a restore 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.
[0126] Afterwards, the user clicks the restore control, and the terminal device restores the first application based on the installation package of the first application. Otherwise, if the user clicks the cancel control, the terminal device does not restore the first application. Figure 5 The description in the illustrated embodiment will not be repeated here.
[0127] 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 recovered.
[0128] It is to be noted here that Figure 6 The icons of the application programs included on the desktop shown are only examples and do not constitute limitations of the present application. Figure 6 The desktop shown may also include more application icons, or fewer application icons, or more service card icons.
[0129] Figure 7 This is a software structure diagram of a system for restoring an application program according to an embodiment of the present application. Figure 7 As shown, the system architecture includes a cloud side and a terminal device side.
[0130] The cloud side includes the APPGallery (AG) cloud, pre-installed cloud and big data platform. The terminal device side includes the service card module, monitoring module, recovery module and operating system (OS) module.
[0131] The OS module includes: providing Bundle manager service (Bundle manager service, BMS), package management service (package manager service PMS), capability management service (Abilty manager service, AMS) and ROM.
[0132] Specifically, in this embodiment, the BMS can provide the ability to obtain the profile information in the service card to the module, the PMS can provide the ability to install the application to be restored, and the ROM can provide the information required for the restore pop-up window of the application to be restored.
[0133] Next, combine Figure 7 The software structure diagram shown, combined with two detailed embodiments, takes the first application to be restored as a pre-installed application, and the terminal device installs it through the installation package stored in the ROM partition as an example to illustrate how the terminal device restores the first application through various modules.
[0134] Example 1
[0135] 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 the developer develops the first service card, he / she 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.
[0136] For example, the packaged first service card can be published to the pre-installed cloud by pre-installation publishing, or can also be published to the service center cloud by service center publishing. If the pre-installation publishing method is adopted, the first service card is pre-installed in the terminal device, and if the service center publishing method is adopted, the user can download the first service card from the service center cloud to the terminal device.
[0137] As an example, the content of the application package name and the signature certificate of the associated first application program written in the profile file of the first service card is as follows:
[0138] "Associated application information": {
[0139] "Application Package Name":"*****",
[0140] "Signature Certificate":"********",
[0141] }.
[0142] After the above prerequisites are met, if Figure 8 As shown, the method for restoring the preinstalled first application in this embodiment includes:
[0143] S801, in response to a user clicking on a first service card, a terminal device enters a landing page of the first service card.
[0144] 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 displayed. If the first configuration file includes the first service card and the landing page of the first service card is displayed, execute S803.
[0145] 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.
[0146] 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.
[0147] 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, therefore, if the terminal device does not consider the way in which the installation package is obtained 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 on the icon of the first service card, the terminal device determines that the first configuration file includes the first service card, and then executes S803, otherwise it determines not to install the first application.
[0148] 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.
[0149] 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 does not configure 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 used to guide 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 used to guide 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 used to guide 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.
[0150] S803: The monitoring module launches a recovery module based on the package name of the first service card and the application package name of the associated first application.
[0151] For example, the listening module starts the recovery module through StartService(bundleName, relatedBundleName).
[0152] S804, the recovery module determines whether the first application to be recovered has been uninstalled. If it has been uninstalled, execute S805.
[0153] In specific implementation, the terminal device may determine whether the first application to be restored is uninstalled by calling the PMS interface.
[0154] 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.
[0155] In one example, if Fig.10 As shown, 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 displaying the landing page of the first service card, pops up a recovery pop-up window for restoring the first application to guide the user to restore.
[0156] S806: In response to the user clicking on the control instructing the terminal device to restore the first application, the restoration module installs the first application.
[0157] Furthermore, if the recovery fails, information indicating the recovery failure is output.
[0158] For example, the restore module calls the installation capability of the PMS module to install the first application to perform the installation.
[0159] As an optional embodiment, the signature certificate of the associated application (for example, certificate 1) may also be configured in the profile file of the first service card. Accordingly, S807 needs to be executed before S805: verifying the legitimacy of the first application restored by the first service card, and then executing S805 when it is determined that the first application is legitimate.
[0160] Specifically, when the recovery module verifies the legitimacy of the first application to be recovered, Fig. 9 As shown, 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.
[0161] Example 2
[0162] 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.
[0163] Specifically, the preconditions of this embodiment are the same as those of the embodiment and will not be repeated here.
[0164] If the above prerequisites are met, Fig.11 As shown, the method includes:
[0165] S1101, in response to a user clicking on a first service card, the terminal device enters a landing page of the first service card.
[0166] 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.
[0167] S1103: The monitoring module launches a recovery module based on the package name of the first service card and the application package name of the associated first application.
[0168] S1104, the recovery module determines whether the first application to be recovered has been uninstalled, and if so, executes S1105.
[0169] S1105, verify the legitimacy of the first service card restoring the first application program. If the verification passes, execute S1106.
[0170] For details about each step in S1101 to S1105, please refer to Figure 8 The description of the relevant parts will not be repeated here.
[0171] 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.
[0172] During implementation, it 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 of exiting the recovery pop-up window, etc.; 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 according to 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 moment of clicking the icon of the first service card this time and the moment of clicking the icon of the first service card last time meets the preset requirements, for example, the user who uploads UDID ******* obtains the first duration of the UDID from the pre-installed cloud as 7 days, which means that when the time from the last time of entering the recovery pop-up window is greater than or equal to 7 days, and when all its recovery conditions are met, the user is allowed to pop up the recovery pop-up window again when clicking the icon of the first service card.
[0173] 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.
[0174] S1108, in response to the user clicking on the control instructing the terminal device to restore the first application, the restoration module installs the first application.
[0175] The detailed description of S1108 can refer to the description in S806, which will not be repeated here.
[0176] The above describes how to restore the uninstalled pre-installed APP through the service card of the terminal device.
[0177] 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.
[0178] 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.
[0179] 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.
[0180] Furthermore, a second control may be displayed, and in response to the user clicking on the second control, the first application is not restored.
[0181] Optionally, the terminal device may not display the first control and the second control on the landing page of the second application, but after determining that the first application is uninstalled, if the user clicks the icon of the second application, the second application is installed when the landing page of the second application is displayed. That is, in this way, 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; restoring the first application in response to the user clicking the icon of the second application.
[0182] 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.
[0183] Optionally, the first application is a preinstalled application.
[0184] 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 preinstalled 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.
[0185] Optionally, when the first application is restored 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.
[0186] Fig.12 A schematic diagram of the structure of an apparatus for restoring an application program provided in one embodiment of the present application. Fig.12 As shown, the device 1200 for restoring an application includes a display module 1201 and a processing module 1202 .
[0187] 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 displaying the first control in S503.
[0188] As an example, the processing module 1202 may be used to execute the operation of uninstalling the first application and the operation of installing the first application in S502.
[0189] As another example, the processing module 1202 may be used to perform the legality check in S806 .
[0190] Fig.13 A schematic diagram of the structure of an apparatus for restoring an application program provided by another embodiment of the present application. Fig.13 As shown, the processing device 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 is understood that the interface circuit 1302 may be a transceiver or an input-output interface. Optionally, the processing device 1300 may also include a memory 1303 for storing instructions executed by the processor 1301 or storing input data required by the processor 1301 to execute instructions or storing data generated after the processor 1301 executes instructions.
[0191] It is understood that the processor in the embodiments of the present application may be a central processing unit (CPU), or 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.
[0192] 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 can write information to the storage medium. Of course, the storage medium can also be a component 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.
[0193] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instruction is loaded and executed on a computer, the process or function described in the embodiment of the present application is executed 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 instruction may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer program or instruction may be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired or wireless means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server, data center, etc. that integrates one or more available media. The available medium may be a magnetic medium, for example, a floppy disk, a hard disk, a tape; it may also be an optical medium, for example, a digital video disc; it may also be a semiconductor medium, for example, a solid-state hard disk.
[0194] In the various embodiments of the present application, unless otherwise specified or provided for in any logical conflict, the terms and / or descriptions between the different embodiments are consistent and may be referenced to each other, and the technical features in the different embodiments may be combined to form new embodiments according to their inherent logical relationships.
[0195] It is understood that the various numbers involved in the embodiments of the present application are only for the convenience of description and are not used to limit the scope of the embodiments of the present application. The size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal 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 includes: 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
Cited By
Method for restoring application program, and related apparatus
EP4657244A1
