WO2024087767A1 - 升级安装方法及其装置、系统、电子设备及存储介质 - Google Patents

升级安装方法及其装置、系统、电子设备及存储介质 Download PDF

Info

Publication number
WO2024087767A1
WO2024087767A1 PCT/CN2023/109687 CN2023109687W WO2024087767A1 WO 2024087767 A1 WO2024087767 A1 WO 2024087767A1 CN 2023109687 W CN2023109687 W CN 2023109687W WO 2024087767 A1 WO2024087767 A1 WO 2024087767A1
Authority
WO
WIPO (PCT)
Prior art keywords
installation
upgrade
signature
version
application
Prior art date
Application number
PCT/CN2023/109687
Other languages
English (en)
French (fr)
Inventor
范俊
王志浩
Original Assignee
深圳市兆珑科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市兆珑科技有限公司 filed Critical 深圳市兆珑科技有限公司
Publication of WO2024087767A1 publication Critical patent/WO2024087767A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials

Definitions

  • 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.
  • the signature application can only be initially installed or upgraded when the signature information of the signature application is successfully verified.
  • the signature verification of the signed application fails, and the upgrade and installation of the signed application fails.
  • 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.
  • 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.
  • 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 being 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
  • an embodiment of the present application provides an upgrade installation method, which is applied to a service platform.
  • 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.
  • 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
  • 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
  • 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.
  • 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.
  • 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.
  • an embodiment of the present application provides a computer program product.
  • the 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.
  • 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 further comprises the steps of: generating a corresponding upgrade signature installation package based on the sub-package and the current signature information, and when it is determined that the upgrade signature installation package has been successfully verified, upgrading and installing 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.
  • an 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 has been 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.
  • FIG1 shows a schematic diagram of a scenario of an upgrade installation system provided in an embodiment of the present application.
  • FIG. 2 shows a schematic flow chart of an upgrade installation method provided in an embodiment of the present application.
  • FIG3 shows another schematic flow chart of the upgrade installation method provided in an embodiment of the present application.
  • FIG. 4 shows a structural block diagram of an upgrade installation device provided in an embodiment of the present application.
  • FIG. 5 shows another structural block diagram of the upgrade installation device provided in an embodiment of the present application.
  • FIG6 shows a functional block diagram of an electronic device provided in an embodiment of the present application.
  • FIG. 7 shows a computer-readable storage medium provided in an embodiment of the present application for storing or carrying program codes for implementing the upgrade installation method provided in an embodiment of the present application.
  • FIG8 shows a computer program product provided in an embodiment of the present application for storing or carrying program codes for implementing the upgrade installation method provided in an embodiment of the present application.
  • the term “if” may be interpreted as “when” or “upon” or “in response to determining” or “in response to detecting,” depending on the context.
  • 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.
  • Figure 1 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.
  • the terminal device 100 is communicatively connected to the service platform 200 and interacts with the service platform 200 for data.
  • 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 notebook 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.
  • 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.
  • 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.
  • 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 herein.
  • BT Bluetooth
  • Wi-Fi Wireless Fidelity
  • Thread Thread
  • LoRa Low-Power Wide-Area Network
  • LPWAN Low-Power Wide-Area Network
  • NB-IoT Narrow Band Internet of Things
  • CAN Controller Area Network
  • DLNA Digital Living Network Alliance
  • WAN Wide Area Network
  • LAN Local Area Network
  • MAN Metropolitan Area Network
  • the terminal device 100 when it 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.
  • the service platform can call the corresponding SDK through the Software Development Kit (SDK) interface supported by the signed application.
  • SDK Software Development Kit
  • 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.
  • FIG 2 shows a flow chart of an upgrade installation method provided by an embodiment of the present application.
  • the upgrade installation method can be applied to the terminal device 100 in the upgrade installation system shown in Figure 1.
  • the following will take the terminal device 100 as an example to explain the process shown in Figure 2 in detail.
  • the upgrade installation method can include the following steps S110 to S160.
  • Step S110 Obtain installation instructions for the 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.
  • 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, the user 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.
  • the terminal device may be provided with a voice recognition module.
  • a 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.
  • 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.
  • the voice message sent by the user is "Install signature application A”
  • 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.
  • 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).
  • 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.
  • 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.
  • the applications installed on the terminal device include application A, application B, application C, application D, and application E, etc.
  • the first application identification set is ⁇ A, B, C, D, E ⁇ .
  • the signed application is application A
  • the second application identification is A
  • the second application identification A is included in the first application identification set ⁇ A, B, C, D, E ⁇
  • the installation instruction is determined to be an upgrade installation instruction for the signed application A.
  • the signed application is application F
  • the second application identification is F
  • the second application identification F is not included in the first application identification set ⁇ A, B, C, D, E ⁇
  • 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.
  • 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 signature application and the current signature information to the terminal device according to the upgrade download request.
  • 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.
  • the terminal device 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.
  • 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.
  • the preset API interface can be a Hyper Text Transfer Protocol (HTTP) interface or a Web Service interface, etc., which is not limited here.
  • the preset API interface is an HTTP interface
  • the upgrade download request is a first upgrade download request.
  • 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.
  • the preset API interface is a Web Service interface
  • the upgrade download request is a second upgrade download request.
  • 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.
  • Step S130 Obtain an initial signed installation package of the first version of the signed 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.
  • 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.
  • 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.
  • Step S140 Restore the initial signed installation package to obtain the initial installation package.
  • the terminal device after obtaining the initial signed installation package of the first version of the signed application, can restore the initial signed installation package to obtain the initial installation package.
  • 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.
  • Step S150 Generate a corresponding upgrade signature installation package according to the initial installation package, the differential package and the current signature information.
  • 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.
  • 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.
  • the terminal device 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.
  • the application developer server corresponding to the signature application pre-stores a private key
  • the terminal device pre-stores a public key corresponding to the private key.
  • the terminal device 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.
  • 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.
  • the terminal device when it is determined that the upgrade signature installation package has been successfully verified, 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.
  • 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.
  • 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.
  • the second application identifier of the signed application when it is determined 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.
  • 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.
  • the solution provided by 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 further comprises the steps of: generating a corresponding upgrade signature installation package based on the sub-package and the current signature information, and when it is determined that the upgrade signature installation package has been successfully verified, upgrading and installing 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.
  • an 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 has been 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.
  • FIG 3 shows a flow chart of an upgrade installation method provided by another embodiment of the present application.
  • the upgrade installation method can be applied to the service platform 200 in the upgrade installation system shown in Figure 1.
  • the service platform 200 will be taken as an example below to explain the process shown in Figure 3 in detail.
  • the upgrade installation method may include the following steps S210 to S220.
  • Step S210 Obtain installation instructions for the signature application.
  • the user 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.
  • the user 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.
  • 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.
  • 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.
  • the keyword may be "install signature application A"
  • the keyword may be "install” and "signature application A", etc., then it is determined that the installation instruction of the signature application is detected.
  • the voice message sent by the user is "Install signature application A”
  • 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.
  • 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).
  • 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.
  • 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.
  • 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.
  • 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.
  • 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 of the signature installation package is successfully verified, 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.
  • an 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.
  • 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. 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.
  • 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.
  • 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.
  • 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.
  • the upgrade and installation device 300 can be applied to the terminal device 100 in the upgrade and installation system as shown in Figure 1.
  • the upgrade and installation device 300 shown in Figure 4 will be explained by taking the terminal device 100 as an example.
  • the upgrade and 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 restore module 340, an upgrade installation package generation module 350 and an upgrade installation module 360.
  • the first instruction acquisition module 310 can be used to acquire 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 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 330 can be used to acquire 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
  • the upgrade installation apparatus 300 may further include an identification acquisition module and a first determination module.
  • 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.
  • the upgrade download request sending module 320 may include a sending unit.
  • 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.
  • 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.
  • 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.
  • the restoration module 340 may include a parsing unit and a deleting unit.
  • 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.
  • 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.
  • 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.
  • FIG 5 shows an upgrade and installation device 400 provided in another embodiment of the present application.
  • the upgrade and installation device 400 can be applied to the service platform 200 in the upgrade and installation system as shown in Figure 1.
  • the upgrade and installation device 400 shown in Figure 5 will be explained below using the service platform 200 as an example.
  • the upgrade and installation device 400 may include a second instruction acquisition module 410 and an information sending module 420.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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 one or more processors 520, and the one or more applications are configured to execute the method described in the aforementioned method embodiment.
  • 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 and installing, 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 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.
  • 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.
  • 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.
  • 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).
  • DSP digital signal processing
  • FPGA field-programmable gate array
  • PDA programmable logic array
  • the processor 520 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem.
  • 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.
  • FIG. 7 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 program code 610, which can be called by a processor to execute the method described in the above method embodiment.
  • 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.
  • 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 for executing any method steps 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.
  • FIG 8 shows a 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, which is stored in a computer-readable storage medium of 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 performs the method described in the above method embodiment.
  • the solution provided by 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 further comprises the steps of: generating a corresponding upgrade signature installation package based on the sub-package and the current signature information, and when it is determined that the upgrade signature installation package has been successfully verified, upgrading and installing 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.
  • an 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 has been 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.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

本申请公开了一种升级安装方法及其装置、系统、电子设备及存储介质,升级安装方法包括获取签名应用的安装指令;当确定安装指令为升级安装指令时,发送升级下载请求至服务平台,使得服务平台发送第二版本的签名应用对应的差分包以及当前签名信息至终端设备;获取第一版本的签名应用的初始签名安装包;还原初始签名安装包,获得初始安装包;根据初始安装包、差分包以及当前签名信息,生成对应的升级签名安装包;当确定升级签名安装包验签成功时,根据升级签名安装包对签名应用进行升级安装,使得签名应用由第一版本升级为第二版本。本方法实现了根据初始安装包、差分包以及当前签名信息,对签名应用进行升级安装,提高了签名应用的升级安装效率。

Description

升级安装方法及其装置、系统、电子设备及存储介质
本申请要求于2022年10月26日在中国专利局提交的、申请号为202211324179.7、发明名称为“升级安装方法及其装置、系统、电子设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请属于数据处理技术领域,尤其涉及一种升级安装方法及其装置、系统、电子设备及存储介质。
背景技术
随着互联网和移动终端技术的快速发展,用户的需求也不断地提高。为了满足用户需求的多样性,出现了很多方便用户使用的应用,例如各种签名应用,签名应用的初始安装或者升级安装过程中,当对签名应用的签名信息验签成功时,方可对签名应用进行初始安装或者升级安装。
然而,在签名应用的升级安装过程中,若同时存在待安装的新版本签名应用的新版签名信息以及已安装的旧版本签名应用的旧版签名信息,签名应用验签失败,签名应用的升级安装失败。若要成功升级安装签名应用,需要用户手动删除已安装签名应用以删除旧版签名信息后,导致签名应用的升级安装效率较低。
技术问题
有鉴于此,本申请实施例提供了一种升级安装方法及其装置、系统、电子设备及存储介质,以克服或者至少部分地解决以上现有技术的问题。
技术解决方案
第一方面,本申请实施例提供了一种升级安装方法,应用于终端设备,升级安装方法,包括:获取签名应用的安装指令;当确定安装指令为升级安装指令时,发送升级下载请求至服务平台,使得服务平台根据升级下载请求,发送第二版本的签名应用对应的差分包以及当前签名信息至终端设备,差分包为第二版本的签名应用对应的当前安装包与终端设备已安装的第一版本的签名应用对应的初始安装包之间的差异数据包,第一版本低于第二版本;获取第一版本的签名应用的初始签名安装包,初始签名安装包包括初始签名信息以及初始安装包;还原初始签名安装包,获得初始安装包;根据初始安装包、差分包以及当前签名信息,生成对应的升级签名安装包;当确定升级签名安装包验签成功时,根据升级签名安装包对签名应用进行升级安装,使得签名应用由第一版本升级为第二版本。
第二方面,本申请实施例提供了一种升级安装方法,应用于服务平台,升级安装方法,包括:获取签名应用的安装指令;当确定安装指令为升级安装指令时,发送第二版本的签名应用对应的差分包以及当前签名信息至终端设备,使得终端设备基于初始安装包、差分包以及当前签名信息,生成对应的升级签名安装包,并当升级签名安装包验签成功时,根据升级签名安装包对签名应用进行升级安装,使得签名应用由第一版本升级为第二版本,初始安装包为终端设备对终端设备已安装的第一版本的签名应用的初始签名安装包进行还原得到,初始签名安装包包括初始安装包以及初始签名信息,第一版本低于第二版本,差分包为第二版本的签名应用对应的当前安装包与初始安装包之间的差异数据包。
第三方面,本申请实施例提供了一种升级安装装置,应用于终端设备,升级安装装置,包括:第一指令获取模块、升级下载请求发送模块、安装包获取模块、还原模块、升级安装包生成模块以及升级安装模块。第一指令获取模块,用于获取签名应用的安装指令;升级下载请求发送模块,用于当确定安装指令为升级安装指令时,发送升级下载请求至服务平台,使得服务平台根据升级下载请求,发送第二版本的签名应用对应的差分包以及当前签名信息至终端设备,差分包为第二版本的签名应用对应的当前安装包与终端设备已安装的第一版本的签名应用对应的初始安装包之间的差异数据包,第一版本低于第二版本;安装包获取模块,用于获取第一版本的签名应用的初始签名安装包,初始签名安装包包括初始签名信息以及初始安装包;还原模块,用于还原初始签名安装包,获得初始安装包;升级安装包生成模块,用于根据初始安装包、差分包以及当前签名信息,生成对应的升级签名安装包;升级安装模块,用于当确定升级签名安装包验签成功时,根据升级签名安装包对签名应用进行升级安装,使得签名应用由第一版本升级为第二版本。
第四方面,本申请实施例提供了一种升级安装装置,应用于服务平台,升级安装装置,包括:第二指令获取模块以及信息发送模块。第二指令获取模块,用于获取签名应用的安装指令;信息发送模块,用于当确定安装指令为升级安装指令时,发送第二版本的签名应用对应的差分包以及当前签名信息至终端设备,使得终端设备基于初始安装包、差分包以及当前签名信息,生成对应的升级签名安装包,并当升级签名安装包验签成功时,根据升级签名安装包对签名应用进行升级安装,使得签名应用由第一版本升级为第二版本,初始安装包为终端设备对终端设备已安装的第一版本的签名应用的初始签名安装包进行还原得到,初始签名安装包包括初始安装包以及初始签名信息,第一版本低于第二版本,差分包为第二版本的签名应用对应的当前安装包与初始安装包之间的差异数据包。
第五方面,本申请实施例提供了一种升级安装系统,包括终端设备以及服务平台,终端设备与服务平台连接;终端设备,用于执行如上述第一方面提供的升级安装方法;服务平台,用于执行如上述第二方面提供的升级安装方法。
第六方面,本申请实施例提供了一种电子设备,包括存储器;一个或多个处理器,与存储器耦接;一个或多个应用程序,其中,一个或多个应用程序被存储在存储器中并被配置为由一个或多个处理器执行,一个或多个应用程序配置用于执行如上述第一方面或者第二方面提供的升级安装方法。
第七方面,本申请实施例提供了一种计算机可读取存储介质,计算机可读取存储介质中存储有程序代码,程序代码可被处理器调用执行如上述第一方面或者第二方面提供的升级安装方法。
第八方面,本申请实施例提供了一种计算机程序产品,计算机程序产品在计算机设备上运行时,使得计算机设备执行如上述第一方面或者第二方面提供的升级安装方法。
有益效果
本申请提供的方案,通过获取签名应用的安装指令,并当确定安装指令为升级安装指令时,发送升级下载请求至服务平台,使得服务平台根据升级下载请求,发送第二版本的签名应用对应的差分包以及当前签名信息至终端设备,差分包为第二版本的签名应用对应的当前安装包与终端设备已安装的第一版本的签名应用对应的初始安装包之间的差异数据包,第一版本低于第二版本,并获取第一版本的签名应用的初始签名安装包,初始签名安装包包括初始签名信息以及初始安装包,并还原初始签名安装包,获得初始安装包,并根据初始安装包、差分包以及当前签名信息,生成对应的升级签名安装包,以及当确定升级签名安装包验签成功时,根据升级签名安装包对签名应用进行升级安装,使得签名应用由第一版本升级为第二版本,实现了在确定安装指令为升级安装指令时,根据还原第一版本对应的初始签名安装包获得的初始安装包、第二版本对应的差分包以及当前签名信息,生成升级签名安装包,并在升级签名安装包验签成功时,根据升级签名安装包将签名应用由第一版本升级安装为第二版本,无需用户手动删除第一版本的签名应用的初始签名信息,提高了签名应用的升级安装效率。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。
图1示出了本申请实施例提供的升级安装系统的一种场景示意图。
图2示出了本申请实施例提供的升级安装方法的一种流程示意图。
图3示出了本申请实施例提供的升级安装方法的另一种流程示意图。
图4示出了本申请实施例提供的升级安装装置的一种结构框图。
图5示出了本申请实施例提供的升级安装装置的另一种结构框图。
图6示出了本申请实施例提供的电子设备的一种功能框图。
图7示出了本申请实施例提供的用于保存或者携带实现根据本申请实施例提供的升级安装方法的程序代码的计算机可读存储介质。
图8示出了本申请实施例提供的用于保存或者携带实现根据本申请实施例提供的升级安装方法的程序代码的计算机程序产品。
本发明的实施方式
为使得本申请的发明目的、特征、优点能够更加的明显和易懂,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,下面所描述的实施例仅仅是本申请一部分实施例,而非全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本申请保护的范围。
应当理解,当在本说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。
还应当理解,在此本申请说明书中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本申请。如在本申请说明书和所附权利要求书中所使用的那样,除非上下文清楚地指明其它情况,否则单数形式的“一”、“一个”及“该”意在包括复数形式。
还应当进一步理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。
如在本说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。
另外,在本申请的描述中,术语“第一”、“第二”、“第三”等仅用于区分描述,而不能理解为指示或暗示相对重要性。
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。
请参阅图1,其示出了本申请实施例提供的升级安装系统的一种应用场景示意图,可以包括终端设备100以及服务平台200,终端设备100通信连接于服务平台200,并与服务平台200进行数据交互。
其中,终端设备100可以用于安装应用(例如签名应用),终端设备100可以从服务平台200下载并安装所需的应用。终端设备100可以为移动终端设备(例如,手机、掌上电脑(Personal Digital Assistant,PDA)、平板电脑(Tablet Personal Computer,TabletPC)、笔记本电脑、智能手表、智能手环等)以及固定终端设备(例如,台式计算机、智能面板等)等,此处不作限定。
服务平台200可以用于接收开发者上传的应用,并对应用的类型、属性以及安装验签等属性进行管理。服务平台200可以为独立的物理服务器平台,也可以为多个物理服务器构成的服务器集群平台或者分布式系统平台,还可以为提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、内容分发网络(Content Delivery Network,CDN)、大数据以及人工智能平台等基础云计算服务的云服务器平台等。
在一些实施方式中,终端设备100可以通过网络连接于服务平台200,并通过网络与服务平台200进行数据交互。
网络可以为紫蜂(ZigBee)网络、蓝牙(Bluetooth,BT)网络、无线保真(Wireless Fidelity,Wi-Fi)网络、家庭物联网通讯协定技术(Thread)网络、远距离无线电(Long Range Radio,LoRa)网络、低功率广域网络(Low-Power Wide-Area Network,LPWAN)、红外网络、窄带物联网(Narrow Band Internet of Things,NB-IoT)、基于控制器局域网络(Controller Area Network,CAN)、数字生活网络联盟(Digital Living Network Alliance,DLNA)网络、广域网(Wide Area Network,WAN)、局域网(Local Area Network,LAN)、城域网(Metropolitan Area Network,MAN)或者无线个人局域网(Wireless Personal Area Network,WPAN)等中的任一种,此处不作限定。
在一种应用场景中,终端设备100在获取到签名应用的安装指令时,可以通过网络向服务平台200发送下载请求,服务平台200接收并响应下载请求,通过网络将签名应用对应的安装包以及签名信息发送至终端设备100,终端设备100接收并响应安装包以及签名信息,对签名信息进行验签,并当签名信息验签成功时,根据安装包对签名应用进行安装。
其中,当应用开发商上传签名应用至服务平台时,服务平台可以通过签名应用支持的软件开发工具包(Software Development Kit,SDK)接口调用对应的SDK,SDK计算签名应用的摘要信息,并将摘要信息发送至服务平台,服务平台接收SDK返回的摘要信息,并将摘要信息发送至应用开发商服务器,应用开发商服务器接收并响应摘要信息,根据预先存储的私钥计算摘要信息对应的哈希(Hash)值,获得签名应用对应的签名信息,并将签名信息发送至服务平台,服务平台接收应用开发商服务器返回的签名信息,并存储签名信息。
请参阅图2,其示出了本申请一个实施例提供的升级安装方法的流程图。在具体的实施例中,升级安装方法可以应用于如图1所示的升级安装系统中的终端设备100,下面将以终端设备100为例,对图2所示的流程进行详细阐述,升级安装方法可以包括以下步骤S110至步骤S160。
步骤S110:获取签名应用的安装指令。
在本申请实施例中,当用户需求安装签名应用时,可以发送对应的安装指令至终端设备,终端设备接收用户发送的安装指令。
在一些实施方式中,终端设备可以对应用户的操作进行检测,当根据检测到的用户操作确定用户输入了对签名应用进行安装的指令时,则确定检测到签名应用的安装指令。例如,用户在需求对签名应用进行安装时,可以于终端设备的操作面板上进行触控操作,终端设备响应用户的触控操作,对用户的触控操作进行识别,当识别出触控操作为对签名应用进行安装的操作时,则确定检测到签名应用的安装指令。
在一些实施方式中,终端设备可以设置有语音识别模块,当用户需求安装签名应用时,用户可以于语音识别模块的语音采集范围内发送语音信息,语音识别模块对用户发出的语音信息进行采集,并对采集到的语音信息进行语音识别,并根据语音识别的识别结果,确定识别结果中包含用于指示对签名应用进行安装的关键词时,例如关键词可以为“安装签名应用A”,又例如,关键词可以为“安装”和“签名应用A”等,则确定检测到签名应用的安装指令。
例如,用户发送的语音信息为“对签名应用A进行安装”,语音识别模块对语音信息“对签名应用A进行安装”进行识别获得的识别结果包含关键词“签名应用A”和关键词“安装”,则确定终端设备检测到签名应用的安装指令。
在一些实施方式中,签名应用可以为终端设备已安装的应用,也可以为终端设备未安装的应用,因此,安装指令可以包括升级安装指令(表示终端设备已安装该签名应用)以及非升级安装指令(表示终端设备未安装该签名应用)。
终端设备在获取到签名应用的安装指令之后,可以获取终端设备的已安装应用的第一应用标识集,并根据签名应用的第二应用标识以及第一应用标识集,确定安装指令是否为升级安装指令。其中,第一应用标识集为终端设备上已安装的应用的标识集合。
当第二应用标识包含于第一应用标识集时,则确定安装指令为升级安装指令;当第二应用标识未包含于第一应用标识集时,则确定安装指令为非升级安装指令。
在一种应用场景中,终端设备上已安装的应用有应用A、应用B、应用C、应用D以及应用E等,则第一应用标识集为{A,B,C,D,E}。当签名应用为应用A时,第二应用标识为A,第二应用标识A包含于第一应用标识集{A,B,C,D,E},则确定安装指令为签名应用A的升级安装指令。当签名应用为应用F时,第二应用标识为F,第二应用标识F未包含于第一应用标识集{A,B,C,D,E},则确定安装指令为签名应用F的非升级安装指令。此处不限定第一应用标识集以及第二应用标识的类型,具体可以根据实际需求进行设置。
步骤S120:当确定安装指令为升级安装指令时,发送升级下载请求至服务平台,使得服务平台根据升级下载请求,发送第二版本的签名应用对应的差分包以及当前签名信息至终端设备。
在本申请实施例中,服务平台预先存储有第二版本的签名应用对应的当前安装包以及当前签名信息,当前签名信息用于对第二版本的签名应用进行验签,当前安装包用于在当前签名信息对第二版本的签名应用验签成功时,对第二版本的签名应用进行安装。终端设备已安装有第一版本的签名应用,第一版本低于第二版本,表示第二版本为签名应用的待升级版本。
当终端设备确定安装指令为升级安装指令时,可以发送升级下载请求至服务平台,服务平台接收并响应升级下载请求,将第二版本的签名应用对应的差分包以及当前签名信息发送至终端设备,终端设备接收服务平台发送的差分包以及当前签名信息。其中,差分包为第二版本的签名应用对应的当前安装包与终端设备已安装的第一版本的签名应用对应的初始安装包之间的差异数据包。
具体地,当签名应用的第二应用标识包含于终端设备已安装的应用的第一应用标识集时,终端设备确定安装指令为升级安装指令,可以通过预设应用程序界面(Application Program Interface,API)接口,发送升级下载请求至服务平台,服务平台接收并响应升级下载请求,将第二版本的签名应用对应的差分包以及当前签名信息发送至终端设备,终端设备接收服务平台发送的差分包以及当前签名信息。其中,预设API接口可以为超文本传输协议(Hyper Text Transfer Protocol,HTTP)接口或者网络服务(Web Service)接口等,此处不作限定。
在一些实施方式中,预设API接口为HTTP接口,升级下载请求为第一升级下载请求。当签名应用的第二应用标识包含于终端设备已安装的应用的第一应用标识集时,终端设备确定安装指令为升级安装指令,可以通过HTTP接口,发送第一升级下载请求至服务平台,服务平台接收并响应第一升级下载请求,通过HTTP接口将第二版本的签名应用对应的差分包以及当前签名信息发送至终端设备,终端设备接收服务平台发送的差分包以及当前签名信息。
在一些实施方式中,预设API接口为Web Service接口,升级下载请求为第二升级下载请求。当签名应用的第二应用标识包含于终端设备已安装的应用的第一应用标识集时,终端设备确定安装指令为升级安装指令,可以通过Web Service接口,发送第二升级下载请求至服务平台,服务平台接收并响应第二升级下载请求,通过Web Service接口将第二版本的签名应用对应的差分包以及当前签名信息发送至终端设备,终端设备接收服务平台发送的差分包以及当前签名信息。
步骤S130:获取第一版本的签名应用的初始签名安装包。
在本申请实施例中,终端设备可以获取第一版本的签名应用的初始签名安装包,初始签名安装包可以包括初始签名信息以及初始安装包,初始签名信息可以应用对第一版本的签名应用进行验签,初始安装包可以应用在初始签名信息对第一版本的签名应用验签成功时,对第一版本的签名应用进行安装。
在一些实施方式中,终端设备包括本地存储器,本地存储器存储有终端设备已安装的第一版本的签名应用的初始签名安装包。终端设备可以从本地存储器中读取已安装的第一版本的签名应用的初始签名安装包。
在一些实施方式中,服务平台包括平台存储器,平台存储器存储有终端设备已安装的第一版本的签名应用的初始签名安装包。终端设备可以通过网络发送获取指令至服务平台,服务平台接收并响应获取指令,从平台存储器中读取已安装的第一版本的签名应用的初始签名安装包,并将初始签名安装包通过网络发送至终端设备,终端设备接收服务平台返回的初始签名安装包。
步骤S140:还原初始签名安装包,获得初始安装包。
在本申请实施例中,终端设备在获取到第一版本的签名应用的初始签名安装包之后,可以还原初始签名安装包,获得初始安装包。
具体地,终端设备在获取到第一版本的签名应用的初始签名安装包之后,可以解析初始签名安装包,获得初始安装包以及初始签名信息,并删除初始签名信息。
步骤S150:根据初始安装包、差分包以及当前签名信息,生成对应的升级签名安装包。
在本申请实施例中,终端设备在还原初始签名安装包,获得初始安装包之后,可以根据初始安装包、差分包以及当前签名信息,生成对应的升级签名安装包。
具体地,终端设备在还原初始签名安装包,获得初始安装包之后,可以对初始安装包以及差分包进行合成,获得升级安装包,并对升级安装包以及当前签名信息进行组包,获得升级签名安装包。
在一些实施方式中,当终端设备根据初始安装包、差分包以及当前签名信息,生成对应的升级签名安装包之后,可以根据当前签名信息,确定升级签名安装包是否验签成功。
具体地,签名应用对应的应用开发商服务器预先存储有私钥,终端设备预先存储有与该私钥对应的公钥。当终端设备根据初始安装包、差分包以及当前签名信息,生成对应的升级签名安装包之后,可以根据预先存储的公钥对当前签名信息进行验签,获得验签结果,并根据验签结果确定升级签名安装包是否验签成功。其中,验签结果包括验签成功结果以及验签失败结果。
当获得验签成功结果时,则确定升级签名安装包验签成功;当获得验签失败结果时,则确定升级签名安装包验签失败。
步骤S160:当确定升级签名安装包验签成功时,根据升级签名安装包对签名应用进行升级安装,使得签名应用由第一版本升级为第二版本。
在本申请实施例中,当确定升级签名安装包验签成功时,终端设备可以根据升级签名安装包中的升级安装包对签名应用进行升级安装,使得签名应用由第一版本升级为第二版本,实现了在确定安装指令为升级安装指令时,根据还原第一版本对应的初始签名安装包获得的初始安装包、第二版本对应的差分包以及当前签名信息,生成升级签名安装包,并在升级签名安装包验签成功时,根据升级签名安装包将签名应用由第一版本升级安装为第二版本,无需用户手动删除第一版本的签名应用的初始签名信息,提高了签名应用的升级安装效率。
在一些实施方式中,当签名应用的第二应用标识未包含于终端设备已安装应用的第一应用标识集时,表示终端设备未安装签名应用,终端设备可以确定安装指令为非升级安装指令,并发送完整下载请求至服务平台,服务平台接收并响应完整下载请求,将当前安装包以及当前签名信息发送至终端设备,终端设备接收服务平台发送的当前安装包以及当前签名信息,并对当前安装包以及当前签名信息进行组包,获得完整签名安装包,并可以根据当前签名信息,确定完整签名安装包是否验签成功,当确定完整签名安装包验签成功时,根据完整签名安装包中的当前安装包安装第二版本的签名应用,实现了对签名应用的完整安装过程,提升了用户对签名应用进行安装的安装体验。
本实施例提供的方案,通过获取签名应用的安装指令,并当确定安装指令为升级安装指令时,发送升级下载请求至服务平台,使得服务平台根据升级下载请求,发送第二版本的签名应用对应的差分包以及当前签名信息至终端设备,差分包为第二版本的签名应用对应的当前安装包与终端设备已安装的第一版本的签名应用对应的初始安装包之间的差异数据包,第一版本低于第二版本,并获取第一版本的签名应用的初始签名安装包,初始签名安装包包括初始签名信息以及初始安装包,并还原初始签名安装包,获得初始安装包,并根据初始安装包、差分包以及当前签名信息,生成对应的升级签名安装包,以及当确定升级签名安装包验签成功时,根据升级签名安装包对签名应用进行升级安装,使得签名应用由第一版本升级为第二版本,实现了在确定安装指令为升级安装指令时,根据还原第一版本对应的初始签名安装包获得的初始安装包、第二版本对应的差分包以及当前签名信息,生成升级签名安装包,并在升级签名安装包验签成功时,根据升级签名安装包将签名应用由第一版本升级安装为第二版本,无需用户手动删除第一版本的签名应用的初始签名信息,提高了签名应用的升级安装效率。
请参阅图3,其示出了本申请另一个实施例提供的升级安装方法的流程图。在具体的实施例中,升级安装方法可以应用于如图1所示的升级安装系统中的服务平台200,下面将以服务平台200为例,对图3所示的流程进行详细阐述,升级安装方法可以包括以下步骤S210至步骤S220。
步骤S210:获取签名应用的安装指令。
在本实施例中,当用户需求于终端设备安装签名应用时,可以发送对应的安装指令至服务平台,服务平台接收用户发送的安装指令。
在一些实施方式中,当用户需求于终端设备安装签名应用时,用户可以输入安装指令至终端设备,终端设备接收并响应安装指令,将安装指令发送至服务平台,服务平台接收终端设备发送的安装指令。
在一些实施方式中,升级安装系统还可以包括语音识别模块,语音识别模块通过网络连接于服务平台,并通过网络与服务平台进行数据交互。语音识别模块用于对用户发出的语音信息进行采集,并将采集到的语音信息通过网络发送至服务平台。
当用户需求于终端设备安装签名应用时,用户可以于语音识别模块的语音采集范围内发送语音信息,语音识别模块对用户发出的语音信息进行采集,并将采集到的语音信息通过网络发送至服务平台,服务平台接收并响应语音识别模块发送的语音信息,对语音信息进行语音识别,并根据语音识别的识别结果,确定识别结果中包含用于指示对签名应用进行安装的关键词时,例如关键词可以为“安装签名应用A”,又例如,关键词可以为“安装”和“签名应用A”等,则确定检测到签名应用的安装指令。
例如,用户发送的语音信息为“对签名应用A进行安装”,语音识别模块对语音信息“对签名应用A进行安装”进行识别获得的识别结果包含关键词“签名应用A”和关键词“安装”,则确定服务平台检测到签名应用的安装指令。
在一些实施方式中,签名应用可以为终端设备已安装的应用,也可以为终端设备未安装的应用,因此,安装指令可以包括升级安装指令(表示终端设备已安装该签名应用)以及非升级安装指令(表示终端设备未安装该签名应用)。
服务平台在获取到签名应用的安装指令之后,可以获取终端设备的已安装应用的第一应用标识集,并根据签名应用的第二应用标识以及第一应用标识集,确定安装指令是否为升级安装指令。其中,第一应用标识集为终端设备上已安装的应用的标识集合。
当第二应用标识包含于第一应用标识集时,则确定安装指令为升级安装指令;当第二应用标识未包含于第一应用标识集时,则确定安装指令为非升级安装指令,表示终端设备已安装第一版本的签名应用。
步骤S220:当确定安装指令为升级安装指令时,发送第二版本的签名应用对应的差分包以及当前签名信息至终端设备,使得终端设备基于初始安装包、差分包以及当前签名信息,生成对应的升级签名安装包,并当升级签名安装包验签成功时,根据升级签名安装包对签名应用进行升级安装,使得签名应用由第一版本升级为第二版本。
在本实施例中,服务平台预先存储有第二版本的签名应用对应的当前安装包以及当前签名信息,当前签名信息用于对第二版本的签名应用进行验签,当前安装包用于在当前签名信息对第二版本的签名应用验签成功时,对第二版本的签名应用进行安装。终端设备已安装有第一版本的签名应用,第一版本低于第二版本,表示第二版本为签名应用的待升级版本。
当服务平台确定安装指令为升级安装指令时,可以发送第二版本的签名应用对应的差分包以及当前签名信息至终端设备,终端接收并响应差分包以及当前签名信息,获取已安装的第一版本的签名应用的初始签名安装包,并解析初始签名安装包,获得初始安装包以及初始签名信息,并删除初始签名信息,并对初始安装包以及差分包进行合成,获得升级安装包,并对升级安装包以及当前签名信息进行组包,获得升级签名安装包,并根据当前签名信息,确定升级签名安装包是否验签成功,并当确定升级签名安装包验签成功时,根据升级签名安装包中的升级安装包对签名应用进行升级安装,使得签名应用由第一版本升级为第二版本,实现了在确定安装指令为升级安装指令时,根据还原第一版本的签名应用对应的初始签名安装包获得的初始安装包、第二版本对应的差分包以及当前签名信息,生成升级签名安装包,并在升级签名安装包验签成功时,根据升级签名安装包将签名应用由第一版本升级安装为第二版本,无需用户手动删除第一版本的签名应用的初始签名信息,提高了签名应用的升级安装效率。
其中,差分包为第二版本的签名应用对应的当前安装包与初始安装包之间的差异数据包。
本实施例提供的方案,通过获取签名应用的安装指令,以及当确定安装指令为升级安装指令时,发送第二版本的签名应用对应的差分包以及当前签名信息至终端设备,使得终端设备基于初始安装包、差分包以及当前签名信息,生成对应的升级签名安装包,并当升级签名安装包验签成功时,根据升级签名安装包对签名应用进行升级安装,使得签名应用由第一版本升级为第二版本,实现了在确定安装指令为升级安装指令时,根据还原第一版本对应的初始签名安装包获得的初始安装包、第二版本对应的差分包以及当前签名信息,生成升级签名安装包,并在升级签名安装包验签成功时,根据升级签名安装包将签名应用由第一版本升级安装为第二版本,无需用户手动删除第一版本的签名应用的初始签名信息,提高了签名应用的升级安装效率。
请参阅图4,其示出了本申请一个实施例提供的升级安装装置300,升级安装装置300可以应用于如图1所示的升级安装系统中的终端设备100,下面将以终端设备100为例,对图4所示的升级安装装置300进行阐述,升级安装装置300可以包括第一指令获取模块310、升级下载请求发送模块320、安装包获取模块330、还原模块340、升级安装包生成模块350以及升级安装模块360。
第一指令获取模块310可以用于获取签名应用的安装指令;升级下载请求发送模块320可以用于当确定安装指令为升级安装指令时,发送升级下载请求至服务平台,使得服务平台根据升级下载请求,发送第二版本的签名应用对应的差分包以及当前签名信息至终端设备,差分包为第二版本的签名应用对应的当前安装包与终端设备已安装的第一版本的签名应用对应的初始安装包之间的差异数据包,第一版本低于第二版本;安装包获取模块330可以用于获取第一版本的签名应用的初始签名安装包,初始签名安装包可以包括初始签名信息以及初始安装包;还原模块340可以用于还原初始签名安装包,获得初始安装包;升级安装包生成模块350可以用于根据初始安装包、差分包以及当前签名信息,生成对应的升级签名安装包;升级安装模块360可以用于当确定升级签名安装包验签成功时,根据升级签名安装包对签名应用进行升级安装,使得签名应用由第一版本升级为第二版本。
在一些实施方式中,升级安装装置300还可以包括标识获取模块以及第一确定模块。
标识获取模块可以用于当升级下载请求发送模块320确定安装指令为升级安装指令时,发送升级下载请求至服务平台,使得服务平台根据升级下载请求,发送第二版本的签名应用对应的差分包以及当前签名信息至终端设备之前,获取终端设备的已安装应用的第一应用标识集;第一确定模块可以用于根据签名应用的第二应用标识以及第一应用标识集,确定安装指令是否为升级安装指令。
在一些实施方式中,升级下载请求发送模块320可以包括发送单元。
发送单元可以用于当第二应用标识包含于第一应用标识集时,确定安装指令为升级安装指令,发送升级下载请求至服务平台,使得服务平台根据升级下载请求,发送第二版本的签名应用对应的差分包以及当前签名信息至终端设备。
在一些实施方式中,升级安装装置300还可以包括第二确定模块、完整下载请求发送模块、完整安装包生成模块以及完整安装模块。
第二确定模块可以用于当第二应用标识未包含于第一应用标识集时,确定安装指令为非升级安装指令;完整下载请求发送模块可以用于发送完整下载请求至服务平台,使得服务平台根据完整下载请求发送当前安装包以及当前签名信息至终端设备;完整安装包生成模块可以用于根据当前安装包以及当前签名信息,生成对应的完整签名安装包;完整安装模块可以用于当确定完整签名安装包验签成功时,根据完整签名安装包安装第二版本的签名应用。
在一些实施方式中,还原模块340可以包括解析单元以及删除单元。
解析单元可以用于解析初始签名安装包,获得初始安装包以及初始签名信息;删除单元可以用于删除初始签名信息。
本实施例提供的方案,通过获取签名应用的安装指令,并当确定安装指令为升级安装指令时,发送升级下载请求至服务平台,使得服务平台根据升级下载请求,发送第二版本的签名应用对应的差分包以及当前签名信息至终端设备,差分包为第二版本的签名应用对应的当前安装包与终端设备已安装的第一版本的签名应用对应的初始安装包之间的差异数据包,第一版本低于第二版本,并获取第一版本的签名应用的初始签名安装包,初始签名安装包包括初始签名信息以及初始安装包,并还原初始签名安装包,获得初始安装包,并根据初始安装包、差分包以及当前签名信息,生成对应的升级签名安装包,以及当升级签名安装包验签成功时,根据升级签名安装包对签名应用进行升级安装,使得签名应用由第一版本升级为第二版本,实现了在确定安装指令为升级安装指令时,根据还原第一版本对应的初始签名安装包获得的初始安装包、第二版本对应的差分包以及当前签名信息,生成升级签名安装包,并在升级签名安装包验签成功时,根据升级签名安装包将签名应用由第一版本升级安装为第二版本,无需用户手动删除第一版本的签名应用的初始签名信息,提高了签名应用的升级安装效率。
请参阅图5,其示出了本申请另一个实施例提供的升级安装装置400,升级安装装置400可以应用于如图1所示的升级安装系统中的服务平台200,下面将以服务平台200为例,对图5所示的升级安装装置400进行阐述,升级安装装置400可以包括第二指令获取模块410以及信息发送模块420。
第二指令获取模块410可以用于获取签名应用的安装指令;信息发送模块420可以用于当确定安装指令为升级安装指令时,发送第二版本的签名应用对应的差分包以及当前签名信息至终端设备,使得终端设备基于初始安装包、差分包以及当前签名信息,生成对应的升级签名安装包,并当升级签名安装包验签成功时,根据升级签名安装包对签名应用进行升级安装,使得签名应用由第一版本升级为第二版本,初始安装包为终端设备对终端设备已安装的第一版本的签名应用的初始签名安装包进行还原得到,初始签名安装包包括初始安装包以及初始签名信息,第一版本低于第二版本,差分包为第二版本的签名应用对应的当前安装包与初始安装包之间的差异数据包。
本实施例提供的方案,通过获取签名应用的安装指令,以及当确定安装指令为升级安装指令时,发送第二版本的签名应用对应的差分包以及当前签名信息至终端设备,使得终端设备基于初始安装包、差分包以及当前签名信息,生成对应的升级签名安装包,并当升级签名安装包验签成功时,根据升级签名安装包对签名应用进行升级安装,使得签名应用由第一版本升级为第二版本,实现了在确定安装指令为升级安装指令时,根据还原第一版本对应的初始签名安装包获得的初始安装包、第二版本对应的差分包以及当前签名信息,生成升级签名安装包,并在升级签名安装包验签成功时,根据升级签名安装包将签名应用由第一版本升级安装为第二版本,无需用户手动删除第一版本的签名应用的初始签名信息,提高了签名应用的升级安装效率。
需要说明的是,本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。对于装置类实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。对于方法实施例中的所描述的任意的处理方式,在装置实施例中均可以通过相应的处理模块实现,装置实施例中不再一一赘述。
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。
请参阅图6,其示出了本申请一个实施例提供的电子设备500的功能框图,该电子设备500可以包括一个或多个如下部件:存储器510、处理器520、以及一个或多个应用程序,其中一个或多个应用程序可以被存储在存储器510中并被配置为由一个或多个处理器520执行,一个或多个应用程序配置用于执行如前述方法实施例所描述的方法。
存储器510可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器510可用于存储指令、程序、代码、代码集或指令集。存储器510可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如获取安装指令、确定安装指令为升级安装指令、获取初始签名安装包、还原初始签名安装包、获得初始安装包、发送升级下载请求、发送差分包、发送当前签名信息、生产升级签名安装包、升级签名安装包验签成功、升级安装、获取第一应用标识集、确定是否为升级安装指令、确定为非升级安装指令、发送完整下载请求、发送当前安装包、生成完整签名安装包、完整签名安装包验签成功、安装第二版本的签名应用、解析初始签名安装包、获得初始安装包、获得初始签名信息以及删除初始签名信息等)、用于实现下述各个方法实施例的指令等。存储数据区还可以存储电子设备500在使用中所创建的数据(比如终端设备、签名应用、安装指令、升级安装指令、第一版本、初始签名安装包、初始安装包、初始签名信息、升级下载请求、服务平台、第二版本、第一版本低于第二版本、当前安装包、差异数据包、升级签名安装包、第一应用标识集、第二应用标识、第二应用标识包含于第一应用标识集、第二应用标识未包含于第一应用标识集、非升级安装指令、完整下载请求以及完整签名安装包)等。
处理器520可以包括一个或者多个处理核。处理器520利用各种接口和线路连接整个电子设备500内的各个部分,通过运行或执行存储在存储器510内的指令、程序、代码集或指令集,以及调用存储在存储器510内的数据,执行电子设备500的各种功能和处理数据。可选地,处理器520可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器520可集成中央处理器(Central Processing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器520中,单独通过一块通信芯片进行实现。
请参考图7,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读存储介质600中存储有程序代码610,程序代码610可被处理器调用执行上述方法实施例中所描述的方法。
计算机可读存储介质600可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质600包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质600具有执行上述方法中的任何方法步骤的程序代码610的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码610可以例如以适当形式进行压缩。
请参考图8,其示出了本申请实施例提供的一种计算机程序产品700的结构框图。该计算机程序产品700包括计算机程序/指令710,计算机程序/指令710存储在计算机设备的计算机可读存储介质中。计算机程序产品700在计算机设备上运行时,计算机设备的处理器从计算机可读存储介质读取计算机程序/指令710,处理器执行计算机程序/指令710,使得该计算机设备执行上述方法实施例中所描述的方法。
本实施例提供的方案,通过获取签名应用的安装指令,并当确定安装指令为升级安装指令时,发送升级下载请求至服务平台,使得服务平台根据升级下载请求,发送第二版本的签名应用对应的差分包以及当前签名信息至终端设备,差分包为第二版本的签名应用对应的当前安装包与终端设备已安装的第一版本的签名应用对应的初始安装包之间的差异数据包,第一版本低于第二版本,并获取第一版本的签名应用的初始签名安装包,初始签名安装包包括初始签名信息以及初始安装包,并还原初始签名安装包,获得初始安装包,并根据初始安装包、差分包以及当前签名信息,生成对应的升级签名安装包,以及当确定升级签名安装包验签成功时,根据升级签名安装包对签名应用进行升级安装,使得签名应用由第一版本升级为第二版本,实现了在确定安装指令为升级安装指令时,根据还原第一版本对应的初始签名安装包获得的初始安装包、第二版本对应的差分包以及当前签名信息,生成升级签名安装包,并在升级签名安装包验签成功时,根据升级签名安装包将签名应用由第一版本升级安装为第二版本,无需用户手动删除第一版本的签名应用的初始签名信息,提高了签名应用的升级安装效率。
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。

Claims (10)

  1.  一种升级安装方法,其特征在于,应用于终端设备,所述升级安装方法,包括:
    获取签名应用的安装指令;
    当确定所述安装指令为升级安装指令时,发送升级下载请求至服务平台,使得所述服务平台根据所述升级下载请求,发送第二版本的所述签名应用对应的差分包以及当前签名信息至所述终端设备,所述差分包为所述第二版本的所述签名应用对应的当前安装包与所述终端设备已安装的第一版本的所述签名应用对应的初始安装包之间的差异数据包,所述第一版本低于所述第二版本;
    获取所述第一版本的签名应用的初始签名安装包,所述初始签名安装包包括初始签名信息以及所述初始安装包;
    还原所述初始签名安装包,获得所述初始安装包;
    根据所述初始安装包、所述差分包以及所述当前签名信息,生成对应的升级签名安装包;
    当确定所述升级签名安装包验签成功时,根据所述升级签名安装包对所述签名应用进行升级安装,使得所述签名应用由所述第一版本升级为所述第二版本。
  2.  根据权利要求1所述的升级安装方法,其特征在于,所述当确定所述安装指令为升级安装指令时,发送升级下载请求至服务平台,使得所述服务平台根据所述升级下载请求,发送第二版本的所述签名应用对应的差分包以及当前签名信息至所述终端设备之前,还包括:
    获取所述终端设备的已安装应用的第一应用标识集;
    根据所述签名应用的第二应用标识以及所述第一应用标识集,确定所述安装指令是否为升级安装指令;
    所述当确定所述安装指令为升级安装指令时,发送升级下载请求至服务平台,使得所述服务平台根据所述升级下载请求,发送第二版本的所述签名应用对应的差分包以及当前签名信息至所述终端设备,包括:
    当所述第二应用标识包含于所述第一应用标识集时,确定所述安装指令为升级安装指令,发送升级下载请求至服务平台,使得所述服务平台根据所述升级下载请求,发送第二版本的所述签名应用对应的差分包以及当前签名信息至所述终端设备。
  3.  根据权利要求2所述的升级安装方法,其特征在于,还包括:
    当所述第二应用标识未包含于所述第一应用标识集时,确定所述安装指令为非升级安装指令;
    发送完整下载请求至所述服务平台,使得所述服务平台根据所述完整下载请求发送所述当前安装包以及所述当前签名信息至所述终端设备;
    根据所述当前安装包以及所述当前签名信息,生成对应的完整签名安装包;
    当确定所述完整签名安装包验签成功时,根据所述完整签名安装包安装所述第二版本的所述签名应用。
  4.  根据权利要求1至3中任一项所述的升级安装方法,其特征在于,所述还原所述初始签名安装包,获得所述初始安装包,包括:
    解析所述初始签名安装包,获得所述初始安装包以及所述初始签名信息;
    删除所述初始签名信息。
  5.  一种升级安装方法,其特征在于,应用于服务平台,所述升级安装方法,包括:
    获取签名应用的安装指令;
    当确定所述安装指令为升级安装指令时,发送第二版本的所述签名应用对应的差分包以及当前签名信息至终端设备,使得所述终端设备基于初始安装包、所述差分包以及所述当前签名信息,生成对应的升级签名安装包,并当所述升级签名安装包验签成功时,根据所述升级签名安装包对所述签名应用进行升级安装,使得所述签名应用由第一版本升级为所述第二版本,所述初始安装包为所述终端设备对所述终端设备已安装的所述第一版本的所述签名应用的初始签名安装包进行还原得到,所述初始签名安装包包括初始安装包以及初始签名信息,所述第一版本低于所述第二版本,所述差分包为所述第二版本的所述签名应用对应的当前安装包与所述初始安装包之间的差异数据包。
  6.  一种升级安装装置,其特征在于,应用于终端设备,所述升级安装装置,包括:
    第一指令获取模块,用于获取签名应用的安装指令;
    升级下载请求发送模块,用于当确定所述安装指令为升级安装指令时,发送升级下载请求至服务平台,使得所述服务平台根据所述升级下载请求,发送第二版本的所述签名应用对应的差分包以及当前签名信息至所述终端设备,所述差分包为所述第二版本的所述签名应用对应的当前安装包与所述终端设备已安装的第一版本的所述签名应用对应的初始安装包之间的差异数据包,所述第一版本低于所述第二版本;
    安装包获取模块,用于获取所述第一版本的签名应用的初始签名安装包,所述初始签名安装包包括初始签名信息以及所述初始安装包;
    还原模块,用于还原所述初始签名安装包,获得所述初始安装包;
    升级安装包生成模块,用于根据所述初始安装包、所述差分包以及所述当前签名信息,生成对应的升级签名安装包;
    升级安装模块,用于当确定所述升级签名安装包验签成功时,根据所述升级签名安装包对所述签名应用进行升级安装,使得所述签名应用由所述第一版本升级为所述第二版本。
  7.  一种升级安装装置,其特征在于,应用于服务平台,所述升级安装装置,包括:
    第二指令获取模块,用于获取签名应用的安装指令;
    信息发送模块,用于当确定所述安装指令为升级安装指令时,发送第二版本的所述签名应用对应的差分包以及当前签名信息至终端设备,使得所述终端设备基于初始安装包、所述差分包以及所述当前签名信息,生成对应的升级签名安装包,并当所述升级签名安装包验签成功时,根据所述升级签名安装包对所述签名应用进行升级安装,使得所述签名应用由第一版本升级为所述第二版本,所述初始安装包为所述终端设备对所述终端设备已安装的所述第一版本的所述签名应用的初始签名安装包进行还原得到,所述初始签名安装包包括初始安装包以及初始签名信息,所述第一版本低于所述第二版本,所述差分包为所述第二版本的所述签名应用对应的当前安装包与所述初始安装包之间的差异数据包。
  8.  一种升级安装系统,其特征在于,包括终端设备以及服务平台,所述终端设备与所述服务平台连接;
    所述终端设备,用于执行如权利要求1至4中任一项所述的升级安装方法;
    所述服务平台,用于执行如权利要求5所述的升级安装方法。
  9.  一种电子设备,其特征在于,包括:
    存储器;
    一个或多个处理器,与所述存储器耦接;
    一个或多个应用程序,其中,所述一个或多个应用程序被存储在所述存储器中并被配置为由一个或多个处理器执行,所述一个或多个应用程序配置用于执行如权利要求1至4中任一项或者权利要求5所述的升级安装方法。
  10.  一种计算机可读取存储介质,其特征在于,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行如权利要求1至4中任一项或者权利要求5所述的升级安装方法。
PCT/CN2023/109687 2022-10-26 2023-07-27 升级安装方法及其装置、系统、电子设备及存储介质 WO2024087767A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211324179.7A CN115883359A (zh) 2022-10-26 2022-10-26 升级安装方法及其装置、系统、电子设备及存储介质
CN202211324179.7 2022-10-26

Publications (1)

Publication Number Publication Date
WO2024087767A1 true WO2024087767A1 (zh) 2024-05-02

Family

ID=85759032

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/109687 WO2024087767A1 (zh) 2022-10-26 2023-07-27 升级安装方法及其装置、系统、电子设备及存储介质

Country Status (2)

Country Link
CN (1) CN115883359A (zh)
WO (1) WO2024087767A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115883359A (zh) * 2022-10-26 2023-03-31 深圳市兆珑科技有限公司 升级安装方法及其装置、系统、电子设备及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107239288A (zh) * 2014-06-27 2017-10-10 青岛海信移动通信技术股份有限公司 一种移动终端的版本升级方法及装置
CN112912847A (zh) * 2018-11-09 2021-06-04 华为技术有限公司 空中下载升级的方法及相关装置
CN114780124A (zh) * 2022-04-08 2022-07-22 北京字节跳动网络技术有限公司 差分升级方法、装置、介质及电子设备
CN115883359A (zh) * 2022-10-26 2023-03-31 深圳市兆珑科技有限公司 升级安装方法及其装置、系统、电子设备及存储介质

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107239288A (zh) * 2014-06-27 2017-10-10 青岛海信移动通信技术股份有限公司 一种移动终端的版本升级方法及装置
CN112912847A (zh) * 2018-11-09 2021-06-04 华为技术有限公司 空中下载升级的方法及相关装置
CN114780124A (zh) * 2022-04-08 2022-07-22 北京字节跳动网络技术有限公司 差分升级方法、装置、介质及电子设备
CN115883359A (zh) * 2022-10-26 2023-03-31 深圳市兆珑科技有限公司 升级安装方法及其装置、系统、电子设备及存储介质

Also Published As

Publication number Publication date
CN115883359A (zh) 2023-03-31

Similar Documents

Publication Publication Date Title
JP6754011B2 (ja) 音声サービスを提供するための方法、装置およびサーバ
US11093981B2 (en) Smart broadcasting device
WO2017071207A1 (zh) 一种应用安装方法、相关装置及应用安装系统
WO2017166446A1 (zh) 漏洞修复方法和装置
WO2015062243A1 (zh) 信息展示方法和装置
WO2017071358A1 (zh) 一种软件升级的方法及装置
WO2011088714A1 (zh) 应用程序运行方法、装置及系统
CN102291437A (zh) 跨平台互联网应用的实现系统及方法
WO2024087767A1 (zh) 升级安装方法及其装置、系统、电子设备及存储介质
US10404568B2 (en) Agent manager for distributed transaction monitoring system
KR20080037450A (ko) 소프트웨어 실행모듈의 업데이트 시스템 및 방법
JP2007528064A (ja) 無線装置オペレーティング環境における未検証プログラムの実行
CN109375937A (zh) 系统升级方法、装置、终端设备及存储介质
WO2022142153A1 (zh) 电表升级方法、系统、智能电表及存储介质
EP2664998A1 (en) Microblog message processing method and device thereof
CN110045969B (zh) 应用程序安装方法、服务器、系统、设备及存储介质
CN102377793B (zh) 基于移动通讯设备终端的Flash交互方法及装置
CN109218338B (zh) 信息处理系统、方法和装置
WO2024032209A1 (zh) 区块链交易验证方法、装置、存储介质及电子设备
CN101577730A (zh) 一种基于ftp协议的同步上传与下载文件的方法
CN116567133A (zh) 一种资源播放方法和相关装置
WO2013097610A1 (zh) 一种基于即时通信软件实现插件升级的方法及装置
CN112597022A (zh) 远程诊断方法、装置、存储介质及电子设备
CN113821248B (zh) 车机端软件的服务方法、车机端软件及其相关设备
KR102166211B1 (ko) 메신저 서비스 시스템, 그의 메신저 사용자 인증을 위한 방법 및 장치