CN114064096A - Application upgrading method and device, terminal and computer readable storage medium - Google Patents

Application upgrading method and device, terminal and computer readable storage medium Download PDF

Info

Publication number
CN114064096A
CN114064096A CN202111220304.5A CN202111220304A CN114064096A CN 114064096 A CN114064096 A CN 114064096A CN 202111220304 A CN202111220304 A CN 202111220304A CN 114064096 A CN114064096 A CN 114064096A
Authority
CN
China
Prior art keywords
target application
application
upgrading
data packet
upgrade
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202111220304.5A
Other languages
Chinese (zh)
Inventor
李政军
陈娅芳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hunan New Cloudnet Technology Co ltd
Original Assignee
Hunan New Cloudnet Technology Co ltd
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 Hunan New Cloudnet Technology Co ltd filed Critical Hunan New Cloudnet Technology Co ltd
Priority to CN202111220304.5A priority Critical patent/CN114064096A/en
Publication of CN114064096A publication Critical patent/CN114064096A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/656Updates while running
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The application is applicable to the technical field of software upgrading, and particularly relates to an application upgrading method, an application upgrading device, a terminal and a computer-readable storage medium, wherein the upgrading method comprises the following steps: responding to a first starting instruction of a target application, running the target application, and acquiring identification information of the target application; acquiring an upgrading data packet of the target application based on the identification information of the target application; and upgrading the target application based on the upgrading data packet of the target application, thereby realizing automatic detection and upgrading when the target application is started.

Description

Application upgrading method and device, terminal and computer readable storage medium
Technical Field
The present application belongs to the technical field of software upgrading, and in particular, to an application upgrading method, apparatus, terminal, and computer-readable storage medium.
Background
At present, the updating iteration speed of software is faster and faster, and due to habits, a user usually finds that the software needs to be updated when using the software. The existing teaching software upgrading system generally adopts online upgrading, if the software is just required to be upgraded in the course of a teacher, the software cannot be used, and when a package required to be upgraded is large and the network condition is not good, the upgrading package is downloaded from a server and decompressed, installed and replaced for a long time, after the software is installed, the teacher needs to reopen the software for use, and the teaching rhythm of the teacher is interfered.
Disclosure of Invention
The embodiment of the application upgrading method and device, the terminal and the computer readable storage medium can solve the problems that a user needs to manually upgrade, the upgrading time is too long, and an application program cannot be used due to upgrading.
In a first aspect, an embodiment of the present application provides an application upgrade method, including:
responding to a first starting instruction of a target application, running the target application, and acquiring identification information of the target application;
acquiring an upgrading data packet of the target application based on the identification information of the target application;
and upgrading the target application based on the upgrading data packet of the target application.
In a second aspect, an embodiment of the present application provides an application upgrading apparatus, including:
the first obtaining unit is used for responding to a first starting instruction of a target application, running the target application and obtaining the identification information of the target application;
a second obtaining unit, configured to obtain an upgrade data packet of the target application based on the identification information of the target application;
and the upgrading unit is used for upgrading the target application based on the upgrading data packet of the target application.
In a third aspect, an embodiment of the present application provides a terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the method of the first aspect when executing the computer program.
In a fourth aspect, the present application provides a computer-readable storage medium, where a computer program is stored, and when executed by a processor, the computer program implements the steps of the method of the first aspect.
In the embodiment of the application, when the starting instruction of the target application is received, the target application is started, the version identification information of the target application is obtained, the upgrading data packet of the target application is obtained according to the version identification information of the target application, the target application is upgraded, the upgrading process is carried out when the target application needs to be executed, the upgrading process does not affect the use of the target application, a user is not affected by the upgrading process, the effect of non-inductive upgrading is achieved, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic flowchart of a first implementation flow of an application upgrade method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a second implementation of an application upgrade method according to an embodiment of the present application;
fig. 3A is a schematic flowchart of a third implementation of an application upgrade method according to an embodiment of the present application;
fig. 3B is a schematic flowchart of a fourth implementation process of an application upgrade method according to an embodiment of the present application;
FIG. 4 is a schematic diagram illustrating a storage configuration of an upgrade data package of a target application according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a storage configuration of an upgrade data package of an application upgrade apparatus according to another embodiment of the present application;
FIG. 6 is a schematic structural diagram of an application upgrading apparatus provided in an embodiment of the present application;
fig. 7 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
In the embodiment of the application, when the starting instruction of the target application is received, the target application is started, the version identification information of the target application is obtained, the upgrading data packet of the target application is obtained according to the version identification information of the target application, and the target application is upgraded, so that the upgrading process is carried out when the target application needs to be executed, the upgrading process does not influence the use of the target application, a user is not influenced by the upgrading process, the effect of non-inductive upgrading is realized, and the user experience is improved.
In order to explain the technical solution of the present application, the following description will be given by way of specific examples.
Fig. 1 shows a schematic implementation flow diagram of an application upgrade method provided in an embodiment of the present application, where the application upgrade method may be executed by an application upgrade apparatus configured on a terminal, and may include the following steps 101 to 103.
Step 101: and responding to a first starting instruction of the target application, running the target application, and acquiring the identification information of the target application.
The identification information is used to identify the target application, and the identification information may include an application name of the target application and a current version number of the target application.
In the embodiment of the application upgrading method, when the application upgrading device receives a first starting instruction of a target application, the target application is started according to a starting path of the target application, and the application name and the current version number information of the target application are obtained.
Step 102: and acquiring an upgrading data packet of the target application based on the identification information of the target application.
In the embodiment of the application, in the process of acquiring the upgrade data package of the target application based on the identification information of the target application, the identification information of the target application may be sent to the version library server, the version library server searches for the data package with the application name identical to the application name of the target application in the version library based on the identification information of the target application, then, the version library server compares the version number in the version library with the received version number in the searched data package, determines the upgrade data package of the target application, sends the upgrade data package information of the target application, and the application upgrading device downloads the upgrade data package of the target application based on the upgrade data package information.
The version library server may be a local server or a cloud platform version library server.
In some embodiments of the present application, after receiving the upgrade data package information of the target application, the application upgrade apparatus may download the upgrade data package of the target application according to the current network usage and bandwidth resource of the terminal, where the download includes breakpoint resuming, bandwidth limitation downloading, downloading with a network condition, and downloading with a set time.
The upgrade package information of the target application may include download address information and identification information of the upgrade package directing the target application, such as an upgrade version number and an upgrade package name identification, and in some embodiments, may further include one or more of an upgrade package size, an upgrade package extension, an upgrade package MD5, and a redirection address.
Optionally, in some embodiments of the application, after comparing the identification information, when it is determined that the upgrade data packet of the target application does not exist in the version library, the server sends the feedback information of the upgrade data packet of the target application does not exist in the version library to the application upgrade apparatus, so that the application upgrade apparatus finishes upgrading the target application.
Step 103: and upgrading the target application based on the upgrading data packet of the target application.
In the embodiment of the application, in the process of upgrading the target application based on the upgrade data packet of the target application, the downloaded upgrade data packet of the target application may be decompressed to the specified storage path, and the start path of the target application may be modified to the specified storage path, so as to complete the upgrade configuration of the target application.
Optionally, the execution frequency of the upgrading step of the target application may be set according to specific situations.
For example, in some application scenarios where the update speed of the target application is fast, the upgrade step of the target application may be performed each time the target application needs to be started. When the target application is slow in updating speed or the frequency of starting the target application by a user is far greater than the updating speed of the target application, the upgrading step can be executed on the target application by setting a first preset starting time, wherein the upgrading step is executed on the target application every time the target application is started by a first preset starting time interval, or the upgrading step is executed by setting a first preset upgrading time when the target application needs to be started every time the first preset upgrading time interval.
In the embodiment of the application upgrading method, when the target application needs to be started, the application upgrading device responds to a first starting instruction of the target application, runs the target application, acquires identification information of the target application, and then acquires an upgrading data packet of the target application based on the identification information of the target application; and finally, the target application is upgraded based on the upgrade data packet of the target application, so that the upgrade data packet condition of the target application is detected and obtained when the target application is started by a user, the target application is upgraded without influencing the use of the target application, and the effect of noninductive upgrade is realized.
Optionally, in some embodiments of the application, in the step 102, in the process of obtaining the upgrade data package of the target application based on the identification information of the target application, the upgrade data package including the full data package of the target application and/or the incremental data package of the target application may be obtained based on the identification information of the target application.
In practical application, the identification information of the target application can be sent to the version library server, then the version library server searches the application name of the target application in the version library, compares the version number on the version library with the received version number, and determines that the full data packet and the incremental data packet of the target application with the version number larger than the received version number on the version library are the upgrading data packet of the target application. If the upgrade data packet with the maximum version number in the upgrade data packets of the target application on the version library is a full data packet, sending full data packet information; and if the upgrade data packet with the maximum version number in the upgrade data packets of the target application on the version library is an incremental data packet, checking whether a full amount of data packets exist in the upgrade data packets of the target application on the version library. If the upgrade data packet of the target application on the version library contains the full data packet, acquiring the information of the full data packet with the maximum version number and the information of all incremental data packets with the version numbers larger than the full data packet in the upgrade data packet of the target application on the version library; and if the upgrading data package of the target application on the version library only contains the increment upgrading data package, acquiring the information of all upgrading data packages of the target application on the version library. And finally, the server sends the upgrading data packet information of the target application, and the application software upgrading device downloads the upgrading data packet of the target application based on the information.
Optionally, in some embodiments, the process of searching for the upgrade data package by the version library server may also be performed by the terminal in a local library.
It should be noted that, in general, the version number is composed of several segments, for example, a.b.c, and the version number a.b.c of the upgrade packet is larger than the original version number by at least one bit. Therefore, the size comparison of the version numbers indicates that the sections in the version numbers are compared, and the upgrade data packet with the largest version number indicates the latest upgrade data packet.
Optionally, in some embodiments of the present application, in step 103, before the target application is upgraded based on the upgrade data packet of the target application, the upgrade data packet of the target application may be checked, and if the upgrade data packet of the target application is successfully checked, the target application is upgraded based on the upgrade data packet of the target application.
The verification may include a package size verification of the upgrade data package of the target application and an MD5 verification.
Optionally, if the upgrade data package of the target application is not successfully verified, the upgrade data package of the target application needs to be downloaded again according to the upgrade data package information of the target application.
In some embodiments of the present application, as in fig. 2, after the target application is upgraded based on the upgrade data package of the target application in step 103, the following steps 104 to 106 may be further included.
Step 104: responding to a second starting instruction of a target application, and starting the target application based on an upgrading data packet of the target application;
in this embodiment of the application, after the upgrade data packet of the target application is upgraded, when the application upgrading device receives a start request of the target application next time, the target application may be started according to a start path of the upgraded target application, that is, the target application is started based on the upgrade data packet of the target application.
Step 105: if the target application is started successfully and the upgrade data packet of the target application contains the full data packet of the target application, deleting the application data packet of the previous version of the target application;
in a specific application, if the target application is successfully started, which indicates that the upgrade data packet of the target application is successfully configured, the upgrade data packet of the target application may be used, and in order to save space, if the upgrade data packet of the target application includes a full data packet, that is, the upgrade data packet of the target application is a full data packet and an incremental data packet, or the upgrade data packet of the target application includes only one full data packet, the upgrade data packet of the target application may be independently started without depending on the data packet of the previous version of the target application, so that the application data packet of the previous version of the target application is deleted.
Step 106: and if the target application is not successfully started, starting the target application based on the application data packet of the previous version of the target application.
In a specific application, if the target application is not started successfully, indicating that the upgraded target application is not available, the application upgrading device acquires a starting path of a previous version application data packet of the target application, and starts the previous version data packet of the target application according to the starting path, so as to ensure that the target application used by a user is not influenced.
The conversion process for starting the previous version of the target application immediately after the data upgrade package of the target application is failed to start is almost imperceptible to a user.
It should be noted that the first start instruction in step 101 and the second start instruction in step 104 are two start instructions before and after the target application is upgraded each time in the upgrade process. The first starting instruction and the second starting instruction have sequential distinguishing significance only in the upgrading process of a certain time, and in a scene that the target application needs to be detected and upgraded when being started each time, the detection upgrading operation executed in response to the second starting instruction is the next detection upgrading operation of the detection upgrading operation executed in response to the first starting instruction.
In the embodiment of the application, the application upgrading device responds to the starting instruction of the target application after upgrading the target application based on the upgrading data packet of the target application, starts the target application based on the upgrading data packet of the target application, if the target application is started successfully and the upgrading data packet of the target application contains a full upgrading packet, the upgrading data packet of the target application is indicated to be configured successfully and the target application is started independently of the data packet of the target application of the previous version, so that the application data packet of the previous version of the target application is deleted, if the target application is not started successfully, the data packet of the target application of the previous version is started, whether the upgraded target application can be used or not is detected when the target application is started, and when the starting instruction of the target application is received, the target application can be smoothly started without influencing the use of the user, the user can be ensured to use the target application without hindrance under the condition of upgrading the target application, and the user experience when the target application is used is improved.
In some embodiments of the present application, in addition to upgrading a target application with an application upgrading device, the application upgrading device may also be upgraded.
For example, as shown in fig. 3A, for an implementation flow diagram of another application upgrade method provided in the embodiment of the present application, the application upgrade method may include steps 201 to 206
Step 201: responding to a first starting instruction of the target application, running the target application, and acquiring identification information of the target application;
step 202: acquiring an upgrading data packet of the target application based on the identification information of the target application;
step 203: upgrading the target application based on an upgrading data packet of the target application;
step 201 to step 203 are the same as step 101 to step 103, and are not described herein again.
Step 204: when a target application is started, acquiring identification information of an application upgrading device;
the identification information of the application upgrading device comprises the name of the application upgrading device and the current version number of the application upgrading device.
Step 205: acquiring an upgrading data packet of the application upgrading device based on the identification information of the application upgrading device;
in the embodiment of the application, in an upgrade data package of an application upgrading device obtained based on identification information of the application upgrading device, the identification information of the application upgrading device can be sent to a version library server, the version library server searches for a data package with the same name as that of the application upgrading device in a version library based on the identification information of the application upgrading device, then the version library server compares the version number on the version library with the received version number in the searched data package, determines the upgrade data package of the application upgrading device, sends upgrade data package information of the application upgrading device, and the application upgrading device downloads the upgrade data package for upgrading the application upgrading device based on the information.
It should be noted that, only the whole upgrade package is included in the upgrade data packages of the application upgrade apparatus. When the server determines the upgrade data package of the application upgrade apparatus, if the version library contains a plurality of upgrade data packages of the application upgrade apparatus, the server may obtain the latest upgrade data package information of the application upgrade apparatus, or may obtain the upgrade data package of any one application upgrade apparatus.
The version library server may be a local server or a cloud platform version library server.
The upgrade package information of the application upgrade apparatus may include download address information and identification information, such as an upgrade version number and an upgrade package name identifier, which are used to guide the upgrade package of the application upgrade apparatus.
Step 206: and upgrading the application upgrading device based on the upgrading data packet of the application upgrading device.
The downloaded target application can be decompressed to a specified directory, and the upgrading configuration of the application upgrading device is completed.
Optionally, in some embodiments of the present application, before the application upgrading device is upgraded based on the upgrade data package of the application upgrading device, the upgrade data package of the application upgrading device may be checked, and if the upgrade data package of the application upgrading device is successfully checked, the application upgrading device is upgraded based on the upgrade data package of the application upgrading device.
Optionally, in some embodiments of the present application, in step 202, in obtaining an upgrade data package of the target application based on the identification information of the target application, if the server finds that there is no upgrade data package of the target application in the version library after comparing the identification information, when the upgrade data package information of the target application is transmitted to the application upgrading apparatus, the current application upgrading apparatus program is not exited, and step 204 to step 205 are continuously executed. And if the server compares the identification information and finds that the version library does not have the upgrading data packet of the application upgrading device, exiting the current application upgrading device program when the upgrading data packet information of the non-application upgrading device is received. If the server compares the identification information and finds that the version library has the upgrade data packet of the application upgrading device, the step 206 is continuously executed to complete the upgrading of the application upgrading device.
It should be noted that the execution order of the above steps does not depend on the number of the steps.
Optionally, referring to fig. 3B, the execution of steps 204 to 206 is performed simultaneously with the execution of steps 201 to 203, that is, in some embodiments of the present application, the application upgrade method may be further implemented based on the following steps 301 to 303.
Step 301: responding to a first starting instruction of a target application, running the target application, and acquiring identification information of an application upgrading device and the target application;
step 302: acquiring an upgrading data packet of the application upgrading device and the target application based on the identification information of the application upgrading device and the target application;
step 303: and upgrading the application upgrading device and the target application based on the upgrading data packet of the application upgrading device and the upgrading data packet of the target application.
In the embodiment of the application upgrading device, when the target application needs to be started, the application upgrading device responds to the starting instruction of the target application, runs the target application, and acquires the identification information of the target application and the application upgrading device, then, the upgrading data packet of the target application and the application upgrading device is obtained based on the identification information of the target application and the application upgrading device, finally, the target application and the application upgrading device are upgraded based on the upgrading data packet of the target application and the upgrading data packet of the application upgrading device, the detection and the obtaining of the upgrading data packet conditions of the target application and the application upgrading device are realized when a user starts the target application, the target application and the application upgrading device are upgraded without influencing the use of the target application and the application upgrading device, and the purpose of noninductive automatic upgrading of the target application and the application upgrading device is realized.
In some embodiments of the application, in step 103, the target application is upgraded based on the upgrade data packet of the target application, and the incremental data packet and the full data packet in the upgrade data packet of the target application may be sequentially decompressed into the target folder from small to large according to the version numbers, and the start path of the target application is modified to be mapped to the storage path corresponding to the data packet of the target application.
The target application data packet is a data packet with the maximum version number in the incremental data packet and the full data packet.
In an embodiment of the present application, the target folder may be named as a version number of the target application package.
Optionally, in an embodiment of the present application, a storage path of the target folder and an application data package of the application upgrade apparatus may be under the same storage path, as in the schematic diagram of a storage path of a target application upgrade data package in fig. 4.
It should be noted that, when the upgrade data packet of the target application only contains one full data packet or one incremental data packet, the full data packet or the incremental data packet of the target application may be directly decompressed into the target folder, and the start path of the target application may be modified to be mapped to the storage path corresponding to the full data packet or the incremental data packet. Wherein the target folder may name the version number of the full or incremental data package.
After the starting path of the target application is modified to be mapped to the storage path corresponding to the target application data packet, the upgraded target application can be started according to the starting path of the upgrading data packet of the target application when the target application starting instruction of the user is responded next time.
In some embodiments of the present application, as shown in fig. 5, in the step 206, during upgrading the application upgrading apparatus based on the upgrade data packet of the application upgrading apparatus, the upgrade data packet of the application upgrading apparatus may be decompressed to a root directory where the application upgrading apparatus starts to operate, and rename and replace the upgrade data packet.
The application upgrading device is running, the exe execution files under the root directory started to run by the application upgrading device are renamed, and the exe files obtained after the upgrading data packet of the application upgrading device is decompressed are named as original exe files.
Optionally, after the application upgrading device is started next time, the exe file of the previous version is deleted.
It should also be noted that, for simplicity of description, the foregoing method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, and that some steps may occur in other orders in some implementations of the present application.
Fig. 6 shows a schematic structural diagram of an application upgrading apparatus 600 provided in an embodiment of the present application, including a first obtaining unit 601, a second obtaining unit 602, and an upgrading unit 603.
A first obtaining unit 601, configured to run a target application in response to a first start instruction of the target application, and obtain identification information of the target application;
a second obtaining unit 602, configured to obtain an upgrade data package of the target application based on the identification information of the target application;
an upgrading unit 603, configured to upgrade the target application based on the upgrade data packet of the target application.
In some embodiments of the present application, the first obtaining unit 601 may be further specifically configured to, in response to a second start instruction of a target application, start the target application based on an upgrade data packet of the target application;
if the target application is started successfully and the upgrade data packet of the target application contains the full data packet of the target application, deleting the application data packet of the previous version of the target application;
and if the target application is not successfully started, starting the target application based on the application data packet of the previous version of the target application.
In some embodiments of the present application, the first obtaining unit 601 may be further specifically configured to, when a target application is started, obtain identification information of the application upgrading apparatus; the second obtaining unit 602 may be further specifically configured to obtain an upgrade data packet of the application upgrade apparatus based on the identification information of the application upgrade apparatus; the upgrading unit may be further specifically configured to upgrade the application upgrading apparatus based on an upgrade data packet of the application upgrading apparatus.
In some embodiments of the present application, the second obtaining unit 602 may be further specifically configured to obtain, based on the identification information of the target application, an upgrade data packet including a full data packet of the target application and/or an incremental data packet of the target application, where version numbers of the full data packet of the target application and the incremental data packet of the target application are greater than a version number of an application data packet of a previous version of the target application;
when the upgrade data packet of the target application comprises a full data packet of the target application and an incremental data packet of the target application, the version number of the incremental data packet of the target application is greater than that of the full data packet;
in some embodiments of the present application, the upgrade unit 603 may further be specifically configured to verify an upgrade data packet of a target application; and if the upgrading data packet of the target application is successfully verified, upgrading the target application based on the upgrading data packet of the target application.
In some embodiments of the present application, the upgrade unit 603 may further be specifically configured to decompress, from small to large, an incremental data packet and a full data packet in an upgrade data packet of a target application into a target folder in sequence according to a version number, and modify a start path of the target application to be mapped to a storage path corresponding to the target application data packet; the target folder is a folder newly built in a storage path of the same level of an application data packet of a previous version of a target application, and the target application data packet is a data packet with the maximum version number in an incremental data packet and a full data packet.
In some embodiments of the present application, the upgrading unit 603 may further be specifically configured to decompress an upgrade data packet of the application upgrading apparatus to a root directory where the application upgrading apparatus starts to operate, and perform renaming replacement.
It should be noted that, for convenience and simplicity of description, the specific working process of the application upgrading apparatus 600 described above may refer to the corresponding process of the method described in fig. 1 to fig. 5, and is not described again here.
As shown in fig. 7, the present application provides a terminal 7 for implementing the application upgrade method, where the terminal may be a terminal such as a smart phone, a tablet computer, a Personal Computer (PC), a learning machine, and the terminal 7 includes: a processor 70, a memory 71, and a computer program 72, such as an application upgrade program, stored in the memory 71 and executable on the processor 70. The processor 70, when executing the computer program 72, implements the steps in the above-described application upgrade method embodiments, such as the steps 101 to 103 shown in fig. 1. Alternatively, the processor 70, when executing the computer program 72, implements the functions of each module/unit in each device embodiment described above, for example, the functions of the units 601 to 603 shown in fig. 6.
The computer program 72 may be divided into one or more modules/units, which are stored in the memory 71 and executed by the processor 70 to accomplish the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 72 in the terminal 7. For example, the computer program 72 may be divided into a first acquisition unit, a second acquisition unit, and an upgrade unit (unit in the virtual device), and the specific functions are as follows:
a first obtaining unit, configured to respond to a start instruction of a target application, run the target application, and obtain identification information of the target application
A second obtaining unit, configured to obtain an upgrade data packet of the target application based on the identification information of the target application;
and the upgrading unit is used for upgrading the target application based on the upgrading data packet of the target application.
The application upgrade device may include, but is not limited to, a processor 70, a memory 71. It will be understood by those skilled in the art that fig. 7 is only an example of the terminal 7, and does not constitute a limitation to the terminal 7, and may include more or less components than those shown, or combine some components, or different components, for example, the application upgrading apparatus may further include an input-output device, a network access device, a bus, etc.
It should be understood that, in the embodiment of the present Application, the Processor 71 may be a Central Processing Unit (CPU), and the Processor may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 71 may be an internal storage unit of the terminal 7, such as a hard disk or a memory of an application upgrading device. The memory 71 may also be an external storage device of the terminal 7, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) and the like provided on the terminal 7. Further, the memory 71 may also include both an internal storage unit and an external storage device of the terminal 7. The memory 71 is used for storing the computer program and other programs and data required by the terminal 7. The memory 71 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned functions may be distributed as different functional units and modules according to needs, that is, the internal structure of the apparatus may be divided into different functional units or modules to implement all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/terminal and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal are merely illustrative, and for example, the division of the above-described modules or units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units described above, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above may be implemented by a computer program, which may be stored in a computer readable storage medium and used by a processor to implement the steps of the embodiments of the methods described above. The computer program includes computer program code, and the computer program code may be in a source code form, an object code form, an executable file or some intermediate form. The computer readable medium may include: any entity or device capable of carrying the above-described computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signal, telecommunication signal, software distribution medium, etc. It should be noted that the computer readable medium described above may include content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media that does not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application. The spirit and scope of the embodiments should be construed to be within the scope of the present application.

Claims (10)

1. An application upgrading method, characterized in that the upgrading method comprises:
responding to a first starting instruction of a target application, running the target application, and acquiring identification information of the target application;
acquiring an upgrading data packet of the target application based on the identification information of the target application;
and upgrading the target application based on the upgrading data packet of the target application.
2. The application upgrade method of claim 1, wherein after upgrading the target application based on the upgrade data package of the target application, comprising:
responding to a second starting instruction of a target application, and starting the target application based on an upgrading data packet of the target application;
if the target application is started successfully and the upgrade data packet of the target application contains the full data packet of the target application, deleting the application data packet of the previous version of the target application;
and if the target application is not successfully started, starting the target application based on the application data packet of the previous version of the target application.
3. The application upgrading method of claim 1, applied to an application upgrading apparatus, the application upgrading method further comprising:
when a target application is started, acquiring identification information of the application upgrading device;
acquiring an upgrading data packet of the application upgrading device based on the identification information of the application upgrading device;
and upgrading the application upgrading device based on the upgrading data packet of the application upgrading device.
4. The application upgrade method according to any one of claims 1 to 3, wherein the identification information of the target application includes a version number of the target application; the obtaining of the upgrade data package of the target application based on the identification information of the target application includes:
acquiring an upgrade data packet containing a full data packet of the target application and/or an incremental data packet of the target application based on the identification information of the target application, wherein the version numbers of the full data packet of the target application and the incremental data packet of the target application are greater than the version number of an application data packet of a previous version of the target application;
when the upgrade data packet of the target application comprises a full data packet of the target application and an incremental data packet of the target application, the version number of the incremental data packet of the target application is greater than the version number of the full data packet.
5. The application upgrading method according to any one of claims 1 to 3, wherein the upgrading the target application based on the upgrade data package of the target application comprises:
checking the upgrading data packet of the target application;
and if the upgrading data packet of the target application is successfully verified, upgrading the target application based on the upgrading data packet of the target application.
6. The application upgrade method according to claim 1, wherein the upgrading the target application based on the upgrade packet of the target application includes:
sequentially decompressing an incremental data packet and a full data packet in an upgrading data packet of the target application into a target folder from small to large according to the version number, and modifying the starting path of the target application into a storage path corresponding to the data packet mapped to the target application;
the target folder is a folder newly built in a storage path of the same level of an application data packet of a previous version of the target application, and the target application data packet is a data packet with the maximum version number in an incremental data packet and a full data packet.
7. The application upgrading method of claim 3, wherein upgrading the application upgrading device based on the upgrade data package of the application upgrading device comprises:
and decompressing the upgrading data packet of the application upgrading device to a root directory started and operated by the application upgrading device, and performing renaming replacement.
8. An application upgrade apparatus, comprising:
the first acquisition unit is used for responding to a starting instruction of a target application, running the target application and acquiring identification information of the target application;
a second obtaining unit, configured to obtain an upgrade data packet of the target application based on the identification information of the target application;
and the upgrading unit is used for upgrading the target application based on the upgrading data packet of the target application.
9. A terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
CN202111220304.5A 2021-10-20 2021-10-20 Application upgrading method and device, terminal and computer readable storage medium Pending CN114064096A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111220304.5A CN114064096A (en) 2021-10-20 2021-10-20 Application upgrading method and device, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111220304.5A CN114064096A (en) 2021-10-20 2021-10-20 Application upgrading method and device, terminal and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN114064096A true CN114064096A (en) 2022-02-18

Family

ID=80234956

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111220304.5A Pending CN114064096A (en) 2021-10-20 2021-10-20 Application upgrading method and device, terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114064096A (en)

Similar Documents

Publication Publication Date Title
CN105786538B (en) software upgrading method and device based on android system
CN109814524B (en) Vehicle diagnosis method, device and system
CN105389177A (en) Software version confirmation method, device and system
CN110543324B (en) Plug-in increment updating method and device for application program
CN110960855B (en) Communication protocol code updating method and device, electronic equipment and storage medium
CN111694589B (en) Upgrade package generation method, device, server and computer readable storage medium
CN111427596A (en) Software upgrading method and device and terminal equipment
CN110647337A (en) Internet of things MCU (microprogrammed control Unit) air firmware upgrading method
CN110659210A (en) Information acquisition method and device, electronic equipment and storage medium
US10922064B2 (en) Method, device and user terminal for software installation
CN111176685A (en) Upgrading method and device
CN109656592B (en) Card management method, device, terminal and computer readable storage medium
CN110750286A (en) Management method, device, system, equipment and medium for upgrading Mbn through OTA
CN111488483B (en) Method, device, terminal and non-transitory computer readable storage medium for updating a library
CN111400091A (en) Factory setting restoring method, factory setting restoring device and mobile terminal
CN114064096A (en) Application upgrading method and device, terminal and computer readable storage medium
CN110889116A (en) Advertisement blocking method and device and electronic equipment
CN114816816A (en) Collapse stack information processing method, device, equipment and storage medium
CN114237654A (en) OTA (over the air) upgrading method and system
CN114258525A (en) Data updating method and device, terminal equipment and computer readable storage medium
CN114116027A (en) Method, system, terminal and storage medium for automatically installing drive for PCIE equipment
CN115185553A (en) Method for updating device firmware of user and related device
CN113721953A (en) Firmware program upgrading method and device and display control equipment
CN110825406A (en) Software upgrading method and related equipment
CN113709195A (en) Vehicle software upgrading method, device and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination