CN109766127B - Method for updating application version information - Google Patents

Method for updating application version information Download PDF

Info

Publication number
CN109766127B
CN109766127B CN201910040407.XA CN201910040407A CN109766127B CN 109766127 B CN109766127 B CN 109766127B CN 201910040407 A CN201910040407 A CN 201910040407A CN 109766127 B CN109766127 B CN 109766127B
Authority
CN
China
Prior art keywords
updated
version information
application program
program
updating
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.)
Active
Application number
CN201910040407.XA
Other languages
Chinese (zh)
Other versions
CN109766127A (en
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.)
Shanghai Zhangmen Science and Technology Co Ltd
Original Assignee
Shanghai Zhangmen Science and 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 Shanghai Zhangmen Science and Technology Co Ltd filed Critical Shanghai Zhangmen Science and Technology Co Ltd
Priority to CN201910040407.XA priority Critical patent/CN109766127B/en
Publication of CN109766127A publication Critical patent/CN109766127A/en
Application granted granted Critical
Publication of CN109766127B publication Critical patent/CN109766127B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The embodiment of the application discloses a method for updating version information of an application program. One embodiment of the method comprises: receiving a version information updating request of the application program to be updated, wherein the version information updating request comprises updating version information of the application program to be updated; acquiring an installation package of an application program to be updated, and determining the position of program version information of the application program to be updated in the acquired installation package; updating the program version information at the determined location to updated version information. The method and the device directly update the version information in the installation package of the application program to be updated, thereby avoiding the operation of the source code of the application program to be updated and improving the efficiency of updating the version information of the application program.

Description

Method for updating application version information
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a method for updating version information of an application program.
Background
With the development of internet technology, the number of applications has also increased explosively, and basically in each field, there are various applications which facilitate work and life of people. In the process of issuing the application program, in order to implement, for example, function comparison of the application program, it is often not necessary to update the function of the application program, but only to update the version information of the previous application program for issuing.
In the prior art, when updating version information of an application program, it is usually necessary to detect a source code of the application program, then modify the version information therein, and finally compile the modified code to generate an installation package of the application program. The method needs the participation of research and development personnel in the process of updating the version information of the application program, and has large workload and long time consumption.
Disclosure of Invention
The embodiment of the application provides a method for updating version information of an application program.
In a first aspect, an embodiment of the present application provides a method for updating application version information, including: receiving a version information updating request of the application program to be updated, wherein the version information updating request comprises updating version information of the application program to be updated; acquiring an installation package of an application program to be updated, and determining the position of program version information of the application program to be updated in the acquired installation package; updating the program version information at the determined location to updated version information.
In a second aspect, an embodiment of the present application provides an apparatus for updating application version information, including: a receiving unit configured to receive a version information update request of an application program to be updated, the version information update request including update version information of the application program to be updated; a determination unit configured to acquire an installation package of an application program to be updated, and determine a position of program version information of the application program to be updated in the acquired installation package; an updating unit configured to update the program version information at the determined location to updated version information.
In a third aspect, an embodiment of the present application provides an electronic device, including: the method comprises the following steps: one or more processors; a storage device on which one or more programs are stored; when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the method as described in the first aspect.
In a fourth aspect, embodiments of the present application provide a computer-readable medium on which a computer program is stored, which computer program, when executed by a processor, implements the method as described in the first aspect.
According to the method for updating the version information of the application program, the version updating request of the application program to be updated is received, the installation package of the application program to be updated is obtained, the position of the program version information of the application program to be updated is determined in the obtained installation package, and finally the program version information at the determined position is updated to the updating version information in the version information updating request, so that the program version information of the application program to be updated is updated through the installation package of the application program to be updated, the operation of a source code of the application program to be updated is avoided, and the efficiency of updating the version information of the application program is improved.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the detailed description of non-limiting embodiments made with reference to the following drawings:
FIG. 1 is an exemplary system architecture diagram to which one embodiment of the present application may be applied;
FIG. 2 is a flow diagram of one embodiment of a method for updating application version information, according to the present application;
FIG. 3 is a flow diagram of another embodiment of a method for updating application version information according to the present application;
FIG. 4 is a flow diagram of yet another embodiment of a method for updating application version information in accordance with the present application;
FIG. 5 is a block diagram illustrating one embodiment of an apparatus for updating application version information according to the present application;
FIG. 6 is a schematic block diagram of a computer system suitable for use in implementing an electronic device according to embodiments of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that, in the present application, the embodiments and features of the embodiments may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 illustrates an exemplary system architecture 100 to which the method for updating application version information of the present application may be applied.
As shown in fig. 1, system architecture 100 may include terminal device 101, network 102, and server 103. Network 102 is the medium used to provide communication links between terminal devices 101 and server 103. Network 102 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
A user may use terminal device 101 to interact with server 103 over network 102 to receive or send messages and the like. Various applications, such as instant messaging tools, mailbox clients, web browser applications, shopping applications, search applications, social platform software, etc., may be installed on the terminal device 101.
The terminal apparatus 101 may be hardware or software. When the terminal device 101 is hardware, it may be various electronic devices supporting information transmission such as version information update request, including but not limited to a smart phone, a tablet computer, a laptop computer, a desktop computer, a server, and the like. When the terminal apparatus 101 is software, it can be installed in the electronic apparatuses listed above. It may be implemented as multiple pieces of software or software modules (e.g., to provide distributed services) or as a single piece of software or software module. And is not particularly limited herein.
The server 103 may be a server providing various services, for example, the server 103 may be a background server updating version information for an application to be updated. The background server can update the installation package of the application program to be updated by using the received version information update request of the application program to be updated, so as to obtain the updated application program. It should be noted that the method for updating the application version information provided in the embodiment of the present application is generally performed by the server 103. Accordingly, means for updating the application version information is generally provided in the server 103.
The server may be hardware or software. When the server is hardware, it may be implemented as a distributed server cluster formed by multiple servers, or may be implemented as a single server. When the server is software, it may be implemented as multiple pieces of software or software modules (e.g., to provide distributed services), or as a single piece of software or software module. And is not particularly limited herein.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
It is further noted that the terminal device 101 may also store an installation package of the application to be updated, and the method for updating the application version information may also be executed by the terminal device, in which case the example system architecture 100 may not have the server 105 and the network 104.
With continued reference to FIG. 2, a flow 200 of one embodiment of a method for updating application version information in accordance with the present application is illustrated. The method for updating the version information of the application program comprises the following steps:
step 201, receiving a version information update request of an application program to be updated.
In this embodiment, an execution subject (for example, a server as shown in the figure) of the method for updating the application version information may receive, by a wired connection manner or a wireless connection manner, a version information update request of the application to be updated, which is sent by a terminal device that generates or previously stores the version information update request of the application to be updated. Here, the version information update request may be for requesting update of version information of the application to be updated, and the version information update request may include at least update version information of the application to be updated. It should be noted that the wireless connection means may include, but is not limited to, a 3G/4G connection, a WiFi connection, a bluetooth connection, a WiMAX connection, a Zigbee connection, a uwb (ultra wideband) connection, and other wireless connection means now known or developed in the future.
In some optional implementation manners of this embodiment, the update version information of the application program to be updated may include an update version number and/or an update version name of the application program to be updated. It is to be understood that the update version information of the application program to be updated may also include other update version information of the application program to be updated, which is not specifically limited herein. The technical personnel in the field can set the content in the updated version information according to the actual requirement, so that the application range of the scheme provided by the application is wider.
Step 202, obtaining an installation package of the application program to be updated, and determining the position of the program version information of the application program to be updated in the obtained installation package.
In this embodiment, based on the version information update request of the application program to be updated received in step 201, the execution subject (for example, the server shown in fig. 1) may determine the application program to be updated, and obtain an installation package of the application program to be updated. Then, the execution main body can decompress the obtained installation package of the application program to be updated and the like, so that the position of the program version information of the application program to be updated can be determined in the obtained installation package.
Step 203, updating the program version information at the determined location to updated version information.
In this embodiment, based on the location of the program version information of the application program to be updated, which is determined in step 202, the execution main body may update the version information at the determined location to the updated version information in the version information update request, so that the original version information in the application program to be updated is updated to the new version information.
In some optional implementation manners of this embodiment, after the execution main body updates the version information at the determined location to the updated version information, the file where the updated version information is located may be compressed, so that the version information in the installation package is the updated version information. Then, the execution body can update the signature of the installation package of the application program to be updated, so that the installation package with updated version information can be obtained. Therefore, after the version information of the application program to be updated is updated, the execution main body directly replaces the file where the version information is updated in the installation package of the application program to be updated and then carries out signature, so that the installation package of the updated application program can be obtained, modification of a source code is not involved, and the method is simple.
In the prior art, when version information of an application program to be updated is updated, a source code of the application program to be updated generally needs to be detected, and then the detected version information in the source code is modified into updated version information, so that the updated source code is compiled to generate an installation package of the updated application program. Therefore, the existing method for updating the version information of the application program to be updated needs research and development personnel to participate, and is complex in steps and long in time consumption. The method provided by the embodiment of the application can directly update the information at the version information position in the original installation package of the application program to be updated into the updated version information, and does not need to operate the source code of the application program to be updated, so that research and development personnel are not needed to participate, and the method is simple and high in efficiency. Further, the method provided by the above embodiment of the present application does not need to repackage the installation package for the application to be updated, thereby avoiding the change of the function of the application to be updated caused by the change of the compiling environment, and improving the security of updating the version information of the application.
The method for updating the version information of the application program provided in the above embodiment of the present application receives the version update request of the application program to be updated, then obtains the installation package of the application program to be updated, determines the position of the version information of the application program to be updated in the obtained installation package, and finally updates the version information at the determined position to the update version information in the version information update request, thereby implementing updating of the version information of the application program to be updated by the installation package of the application program to be updated, avoiding operating the source code of the application program to be updated, and improving the efficiency of updating the version information of the application program.
With further reference to FIG. 3, a flow 300 of another embodiment of a method for updating application version information in accordance with the present application is shown. The method for updating the version information of the application program comprises the following steps:
step 301, receiving a version information update request of an application program to be updated.
In this embodiment, an execution subject (for example, a server as shown in the figure) of the method for updating the application version information may receive, by a wired connection manner or a wireless connection manner, a version information update request of the application to be updated, which is sent by a terminal device that generates or stores the version information update request of the application to be updated. Here, the version information update request may be for requesting update of version information of the application to be updated, and the version information update request may include at least update version information of the application to be updated. It should be noted that the version information update request may not only include the update version information of the application program to be updated, but also include the original version information of the application program to be updated.
In some optional implementation manners of this embodiment, the original version information of the application program to be updated may include an original version number and/or an original version name of the application program to be updated. It is to be understood that the updated version information of the application program to be updated included in the version information update request may correspond to the original version information of the application program to be updated. That is, if the version number of the application program to be updated needs to be updated, the original version information of the application program to be updated may include the original version number and the update version number of the application program to be updated; if the version name of the application program to be updated needs to be updated, the original version information of the application program to be updated may include the original version name and the updated version name of the application program to be updated; if the version number and the version name of the application program to be updated need to be updated, the original version information of the application program to be updated may include an original version number and an original version name of the application program to be updated, an updated version number, and an updated version name. It can be understood that, a person skilled in the art can set the content included in the original version information to be updated according to actual requirements, so that the application range of the scheme provided by the present application is wider.
Step 302, obtaining an installation package of the application program to be updated, and generating a binary code corresponding to the original version information of the application program to be updated.
In this embodiment, based on the version information update request of the application program to be updated received in step 301, the execution main body (for example, the server shown in fig. 1) may determine the application program to be updated, and acquire the installation package of the application program to be updated. Further, based on the original version information in the version information update request of the application program to be updated received in step 301, the executing entity may process the received original version information to generate a binary code corresponding to the original version information of the application program to be updated.
And step 303, matching the target binary code in the obtained installation package according to the binary code corresponding to the original version information of the application program to be updated.
In this embodiment, after acquiring the installation package of the application program to be updated, the executing entity may match the binary code corresponding to the generated original version information in the acquired installation package based on the binary code corresponding to the original version information generated in step 302, and determine the matched binary code as the target binary code. Specifically, after obtaining the installation package of the application program to be updated, the execution main body may decompress the obtained installation package, so as to determine the file where the original version information of the application program to be updated is located, and match the binary code of the original version information in the determined file to determine the target binary code.
And step 304, determining the position of the matched target binary code as the position of the program version information of the application program to be updated.
In this embodiment, based on the target binary matched in step 303, the executing entity may determine the location of the target binary as the location of the original version information of the application to be updated in the installation package.
Step 305, updating the program version information at the determined location to updated version information.
In this embodiment, based on the position of the original version information of the application program to be updated determined in step 304 and based on the updated version information of the application program to be updated received in step 301, the execution subject may update the original version information of the application program to be updated at the determined position to the updated version information.
In some optional implementations of the embodiment, the executing body may update the version information at the determined location to the updated version information by: firstly, generating a binary code corresponding to the update version information of the application program to be updated, and then updating the binary code corresponding to the original version information at the determined position into the binary code corresponding to the update version information. Or, the update version information of the application program to be updated may also be directly in the form of a binary code, and at this time, the execution main body may directly update the original version information of the application program to be updated at the determined position to the update version information.
As can be seen from fig. 3, compared with the embodiment corresponding to fig. 2, the flow 300 of the method for updating the version information of the application program in the present embodiment highlights the step of determining the location of the version information of the application program to be updated. Therefore, the scheme described in this embodiment can determine the position of the version information of the application program to be updated, which needs to be updated, in a simple binary code matching manner, thereby further improving the efficiency of updating the version information of the application program.
Referring next to FIG. 4, shown is a flow diagram 400 of yet another embodiment of a method for updating application version information in accordance with the present application. The method for updating the version information of the application program comprises the following steps:
step 401, receiving a version information update request of an application program to be updated.
In this embodiment, an execution subject (for example, a server as shown in the figure) of the method for updating the application version information may receive, by a wired connection manner or a wireless connection manner, a version information update request of the application to be updated, which is sent by a terminal device that generates or stores the version information update request of the application to be updated. Here, the version information update request may be for requesting update of version information of the application to be updated, and the version information update request may include at least update version information of the application to be updated.
Step 402, obtaining an installation package of the application program to be updated, decompressing the installation package of the application program to be updated, and obtaining a file where the program version information of the application program to be updated is located from the installation package.
In this embodiment, after receiving the version information update request of the application to be updated, the execution main body (for example, the server shown in fig. 1) may determine the application to be updated, so as to obtain the installation package of the application to be updated. Then, the execution main body may decompress the installation package of the application program to be updated, so as to obtain the file where the version information of the application program to be updated is located from the installation package. As an example, the application to be updated may be an Android (Android) application, the version information of the application to be updated is a version number and a version name of the Android application, and the file in which the program version information of the application to be updated is located is an Android manifest.
In step 403, the obtained file is parsed to determine the location of the program version information of the application program to be updated.
In this embodiment, based on the file obtained in step 402, the execution main body may parse the obtained file, and determine an attribute of the version information of the application program to be updated in the parsed file, so as to determine a location of the version information of the application program to be updated.
As an example, the application to be updated is an Android application, the version information of the application to be updated is a version number and a version name of the Android application, the file analyzed by the execution main body is an Android manifest. The execution main body can determine a method for analyzing the Android manifest file from a source code of an Android compiling tool, so that the position of a value attribute corresponding to the version number and the version name of the application to be updated is determined. It will be appreciated that the above-described application to be updated may also be other types of applications other than Android applications, now known or developed in the future.
At step 404, the program version information at the determined location is updated to updated version information.
In this embodiment, based on the location determined in step 403, the execution subject may determine version information that needs to be updated in the application program to be updated, and update the determined version information of the program that needs to be updated to the updated version information in the version information update request.
In some optional implementations of the embodiment, the executing body may update the version information at the determined location to the updated version information by: firstly, a binary code corresponding to the update version information of the application program to be updated is generated, and then the content of the determined position of the program version information of the application program to be updated is modified into the binary code corresponding to the generated update version information. Or, the update version information of the application program to be updated may also be in the form of binary code, and at this time, the execution subject may directly update the content at the determined location to the update version information.
As can be seen from fig. 4, compared with the embodiment corresponding to fig. 2, the flow 400 of the method for updating the version information of the application program in the present embodiment highlights the step of determining the location of the version information of the application program to be updated. Therefore, the scheme described in the embodiment can accurately determine the position of the version information of the application program to be updated, which needs to be updated, so that the accuracy of updating the version information of the application program is improved.
With further reference to fig. 5, as an implementation of the method shown in the above-mentioned figures, the present application provides an embodiment of an apparatus for updating application version information, where the embodiment of the apparatus corresponds to the embodiment of the method shown in fig. 2, and the apparatus may be applied to various electronic devices in particular.
As shown in fig. 5, the apparatus 500 for updating application version information of the present embodiment includes: a receiving unit 501, a determining unit 502 and an updating unit 503. The receiving unit 501 is configured to receive a version information update request of an application program to be updated, where the version information update request includes update version information of the application program to be updated. A determining unit 502 configured to acquire an installation package of the application program to be updated, and determine a position of program version information of the application program to be updated in the acquired installation package. An updating unit 503 configured to update the program version information at the determined location to updated version information.
In the present embodiment, in the apparatus 500 for updating application version information: the specific implementation of the receiving unit 501, the determining unit 502, and the updating unit 503 and the technical effects thereof can refer to the related descriptions of step 201, step 202, and step 203 in the corresponding embodiment of fig. 2, which are not repeated herein.
In some optional implementation manners of this embodiment, the version information update request of the application program to be updated further includes original version information of the application program to be updated; the determining unit 502 is further configured to generate a binary code corresponding to the original version information of the application program to be updated; matching a target binary code in the acquired installation package according to the binary code corresponding to the original version information of the application program to be updated; and determining the position of the matched target binary code as the position of the program version information of the application program to be updated.
In some optional implementations of this embodiment, the updating unit 503 is further configured to: generating a binary code corresponding to the update version information of the application program to be updated; and updating the binary code corresponding to the original version information at the determined position into the binary code corresponding to the updated version information.
In some optional implementation manners of this embodiment, the original version information of the application program to be updated includes an original version number and/or an original version name of the application program to be updated.
In some optional implementations of the present embodiment, the determining unit 502 is further configured to decompress an installation package of the application program to be updated, and obtain a file where the program version information of the application program to be updated is located from the installation package; the resulting file is parsed to determine the location of the program version information for the application to be updated.
In some optional implementations of this embodiment, the updating unit 503 is further configured to: generating a binary code corresponding to the update version information of the application program to be updated; and modifying the content of the determined position of the program version information of the application program to be updated into the binary code corresponding to the generated update version information.
In some optional implementations of this embodiment, the update version information of the application program to be updated includes an update version number and/or an update version name of the application program to be updated.
In some optional implementations of this embodiment, the apparatus 500 further includes: and the compression unit is configured to compress the file where the updated version information is located and update the signature of the installation package of the application program to be updated.
In some optional implementations of the embodiment, the application to be updated is an android application. Referring now to FIG. 6, a block diagram of a computer system 600 suitable for implementing an electronic device (e.g., the terminal device 101 or the server 103 shown in FIG. 1) of an embodiment of the present application is shown. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 6, the computer system 600 includes a Central Processing Unit (CPU)601 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the system 600 are also stored. The CPU 601, ROM 602, and RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611. The computer program performs the above-described functions defined in the method of the present application when executed by a Central Processing Unit (CPU) 601. It should be noted that the computer readable medium described herein can be a computer readable signal medium or a computer readable medium or any combination of the two. A computer readable medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes a receiving unit, a determining unit, and an updating unit. The names of these units do not in some cases constitute a limitation on the units themselves, and for example, the receiving unit may also be described as a "unit that receives a version information update request of an application to be updated".
As another aspect, the present application also provides a computer-readable medium, which may be contained in the electronic device described in the above embodiments; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: receiving a version information updating request of an application program to be updated, wherein the version information updating request of the application program to be updated comprises updating version information of the application program to be updated; acquiring an installation package of an application program to be updated, and determining the position of version information of the application program to be updated in the acquired installation package; updating the version information at the determined location to updated version information.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the invention. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (10)

1. A method for updating application version information, comprising:
receiving a version information updating request of an application program to be updated, wherein the version information updating request comprises updating version information of the application program to be updated, and the updating version information of the application program to be updated comprises an updating version number and/or an updating version name of the application program to be updated;
acquiring an installation package of the application program to be updated, and determining the position of the program version information of the application program to be updated in the acquired installation package;
updating the program version information at the determined location to the updated version information.
2. The method according to claim 1, wherein the version information update request of the application program to be updated further comprises original version information of the application program to be updated;
the determining the position of the program version information of the application program to be updated in the acquired installation package comprises the following steps:
generating a binary code corresponding to the original version information of the application program to be updated;
matching a target binary code in the obtained installation package according to the binary code corresponding to the original version information of the application program to be updated;
and determining the position of the matched target binary code as the position of the program version information of the application program to be updated.
3. The method of claim 2, wherein updating the program version information at the determined location to the updated version information comprises:
generating a binary code corresponding to the update version information of the application program to be updated;
and updating the binary code corresponding to the original version information at the determined position into the binary code corresponding to the updated version information.
4. The method according to claim 2 or 3, wherein the original version information of the application program to be updated comprises an original version number and/or an original version name of the application program to be updated.
5. The method according to claim 1, wherein the determining the location of the program version information of the application program to be updated in the obtained installation package comprises:
decompressing the installation package of the application program to be updated, and obtaining a file where the program version information of the application program to be updated is located from the installation package;
and analyzing the obtained file to determine the position of the program version information of the application program to be updated.
6. The method of claim 5, wherein updating the program version information at the determined location to the updated version information comprises:
generating a binary code corresponding to the update version information of the application program to be updated;
and modifying the content at the position of the program version information of the determined application program to be updated into the binary code corresponding to the generated updating version information.
7. The method of claim 1, further comprising:
and compressing the file where the updated version information is located, and updating the signature of the installation package of the application program to be updated.
8. The method of claim 1, wherein the application to be updated is an android application.
9. An electronic device, comprising:
one or more processors;
a storage device on which one or more programs are stored;
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-8.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-8.
CN201910040407.XA 2019-01-16 2019-01-16 Method for updating application version information Active CN109766127B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910040407.XA CN109766127B (en) 2019-01-16 2019-01-16 Method for updating application version information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910040407.XA CN109766127B (en) 2019-01-16 2019-01-16 Method for updating application version information

Publications (2)

Publication Number Publication Date
CN109766127A CN109766127A (en) 2019-05-17
CN109766127B true CN109766127B (en) 2022-06-28

Family

ID=66452362

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910040407.XA Active CN109766127B (en) 2019-01-16 2019-01-16 Method for updating application version information

Country Status (1)

Country Link
CN (1) CN109766127B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110413262A (en) * 2019-07-23 2019-11-05 北京启迪区块链科技发展有限公司 A kind of management method of business function, apparatus and system
CN110427214A (en) * 2019-07-29 2019-11-08 苏州亿歌网络科技有限公司 A kind of dissemination method of application program, device, equipment and storage medium
CN110990038B (en) * 2019-11-29 2023-08-22 中化信息技术有限公司 Method, apparatus, electronic device and medium for applying local update
CN112732314A (en) * 2020-12-30 2021-04-30 北京一亩田新农网络科技有限公司 Plug-in differential packaging method and device based on android, electronic equipment and computer readable medium
CN112860288A (en) * 2021-01-29 2021-05-28 上海二三四五网络科技有限公司 Control method and device for updating program versions in batch

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016188059A1 (en) * 2015-05-22 2016-12-01 华为技术有限公司 Method, device, and system for achieving java application installation by cloud compilation
CN106648795A (en) * 2016-12-29 2017-05-10 北京奇虎科技有限公司 Updating method and device of application program
CN107291481A (en) * 2016-03-30 2017-10-24 腾讯科技(深圳)有限公司 A kind of component update method, device and system
CN108111331A (en) * 2017-11-06 2018-06-01 北京趣拿软件科技有限公司 Acquisition methods, device, storage medium, processor and the system of updated data package
CN108845816A (en) * 2018-06-22 2018-11-20 平安科技(深圳)有限公司 Application program update method, system, computer equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016188059A1 (en) * 2015-05-22 2016-12-01 华为技术有限公司 Method, device, and system for achieving java application installation by cloud compilation
CN107291481A (en) * 2016-03-30 2017-10-24 腾讯科技(深圳)有限公司 A kind of component update method, device and system
CN106648795A (en) * 2016-12-29 2017-05-10 北京奇虎科技有限公司 Updating method and device of application program
CN108111331A (en) * 2017-11-06 2018-06-01 北京趣拿软件科技有限公司 Acquisition methods, device, storage medium, processor and the system of updated data package
CN108845816A (en) * 2018-06-22 2018-11-20 平安科技(深圳)有限公司 Application program update method, system, computer equipment and storage medium

Also Published As

Publication number Publication date
CN109766127A (en) 2019-05-17

Similar Documents

Publication Publication Date Title
CN109766127B (en) Method for updating application version information
CN110019350B (en) Data query method and device based on configuration information
CN108846753B (en) Method and apparatus for processing data
CN109359194B (en) Method and apparatus for predicting information categories
CN110543297B (en) Method and apparatus for generating source code
CN109766148B (en) Method and apparatus for processing interface method calls
CN108810047B (en) Method and device for determining information push accuracy rate and server
CN111061956A (en) Method and apparatus for generating information
CN111177433B (en) Method and apparatus for parallel processing of information
CN110737655B (en) Method and device for reporting data
CN113010405A (en) Application program testing method and device
CN111125503B (en) Method and apparatus for generating information
CN109144864B (en) Method and device for testing window
CN111324470A (en) Method and device for generating information
CN116860286A (en) Page dynamic update method, device, electronic equipment and computer readable medium
CN110827037A (en) Data interaction method and device based on block chain
CN108804442B (en) Serial number generation method and device
CN115454956A (en) Log generation method and device, electronic equipment and storage medium
CN110881056A (en) Method and device for pushing information
CN112507676B (en) Method and device for generating energy report, electronic equipment and computer readable medium
CN110727692B (en) Method and device for setting linkage chart
CN114218313A (en) Data management method, device, electronic equipment, storage medium and product
CN109298831B (en) Information storage method and device
CN110084298B (en) Method and device for detecting image similarity
CN109587066B (en) Method and device for generating information

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
GR01 Patent grant
GR01 Patent grant