Upgrade installation method and device, system, electronic device and storage medium thereof

By obtaining and using differential packages and current signature information to generate upgrade signature installation packages during the upgrade and installation of the signature application, the problem of failed sign verification during the upgrade installation of the signature application is solved, and an efficient upgrade installation without the user manually deleting the old version of signature information is achieved.

CN115883359BActive Publication Date: 2025-05-23SHENZHEN ZOLON TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211324179.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-26
Publication Date
2025-05-23
Estimated Expiration
2042-10-26

AI Technical Summary

Technical Problem

During the upgrade and installation of a signed application, if there are both the new version signature information of the new version signature application to be installed and the old version signature information of the installed old version signature application, the signature application fails to verify the signature application, resulting in the upgrade installation failure. The user needs to manually delete the installed signed application to delete the old version signature information, which reduces the efficiency of upgrading and installation.

Method used

By obtaining the installation instructions for the signature application, when it is determined to be the upgrade installation instructions, an upgrade download request is sent to the service platform, obtaining the differential package and current signature information of the second version of the signature application, generating the upgrade signature installation package, and upgrading and installation after the signature verification is successful, so as to upgrade the signature application from the first version to the second version.

Benefits of technology

The user does not need to manually delete the old version of the signature information, and directly complete the upgrade and installation of the signature application, improving the efficiency of the upgrade and installation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115883359B_ABST
    Figure CN115883359B_ABST
Patent Text Reader

Abstract

The present application discloses an upgrade installation method and its device, system, electronic device and storage medium. The upgrade installation method includes obtaining the installation instruction of the signature application; when it is determined that the installation instruction is an upgrade installation instruction, sending an upgrade download request to the service platform, so that the service platform sends the differential package corresponding to the second version of the signature application and the current signature information to the terminal device; obtaining the initial signature installation package of the first version of the signature application; restoring the initial signature installation package to obtain the initial installation package; generating the corresponding upgrade signature installation package according to the initial installation package, the differential package and the current signature information; when it is determined that the upgrade signature installation package is successfully verified, upgrading and installing the signature application according to the upgrade signature installation package, so that the signature application is upgraded from the first version to the second version. This method realizes the upgrade and installation of the signature application according to the initial installation package, the differential package and the current signature information, and improves the upgrade and installation efficiency of the signature application.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of data processing technology, and in particular relates to an upgrade installation method and its device, system, electronic device and storage medium. Background Art

[0002] With the rapid development of the Internet and mobile terminal technology, user needs are constantly increasing. In order to meet the diversity of user needs, many user-friendly applications have emerged, such as various signature applications. During the initial installation or upgrade installation of the signature application, the signature application can only be initially installed or upgraded when the signature information of the signature application is successfully verified.

[0003] However, during the upgrade and installation of the signed application, if there is both the new version of the signature information of the new version of the signed application to be installed and the old version of the signature information of the old version of the signed application that has been installed, the signature verification of the signed application fails, and the upgrade and installation of the signed application fails. To successfully upgrade and install the signed application, the user needs to manually delete the installed signed application to delete the old version of the signature information, resulting in low efficiency in the upgrade and installation of the signed application. Summary of the invention

[0004] In view of this, the embodiments of the present application provide an upgrade installation method and its device, system, electronic device and storage medium to overcome or at least partially solve the above problems of the prior art.

[0005] In a first aspect, an embodiment of the present application provides an upgrade installation method, which is applied to a terminal device, and the upgrade installation method includes: obtaining an installation instruction of a signed application; when it is determined that the installation instruction is an upgrade installation instruction, sending an upgrade download request to a service platform, so that the service platform sends a differential package corresponding to the second version of the signed application and current signature information to the terminal device according to the upgrade download request, the differential package is a difference data packet between the current installation package corresponding to the second version of the signed application and the initial installation package corresponding to the first version of the signed application installed on the terminal device, and the first version is lower than the second version; obtaining an initial signed installation package of the first version of the signed application, the initial signed installation package including initial signature information and the initial installation package; restoring the initial signed installation package to obtain the initial installation package; generating a corresponding upgrade signed installation package according to the initial installation package, the differential package and the current signature information; when it is determined that the upgrade signed installation package is successfully verified, upgrading and installing the signed application according to the upgrade signed installation package, so that the signed application is upgraded from the first version to the second version.

[0006] In a second aspect, an embodiment of the present application provides an upgrade installation method, which is applied to a service platform, and the upgrade installation method includes: obtaining an installation instruction of a signed application; when it is determined that the installation instruction is an upgrade installation instruction, sending a differential package corresponding to the second version of the signed application and the current signature information to a terminal device, so that the terminal device generates a corresponding upgrade signature installation package based on the initial installation package, the differential package and the current signature information, and when the upgrade signature installation package is successfully verified, the signed application is upgraded and installed according to the upgrade signature installation package, so that the signed application is upgraded from the first version to the second version, the initial installation package is obtained by restoring the initial signature installation package of the first version of the signed application installed by the terminal device, the initial signature installation package includes the initial installation package and the initial signature information, the first version is lower than the second version, and the differential package is a difference data packet between the current installation package corresponding to the second version of the signed application and the initial installation package.

[0007] In the third aspect, an embodiment of the present application provides an upgrade and installation device, which is applied to a terminal device, and the upgrade and installation device includes: a first instruction acquisition module, an upgrade download request sending module, an installation package acquisition module, a restore module, an upgrade installation package generation module and an upgrade installation module. The first instruction acquisition module is used to obtain the installation instruction of the signed application; the upgrade download request sending module is used to send the upgrade download request to the service platform when it is determined that the installation instruction is an upgrade installation instruction, so that the service platform sends the differential package corresponding to the second version of the signed application and the current signature information to the terminal device according to the upgrade download request, the differential package is the difference data packet between the current installation package corresponding to the second version of the signed application and the initial installation package corresponding to the first version of the signed application installed on the terminal device, and the first version is lower than the second version; the installation package acquisition module is used to obtain the initial signed installation package of the first version of the signed application, the initial signed installation package includes the initial signature information and the initial installation package; the restoration module is used to restore the initial signed installation package to obtain the initial installation package; the upgrade installation package generation module is used to generate the corresponding upgrade signed installation package according to the initial installation package, the differential package and the current signature information; the upgrade installation module is used to upgrade and install the signed application according to the upgrade signed installation package when it is determined that the upgrade signed installation package is successfully verified, so that the signed application is upgraded from the first version to the second version.

[0008] In a fourth aspect, an embodiment of the present application provides an upgrade installation device, which is applied to a service platform, and the upgrade installation device includes: a second instruction acquisition module and an information sending module. The second instruction acquisition module is used to obtain the installation instruction of the signed application; the information sending module is used to send the differential package corresponding to the second version of the signed application and the current signature information to the terminal device when it is determined that the installation instruction is an upgrade installation instruction, so that the terminal device generates a corresponding upgrade signature installation package based on the initial installation package, the differential package and the current signature information, and when the upgrade signature installation package is successfully verified, the signed application is upgraded and installed according to the upgrade signature installation package, so that the signed application is upgraded from the first version to the second version, the initial installation package is obtained by restoring the initial signature installation package of the first version of the signed application installed by the terminal device, the initial signature installation package includes the initial installation package and the initial signature information, the first version is lower than the second version, and the differential package is the difference data packet between the current installation package corresponding to the second version of the signed application and the initial installation package.

[0009] In the fifth aspect, an embodiment of the present application provides an upgrade and installation system, including a terminal device and a service platform, wherein the terminal device is connected to the service platform; the terminal device is used to execute the upgrade and installation method provided in the first aspect above; the service platform is used to execute the upgrade and installation method provided in the second aspect above.

[0010] In a sixth aspect, an embodiment of the present application provides an electronic device comprising a memory; one or more processors coupled to the memory; and one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more applications are configured to execute the upgrade and installation method provided in the first aspect or the second aspect above.

[0011] In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium, in which program code is stored. The program code can be called by a processor to execute the upgrade and installation method provided in the first aspect or the second aspect above.

[0012] In an eighth aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on a computer device, the computer device executes the upgrade and installation method provided in the first aspect or the second aspect above.

[0013] The solution provided by the present application obtains the installation instruction of the signed application, and when it is determined that the installation instruction is an upgrade installation instruction, sends an upgrade download request to the service platform, so that the service platform sends the differential package corresponding to the second version of the signed application and the current signature information to the terminal device according to the upgrade download request, the differential package is a difference data packet between the current installation package corresponding to the second version of the signed application and the initial installation package corresponding to the first version of the signed application installed on the terminal device, the first version is lower than the second version, and the initial signed installation package of the first version of the signed application is obtained, the initial signed installation package includes the initial signature information and the initial installation package, and the initial signed installation package is restored to obtain the initial installation package, and according to the initial installation package, the differential package and the initial signature information are restored to obtain the initial installation package. The method can generate a corresponding upgrade signature installation package based on the sub-package and current signature information, and when it is determined that the upgrade signature installation package is successfully verified, upgrade and install the signed application according to the upgrade signature installation package, so that the signed application is upgraded from the first version to the second version. It is realized that when it is determined that the installation instruction is an upgrade installation instruction, the upgrade signature installation package is generated according to the initial installation package obtained by restoring the initial signature installation package corresponding to the first version, the differential package corresponding to the second version, and the current signature information, and when the upgrade signature installation package is successfully verified, the signed application is upgraded from the first version to the second version according to the upgrade signature installation package, without the need for the user to manually delete the initial signature information of the first version of the signed application, thereby improving the upgrade and installation efficiency of the signed application. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0015] Figure 1 A schematic diagram of a scenario of an upgrade installation system provided in an embodiment of the present application is shown.

[0016] Figure 2 A flow chart of the upgrade installation method provided in an embodiment of the present application is shown.

[0017] Figure 3 Another flow chart of the upgrade installation method provided in an embodiment of the present application is shown.

[0018] Figure 4 A structural block diagram of an upgrade installation device provided in an embodiment of the present application is shown.

[0019] Figure 5 Another structural block diagram of the upgrade installation device provided in an embodiment of the present application is shown.

[0020] Figure 6 A functional block diagram of an electronic device provided in an embodiment of the present application is shown.

[0021] Figure 7 A computer-readable storage medium provided in an embodiment of the present application for storing or carrying program code for implementing the upgrade installation method provided in an embodiment of the present application is shown.

[0022] Figure 8 A computer program product provided in an embodiment of the present application and used to store or carry program codes for implementing the upgrade installation method provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0023] In order to make the purpose, features, and advantages of the invention of this application more obvious and easy to understand, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the embodiments described below are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0024] It should be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.

[0025] It should also be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0026] It should be further understood that the term “and / or” used in the specification and appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0027] As used in this specification and the appended claims, the term "if" may be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrases "if it is determined" or "if [described condition or event] is detected" may be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.

[0028] In addition, in the description of the present application, the terms "first", "second", "third", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0029] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0030] See also Figure 1 , which shows a schematic diagram of an application scenario of the upgrade and installation system provided in an embodiment of the present application, which may include a terminal device 100 and a service platform 200, wherein the terminal device 100 is communicatively connected to the service platform 200 and performs data interaction with the service platform 200.

[0031] The terminal device 100 can be used to install applications (such as signature applications), and the terminal device 100 can download and install the required applications from the service platform 200. The terminal device 100 can be a mobile terminal device (such as a mobile phone, a PDA (Personal Digital Assistant), a tablet PC (Tablet Personal Computer, Tablet PC), a laptop computer, a smart watch, a smart bracelet, etc.) and a fixed terminal device (such as a desktop computer, a smart panel, etc.), etc., which is not limited here.

[0032] The service platform 200 can be used to receive applications uploaded by developers and manage the types, attributes, and installation signature verification of applications. The service platform 200 can be an independent physical server platform, a server cluster platform or a distributed system platform composed of multiple physical servers, or a cloud server platform that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), big data, and artificial intelligence platforms.

[0033] In some implementations, the terminal device 100 may be connected to the service platform 200 via a network, and perform data exchange with the service platform 200 via the network.

[0034] The network may be any one of a ZigBee network, a Bluetooth (BT) network, a Wireless Fidelity (Wi-Fi) network, a Thread network, a Long Range Radio (LoRa) network, a Low-Power Wide-Area Network (LPWAN), an infrared network, a Narrow Band Internet of Things (NB-IoT), a Controller Area Network (CAN), a Digital Living Network Alliance (DLNA) network, a Wide Area Network (WAN), a Local Area Network (LAN), a Metropolitan Area Network (MAN), or a Wireless Personal Area Network (WPAN), etc., without limitation here.

[0035] In one application scenario, when the terminal device 100 obtains the installation instructions of the signed application, it can send a download request to the service platform 200 through the network. The service platform 200 receives and responds to the download request, and sends the installation package and signature information corresponding to the signed application to the terminal device 100 through the network. The terminal device 100 receives and responds to the installation package and signature information, verifies the signature information, and when the signature information is successfully verified, installs the signed application according to the installation package.

[0036] Among them, when the application developer uploads the signed application to the service platform, the service platform can call the corresponding SDK through the software development kit (SDK) interface supported by the signed application, the SDK calculates the summary information of the signed application, and sends the summary information to the service platform, the service platform receives the summary information returned by the SDK, and sends the summary information to the application developer's server, the application developer's server receives and responds to the summary information, calculates the hash value corresponding to the summary information according to the pre-stored private key, obtains the signature information corresponding to the signed application, and sends the signature information to the service platform, the service platform receives the signature information returned by the application developer's server, and stores the signature information.

[0037] See also Figure 2, which shows a flowchart of an upgrade installation method provided by an embodiment of the present application. In a specific embodiment, the upgrade installation method can be applied to Figure 1 The terminal device 100 in the upgrade installation system shown in FIG. 1 is taken as an example below. Figure 2 The process shown is described in detail, and the upgrade installation method may include the following steps S110 to S160.

[0038] Step S110: Obtain installation instructions for the signature application.

[0039] In an embodiment of the present application, when a user needs to install a signature application, a corresponding installation instruction can be sent to a terminal device, and the terminal device receives the installation instruction sent by the user.

[0040] In some implementations, the terminal device may detect the operation of the user, and when it is determined that the user has input an instruction to install the signature application based on the detected user operation, it is determined that the installation instruction of the signature application has been detected. For example, when the user needs to install the signature application, he or she may perform a touch operation on the operation panel of the terminal device, and the terminal device responds to the user's touch operation and identifies the user's touch operation. When the touch operation is identified as an operation to install the signature application, it is determined that the installation instruction of the signature application has been detected.

[0041] In some embodiments, the terminal device may be provided with a voice recognition module. When a user needs to install a signature application, the user may send a voice message within the voice collection range of the voice recognition module. The voice recognition module collects the voice message sent by the user, and performs voice recognition on the collected voice message. Based on the recognition result of the voice recognition, it is determined that the recognition result contains keywords for indicating the installation of the signature application. For example, the keyword may be "install signature application A", and for another example, the keyword may be "install" and "signature application A", etc., then it is determined that the installation instruction of the signature application is detected.

[0042] For example, the voice message sent by the user is "Install signature application A", and the recognition result obtained by the voice recognition module for the voice message "Install signature application A" contains the keywords "signature application A" and "install", then it is determined that the terminal device has detected the installation instruction of the signature application.

[0043] In some embodiments, the signature application may be an application that has been installed on the terminal device, or may be an application that has not been installed on the terminal device. Therefore, the installation instructions may include upgrade installation instructions (indicating that the terminal device has installed the signature application) and non-upgrade installation instructions (indicating that the terminal device has not installed the signature application).

[0044] After obtaining the installation instruction of the signed application, the terminal device can obtain the first application identification set of the installed applications of the terminal device, and determine whether the installation instruction is an upgrade installation instruction based on the second application identification of the signed application and the first application identification set. The first application identification set is the identification set of the applications installed on the terminal device.

[0045] When the second application identifier is included in the first application identifier set, the installation instruction is determined to be an upgrade installation instruction; when the second application identifier is not included in the first application identifier set, the installation instruction is determined to be a non-upgrade installation instruction.

[0046] In an application scenario, the applications installed on the terminal device include application A, application B, application C, application D, and application E, etc., and the first application identification set is {A, B, C, D, E}. When the signed application is application A, the second application identification is A, and the second application identification A is included in the first application identification set {A, B, C, D, E}, then the installation instruction is determined to be an upgrade installation instruction for the signed application A. When the signed application is application F, the second application identification is F, and the second application identification F is not included in the first application identification set {A, B, C, D, E}, then the installation instruction is determined to be a non-upgrade installation instruction for the signed application F. The types of the first application identification set and the second application identification are not limited here, and can be set according to actual needs.

[0047] Step S120: When it is determined that the installation instruction is an upgrade installation instruction, an upgrade download request is sent to the service platform, so that the service platform sends the differential package corresponding to the second version of the signed application and the current signature information to the terminal device according to the upgrade download request.

[0048] In the embodiment of the present application, the service platform pre-stores the current installation package and current signature information corresponding to the second version of the signature application, the current signature information is used to verify the signature of the second version of the signature application, and the current installation package is used to install the second version of the signature application when the current signature information successfully verifies the signature of the second version of the signature application. The terminal device has installed the first version of the signature application, and the first version is lower than the second version, indicating that the second version is the version to be upgraded of the signature application.

[0049] When the terminal device determines that the installation instruction is an upgrade installation instruction, it can send an upgrade download request to the service platform. The service platform receives and responds to the upgrade download request, and sends the differential package corresponding to the second version of the signature application and the current signature information to the terminal device. The terminal device receives the differential package and the current signature information sent by the service platform. The differential package is a difference data packet between the current installation package corresponding to the second version of the signature application and the initial installation package corresponding to the first version of the signature application installed by the terminal device.

[0050] Specifically, when the second application identifier of the signature application is included in the first application identifier set of the application installed on the terminal device, the terminal device determines that the installation instruction is an upgrade installation instruction, and can send an upgrade download request to the service platform through a preset application program interface (Application Program Interface, API) interface. The service platform receives and responds to the upgrade download request, and sends the differential package corresponding to the second version of the signature application and the current signature information to the terminal device, and the terminal device receives the differential package and the current signature information sent by the service platform. Among them, the preset API interface can be a Hyper Text Transfer Protocol (HTTP) interface or a Web Service interface, etc., which is not limited here.

[0051] In some embodiments, the preset API interface is an HTTP interface, and the upgrade download request is a first upgrade download request. When the second application identifier of the signed application is included in the first application identifier set of the application installed on the terminal device, the terminal device determines that the installation instruction is an upgrade installation instruction, and can send the first upgrade download request to the service platform through the HTTP interface. The service platform receives and responds to the first upgrade download request, and sends the differential package corresponding to the second version of the signed application and the current signature information to the terminal device through the HTTP interface. The terminal device receives the differential package and the current signature information sent by the service platform.

[0052] In some embodiments, the preset API interface is a Web Service interface, and the upgrade download request is a second upgrade download request. When the second application identifier of the signed application is included in the first application identifier set of the application installed on the terminal device, the terminal device determines that the installation instruction is an upgrade installation instruction, and can send the second upgrade download request to the service platform through the Web Service interface. The service platform receives and responds to the second upgrade download request, and sends the differential package corresponding to the second version of the signed application and the current signature information to the terminal device through the Web Service interface. The terminal device receives the differential package and the current signature information sent by the service platform.

[0053] Step S130: Obtain an initial signed installation package of the first version of the signed application.

[0054] In an embodiment of the present application, a terminal device can obtain an initial signed installation package of a first version of a signed application. The initial signed installation package may include initial signature information and an initial installation package. The initial signature information can be used to verify the signature of the first version of the signed application. The initial installation package can be used to install the first version of the signed application when the initial signature information successfully verifies the signature of the first version of the signed application.

[0055] In some implementations, the terminal device includes a local memory storing an initial signed installation package of the first version of the signed application installed on the terminal device. The terminal device can read the initial signed installation package of the first version of the signed application installed on the terminal device from the local memory.

[0056] In some embodiments, the service platform includes a platform memory, and the platform memory stores an initial signed installation package of the first version of the signed application installed by the terminal device. The terminal device can send an acquisition instruction to the service platform via the network, and the service platform receives and responds to the acquisition instruction, reads the initial signed installation package of the first version of the signed application installed from the platform memory, and sends the initial signed installation package to the terminal device via the network, and the terminal device receives the initial signed installation package returned by the service platform.

[0057] Step S140: Restore the initial signed installation package to obtain the initial installation package.

[0058] In an embodiment of the present application, after obtaining the initial signed installation package of the first version of the signed application, the terminal device can restore the initial signed installation package to obtain the initial installation package.

[0059] Specifically, after obtaining the initial signed installation package of the first version of the signed application, the terminal device can parse the initial signed installation package, obtain the initial installation package and the initial signature information, and delete the initial signature information.

[0060] Step S150: Generate a corresponding upgrade signature installation package according to the initial installation package, the differential package and the current signature information.

[0061] In an embodiment of the present application, after restoring the initial signed installation package and obtaining the initial installation package, the terminal device can generate a corresponding upgraded signed installation package based on the initial installation package, the differential package and the current signature information.

[0062] Specifically, after restoring the initial signed installation package and obtaining the initial installation package, the terminal device can synthesize the initial installation package and the differential package to obtain the upgraded installation package, and package the upgraded installation package and the current signature information to obtain the upgraded signed installation package.

[0063] In some implementations, after the terminal device generates a corresponding upgrade signature installation package based on the initial installation package, the differential package, and the current signature information, it can determine whether the upgrade signature installation package is successfully verified based on the current signature information.

[0064] Specifically, the application developer server corresponding to the signature application pre-stores a private key, and the terminal device pre-stores a public key corresponding to the private key. After the terminal device generates the corresponding upgrade signature installation package based on the initial installation package, the differential package and the current signature information, it can verify the current signature information according to the pre-stored public key, obtain the verification result, and determine whether the upgrade signature installation package is successfully verified according to the verification result. The verification result includes a successful verification result and a failed verification result.

[0065] When a successful signature verification result is obtained, it is determined that the upgrade signature installation package has been successfully verified; when a failed signature verification result is obtained, it is determined that the upgrade signature installation package has failed to be verified.

[0066] Step S160: When it is determined that the signature verification of the upgrade signature installation package succeeds, the signed application is upgraded and installed according to the upgrade signature installation package, so that the signed application is upgraded from the first version to the second version.

[0067] In an embodiment of the present application, when it is determined that the upgrade signature installation package has been successfully verified, the terminal device can upgrade and install the signed application according to the upgrade installation package in the upgrade signature installation package, so that the signed application is upgraded from the first version to the second version. When it is determined that the installation instruction is an upgrade installation instruction, an upgrade signature installation package is generated based on the initial installation package obtained by restoring the initial signature installation package corresponding to the first version, the differential package corresponding to the second version, and the current signature information. When the upgrade signature installation package is successfully verified, the signed application is upgraded from the first version to the second version according to the upgrade signature installation package. There is no need for the user to manually delete the initial signature information of the first version of the signed application, thereby improving the upgrade and installation efficiency of the signed application.

[0068] In some embodiments, when the second application identifier of the signed application is not included in the first application identifier set of the applications installed on the terminal device, it indicates that the terminal device has not installed the signed application. The terminal device can determine that the installation instruction is a non-upgrade installation instruction and send a complete download request to the service platform. The service platform receives and responds to the complete download request and sends the current installation package and the current signature information to the terminal device. The terminal device receives the current installation package and the current signature information sent by the service platform, and assembles the current installation package and the current signature information to obtain a complete signed installation package. It can also determine whether the complete signed installation package has been successfully verified based on the current signature information. When it is determined that the complete signed installation package has been successfully verified, the second version of the signed application is installed according to the current installation package in the complete signed installation package, thereby realizing the complete installation process of the signed application and improving the user's installation experience of installing the signed application.

[0069] The solution provided in this embodiment obtains the installation instruction of the signed application, and when it is determined that the installation instruction is an upgrade installation instruction, sends an upgrade download request to the service platform, so that the service platform sends the differential package corresponding to the second version of the signed application and the current signature information to the terminal device according to the upgrade download request, the differential package is a difference data packet between the current installation package corresponding to the second version of the signed application and the initial installation package corresponding to the first version of the signed application installed on the terminal device, the first version is lower than the second version, and the initial signed installation package of the first version of the signed application is obtained, the initial signed installation package includes the initial signature information and the initial installation package, and the initial signed installation package is restored to obtain the initial installation package, and according to the initial installation package, the differential package and the initial signature information are restored to obtain the initial installation package. The method can generate a corresponding upgrade signature installation package based on the sub-package and current signature information, and when it is determined that the upgrade signature installation package is successfully verified, upgrade and install the signed application according to the upgrade signature installation package, so that the signed application is upgraded from the first version to the second version. It is realized that when it is determined that the installation instruction is an upgrade installation instruction, the upgrade signature installation package is generated according to the initial installation package obtained by restoring the initial signature installation package corresponding to the first version, the differential package corresponding to the second version, and the current signature information, and when the upgrade signature installation package is successfully verified, the signed application is upgraded from the first version to the second version according to the upgrade signature installation package, without the need for the user to manually delete the initial signature information of the first version of the signed application, thereby improving the upgrade and installation efficiency of the signed application.

[0070] See also Figure 3 , which shows a flowchart of an upgrade installation method provided by another embodiment of the present application. In a specific embodiment, the upgrade installation method can be applied to Figure 1 The service platform 200 in the upgrade installation system shown in FIG. Figure 3 The process shown is described in detail, and the upgrade installation method may include the following steps S210 to S220.

[0071] Step S210: Obtain installation instructions for the signature application.

[0072] In this embodiment, when the user needs to install the signature application on the terminal device, the user can send a corresponding installation instruction to the service platform, and the service platform receives the installation instruction sent by the user.

[0073] In some implementations, when a user needs to install a signature application on a terminal device, the user can input an installation instruction to the terminal device, the terminal device receives and responds to the installation instruction, and sends the installation instruction to the service platform, which receives the installation instruction sent by the terminal device.

[0074] In some embodiments, the upgrade installation system may further include a voice recognition module, which is connected to the service platform via a network and performs data exchange with the service platform via the network. The voice recognition module is used to collect voice information sent by the user and send the collected voice information to the service platform via the network.

[0075] When a user needs to install a signature application on a terminal device, the user can send a voice message within the voice collection range of the voice recognition module. The voice recognition module collects the voice information sent by the user and sends the collected voice information to the service platform through the network. The service platform receives and responds to the voice information sent by the voice recognition module, performs voice recognition on the voice information, and determines based on the recognition result of the voice recognition that the recognition result contains keywords for instructing the installation of the signature application. For example, the keyword may be "install signature application A", and for another example, the keyword may be "install" and "signature application A", etc., then it is determined that the installation instruction of the signature application is detected.

[0076] For example, the voice message sent by the user is "Install signature application A", and the recognition result obtained by the voice recognition module for the voice message "Install signature application A" contains the keywords "signature application A" and "install", then it is determined that the service platform has detected the installation instruction of the signature application.

[0077] In some embodiments, the signature application may be an application that has been installed on the terminal device, or may be an application that has not been installed on the terminal device. Therefore, the installation instructions may include upgrade installation instructions (indicating that the terminal device has installed the signature application) and non-upgrade installation instructions (indicating that the terminal device has not installed the signature application).

[0078] After obtaining the installation instruction of the signed application, the service platform can obtain the first application identification set of the installed applications of the terminal device, and determine whether the installation instruction is an upgrade installation instruction based on the second application identification of the signed application and the first application identification set. The first application identification set is the identification set of the applications installed on the terminal device.

[0079] When the second application identifier is included in the first application identifier set, the installation instruction is determined to be an upgrade installation instruction; when the second application identifier is not included in the first application identifier set, the installation instruction is determined to be a non-upgrade installation instruction, indicating that the terminal device has installed the first version of the signed application.

[0080] Step S220: When it is determined that the installation instruction is an upgrade installation instruction, the differential package corresponding to the second version of the signed application and the current signature information are sent to the terminal device, so that the terminal device generates a corresponding upgrade signature installation package based on the initial installation package, the differential package and the current signature information, and when the upgrade signature installation package is successfully verified, the signed application is upgraded and installed according to the upgrade signature installation package, so that the signed application is upgraded from the first version to the second version.

[0081] In this embodiment, the service platform pre-stores the current installation package and current signature information corresponding to the second version of the signature application. The current signature information is used to verify the signature of the second version of the signature application. The current installation package is used to install the second version of the signature application when the current signature information successfully verifies the signature of the second version of the signature application. The terminal device has installed the first version of the signature application, which is lower than the second version, indicating that the second version is the version to be upgraded for the signature application.

[0082] When the service platform determines that the installation instruction is an upgrade installation instruction, the differential package corresponding to the second version of the signed application and the current signature information can be sent to the terminal device. The terminal receives and responds to the differential package and the current signature information, obtains the initial signed installation package of the installed first version of the signed application, parses the initial signed installation package, obtains the initial installation package and the initial signature information, deletes the initial signature information, synthesizes the initial installation package and the differential package to obtain the upgrade installation package, and packages the upgrade installation package and the current signature information to obtain the upgrade signature installation package, and determines whether the upgrade signature installation package is successfully verified based on the current signature information, and when it is determined that the upgrade signature is successfully verified, When the signature verification of the signature installation package is successful, the signed application is upgraded and installed according to the upgrade installation package in the upgrade signature installation package, so that the signed application is upgraded from the first version to the second version. When it is determined that the installation instruction is an upgrade installation instruction, the upgrade signature installation package is generated according to the initial installation package obtained by restoring the initial signature installation package corresponding to the first version of the signed application, the differential package corresponding to the second version, and the current signature information. When the signature verification of the upgrade signature installation package is successful, the signed application is upgraded and installed from the first version to the second version according to the upgrade signature installation package. There is no need for the user to manually delete the initial signature information of the first version of the signed application, thereby improving the upgrade and installation efficiency of the signed application.

[0083] The differential package is a differential data package between the current installation package and the initial installation package corresponding to the second version of the signed application.

[0084] The solution provided in this embodiment obtains the installation instruction of the signed application, and when it is determined that the installation instruction is an upgrade installation instruction, sends the differential package corresponding to the second version of the signed application and the current signature information to the terminal device, so that the terminal device generates a corresponding upgrade signature installation package based on the initial installation package, the differential package and the current signature information, and when the upgrade signature installation package is successfully verified, the signed application is upgraded and installed according to the upgrade signature installation package, so that the signed application is upgraded from the first version to the second version. When it is determined that the installation instruction is an upgrade installation instruction, the upgrade signature installation package is generated according to the initial installation package obtained by restoring the initial signature installation package corresponding to the first version, the differential package corresponding to the second version, and the current signature information, and when the upgrade signature installation package is successfully verified, the signed application is upgraded from the first version to the second version according to the upgrade signature installation package, without the need for the user to manually delete the initial signature information of the first version of the signed application, thereby improving the upgrade and installation efficiency of the signed application.

[0085] See also Figure 4 , which shows an upgrade installation device 300 provided by an embodiment of the present application, and the upgrade installation device 300 can be applied to Figure 1 The terminal device 100 in the upgrade installation system shown in FIG. 1 is taken as an example below. Figure 4 The upgrade installation device 300 shown is explained, and the upgrade installation device 300 may include a first instruction acquisition module 310, an upgrade download request sending module 320, an installation package acquisition module 330, a restoration module 340, an upgrade installation package generation module 350 and an upgrade installation module 360.

[0086] The first instruction acquisition module 310 can be used to obtain the installation instruction of the signed application; the upgrade download request sending module 320 can be used to send the upgrade download request to the service platform when it is determined that the installation instruction is an upgrade installation instruction, so that the service platform sends the differential package corresponding to the second version of the signed application and the current signature information to the terminal device according to the upgrade download request, the differential package is a difference data packet between the current installation package corresponding to the second version of the signed application and the initial installation package corresponding to the first version of the signed application installed on the terminal device, and the first version is lower than the second version; the installation package acquisition module 330 can be used to obtain the initial signed installation package of the first version of the signed application, and the initial signed installation package may include the initial signature information and the initial installation package; the restoration module 340 can be used to restore the initial signed installation package to obtain the initial installation package; the upgrade installation package generation module 350 can be used to generate the corresponding upgrade signed installation package according to the initial installation package, the differential package and the current signature information; the upgrade installation module 360 ​​can be used to upgrade and install the signed application according to the upgrade signed installation package when it is determined that the upgrade signed installation package is successfully verified, so that the signed application is upgraded from the first version to the second version.

[0087] In some implementations, the upgrade installation apparatus 300 may further include an identification acquisition module and a first determination module.

[0088] The identification acquisition module can be used to send an upgrade download request to the service platform when the upgrade download request sending module 320 determines that the installation instruction is an upgrade installation instruction, so that the service platform obtains the first application identification set of the installed applications of the terminal device before sending the differential package corresponding to the second version of the signed application and the current signature information to the terminal device according to the upgrade download request; the first determination module can be used to determine whether the installation instruction is an upgrade installation instruction based on the second application identification of the signed application and the first application identification set.

[0089] In some implementations, the upgrade download request sending module 320 may include a sending unit.

[0090] The sending unit can be used to determine that the installation instruction is an upgrade installation instruction when the second application identifier is included in the first application identifier set, and send an upgrade download request to the service platform, so that the service platform sends the differential package corresponding to the second version of the signed application and the current signature information to the terminal device according to the upgrade download request.

[0091] In some implementations, the upgrade installation apparatus 300 may further include a second determination module, a complete download request sending module, a complete installation package generating module, and a complete installation module.

[0092] The second determination module can be used to determine that the installation instruction is a non-upgrade installation instruction when the second application identifier is not included in the first application identifier set; the complete download request sending module can be used to send a complete download request to the service platform, so that the service platform sends the current installation package and the current signature information to the terminal device according to the complete download request; the complete installation package generation module can be used to generate a corresponding complete signed installation package according to the current installation package and the current signature information; the complete installation module can be used to install the second version of the signed application according to the complete signed installation package when it is determined that the complete signed installation package has been successfully verified.

[0093] In some implementations, the restoration module 340 may include a parsing unit and a deleting unit.

[0094] The parsing unit can be used to parse the initial signature installation package to obtain the initial installation package and the initial signature information; the deleting unit can be used to delete the initial signature information.

[0095] The solution provided in this embodiment obtains the installation instruction of the signed application, and when it is determined that the installation instruction is an upgrade installation instruction, sends an upgrade download request to the service platform, so that the service platform sends the differential package corresponding to the second version of the signed application and the current signature information to the terminal device according to the upgrade download request, the differential package is a difference data packet between the current installation package corresponding to the second version of the signed application and the initial installation package corresponding to the first version of the signed application installed on the terminal device, the first version is lower than the second version, and the initial signed installation package of the first version of the signed application is obtained, the initial signed installation package includes the initial signature information and the initial installation package, and the initial signed installation package is restored to obtain the initial installation package, and according to the initial installation package, The differential package and the current signature information are used to generate a corresponding upgrade signature installation package, and when the upgrade signature installation package is successfully verified, the signed application is upgraded and installed according to the upgrade signature installation package, so that the signed application is upgraded from the first version to the second version. When it is determined that the installation instruction is an upgrade installation instruction, the upgrade signature installation package is generated according to the initial installation package obtained by restoring the initial signature installation package corresponding to the first version, the differential package corresponding to the second version, and the current signature information, and when the upgrade signature installation package is successfully verified, the signed application is upgraded and installed from the first version to the second version according to the upgrade signature installation package, without the need for the user to manually delete the initial signature information of the first version of the signed application, thereby improving the upgrade and installation efficiency of the signed application.

[0096] See also Figure 5 , which shows an upgrade installation device 400 provided by another embodiment of the present application, and the upgrade installation device 400 can be applied to Figure 1 The service platform 200 in the upgrade installation system shown in FIG. Figure 5 The upgrade installation device 400 shown in the figure is used for explanation. The upgrade installation device 400 may include a second instruction acquisition module 410 and an information sending module 420.

[0097] The second instruction acquisition module 410 can be used to obtain the installation instruction of the signed application; the information sending module 420 can be used to send the differential package corresponding to the second version of the signed application and the current signature information to the terminal device when it is determined that the installation instruction is an upgrade installation instruction, so that the terminal device generates a corresponding upgrade signature installation package based on the initial installation package, the differential package and the current signature information, and when the upgrade signature installation package is successfully verified, the signed application is upgraded and installed according to the upgrade signature installation package, so that the signed application is upgraded from the first version to the second version. The initial installation package is obtained by restoring the initial signature installation package of the first version of the signed application installed by the terminal device. The initial signature installation package includes the initial installation package and the initial signature information. The first version is lower than the second version. The differential package is the difference data packet between the current installation package corresponding to the second version of the signed application and the initial installation package.

[0098] The solution provided in this embodiment obtains the installation instruction of the signed application, and when it is determined that the installation instruction is an upgrade installation instruction, sends the differential package corresponding to the second version of the signed application and the current signature information to the terminal device, so that the terminal device generates a corresponding upgrade signature installation package based on the initial installation package, the differential package and the current signature information, and when the upgrade signature installation package is successfully verified, the signed application is upgraded and installed according to the upgrade signature installation package, so that the signed application is upgraded from the first version to the second version. When it is determined that the installation instruction is an upgrade installation instruction, the upgrade signature installation package is generated according to the initial installation package obtained by restoring the initial signature installation package corresponding to the first version, the differential package corresponding to the second version, and the current signature information, and when the upgrade signature installation package is successfully verified, the signed application is upgraded from the first version to the second version according to the upgrade signature installation package, without the need for the user to manually delete the initial signature information of the first version of the signed application, thereby improving the upgrade and installation efficiency of the signed application.

[0099] It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the embodiments can be referred to each other. For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. Any processing method described in the method embodiment can be implemented by the corresponding processing module in the device embodiment, and will not be repeated one by one in the device embodiment.

[0100] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.

[0101] See also Figure 6 , which shows a functional block diagram of an electronic device 500 provided by an embodiment of the present application, and the electronic device 500 may include one or more of the following components: a memory 510, a processor 520, and one or more applications, wherein the one or more applications may be stored in the memory 510 and configured to be executed by the one or more processors 520, and the one or more applications are configured to execute the method described in the aforementioned method embodiment.

[0102] The memory 510 may include a random access memory (RAM) or a read-only memory (Read-Only Memory). The memory 510 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 510 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as obtaining an installation instruction, determining that the installation instruction is an upgrade installation instruction, obtaining an initial signature installation package, restoring an initial signature installation package, obtaining an initial installation package, sending an upgrade download request, sending a differential package, sending current signature information, producing an upgrade signature installation package, successfully verifying the upgrade signature installation package, upgrading installation, obtaining a first application identification set, determining whether it is an upgrade installation instruction, determining whether it is a non-upgrade installation instruction, sending a complete download request, sending the current installation package, generating a complete signature installation package, successfully verifying the complete signature installation package, installing a second version of a signed application, parsing the initial signature installation package, obtaining the initial installation package, obtaining the initial signature information, and deleting the initial signature information, etc.), instructions for implementing the following various method embodiments, etc. The storage data area can also store data created by the electronic device 500 during use (such as terminal devices, signed applications, installation instructions, upgrade installation instructions, first version, initial signed installation package, initial installation package, initial signature information, upgrade download request, service platform, second version, first version lower than second version, current installation package, difference data package, upgrade signed installation package, first application identification set, second application identification, second application identification included in the first application identification set, second application identification not included in the first application identification set, non-upgrade installation instructions, complete download request and complete signed installation package), etc.

[0103] The processor 520 may include one or more processing cores. The processor 520 uses various interfaces and lines to connect various parts of the entire electronic device 500, and executes various functions and processes data of the electronic device 500 by running or executing instructions, programs, code sets or instruction sets stored in the memory 510, and calling data stored in the memory 510. Optionally, the processor 520 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 520 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 520, but may be implemented separately through a communication chip.

[0104] Please refer to Figure 7 , which shows a block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable storage medium 600 stores a program code 610, which can be called by a processor to execute the method described in the above method embodiment.

[0105] The computer readable storage medium 600 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 600 includes a non-transitory computer-readable storage medium. The computer readable storage medium 600 has storage space for program code 610 that performs any method step in the above method. These program codes can be read from or written to one or more computer program products. The program code 610 can be compressed, for example, in an appropriate form.

[0106] Please refer to Figure 8, which shows a structural block diagram of a computer program product 700 provided in an embodiment of the present application. The computer program product 700 includes a computer program / instruction 710, and the computer program / instruction 710 is stored in a computer-readable storage medium of a computer device. When the computer program product 700 is run on a computer device, a processor of the computer device reads the computer program / instruction 710 from the computer-readable storage medium, and the processor executes the computer program / instruction 710, so that the computer device executes the method described in the above method embodiment.

[0107] The solution provided in this embodiment obtains the installation instruction of the signed application, and when it is determined that the installation instruction is an upgrade installation instruction, sends an upgrade download request to the service platform, so that the service platform sends the differential package corresponding to the second version of the signed application and the current signature information to the terminal device according to the upgrade download request, the differential package is a difference data packet between the current installation package corresponding to the second version of the signed application and the initial installation package corresponding to the first version of the signed application installed on the terminal device, the first version is lower than the second version, and the initial signed installation package of the first version of the signed application is obtained, the initial signed installation package includes the initial signature information and the initial installation package, and the initial signed installation package is restored to obtain the initial installation package, and according to the initial installation package, the differential package and the initial signature information are restored to obtain the initial installation package. The method can generate a corresponding upgrade signature installation package based on the sub-package and current signature information, and when it is determined that the upgrade signature installation package is successfully verified, upgrade and install the signed application according to the upgrade signature installation package, so that the signed application is upgraded from the first version to the second version. It is realized that when it is determined that the installation instruction is an upgrade installation instruction, the upgrade signature installation package is generated according to the initial installation package obtained by restoring the initial signature installation package corresponding to the first version, the differential package corresponding to the second version, and the current signature information, and when the upgrade signature installation package is successfully verified, the signed application is upgraded from the first version to the second version according to the upgrade signature installation package, without the need for the user to manually delete the initial signature information of the first version of the signed application, thereby improving the upgrade and installation efficiency of the signed application.

[0108] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. An upgrade installation method, It is characterized in that Applied to terminal equipment, the upgrade installation method includes: Get the installation instructions for the signed application; When it is determined that the installation instruction is an upgrade installation instruction, sending an upgrade download request to the service platform, so that the service platform sends a differential package corresponding to the second version of the signed application and current signature information to the terminal device according to the upgrade download request, wherein the differential package is a difference data packet between a current installation package corresponding to the second version of the signed application and an initial installation package corresponding to the first version of the signed application installed on the terminal device, and the first version is lower than the second version; Obtaining an initial signed installation package of the first version of the signed application, wherein the initial signed installation package includes initial signature information and the initial installation package; Restoring the initial signed installation package to obtain the initial installation package; Generate a corresponding upgrade signature installation package according to the initial installation package, the differential package and the current signature information; When it is determined that the signature verification of the upgrade signature installation package succeeds, the signed application is upgraded and installed according to the upgrade signature installation package, so that the signed application is upgraded from the first version to the second version.

2. The upgrade installation method according to claim 1, It is characterized in that When it is determined that the installation instruction is an upgrade installation instruction, before sending an upgrade download request to the service platform so that the service platform sends the differential package corresponding to the second version of the signed application and the current signature information to the terminal device according to the upgrade download request, the method further includes: Acquire a first application identifier set of installed applications of the terminal device; Determining whether the installation instruction is an upgrade installation instruction according to the second application identifier of the signed application and the first application identifier set; When it is determined that the installation instruction is an upgrade installation instruction, sending an upgrade download request to the service platform, so that the service platform sends the differential package corresponding to the second version of the signature application and the current signature information to the terminal device according to the upgrade download request, including: When the second application identifier is included in the first application identifier set, the installation instruction is determined to be an upgrade installation instruction, and an upgrade download request is sent to the service platform, so that the service platform sends the differential package corresponding to the second version of the signed application and the current signature information to the terminal device according to the upgrade download request.

3. The upgrade installation method according to claim 2, It is characterized in that Also includes: When the second application identifier is not included in the first application identifier set, determining that the installation instruction is a non-upgrade installation instruction; Sending a complete download request to the service platform, so that the service platform sends the current installation package and the current signature information to the terminal device according to the complete download request; Generate a corresponding complete signature installation package according to the current installation package and the current signature information; When it is determined that the signature verification of the complete signed installation package succeeds, the second version of the signed application is installed according to the complete signed installation package.

4. The upgrade installation method according to any one of claims 1 to 3, It is characterized in that The restoring the initial signed installation package to obtain the initial installation package includes: Parsing the initial signature installation package to obtain the initial installation package and the initial signature information; Delete the initial signature information.

5. An upgrade installation method, It is characterized in that Applied to the service platform, the upgrade installation method includes: Get the installation instructions for the signed application; When it is determined that the installation instruction is an upgrade installation instruction, the differential package corresponding to the second version of the signed application and the current signature information are sent to the terminal device, so that the terminal device generates a corresponding upgrade signature installation package based on the initial installation package, the differential package and the current signature information, and when the upgrade signature installation package is successfully verified, the signed application is upgraded and installed according to the upgrade signature installation package, so that the signed application is upgraded from the first version to the second version, the initial installation package is obtained by the terminal device restoring the initial signature installation package of the first version of the signed application installed on the terminal device, the initial signature installation package includes the initial installation package and the initial signature information, the first version is lower than the second version, and the differential package is the difference data packet between the current installation package corresponding to the second version of the signed application and the initial installation package.

6. An upgrade installation device, It is characterized in that Applied to terminal equipment, the upgrade installation device comprises: A first instruction acquisition module, used to acquire an installation instruction of a signature application; an upgrade download request sending module, configured to send an upgrade download request to a service platform when determining that the installation instruction is an upgrade installation instruction, so that the service platform sends a differential package corresponding to the second version of the signature application and current signature information to the terminal device according to the upgrade download request, wherein the differential package is a difference data package between a current installation package corresponding to the second version of the signature application and an initial installation package corresponding to the first version of the signature application installed on the terminal device, the first version being lower than the second version; An installation package acquisition module, used to acquire an initial signed installation package of the first version of the signed application, wherein the initial signed installation package includes initial signature information and the initial installation package; A restoration module, used to restore the initial signed installation package to obtain the initial installation package; An upgrade installation package generation module, used to generate a corresponding upgrade signature installation package according to the initial installation package, the differential package and the current signature information; The upgrade installation module is used to upgrade and install the signed application according to the upgrade signature installation package when it is determined that the upgrade signature installation package is successfully verified, so that the signed application is upgraded from the first version to the second version.

7. An upgrade installation device, It is characterized in that Applied to the service platform, the upgrade installation device comprises: A second instruction acquisition module, used to acquire an installation instruction of the signature application; An information sending module is used to, when it is determined that the installation instruction is an upgrade installation instruction, send a differential package corresponding to the second version of the signed application and current signature information to a terminal device, so that the terminal device generates a corresponding upgrade signature installation package based on the initial installation package, the differential package and the current signature information, and when the upgrade signature installation package is successfully verified, upgrade and install the signed application according to the upgrade signature installation package, so that the signed application is upgraded from the first version to the second version, the initial installation package is obtained by restoring the initial signature installation package of the first version of the signed application installed by the terminal device, the initial signature installation package includes the initial installation package and the initial signature information, the first version is lower than the second version, and the differential package is a difference data packet between the current installation package corresponding to the second version of the signed application and the initial installation package.

8. An upgrade installation system, It is characterized in that It includes a terminal device and a service platform, wherein the terminal device is connected to the service platform; The terminal device is used to perform the upgrade installation method according to any one of claims 1 to 4; The service platform is used to execute the upgrade installation method as described in claim 5.

9. An electronic device, It is characterized in that include: Memory; One or more processors coupled to the memory; One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by one or more processors, and the one or more applications are configured to execute the upgrade installation method as described in any one of claims 1 to 4 or claim 5.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores program codes, which can be called by a processor to execute the upgrade installation method according to any one of claims 1 to 4 or claim 5.

Citation Information

Patent Citations

  • Version upgrading method and device of mobile terminal

    CN107239288A

  • Over-the-air upgrade method and related device

    CN112912847A