System upgrading method and related device

By clearing the package of OTA upgraded applications in the prefabricated and data partitions of electronic devices, the problem of not completely deleting the application after the OTA upgrade is solved, ensuring that the application icons are no longer displayed, improving the user experience.

CN120234020AActive Publication Date: 2025-07-01HONOR DEVICE CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202311795593.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-22
Publication Date
2025-07-01
Estimated Expiration
2043-12-22

AI Technical Summary

Technical Problem

After the electronic device deletes the application in the system software through the OTA upgrade package, some applications are not completely deleted, resulting in the desktop still displaying the undeleted application icon, affecting the user experience.

Method used

Install the application through the first OTA upgrade and replace the application package in the prefabricated partition. The second OTA upgrade package indicates to delete the application, clear the application package in the prefabricated and data partitions, ensuring that the application is no longer displayed in the desktop.

Benefits of technology

It realizes that electronic devices completely delete applications after OTA upgrade, avoiding the remnants of application icons, improving user experience, and reducing the possibility of subsequent misdeletion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120234020A_ABST
    Figure CN120234020A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a system upgrading method and a related device, and relates to the technical field of terminals. The method comprises the steps of installing a first application based on first OTA upgrading; displaying a desktop, wherein the desktop comprises an icon of the first application; in response to the operation of upgrading the first application, upgrading the first application; and based on the second OTA upgrade after the first application is upgraded, not displaying the first application in the desktop. In this way, the electronic equipment can delete the upgraded application in an OTA upgrading mode.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of terminal technologies, and in particular, to a system upgrade method and related devices. Background Art

[0002] An electronic device can update the system software by means of over-the-air technology (OTA) upgrade.

[0003] An electronic device can download an OTA upgrade package through a wireless communication method such as wireless fidelity (WIFI) or Bluetooth. The electronic device updates or deletes an application in the system software through the OTA upgrade package.

[0004] However, after the electronic device deletes an application in the system software through the OTA upgrade package, some applications are not deleted. Summary of the Invention

[0005] Embodiments of this application provide a system upgrade method and related devices, which are applied to the field of terminal technologies. When an electronic device deletes an application based on an OTA upgrade, it can delete the application program package of the application in the prefabricated partition and the application program package of the application in the data partition. In this way, after the OTA upgrade, there is no application program package of the application in the prefabricated partition and the data partition of the electronic device, and the electronic device does not display the application.

[0006] In a first aspect, an embodiment of this application proposes a system upgrade method. The method includes: installing a first application based on a first OTA upgrade. Displaying a desktop, where the desktop includes an icon of the first application. In response to an operation to upgrade the first application, upgrading the first application. Based on a second OTA upgrade after upgrading the first application, not displaying the first application on the desktop.

[0007] In the embodiments of this application, the first OTA upgrade is used to indicate the installation of the first application. Exemplarily, the first OTA upgrade package may include: the application program package of the first application. After the electronic device replaces the content in the prefabricated partition through the first OTA upgrade package, the prefabricated partition includes the application program package of the first application. The process of the electronic device replacing the content in the prefabricated partition through the first OTA upgrade package can be referred to the corresponding description below, and will not be elaborated here.

[0008] The first application is an application in the first OTA upgrade package. The first application can be any type of application, for example, a camera application, a video application, etc., which are not specifically limited here.

[0009] The icon of the first application can be an icon in any form. Upgrading the first application can be understood as updating the first application, or it can be understood as changing the version of the first application, etc. The operation of upgrading the first application can be the operation for the user to download and install the first application from the "App Store", or it can be the operation for the user to download and install the first application from a browser, a web page, etc., or it can be the operation for the user to click the "Update" control in the first application. No specific limitation is made here.

[0010] In some embodiments, upgrading the first application means storing the application package of the first application in the data partition. The application package of the first application in the data partition can be the same as or different from the application package of the first application stored in the prefabricated partition. No specific limitation is made here. The prefabricated partition and the data partition can refer to the corresponding descriptions above and will not be elaborated here.

[0011] In the embodiments of the present application, the second OTA upgrade is used to indicate deleting the first application. Exemplarily, the second OTA upgrade package may include: a configuration file, which is used to indicate deleting the first application. After the electronic device replaces the content in the prefabricated partition with the second OTA upgrade package, the prefabricated partition does not include the application package of the first application. The electronic device also deletes the application package of the first application in the data partition.

[0012] In this way, after the second OTA upgrade of the electronic device, there is no application package of this application in both the prefabricated partition and the data partition of the electronic device, and the first application will not be displayed on the electronic device.

[0013] In a possible implementation manner, the upgrade package of the second OTA upgrade includes: a configuration file, and the configuration file includes: an application identifier to be deleted, and the application identifier to be deleted includes: the first application identifier of the first application; based on the second OTA upgrade after upgrading the first application, not displaying the first application on the desktop includes: deleting the first application package of the application to be deleted based on the upgrade package of the second OTA upgrade, the first application package is located in the first partition, and the first partition is not readable and writable; deleting the second application package of the application to be deleted based on the first application identifier, the second application package is located in the second partition, and the second partition is readable and writable; not displaying the first application on the desktop.

[0014] The application identifier to be deleted can be the package name of the application to be deleted, the name of the application to be deleted, or the identifier of any application. No specific limitation is made here. The first partition can correspond to the prefabricated partition in the above text, and the second partition can correspond to the data partition in the above text. The application package can be an apk file. The first application can be any application. No specific limitation is made here.

[0015] In this way, the electronic device can delete the application package in the second partition, so that the electronic device does not include the application package of the first application and does not include the first application.

[0016] In a possible implementation, the second partition further includes a database, and the database is used to store the path information of the applications in the first partition; deleting the second application package of the application to be deleted based on the first application identifier includes: powering on after the second OTA upgrade, parsing the configuration file to obtain the identifier of the application to be deleted; deleting the first path information in the database and recording the first identifier corresponding to the first path information; the first path information is the path information in the database that does not correspond to an application package; when the first identifier includes the first application identifier, deleting the second application package.

[0017] The first identifier can be any identifier such as the application package name of the application corresponding to the first path information, the name of the application corresponding to the first path information, etc., and no specific limitation is made here.

[0018] The electronic device can confirm the application (application to be deleted) deleted by the OTA upgrade according to the path information in the database and delete the first path information. In this way, it is possible to reduce the situation that the first application is deleted again when powering on after reinstalling the first application after the second OTA upgrade. The user experience is improved. The scenario of accidental deletion during the next OTA upgrade after the subsequent user installation is reduced.

[0019] In some embodiments, the first identifier can be the application package name of the application corresponding to the first path information. In this way, it is convenient to search for the application package subsequently.

[0020] It can be understood that the application packages stored in the first partition and the second partition usually carry the application package name. Exemplarily, the name of the application package can be composed of: application package name, number of updates, version, etc. The name of the application package can be composed of: random value, application package name, number of updates, version, etc., and no specific limitation is made here.

[0021] In a possible implementation, when the first identifier includes the first application identifier, deleting the second application package includes: when the first identifier includes the first application identifier, querying whether the path of the application package corresponding to the first application is in the second partition; when the application package corresponding to the first application is in the second partition, deleting the second application package.

[0022] In the embodiments of the present application, it is possible to query whether there is an application package corresponding to the first application in the second partition through the application package name; it is also possible to query whether the path corresponding to the application package corresponding to the first application is in the second partition. Exemplarily, taking the second partition as the data partition as an example, querying whether the path corresponding to the application package corresponding to the first application is data / app.

[0023] In this way, the location of the application package of the application can be confirmed again, reducing the situation of accidental deletion caused by errors in matching the application package name, customization solutions, etc.

[0024] In a possible implementation manner, when the first identifier includes the first application identifier, deleting the second application package includes: when the first identifier includes the first application identifier, querying whether the application package of the first application exists in the first partition; when the first partition does not include the application package of the first application, deleting the second application package.

[0025] In the embodiments of the present application, it is possible to query whether the application package corresponding to the first application exists in the first partition through the application package name; it is also possible to query whether the path corresponding to the application package corresponding to the first application is within the first partition.

[0026] In this way, it is further verified that the application package of the first application in the first partition has been deleted, reducing the situation of accidental deletion caused by the failure to scan the application package of the first application in the first partition during startup.

[0027] In a possible implementation manner, the method further includes: when deleting the second application package, deleting the data information of the first application, where the data information includes one or more of the following: installation package information, permission information, or component information.

[0028] In this way, all the information of the first application is deleted, reducing the occupation of the memory of the electronic device.

[0029] In a possible implementation manner, the first partition includes one or more of the following: system partition, vendor partition, odm partition, cust partition, preavs partition, preload partition, version partition, product partition; the second partition includes: data partition.

[0030] Second aspect, an embodiment of the present application provides a system upgrade device, which may be an electronic device, or a chip or chip system within the electronic device. The system upgrade device may include a display unit and a processing unit. When the system upgrade device is an electronic device, the display unit may be a display screen. The display unit is configured to perform the display step, so that the electronic device implements a system upgrade method described in the first aspect or any one of the possible implementation manners of the first aspect. When the system upgrade device is an electronic device, the processing unit may be a processor. The system upgrade device may further include a storage unit, and the storage unit may be a memory. The storage unit is configured to store instructions, and the processing unit executes the instructions stored in the storage unit, so that the electronic device implements a system upgrade method described in the first aspect or any one of the possible implementation manners of the first aspect. When the system upgrade device is a chip or chip system within the electronic device, the processing unit may be a processor. The processing unit executes the instructions stored in the storage unit, so that the electronic device implements a system upgrade method described in the first aspect or any one of the possible implementation manners of the first aspect. The storage unit may be a storage unit within the chip (for example, registers, caches, etc.), or a storage unit outside the chip within the electronic device (for example, read-only memory, random access memory, etc.).

[0031] Exemplarily, the processing unit is configured to install a first application based on a first OTA upgrade; the display unit is configured to display a desktop, and the desktop includes an icon of the first application; the processing unit is further configured to upgrade the first application in response to an operation of upgrading the first application; the display unit is further configured to not display the first application in the desktop when the system upgrade device performs a second OTA upgrade based on the upgraded first application.

[0032] In a possible implementation manner, the processing unit is specifically configured to delete a first application program package of the application to be deleted from the upgrade package of the second OTA upgrade, where the first application program package is located in a first partition, and the first partition is not readable and writable; the processing unit is specifically configured to delete a second application program package of the application to be deleted based on the first application identifier, where the second application program package is located in a second partition, and the second partition is readable and writable;

[0033] In a possible implementation manner, the second partition further includes a database, and the database is used to store path information of applications in the first partition; the processing unit is specifically configured to, after powering on after the second OTA upgrade, parse a configuration file to obtain an application identifier to be deleted; the processing unit is specifically configured to delete first path information in the database and record a first identifier corresponding to the first path information; the first path information is path information in the database that does not correspond to an application program package; and when the first identifier includes the first application identifier, delete the second application program package.

[0034] In a possible implementation, the processing unit is specifically configured to query whether the path of the application package corresponding to the first application is in the second partition when the first identifier includes the first application identifier; the processing unit is specifically configured to delete the second application package when the application package corresponding to the first application is in the second partition.

[0035] In a possible implementation, the processing unit is specifically configured to query whether the application package of the first application exists in the first partition when the first identifier includes the first application identifier; the processing unit is specifically configured to delete the second application package when the first partition does not include the application package of the first application.

[0036] In a possible implementation, the processing unit is further configured to delete the data information of the first application when deleting the second application package, where the data information includes one or more of the following: installation package information, permission information, or component information.

[0037] In a possible implementation, the first partition includes one or more of the following: system partition, vendor partition, odm partition, cust partition, preavs partition, preload partition, version partition, product partition; the second partition includes: data partition.

[0038] In a third aspect, an embodiment of the present application provides an electronic device, including a processor and a memory, where the memory is used to store code instructions, and the processor is used to run the code instructions to execute the method described in the first aspect or any possible implementation manner of the first aspect.

[0039] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a computer program or instruction is stored. When the computer program or instruction runs on a computer, the computer is caused to execute the method described in the first aspect or any possible implementation manner of the first aspect.

[0040] In a fifth aspect, an embodiment of the present application provides a computer program product including a computer program. When the computer program runs on a computer, the computer is caused to execute the method described in the first aspect or any possible implementation manner of the first aspect.

[0041] In a sixth aspect, the present application provides a chip or a chip system, which includes at least one processor and a communication interface. The communication interface and the at least one processor are interconnected by a circuit. The at least one processor is configured to run a computer program or instruction to execute the method described in the first aspect or any possible implementation manner of the first aspect. Among them, the communication interface in the chip can be an input / output interface, a pin, a circuit, etc.

[0042] In a possible implementation, the chip or chip system described above in the present application further includes at least one memory, and instructions are stored in the at least one memory. The memory can be a storage unit inside the chip, such as a register, a cache, etc., or it can also be a storage unit of the chip (such as a read-only memory, a random access memory, etc.).

[0043] It should be understood that the second aspect to the sixth aspect of the present application correspond to the technical solutions of the first aspect of the present application, and the beneficial effects obtained by each aspect and the corresponding feasible implementation manners are similar, and will not be elaborated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 FIG. is a schematic diagram of an application scenario provided by an embodiment of the present application;

[0045] Figure 2 FIG. is a schematic diagram of the storage of an application before and after OTA upgrade in a possible design;

[0046] Figure 3 FIG. is a schematic diagram of the storage of an application before and after application upgrade provided by an embodiment of the present application;

[0047] Figure 4 FIG. is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application;

[0048] Figure 5 FIG. is a software structure block diagram of an electronic device provided by an embodiment of the present application;

[0049] Figure 6 FIG. is a schematic flowchart of a system upgrade method provided by an embodiment of the present application;

[0050] Figure 7 FIG. is a schematic flowchart of a process for deleting an application package in a data partition provided by an embodiment of the present application;

[0051] Figure 8 FIG. is a schematic diagram of the storage of an application before and after OTA upgrade provided by an embodiment of the present application;

[0052] Figure 9 FIG. is a schematic flowchart of a system upgrade method provided by an embodiment of the present application;

[0053] Figure 10 A storage schematic diagram of an application before and after the first OTA upgrade provided by an embodiment of this application;

[0054] Figure 11 A storage schematic diagram of an application during the execution of a system upgrade method provided by an embodiment of this application. Detailed implementation manners

[0055] To facilitate a clear description of the technical solutions of the embodiments of this application, the following briefly introduces some terms and technologies involved in the embodiments of this application:

[0056] 1. Over-the-air (OTA) upgrade: It is to download and install firmware upgrades through a wireless network. OTA upgrades can be applied to various electronic devices such as smartphones, smart TVs, and Internet of Things devices. Electronic devices can complete purposes such as function improvement, bug fixing, and software version upgrade through OTA upgrades to improve device performance and user experience.

[0057] 2. Read-only memory (ROM) upgrade: It refers to the iterative update of the version of the operating system of an electronic device, commonly known as the upgrade of a major version.

[0058] ROM refers to the firmware of the internal system of electronic devices such as mobile phones and computers, and it is the connection bridge between the software and hardware of the electronic device. ROM is used to store the firmware code of the electronic device, including the operating system, device driver programs, application programs, etc.

[0059] 3. Maintenance release (MR) upgrade: The update of the version released during the non-ROM upgrade stage, commonly known as the upgrade of a minor version. Compared with the ROM upgrade, the system changes less during the MR upgrade, and it is the optimization update of the version of the same operating system.

[0060] 4. Other terms

[0061] In the embodiments of this application, terms such as "first" and "second" are used to distinguish the same items or similar items with basically the same functions and roles. For example, the first chip and the second chip are only used to distinguish different chips, and do not limit their sequence. Those skilled in the art can understand that terms such as "first" and "second" do not limit the quantity and execution order, and terms such as "first" and "second" do not necessarily limit differences.

[0062] It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" are used to represent examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the present application should not be construed as being more preferred or having more advantages than other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present relevant concepts in a specific manner.

[0063] In the embodiments of the present application, "at least one" means one or more, and "a plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone, where A and B can be singular or plural. The character " / " generally represents that the associated objects before and after are in an "or" relationship. "At least one (item)" or similar expressions thereof refer to any combination of these items, including any combination of single items or plural items. For example, at least one (item) of a, b, or c can represent: a, b, c, a - b, a - c, b - c, or a - b - c, where a, b, c can be single or multiple.

[0064] 5. Electronic device

[0065] The electronic devices in the embodiments of this application may include handheld devices, vehicle-mounted devices, etc. with OTA upgrade functions. For example, some electronic devices are: mobile phones, tablet computers, handheld computers, laptop computers, mobile internet devices (MIDs), wearable devices (such as smart watches, smart glasses, smart bracelets, or smart jewelry, etc.), virtual reality (VR) devices, augmented reality (AR) devices, wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in remote medical surgery, wireless terminals in smart grid, wireless terminals in transportation safety, wireless terminals in smart city, wireless terminals in smart home, cellular phones, cordless phones, session initiation protocol (SIP) phones, wireless local loop (WLL) stations, personal digital assistants (PDAs), handheld devices with wireless communication functions, computing devices, or other processing devices connected to a wireless modem, vehicle-mounted devices, terminal devices in 5G networks, or terminal devices in future evolved public land mobile networks (PLMNs), etc. The embodiments of this application are not limited thereto.

[0066] In addition, in the embodiments of this application, the electronic device may also be a terminal device in an internet of things (IoT) system. The IoT is an important part of the future development of information technology. Its main technical feature is to connect items to the network through communication technology, thereby realizing an intelligent network of human-machine interconnection and thing-thing interconnection.

[0067] The electronic devices in the embodiments of this application may also be referred to as: terminal devices, user equipment (UE), mobile stations (MS), mobile terminals (MT), access terminals, user units, user stations, mobile stations, mobile platforms, remote stations, remote terminals, mobile devices, user terminals, terminals, wireless communication devices, user agents, or user devices, etc.

[0068] In the embodiments of the present application, an electronic device or each network device includes a hardware layer, an operating system layer running on the hardware layer, and an application layer running on the operating system layer. The hardware layer includes hardware such as a central processing unit (CPU), a memory management unit (MMU), and a memory (also referred to as main memory). The operating system can be any one or more computer operating systems that implement service processing through processes. For example, Linux operating system, Unix operating system, Android operating system, iOS operating system, or Windows operating system, etc. The application layer includes applications such as a browser, an address book, a word processing software, and an instant messaging software.

[0069] Exemplarily, Figure 1 FIG. is a schematic diagram of an application scenario provided by an embodiment of the present application. As Figure 1 shown, the application scenario includes: a server 101 and an electronic device 102. The server 101 can establish a communication connection with the electronic device 102.

[0070] The server 101 can be a single server or a server cluster composed of multiple servers. Specifically, the server 101 can be a server containing several storage upgrade packages, or a distributed server cluster containing distributed storage upgrade packages, packet configuration information, or upgrade policy information. For example, the distributed server can be a server cluster composed of multiple servers. The cluster can include cloud computer servers, Content Delivery Network (CDN) servers, Network Time Protocol (NTP), Domain Name System (DNS) servers, etc.; among them, each server in the server cluster coordinates with each other to jointly complete functions such as computing, data storage, and communication.

[0071] For the convenience of description, in the embodiments of the present application, a single server, a distributed server, and a server cluster are collectively referred to as a server. In some application scenarios, the server 101 can also be referred to as an OTA server, an OTA cloud, etc.

[0072] The electronic device 102 can be a device that can provide various service functions such as voice, video, shooting, and data connectivity to users by installing application software. The specific form of the electronic device can refer to the corresponding description above and will not be elaborated here.

[0073] In the embodiments of the present application, the server 101 is used to provide over-the-air (OTA) services. Specifically, the server 101 can provide an OTA upgrade package to the electronic device 102. Adaptively, the electronic device 102 can download the OTA upgrade package through a wireless network and perform system software updates through the OTA upgrade package. The wireless network can be Bluetooth, Wi-Fi, a mobile communication network, etc.

[0074] In a possible design, the electronic device can receive an OTA upgrade package from the server and achieve iterative updates of the system software through the OTA upgrade package. The updates can include: installation of applications and deletion of applications, etc.

[0075] However, in the case where the OTA upgrade package is used to indicate the deletion of an application, after the electronic device performs an OTA upgrade, some applications are not deleted.

[0076] Exemplarily, taking the OTA upgrade package used to indicate the deletion of application A and application B as an example. Before the OTA upgrade, the electronic device can display the icon of application A and the icon of application B on the desktop. After the OTA upgrade, the electronic device displays the icon of application A on the desktop and does not display the icon of application B.

[0077] Through the storage analysis of the application, it is found that after the OTA upgrade, the application program package of application A is stored in the data partition of the electronic device, and the electronic device displays the icon of application A. When the electronic device is upgraded through the OTA upgrade package, the content of the prefabricated partition is replaced in the form of a mirror, and the content in the data partition will not be modified.

[0078] It can be understood that the electronic device includes a prefabricated partition and a data partition. The prefabricated partition cannot be read and written, and can only be updated (upgraded) through the OTA upgrade method. The prefabricated partition can also be called a read-only partition, a system read-only partition, etc. Exemplarily, the prefabricated partition can include: a system partition, a product partition, a vendor partition, etc. The data partition can be read and written. The data partition can also be called an application partition, a data application partition, etc. There is no specific limitation here. The applications in the data partition can be updated through methods such as downloading through the "App Store" and downloading through the web page.

[0079] Exemplarily, taking the system partition and the data partition as an example, Figure 2 is a schematic diagram of the storage of an application before and after an OTA upgrade in a possible design. As Figure 2 shown in a of, before the OTA upgrade, the system partition 1a of the electronic device includes: the application program package of application A and the application program package of application B; the data partition 2a includes: the application program package of application A.

[0080] After the electronic device deletes Application A and Application B through OTA upgrade, the storage partitions of the electronic device can be as shown in Figure 2 shown in b. The system partition 1b of the electronic device does not include: the application program package of Application A and the application program package of Application B; the data partition 2b includes: the application program package of Application A.

[0081] It can be understood that in some scenarios, when the electronic device deletes the applications in the prefabricated partition during OTA upgrade, the electronic device may upgrade the applications in the prefabricated partition by means of "app store" download, web page download, etc. Therefore, the application program packages of the corresponding applications are stored in the data partition of the electronic device.

[0082] Exemplarily, taking the system partition and the data partition as an example, Figure 3 is a schematic diagram of the storage of applications before and after application upgrade provided by an embodiment of the present application. As shown in Figure 3 a, the system partition 1a of the electronic device includes: the application program package of Application 1, the application program package of Application 2, the application program package of Application 3, and the application program package of Application 4; the data partition 2a includes: the application program package of Application 5 and the application program package of Application 6.

[0083] After the electronic device updates Application 1 and Application 2 by means of "app store" download, web page download, etc., the storage partitions of the electronic device can be as shown in Figure 3 b. The system partition 1b of the electronic device includes: the application program package of Application 1, the application program package of Application 2, the application program package of Application 3, and the application program package of Application 4; the data partition 2b includes: the application program package of Application 1, the application program package of Application 2, the application program package of Application 5, and the application program package of Application 6.

[0084] In a possible design, if the electronic device deletes Application 1 and Application 2 through OTA upgrade after updating Application 1 and Application 2. The storage partitions of the electronic device can be as shown in Figure 3 c. The system partition 1c of the electronic device includes: the application program package of Application 3 and the application program package of Application 4; the data partition 2c includes: the application program package of Application 1, the application program package of Application 2, the application program package of Application 5, and the application program package of Application 6. After the OTA upgrade of the electronic device, the icons of Application 1 and Application 2 can be displayed.

[0085] In view of this, an embodiment of the present application provides a software upgrade method. When the electronic device deletes an application based on OTA upgrade, it can delete the application program package of the application in the prefabricated partition and the application program package of the application in the data partition. In this way, after OTA upgrade, there is no application program package of the application in the prefabricated partition and the data partition of the electronic device, and the electronic device will not display the application.

[0086] To better understand the embodiments of the present application, the structure of the electronic device in the embodiments of the present application will be introduced below.

[0087] Exemplarily, Figure 4 FIG. is a schematic structural diagram of an electronic device provided by an embodiment of the present application. As Figure 4 shown, the electronic device may include: the electronic device may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, 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 headphone interface 170D, a sensor module 180, a button 190, an indicator 192, a camera 193, and a display screen 194, etc.

[0088] Among them, the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc. In the embodiments of the present application, no specific limitation is made thereto.

[0089] It can be understood that the structure schematically shown in the embodiments of the present application does not constitute a specific limitation on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer components than those shown in the figure, or combine certain components, or split certain components, or have different component arrangements. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0090] The processor 110 may include one or more processing units. Among them, different processing units may be independent devices or integrated in one or more processors. A memory may also be provided in the processor 110 for storing instructions and data. For example, the processor 110 is used to implement the steps executed in the system upgrade method provided by the embodiments of the present application, and store instructions and data related to the system upgrade method.

[0091] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to implement the storage capacity expansion of the electronic device. The internal memory 121 can be used to store computer-executable program code, and the executable program code includes instructions. The internal memory 121 can include a program storage area and a data storage area. For example, the internal memory 121 can be used to store the executable program code in the system upgrade method.

[0092] In some embodiments, the internal memory 121 can include a read-only memory (ROM) and a random access memory (RAM). In practical applications, RAM can also be referred to as the "main memory". It can be read and written at any time, and the speed is very fast. It is usually used as a temporary data storage medium for the operating system or other running programs. When the power is turned off, RAM cannot retain data. That is, the data usually stored in RAM is the temporary data when the electronic device is running. ROM can also be referred to as "non-volatile memory". The data stored in it is generally written in advance before the whole machine is loaded, as well as the user data generated when the user uses the electronic device. During the operation of the whole machine, it can only be read, and cannot be rewritten quickly and conveniently like RAM. Therefore, the data stored in ROM is stable, and the data stored after power-off will not change. Based on the above characteristics, the system data of the operating system is usually stored in ROM to ensure the stability of the system data.

[0093] The software system of the electronic device can adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservices architecture, or a cloud architecture, etc., which will not be elaborated here.

[0094] The following combines Figure 5 to illustrate the software architecture of the electronic device. Exemplarily, Figure 5 is a software structure block diagram of an electronic device provided by an embodiment of the present application.

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

[0096] The application layer can include a series of application packages.

[0097] As Figure 5 shown, the application packages can include applications such as camera, calendar, phone, map, phone, music, settings, mailbox, video, and social.

[0098] The application framework layer provides application programming interfaces (APIs) and programming frameworks for the applications in the application layer. The application framework layer includes some predefined functions.

[0099] As Figure 5 shown, the application framework layer may include a window manager, a content provider, a resource manager, a view system, a notification manager, etc.

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

[0101] The content provider is used to store and obtain data, and enable these data to be accessible to applications. The data may include videos, images, audio, dialed and answered calls, browsing history and bookmarks, phone books, etc.

[0102] The view system includes visible controls, such as controls for displaying text, controls for displaying pictures, etc. The view system can be used to build applications. The display interface can be composed of one or more views. For example, a display interface including a short message notification icon may include a view for displaying text and a view for displaying pictures.

[0103] The resource manager provides various resources for applications, such as localized strings, icons, pictures, layout files, video files, and so on.

[0104] The package manager (package manager service, PMS) is used to manage all package information. For example, it manages application installation, uninstallation, update, and parses the configuration file corresponding to each application (such as android manifest.xml) to obtain the corresponding data information, etc.

[0105] In the embodiments of the present application, the package manager may delete the application to be deleted from the data partition after an OTA upgrade. The application to be deleted is the application indicated to be deleted by the configuration file in the OTA upgrade package.

[0106] Android runtime includes a core library and a virtual machine. Android runtime is responsible for the scheduling and management of the Android system.

[0107] The core library contains two parts: one part is the functional functions that need to be called by the Java language, and the other part is the core library of Android.

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

[0109] The system library can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing library (e.g., OpenGL ES), 2D graphics engine (e.g., SGL), etc.

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

[0111] The media library supports the playback and recording of various common audio and video formats, as well as static image files, etc. The media library can support multiple audio and video coding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0112] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing, etc.

[0113] The 2D graphics engine is a drawing engine for 2D drawing.

[0114] The kernel layer is the layer between the hardware and the software. The kernel layer at least includes a display driver, a camera driver, an audio driver, and a sensor driver.

[0115] It can be understood that the software architecture provided by the embodiments of the present application is only an example and does not constitute a limitation to the embodiments of the present application.

[0116] The following specifically describes the system upgrade method in the embodiments of the present application in combination with the above system structure:

[0117] After the OTA upgrade, when the electronic device is turned on, the package manager scans the pre-installed partition to obtain the configuration file in the OTA upgrade package and the configuration files of the application packages in each pre-installed partition; the package manager parses the configuration files of the application packages in the pre-installed partition to obtain the data information of the applications in the pre-installed partition and caches the data information in the memory. The data information may include one or more of the following contents: installation package information, permission information, component information, etc. The installation package information is the information of the installation package when the application is installed, the permission information is the information of the permissions when the application is used, and the component information is the information of the components involved in the operation of the application. Subsequently, the activity manager can start the corresponding application through the data information in the memory.

[0118] The electronic device traverses the data partition, deletes the application package of the application to be deleted from the data partition, and obtains the application packages in the data partition. The electronic device parses the application packages in the data partition and installs the applications in the data partition, and there is no application to be deleted in the applications in the data partition. The package manager caches all the data information of the configuration files in the application package into the memory.

[0119] The following uses specific embodiments to elaborate in detail on the technical solution of the present application and how the technical solution of the present application solves the above technical problems. These several specific embodiments below can be implemented independently or in combination with each other, and the same or similar concepts or processes may not be elaborated in some embodiments.

[0120] Exemplarily, Figure 6 It is a schematic flowchart of a system upgrade method provided by an embodiment of the present application. Taking the case where the prefabricated partition and the data partition of the electronic device both store the application package of Application A, and the OTA upgrade is used to indicate the deletion of Application A as an example.

[0121] As Figure 6 shown, the method includes:

[0122] S601. After the electronic device performs an OTA upgrade, it powers on.

[0123] In the embodiment of the present application, the OTA upgrade can be a ROM upgrade or an MR upgrade, and no specific limitation is made here. The OTA upgrade can refer to the corresponding description above and will not be elaborated here.

[0124] It can be understood that after the electronic device replaces the content in the prefabricated partition with the OTA upgrade package, the electronic device will restart to use the updated system.

[0125] Exemplarily, during the ROM upgrade, the OTA upgrade package includes: all the content of the prefabricated partition. The electronic device can replace the content in the prefabricated partition with the downloaded OTA upgrade package to implement the OTA upgrade. During the MR upgrade, the OTA upgrade package includes: the content that needs to be updated (upgraded, modified) in the prefabricated partition. The electronic device can generate a replacement file through the OTA upgrade package and replace the content in the prefabricated partition with the replacement file. The replacement file includes: all the content of the prefabricated partition.

[0126] S602. After the electronic device powers on, it parses the configuration file in the OTA upgrade package to obtain the application to be deleted.

[0127] Exemplarily, the configuration file may include: the application package names of one or more applications to be deleted.

[0128] The application package name of the application to be deleted can also be replaced with any identifier of the application to be deleted. For example, the name of the application to be deleted, etc., which is not specifically limited here.

[0129] Exemplarily, the package manager in the electronic device parses the configuration file to obtain the application package name of the application to be deleted.

[0130] S603. The electronic device scans the applications in the pre-installed partition.

[0131] The pre-installed partition can refer to the corresponding description above and will not be elaborated here. In the embodiments of the present application, the pre-installed partition may include one or more of the following: system partition, vendor partition, odm partition, cust partition, preavs partition, preload partition, version partition, product partition, etc. This is not specifically limited here.

[0132] In the embodiments of the present application, when the electronic device scans the applications in the pre-installed partition, it can obtain a list of applications in the pre-installed partition. The list includes: the application identifiers of the applications in the pre-installed partition. Exemplarily, taking the application identifier as the application package name, when the electronic device scans the applications in the pre-installed partition, it can obtain application list A, and application list A stores the application package names of the applications in the pre-installed partition.

[0133] Exemplarily, the electronic device can scan the pre-installed partition and parse the scanned application program packages to obtain the package information of the applications in the pre-installed partition. The package information includes: the data information of the application. Subsequently, the electronic device can display the icons of the applications and start the applications through the data information of the applications.

[0134] S604. The electronic device scans the path information corresponding to the pre-installed partition in the database, deletes the path information in the database that does not correspond to an application program package, and records the deleted applications. The deleted applications are the applications corresponding to the deleted path information.

[0135] Taking the database corresponding to the system partition as an example, the database can be data / system / packages.xml. The database stores the package information (package settings) of the applications in the system partition.

[0136] In some embodiments, the electronic device scans the path information stored in the database. If the application corresponding to the path information is not in application list A, the path information is deleted, and the application is recorded as a deleted application. If the application corresponding to the path information is in application list A, the path information is retained.

[0137] In some other embodiments, the electronic device scans the path information stored in the database to obtain an application list B. The application list B includes: the application identifier corresponding to the path information; the application list B is compared with the application list A, the path information corresponding to the applications not on the application list A is deleted, and the application is recorded as a deleted application.

[0138] The embodiments of the present application do not limit the specific process of S604.

[0139] In the embodiments of the present application, the database corresponding to the prefabricated partition is used to store the path information corresponding to the applications in the prefabricated partition. This database is stored in the data partition. This database can be read and written by the applications in the system partition, and cannot be read and written by the applications in the data partition. The electronic device can find the application program package of the application in the prefabricated partition through the path information corresponding to the application in the prefabricated partition to implement the startup of the application.

[0140] It can be understood that, usually, the path information corresponding to each application in the database includes one path. Exemplarily, taking the application 1 in the prefabricated partition as an example, the path included in the path information of the application 1 can be: / system / app / App1 / App1.apk.

[0141] In some scenarios, the path information corresponding to each application in the database includes multiple paths. When the path information corresponding to the application is multiple paths, only one path takes effect.

[0142] Exemplarily, after the electronic device upgrades the application in the prefabricated partition by means of downloading through the "application store", web page downloading, etc., the application corresponding to the prefabricated partition stores two pieces of path information in this database. One piece of path information corresponds to the prefabricated partition, and the other piece of path information corresponds to the data partition. Among them, the path information corresponding to the prefabricated partition is in a disabled state, and the path information corresponding to the data partition is in an effective state. The disabled state can be understood as prohibited from use, and the effective state can be understood as can be used.

[0143] Exemplarily, taking the application 1 in the prefabricated partition and the application 1 has been upgraded by means of downloading through the "application store", web page downloading, etc. as an example, the path information of the application 1 includes two paths: the first path is / system / app / App1 / App1.apk; the second path is: / data / app / com.android.app1 / base.apk. Among them, the first path can correspond to a false flag to indicate the disabled state; the second path can correspond to a true flag to indicate the effective state. The embodiments of the present application do not specifically limit the storage of the path information in the database and the identification of the disabled state and the effective state.

[0144] It can be understood that if the OTA upgrade is used to indicate the deletion of Application 1, when the OTA upgrade is performed, the application program package corresponding to the first path in the prefabricated partition is deleted. Adaptively, when the electronic device is powered on after the OTA upgrade, the applications in the scanned prefabricated partition do not include Application 1. When the electronic device executes S604 to scan the path information in the database, the scanned applications include: Application 1. By comparing the applications twice, it is obtained that the application program package corresponding to the first path does not exist, and this path is deleted, and Application 1 is recorded as a deleted application.

[0145] In some embodiments, the electronic device can record the deleted application by adding the application package name of the deleted application to the whitelist. The electronic device can also record the deleted application by adding identifiers and other means. Specific limitations are not made here.

[0146] In this way, the electronic device can determine the applications deleted by the OTA upgrade (deleted applications) through the database corresponding to the prefabricated partition, and further confirm the applications to be deleted in the configuration file through the applications deleted by the OTA upgrade, reducing the situation where the first application installed after the OTA upgrade is deleted, and reducing the repeated deletion of the applications to be deleted subsequently. It can reduce the situation where the user's installed applications are accidentally deleted during the next OTA upgrade, improving the user experience.

[0147] S605. The electronic device scans the applications in the installation data partition.

[0148] In some embodiments, when the electronic device scans the applications in the installation data partition, an application list C can be obtained, and the application list C stores the application identifiers of the applications in the data partition.

[0149] The data partition can refer to the corresponding description above. In the embodiments of the present application, the data partition may include: the data partition.

[0150] Exemplarily, the electronic device can scan the data partition and parse the scanned application program packages to obtain the data information of the applications. Subsequently, the electronic device can display the icons of the applications and start the applications through the data information of the applications.

[0151] S606. When the application is an application to be deleted and a deleted application, the electronic device deletes the application program package of the application in the data partition. In this way, the applications to be deleted can be verified through the deleted applications, reducing the repeated deletion of the applications to be deleted.

[0152] The electronic device can also delete the data information of the application in the data partition. The data information can refer to the corresponding description above and will not be elaborated here. In this way, the memory occupation of the electronic device can be reduced.

[0153] Exemplarily, the package manager in the electronic device deletes the application package of the application to be deleted from the data partition.

[0154] Exemplarily, as Figure 7 shown, S606 may include: S6061 - S6064.

[0155] Refer to Figure 7 , S6061. The electronic device obtains the application to be deleted based on the application to be deleted and the deleted application.

[0156] It can be understood that the electronic device can take the intersection of the application to be deleted in the configuration file and the application to be deleted recorded by the electronic device to obtain the application to be deleted.

[0157] Exemplarily, the electronic device can obtain the application package name of the application to be deleted based on the application package name of the application to be deleted and the application package name of the deleted application. Subsequently, the application package is queried and deleted based on the application package name of the application to be deleted.

[0158] The application to be deleted is the application to be deleted and is also the deleted application. Exemplarily, when the application package name of the application to be deleted is the same as the application package name of the deleted application, this application is the application to be deleted.

[0159] In some embodiments, the electronic device can take the intersection of the application to be deleted in the configuration file and the application to be deleted recorded to determine whether the deleted application is the application to be deleted.

[0160] Execute S6062 and / or S6063 for any application to be deleted.

[0161] S6062. Whether the application package of the application to be deleted is in the data partition.

[0162] Whether the path of the application package of the application to be deleted is within the data partition. For example, whether the path of the application package of the application to be deleted is under the data / app path.

[0163] In a possible implementation, the electronic device can query the path information from the database through the application package name of the application to be deleted. When the path information corresponding to this application indicates the data partition, the application package of the application to be deleted is in the data partition. When the path information corresponding to this application does not indicate the data partition, the application package of the application to be deleted is not in the data partition. In this way, in S6062, the electronic device can further verify the application to be deleted, reduce the situation of incorrect path information matching in the database, and reduce misdeletion.

[0164] It should be noted that some application packages in the prefabricated partition may be configured not to be installed. As a result, when the electronic device executes S602, it will not scan and install this application, and this application may be recorded as a deleted application. Exemplarily, a customization scheme file (for example, unstall - apk.xml) is set in the prefabricated partition, and the applications in this customization scheme file are configured not to be installed. In this way, in S6062, the electronic device can further verify the application to be deleted, reduce the situation of incorrect path information matching in the database, and reduce misdeletion.

[0165] Exemplarily, there may be some shared application packages in the prefabricated partition. Taking the shared application package A in the odm partition and the system partition as an example, after the application corresponding to the application package A is upgraded, there is an application package B corresponding to this application in the data partition. The system partition may be configured not to install the application package A, and the odm partition is configured to install the application package A. The path information of the application package corresponding to this application may not be completely in the data partition. In this way, in S6062, the electronic device can further verify the application to be deleted, reduce the situation of incorrect path information matching in the database, and reduce misdeletion.

[0166] In a possible implementation, the electronic device queries the data partition according to the application package name of the application to be deleted. When the application package of the application to be deleted is queried, the data partition stores the application package of the application to be deleted; when the application package of the application to be deleted is not queried, the data partition does not store the application package of the application to be deleted.

[0167] When the data partition stores the application package of the application to be deleted, the electronic device executes S6063. When the data partition does not store the application package of the application to be deleted, the electronic device can do nothing.

[0168] In this way, the electronic device can further verify the application to be deleted, reduce the situation of incorrect path information matching in the database, and reduce misdeletion.

[0169] S6063: Whether the application package of the application to be deleted exists in the prefabricated partition.

[0170] Whether the path of the application package of the application to be deleted is in the prefabricated partition.

[0171] In a possible implementation, the electronic device can query the database according to the application package name of the application to be deleted. When the path information of the application to be deleted queried does not indicate the prefabricated partition, the prefabricated partition does not store the application package of the application to be deleted; when the path information of the application to be deleted queried indicates the prefabricated partition, the prefabricated partition stores the application package of the application to be deleted.

[0172] In this way, reducing the situation where the application packages in the pre-installed partition are not scanned can reduce the misdeletion of re-installed pre-installed uninstallable applications.

[0173] In some embodiments, filter identifiers are set for the application packages in some pre-installed partitions, so that the electronic device does not scan and install the application when executing S602. And there is path information corresponding to the application in the database, so that the electronic device records the application as a deleted application in S603.

[0174] Exemplarily, after the electronic device uninstalls a pre-installed uninstallable application, the electronic device adds a filter identifier to the application package of the application, so that the electronic device does not scan the application package corresponding to the application when starting up. In addition, the electronic device also stores the path information of the application package of the application in a recovery file. Subsequently, the application can be restored through the recovery file. Adaptively, the electronic device can query the recovery file according to the application package name of the application to be deleted. When it is queried that the path information of the application to be deleted does not exist in the recovery file, the pre-installed partition does not store the application package of the application to be deleted; when it is queried that the path information of the application to be deleted exists in the recovery file, the pre-installed partition stores the application package of the application to be deleted.

[0175] It should be noted that the applications in the pre-installed partition can be divided into two types. One is pre-installed uninstallable (for example, video applications, "WeChat applications", etc.), and the other is pre-installed non-uninstallable (for example, settings applications, calendar applications, or phone applications, etc.).

[0176] In this way, reducing the situation where the application packages in the pre-installed partition are not scanned can reduce the misdeletion of re-installed pre-installed uninstallable applications.

[0177] In one possible implementation, the electronic device can query the pre-installed partition according to the application package name of the application to be deleted. When the application package of the application to be deleted is queried, the pre-installed partition stores the application package of the application to be deleted; when the application package of the application to be deleted is not queried, the pre-installed partition does not store the application package of the application to be deleted.

[0178] In the case where the application package of the application to be deleted does not exist in the pre-installed partition, the electronic device executes S6064. In the case where the pre-installed partition does not store the application package of the application to be deleted, the electronic device can do nothing.

[0179] It can be understood that some applications in the prefabricated partition may be set with filtering identifiers, so that the application packages of these applications will not be scanned and installed by the electronic device. As a result, when performing the above S604, the application packages of these applications cannot be queried, and the applications set with filtering identifiers are recorded as deleted applications. Exemplarily, the applications set with filtering identifiers can be prefabricated uninstallable applications that have been uninstalled.

[0180] In this way, the electronic device can further verify the applications to be deleted, reduce the situation where application packages in the prefabricated partition are not scanned, and reduce misdeletion.

[0181] In some embodiments, the electronic device may not execute S604. Adaptively, in S606, the electronic device deletes the application packages of the applications to be deleted in the data partition.

[0182] S6064: The electronic device deletes the application packages of the applications to be deleted, as well as the data information of the applications to be deleted.

[0183] The data information may include: installation package information of the application, permission information of the application, component information of the application, etc. There is no specific limitation here.

[0184] In summary, when the electronic device deletes an application based on OTA upgrade, it can delete the application package of the application in the prefabricated partition and the application package of the application in the data partition. In this way, after OTA upgrade, there is no application package of this application in both the prefabricated partition and the data partition of the electronic device, and the electronic device will not display this application.

[0185] Exemplarily, taking the system partition and the data partition as an example, Figure 8 is a schematic diagram of the storage of applications before and after OTA upgrade provided by an embodiment of the present application. After the electronic device updates applications 1 and 2 by means of downloading through the "App Store", web page downloading, etc., the storage partition of the electronic device can be as Figure 8 shown in a. In the system partition 1a of the electronic device, it includes: the application package of application 1, the application package of application 2, the application package of application 3, and the application package of application 4; in the data partition 2a, it includes: the application package of application 1, the application package of application 2, the application package of application 5, and the application package of application 6.

[0186] In the embodiment of the present application, after the electronic device updates applications 1 and 2, it deletes applications 1 and 2 through OTA upgrade. The storage partition of the electronic device can be as Figure 8As shown in b. The system partition 1b of the electronic device includes: the application program package of Application 3 and the application program package of Application 4; the data partition 2b includes: the application program package of Application 1, the application program package of Application 2, the application program package of Application 5, and the application program package of Application 6. After the OTA upgrade of the electronic device, the icons of Application 1 and Application 2 can be displayed.

[0187] Exemplarily, Figure 9 is a schematic diagram of a system upgrade process provided by an embodiment of the present application. As Figure 9 shown, the method includes:

[0188] S901. Install the first application based on the first OTA upgrade.

[0189] In the embodiment of the present application, the first OTA upgrade is used to indicate the installation of the first application.

[0190] Exemplarily, the first OTA upgrade package may include: the application program package of the first application. After the electronic device replaces the content in the prefabricated partition through the first OTA upgrade package, the prefabricated partition includes the application program package of the first application. The process of the electronic device replacing the content in the prefabricated partition through the first OTA upgrade package can refer to the corresponding description above and will not be elaborated here.

[0191] The first application is the application in the first OTA upgrade package. The first application can be any type of application, for example, a camera application, a video application, etc., and no specific limitation is made here.

[0192] S902. Display the desktop, and the desktop includes the icon of the first application.

[0193] The icon of the first application can be in any form. Exemplarily, the icon of the first application can be a picture, can be text, or can be composed of both a picture and text. The embodiment of the present application does not make specific limitations on the composition, shape, etc. of the icon of the first application.

[0194] Exemplarily, Figure 10 is a schematic diagram of the desktop of the electronic device before and after the first OTA upgrade provided by an embodiment of the present application.

[0195] Before the first OTA upgrade, the desktop of the electronic device can be as Figure 10 shown in a, and this desktop includes: the current time, the battery level, the icon of Application A, the icon of Application B, and does not include the icon of the first application.

[0196] After the first OTA upgrade, the desktop of the electronic device can be as Figure 10 shown in b, and this desktop includes: the current time, the battery level, the icon of Application A, the icon of Application B, and the icon of the first application.

[0197] S903. In response to an operation to upgrade a first application, upgrade the first application.

[0198] Upgrading the first application can be understood as updating the first application, or can be understood as changing the version of the first application, etc.

[0199] The operation to upgrade the first application can be an operation for the user to download and install the first application from the "App Store", or can be an operation for the user to download and install the first application from a browser, a web page, etc., or can be an operation for the user to click the "Update" control in the first application. No specific limitation is made here.

[0200] After the first application is upgraded, the icon of the first application displayed on the desktop may change, or may not change. No limitation is made here. Exemplarily, taking the case where the icon of the first application changes after the first application is upgraded as an example, the icon of the first application can be changed from Figure 10 the square shown in b in Figure 10 to the circle shown in c in

[0201] In some embodiments, upgrading the first application means storing the application package of the first application in the data partition. The application package of the first application in the data partition can be the same as or different from the application package of the first application stored in the prefabricated partition. No specific limitation is made here. The prefabricated partition and the data partition can refer to the corresponding descriptions above and will not be elaborated here.

[0202] S904. Based on a second OTA upgrade after upgrading the first application, do not display the first application on the desktop.

[0203] In the embodiments of the present application, the second OTA upgrade is used to indicate deleting the first application. Exemplarily, due to reasons such as the expiration of the usage period of the first application or replacing an application of the same type as the first application, the first application is uninstalled through the OTA upgrade. No specific limitation is made here.

[0204] Exemplarily, the second OTA upgrade package can include: a configuration file, which is used to indicate deleting the first application. After the electronic device replaces the content in the prefabricated partition through the second OTA upgrade package, the prefabricated partition does not include the application package of the first application. The electronic device also deletes the application package of the first application in the data partition.

[0205] In this way, the electronic device will not display the first application after the second OTA upgrade.

[0206] Exemplarily, taking the system partition and the data partition as an example, Figure 11 is a schematic diagram of the storage partition before and after an OTA upgrade provided by the embodiments of the present application. As Figure 11As shown in a of , the system partition 1a of the electronic device includes: the application program packages of Application 1, Application 2, Application 3, and Application 4; the data partition 2a includes: the application program packages of Application 5 and Application 6.

[0207] After the electronic device updates Application 1 and Application 2 by means such as downloading through the "App Store" or web downloading, the storage partition of the electronic device can be as Figure 11 shown in b of . The system partition 1b of the electronic device includes: the application program packages of Application 1, Application 2, Application 3, and Application 4; the data partition 2b includes: the application program packages of Application 1, Application 2, Application 5, and Application 6.

[0208] In the embodiment of the present application, after Application 1 and Application 2 are updated, the electronic device deletes Application 1 and Application 2 through OTA upgrade. The storage partition of the electronic device can be as Figure 11 shown in c of . The system partition 1c of the electronic device includes: the application program packages of Application 3 and Application 4; the data partition 2c includes: the application program packages of Application 1, Application 2, Application 5, and Application 6. After the OTA upgrade of the electronic device, the icons of Application 1 and Application 2 can be displayed.

[0209] In a possible implementation manner, the upgrade package of the second OTA upgrade includes: a configuration file, and the configuration file includes: the application identifier to be deleted, and the application identifier to be deleted includes: the first application identifier of the first application; based on the second OTA upgrade after upgrading the first application, not displaying the first application on the desktop includes: deleting the first application program package of the application to be deleted based on the upgrade package of the second OTA upgrade, the first application program package is located in the first partition, and the first partition is not readable and writable; deleting the second application program package of the application to be deleted based on the first application identifier, the second application program package is located in the second partition, and the second partition is readable and writable; not displaying the first application on the desktop.

[0210] The application identifier to be deleted can be the package name of the application to be deleted, the name of the application to be deleted, or the identifier of any application, and no specific limitation is made here. The first partition can correspond to the prefabricated partition in the above text, and the second partition can correspond to the data partition in the above text. The application program package can be an apk file. The first application can be any application, and no specific limitation is made here.

[0211] In this way, the electronic device can delete the application program package in the second partition, so that the electronic device does not include the application program package of the first application and does not include the first application.

[0212] In a possible implementation, the second partition further includes a database, and the data path is used to store the path information of the applications in the first partition; deleting the second application package of the application to be deleted based on the first application identifier includes: powering on after the second OTA upgrade, parsing the configuration file to obtain the identifier of the application to be deleted; deleting the first path information in the database, and recording the first identifier corresponding to the first path information; the first path information is the path information in the database that does not correspond to an application package; when the first identifier includes the first application identifier, deleting the second application package.

[0213] The first identifier may be any identifier such as the application package name of the application corresponding to the first path information, the name of the application corresponding to the first path information, etc., and no specific limitation is made here.

[0214] The electronic device can confirm the application (application to be deleted) deleted by the OTA upgrade according to the path information in the database, and delete the first path information. In this way, it is possible to reduce the situation that the first application is deleted again when powering on again after reinstalling the first application after the second OTA upgrade. The user experience is improved. The scenario of accidental deletion during the next OTA upgrade after the subsequent user installation is reduced.

[0215] In some embodiments, the first identifier may be the application package name of the application corresponding to the first path information. In this way, it is convenient to search for the application package subsequently.

[0216] It can be understood that the application packages stored in the first partition and the second partition usually carry the application package name. Exemplarily, the name of the application package may be composed of: application package name, update times, version, etc. The name of the application package may be composed of: random value, application package name, update times, version, etc., and no specific limitation is made here.

[0217] In a possible implementation, when the first identifier includes the first application identifier, deleting the second application package includes: when the first identifier includes the first application identifier, querying whether the path of the application package corresponding to the first application is in the second partition; when the application package corresponding to the first application is in the second partition, deleting the second application package.

[0218] In the embodiments of the present application, it is possible to query whether there is an application package corresponding to the first application in the second partition through the application package name; it is also possible to query whether the path corresponding to the application package corresponding to the first application is in the second partition. Exemplarily, taking the second partition as the data partition as an example, querying whether the path corresponding to the application package corresponding to the first application is data / app.

[0219] In this way, it is possible to confirm the location of the application package of the application again, and reduce the situation of accidental deletion caused by incorrect application package name matching, customization solutions, etc.

[0220] In a possible implementation, when the first identifier includes the first application identifier, deleting the second application package includes: when the first identifier includes the first application identifier, querying whether the application package of the first application exists in the first partition; when the first partition does not include the application package of the first application, deleting the second application package.

[0221] In the embodiments of the present application, it is possible to query whether the application package corresponding to the first application exists in the first partition through the application package name; it is also possible to query whether the path corresponding to the application package of the first application is within the first partition.

[0222] In this way, it is further verified that the application package of the first application in the first partition has been deleted, reducing the situation of incorrect deletion caused by the failure to scan the application package of the first application in the first partition during startup.

[0223] In a possible implementation, the method further includes: when deleting the second application package, deleting the data information of the first application, and the data information includes one or more of the following: installation package information, permission information, or component information.

[0224] In this way, all information of the first application is deleted, reducing the occupation of the memory of the electronic device.

[0225] In a possible implementation, the first partition includes one or more of the following: system partition, vendor partition, odm partition, cust partition, preavs partition, preload partition, version partition, product partition; the second partition includes: data partition.

[0226] It should be noted that the module names involved in the embodiments of the present application can all be defined as other names, as long as the functions of each module can be realized, and no specific restrictions are imposed on the module names.

[0227] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in the embodiments of the present application are all information and data authorized by the user or fully authorized by all parties, and the collection, use, and processing of relevant data need to comply with the relevant laws, regulations, and standards of relevant countries and regions, and corresponding operation entrances are provided for users to choose to authorize or refuse.

[0228] The system upgrade method of the embodiments of the present application has been described above. Next, the device for executing the above method provided by the embodiments of the present application will be described. Those skilled in the art can understand that the method and the device can be combined and referenced with each other, and the relevant devices provided by the embodiments of the present application can execute the steps in the above method.

[0229] The system upgrade method provided by the embodiments of the present application can be applied to electronic devices with OTA upgrade functions. The electronic devices include terminal devices. The specific device forms of the terminal devices and the like can refer to the above relevant descriptions and will not be elaborated here.

[0230] The embodiments of the present application provide a terminal device, which includes: a processor and a memory; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, so that the terminal device executes the above method.

[0231] The embodiments of the present application provide a chip. The chip includes a processor, and the processor is used to call a computer program in the memory to execute the technical solutions in the above embodiments. Its implementation principle and technical effects are similar to those of the above relevant embodiments and will not be elaborated here.

[0232] The embodiments of the present application also provide a computer-readable storage medium. The computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the above method is implemented. The methods described in the above embodiments can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. If implemented in software, the functions can be stored as one or more instructions or codes on a computer-readable medium or transmitted on a computer-readable medium. The computer-readable medium can include a computer storage medium and a communication medium, and can also include any medium that can transmit a computer program from one place to another. The storage medium can be any target medium accessible by a computer.

[0233] In one possible implementation, the computer-readable medium may include RAM, ROM, compact disc read-only memory (CD-ROM), or other optical disc storage, magnetic disk storage, or any other medium targeted at carrying or storing the required program code in the form of instructions or data structures and accessible by a computer. Moreover, any connection is properly termed a computer-readable medium. For example, if software is transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, Digital Subscriber Line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of the medium. As used herein, disk and optical disc include optical disc, laser disc, optical disc, Digital Versatile Disc (DVD), floppy disk, and Blu-ray disc, where disks typically reproduce data magnetically, while optical discs utilize lasers to optically reproduce data. Combinations of the above should also be included within the scope of computer-readable media.

[0234] An embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is run, it causes the computer to execute the above method.

[0235] Embodiments of the present application are described with reference to the flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present application. It should be understood that each flow and / or block in the flowchart and / or block diagram, as well as the combination of flows and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to the processing unit of a general-purpose computer, special-purpose computer, embedded processor, or other programmable device to generate a machine, such that the instructions executed by the processing unit of the computer or other programmable data processing device generate means for implementing the functions specified in one Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.

[0236] The above specific implementation manners further elaborate on the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above are only specific implementation manners of the present invention and are not used to limit the protection scope of the present invention. Any modifications, equivalent replacements, improvements, etc. made on the basis of the technical solution of the present invention should be included within the protection scope of the present invention.

Claims

1. A system upgrade method, characterized in that, Including: Install the first application based on the first OTA upgrade; Display the desktop, where the desktop includes an icon of the first application; In response to an operation to upgrade the first application, upgrade the first application; Based on the second OTA upgrade after upgrading the first application, the first application is not displayed on the desktop.

2. The method according to claim 1, wherein The upgrade package of the second OTA upgrade includes: a configuration file, and the configuration file includes: an application identifier to be deleted, and the application identifier to be deleted includes: a first application identifier of the first application; The step that based on the second OTA upgrade after upgrading the first application, the first application is not displayed on the desktop includes: Delete the first application program package of the application to be deleted based on the upgrade package of the second OTA upgrade, where the first application program package is located in a first partition, and the first partition is not readable and writable; Delete the second application program package of the application to be deleted based on the first application identifier, where the second application program package is located in a second partition, and the second partition is readable and writable; Do not display the first application on the desktop.

3. The method according to claim 2, wherein The second partition further includes a database for storing path information of applications in the first partition; The step that based on the first application identifier, delete the second application program package of the application to be deleted includes: after powering on after the second OTA upgrade, parse the configuration file to obtain the application identifier to be deleted; Delete the first path information in the database and record the first identifier corresponding to the first path information; the first path information is the path information in the database that does not correspond to an application program package; Delete the second application program package when the first identifier includes the first application identifier.

4. The method according to claim 3, characterized in that, The step that when the first identifier includes the first application identifier, delete the second application program package includes: When the first identifier includes the first application identifier, query whether the path of the application program package corresponding to the first application is in the second partition; When the application program package corresponding to the first application is in the second partition, delete the second application program package.

5. The method according to claim 3 or 4, characterized in that, The step that when the first identifier includes the first application identifier, delete the second application program package includes: When the first identifier includes the first application identifier, query whether the application program package of the first application exists in the first partition; When the first partition does not include the application program package of the first application, delete the second application program package.

6. The method according to any one of claims 2-5, characterized in that, The method further includes: When deleting the second application program package, delete the data information of the first application, where the data information includes one or more of the following: installation package information, permission information, or component information.

7. The method according to any one of claims 2-6, characterized in that, The first partition includes one or more of the following: system partition, chip vendor partition, manufacturer customized odm partition, customized cust partition, preavs partition, pre-installed preload partition, version partition, product partition; The second partition includes: a data partition.

8. An electronic device, characterized in that, Including: A processor and a memory; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, such that the electronic device executes the method according to any one of claims 1-7.

9. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the method according to any one of claims 1-7.

10. A chip system, characterized in that, Comprising at least one processor and a communication interface, the communication interface and the at least one processor are interconnected by a line, and the at least one processor is configured to run a computer program or instructions to execute the method according to any one of claims 1-7.

11. A computer program product, characterized in that, Comprising a computer program, when the computer program is run, it causes a computer to execute the method according to any one of claims 1-7.

Citation Information

Patent Citations

  • Method and system for OTA (Over-the-Air Technology) upgrade

    CN103559065A

  • User terminal upgrading method and user terminal

    CN105700903A

  • Application processing method and device

    CN106569851A

  • Mobile terminal control method and mobile terminal

    CN109408071A

  • Application program installation method and electronic equipment

    CN110990032A