CN111949298A - Generation method and device of upgrade package, server and computer storage medium - Google Patents
Generation method and device of upgrade package, server and computer storage medium Download PDFInfo
- Publication number
- CN111949298A CN111949298A CN202010849284.7A CN202010849284A CN111949298A CN 111949298 A CN111949298 A CN 111949298A CN 202010849284 A CN202010849284 A CN 202010849284A CN 111949298 A CN111949298 A CN 111949298A
- Authority
- CN
- China
- Prior art keywords
- upgrade package
- generated
- package
- temporary directory
- generating
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 48
- 238000004590 computer program Methods 0.000 claims description 9
- 238000012795 verification Methods 0.000 claims description 7
- 230000006835 compression Effects 0.000 claims description 4
- 238000007906 compression Methods 0.000 claims description 4
- 238000012217 deletion Methods 0.000 claims 1
- 230000037430 deletion Effects 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 11
- 230000006870 function Effects 0.000 description 9
- 238000005516 engineering process Methods 0.000 description 4
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/32—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
- H04L9/3247—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The application provides a method, a device, a server and a computer storage medium for generating an upgrade package, wherein the method comprises the following steps: firstly, acquiring the customization requirement of an upgrade package to be generated; then, generating a temporary directory corresponding to the upgrade package to be generated; the temporary directory comprises an execution script or application meeting the customization requirement; and finally, generating the upgrade package by using the temporary directory corresponding to the upgrade package to be generated. Therefore, the purpose of generating the upgrade package which meets the requirements of users and does not contain redundant files is achieved.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for generating an upgrade package, a server, and a computer storage medium.
Background
Currently, upgrading a terminal equipment system generally employs an Over-the-Air Technology (OTA) upgrade package downloaded via a network, and the terminal equipment system is upgraded by using the OTA upgrade package.
In the prior art, a new OTA upgrade package is generated by modifying an existing OTA upgrade package and then signing by a platform of the device, so that a new OTA upgrade package is formed, but a large number of redundant and unnecessary files are included in the new OTA upgrade package, i.e., the files do not need to be modified, so that the new OTA upgrade package occupies a large disk space and is time-consuming to compile and output the OTA upgrade package.
Disclosure of Invention
In view of this, the present application provides a method and an apparatus for generating an upgrade package, a server, and a computer storage medium, which are used to generate a message upgrade package that meets the user requirements and does not contain redundant files.
A first aspect of the present application provides a method for generating an upgrade package, including:
acquiring the customization requirement of an upgrade package to be generated;
generating a temporary directory corresponding to the upgrade package to be generated; wherein the temporary directory contains an execution script or application meeting the customization requirement;
and generating an upgrade package by using the temporary directory corresponding to the upgrade package to be generated.
Optionally, the generating a temporary directory corresponding to the upgrade package to be generated includes:
and downloading the application to be changed or the application to be added to the application catalog in the temporary catalog to obtain the temporary catalog corresponding to the upgrade package to be generated.
Optionally, the customizing requirement is to delete a file, and the generating of the temporary directory corresponding to the upgrade package to be generated includes:
and adding the execution script of the deleted file into a script directory in the temporary directory to obtain the temporary directory corresponding to the upgrade package to be generated.
Optionally, the customizing requirement is to change a system attribute, and the generating of the temporary directory corresponding to the upgrade package to be generated includes:
and adding an execution script for changing the system registry file into a script directory in the temporary directory to obtain the temporary directory corresponding to the upgrade package to be generated.
Optionally, the generating the upgrade package by using the temporary directory corresponding to the upgrade package to be generated includes:
compressing the temporary directory, the upgrading script file and the upgrading script verification file corresponding to the upgrading package to be generated into a compressed package;
and signing the compressed package to obtain an upgrade package.
Optionally, the signing the compressed package to obtain an upgrade package includes:
and signing the compressed package by using the system signature authority file to obtain an upgrade package.
A second aspect of the present application provides an upgrade package generation apparatus, including:
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring the customization requirement of an upgrade package to be generated;
the first generating unit is used for generating a temporary directory corresponding to the upgrade package to be generated; wherein the temporary directory contains an execution script or application meeting the customization requirement;
and the second generation unit is used for generating the upgrade package by using the temporary directory corresponding to the upgrade package to be generated.
Optionally, the customized requirement is a modified application or an added application, and the first generating unit includes:
and the downloading unit is used for downloading the application needing to be changed or the application needing to be added to the application catalog in the temporary catalog to obtain the temporary catalog corresponding to the upgrade package to be generated.
Optionally, the customizing requirement is to delete a file, and the first generating unit includes:
and the first adding unit is used for adding the execution script of the deleted file into the script directory in the temporary directory to obtain the temporary directory corresponding to the upgrade package to be generated.
Optionally, the customizing requirement is to change a system attribute, and the first generating unit includes:
and the second adding unit is used for adding an execution script for changing the system registry file into the script directory in the temporary directory to obtain the temporary directory corresponding to the upgrade package to be generated.
Optionally, the second generating unit includes:
the compression unit is used for compressing the temporary directory, the upgrading script file and the upgrading script verification file corresponding to the upgrading package to be generated into a compression package;
and the signature unit is used for signing the compressed package to obtain the upgrade package.
Optionally, the signature unit includes:
and the signature subunit is used for signing the compressed package by using the system signature authority file to obtain the upgrade package.
A third aspect of the present application provides a server comprising:
one or more processors;
a storage device having one or more programs stored thereon;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of the first aspects.
A fourth aspect of the present application provides a computer storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method according to any one of the first aspect.
In view of the above, in the method, the apparatus, the server, and the computer storage medium for generating the upgrade package provided by the present application, the method includes: firstly, acquiring the customization requirement of an upgrade package to be generated; then, generating a temporary directory corresponding to the upgrade package to be generated; the temporary directory comprises an execution script or application meeting the customization requirement; and finally, generating the upgrade package by using the temporary directory corresponding to the upgrade package to be generated. Therefore, the purpose of generating the upgrade package which meets the requirements of users and does not contain redundant files is achieved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a detailed flowchart of a method for generating an upgrade package according to an embodiment of the present disclosure;
fig. 2 is a detailed flowchart of a method for generating an upgrade package according to another embodiment of the present application;
fig. 3 is a schematic diagram of an upgrade package generation apparatus according to another embodiment of the present application;
fig. 4 is a schematic diagram of an upgrade package generation apparatus according to another embodiment of the present application;
fig. 5 is a schematic diagram of a server for executing a method for generating an upgrade package according to another embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
An embodiment of the present application provides a method for generating an upgrade package, as shown in fig. 1, specifically including the following steps:
s101, obtaining the customization requirement of the upgrade package to be generated.
The upgrade package to be generated may be an Over-the-Air Technology (OTA) upgrade package of Android, where OTA is a Technology for downloading an OTA upgrade package through a network and then upgrading a terminal device system using the OTA upgrade package; the OTA upgrade package of the Android is an upgrade carrier of an Android device, wherein the Android device may be, but is not limited to, a smart television, a set-top box, and a mobile phone of an Android platform and other Android system related devices, and the Android further provides a whole set of source codes for outputting the OTA upgrade package, for example: and compiling and outputting the OTA upgrade package through a make otapack command in an Android source code environment. The OTA upgrade package of which the Android source code supports compiling output comprises a full upgrade package and a differential upgrade package, wherein the full upgrade package refers to the OTA full package generated through a make OTA command, the differential upgrade package needs to compare the two OTA full packages and then generates a differential OTA upgrade package, and the upgrade packages are in a zip compressed package form.
It should be noted that the customized requirements of the upgrade package to be generated may include, but are not limited to, one or a combination of the following requirements: change applications, add applications, delete files, change system attributes, etc.
For example: the customization requirements of the upgrade package A to be generated are as follows: changing the attribute of the application X, newly adding an application Y, and deleting the file Z; the customization requirements of the upgrade package B to be generated are as follows: changing the system attribute M, newly adding a file N, and deleting a file K; the customization requirements of the upgrade package C to be generated are as follows: and adding a file L. The customization requirements are very diverse and will not be described in detail here. And, can also customize according to user's own will.
It should be further noted that, the manner of obtaining the customized requirement of the user on the upgrade package to be generated may be, but is not limited to: running a customized requirements module on a server, for example: the Linux server displays the information to the user in a website form, and the user can customize the upgrade package on the website according to the requirement of the user. The method for customizing the upgrade package according to the requirement of the user on the website can be as follows: the method comprises the steps of obtaining the description of the user on the upgrade package of the user demand, wherein the description of the user on the upgrade package of the user demand can be voice information or text information, after obtaining the description of the user on the upgrade package of the user demand, carrying out similarity search in a database by a server, obtaining the generation mode of the upgrade package which best meets the user demand, and further generating the upgrade package of the user demand. The way that the user customizes the upgrade package according to the requirement of the user on the website can also be: the user selects, for example, on the website: after customizing the option of the upgrade package, the server displays the options of the styles of the plurality of upgrade packages to the user, the user selects the options according to the requirement of the user, and after the user submits the options, the server obtains the customized requirement of the upgrade package which the user wants to generate, namely the customized requirement of the upgrade package to be generated. The customization requirements of the server for obtaining the upgrade package to be generated are quite diversified, and corresponding adjustment can be performed according to actual conditions, which is not limited here.
Specifically, in this step, obtaining the customization requirement of the upgrade package to be generated refers to: acquiring the customized requirement of an upgrade package generated according to the requirement of a user; of course, obtaining the customization requirements of the upgrade package should be understood as obtaining information of the customization requirements of the upgrade package.
And S102, generating a temporary directory corresponding to the upgrade package to be generated.
The temporary directory contains an execution script or application meeting the customization requirement.
It should be noted that the temporary directory may be provided with subdirectories according to actual application, for example: application directories, script directories, and the like.
It should be further noted that the subdirectory is set in the temporary directory, and may be a subdirectory corresponding to a customized requirement after the customized requirement of the upgrade package to be generated is obtained; or, a temporary directory including all types of subdirectories is generated in advance, and when the customization requirement of the upgrade package to be generated is acquired, the subdirectories corresponding to the customization requirement do not need to be generated temporarily, so that the speed of generating the upgrade package is further increased.
Specifically, according to the customization requirement of the upgrade package to be generated obtained in step S101, the execution script meeting the customization requirement is added to the script directory in the temporary directory, or the required application is added to the application directory in the temporary directory, and finally, the corresponding temporary directory of the upgrade package to be generated is generated.
Optionally, in another embodiment of the present application, when the customized requirement is a modified application or a newly added application, an implementation manner of step S102 includes:
and downloading the application to be changed or the application to be added to the application catalog in the temporary catalog to obtain the temporary catalog corresponding to the upgrade package to be generated.
Specifically, when the user selects the customized requirement of the upgrade package to be generated as a modified application or a newly added application, the application to be modified or the application to be added may be downloaded to the application directory in the temporary directory. For example: and/tmp/appota-vmtquQ/data/mgtvapps/apk.
Optionally, in another embodiment of the present application, when the customization requirement is to delete a file, an implementation manner of step S102 includes:
and adding the execution script of the deleted file into a script directory in the temporary directory to obtain the temporary directory corresponding to the upgrade package to be generated.
Specifically, when the user selects the customization requirement of the upgrade package to be generated as the delete file, the execution script of the delete file may be, for example: sh, add to the script directory in the temporary directory. For example: the/tmp/appota-vmtquQ/data/mgtvapps/script/.
Optionally, in another embodiment of the present application, when the customization requirement is to change a system attribute, an implementation manner of step S102 includes:
and adding an execution script for changing the system registry file into a script directory in the temporary directory to obtain the temporary directory corresponding to the upgrade package to be generated.
Specifically, when the user selects the customized requirement of the upgrade package to be generated as a requirement for changing the system attribute, an execution script, such as a modified version of the file of the system registry (such as build.prop), may be added to the script directory in the temporary directory, for example: the/tmp/appota-vmtquQ/data/mgtvapps/script/.
It should be noted that, as can be seen from the above embodiments, the customization requirement of the upgrade package to be generated may include, but is not limited to, one or a combination of the following requirements: change applications, add applications, delete files, change system attributes, etc. Therefore, in the process of generating the temporary directory corresponding to the upgrade package to be generated, corresponding sub-directories may be set in the temporary directory according to the actual application situation, for example: application directories, script directories, and the like.
For example: the customization requirements of the upgrade package A to be generated are as follows: and changing the attribute of the application X, newly adding an application Y, and deleting the file Z. Then, in the process of generating the temporary directory corresponding to the upgrade package to be generated, an application directory and a script directory may be set in the temporary directory corresponding to the upgrade package to be generated as subdirectories of the temporary directory, where the application directory is used to store the modified application X and to download the newly added application Y, and the script directory is used to store an execution script for deleting the file Z, such as: del et. It should be noted that, the modified application X may be saved, and the newly added application Y may be downloaded to an application directory, and likewise, the modified application X may be saved to the application directory 1, and the newly added application Y may be downloaded to the application directory 2, which is not limited herein.
For example: the customization requirements of the upgrade package B to be generated are as follows: and changing the system attribute M, adding the file N, and deleting the file K. Then, in the process of generating the temporary directory corresponding to the upgrade package to be generated, an application directory and a script directory may be set in the temporary directory corresponding to the upgrade package to be generated, and the application directory and the script directory may be set in the temporary directory corresponding to the upgrade package to be generated as subdirectories of the temporary directory, where the application directory is used to download the new file N and the script directory is used to store an execution script for deleting the file K, such as: sh, and an execution script of a system registry (e.g., build. prop) file required to change the system property M. It should be noted that the execution script of the deleted file K and the execution script of the system registry file required for changing the system attribute M may be saved in one script directory, and the execution script of the deleted file K may also be saved in the script directory 1, and the execution script of the system registry file required for changing the system attribute M may also be saved in the application directory 2, which is not limited herein.
S103, generating an upgrade patch by using the temporary directory corresponding to the upgrade patch to be generated.
Specifically, the temporary catalog corresponding to the upgrade package generated in the above steps is utilized to generate the final upgrade package meeting the customization requirements of the user. Taking the finally generated upgrade package as the OTA upgrade package of the Android as an example, the user can use the finally generated OTA upgrade package to perform the upgrade meeting the customized requirements of the user on the Android device which the user needs to perform the upgrade.
Optionally, in another embodiment of the present application, an implementation manner of step S103, as shown in fig. 2, includes:
s201, compressing the temporary directory, the upgrading script file and the upgrading script verification file corresponding to the upgrading package to be generated into a compressed package.
Specifically, after a temporary directory corresponding to the upgrade package to be generated is generated, an upgrade script (e.g., update-script) file is created, and then the temporary directory, the upgrade script file, and an upgrade script verification (e.g., update-binary) file corresponding to the upgrade package to be generated are compressed into a compressed package (e.g., ZIP package, RAR package, etc.).
S202, signing the compressed package to obtain an upgrade package.
Specifically, the compressed package generated in step S201 is signed to obtain a final upgrade package meeting the customized requirements of the user, so that the upgrade package can perform an upgrade operation meeting the customized requirements of the user on a terminal with the signature.
Optionally, in another embodiment of the present application, an implementation manner of step S202 includes:
and signing the compressed package by using the system signature authority file to obtain an upgrade package.
Specifically, the authority file may be signed by a preset system, for example: and platform.pk8, platform.x509. pep and the like, and signing the compressed package generated in the step to obtain a final upgrade package meeting the customization requirement of the user. Taking the finally generated Android OTA upgrade package as an example, the finally generated Android OTA upgrade package can be upgraded according with the customization requirements of the user in an OTA manner at the Android terminal of the device with the corresponding signature, wherein the device with the corresponding signature is the Android device where the platform.pk8 and the platform.x509.pet files are located.
The directory of the finally generated signed upgrade package may be shown as the following file structure:
according to the scheme, the generation method of the upgrade package comprises the following steps: firstly, acquiring the customization requirement of an upgrade package to be generated; then, generating a temporary directory corresponding to the upgrade package to be generated; the temporary directory comprises an execution script or application meeting the customization requirement; and finally, generating the upgrade package by using the temporary directory corresponding to the upgrade package to be generated. Therefore, the purpose of generating the upgrade package which meets the requirements of users and does not contain redundant files is achieved.
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 disclosure. 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 names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
Computer program code for carrying out operations for the present disclosure may be written in one or more programming languages, including but not limited to object oriented programming languages such as Python, Java, 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).
Another embodiment of the present application provides an apparatus for generating a compressed packet, as shown in fig. 3, specifically including:
an obtaining unit 301, configured to obtain a customized requirement of the upgrade package to be generated.
The first generating unit 302 is configured to generate a temporary directory corresponding to the upgrade package to be generated.
The temporary directory contains an execution script or application meeting the customization requirement.
Optionally, in another embodiment of the present application, if the customized requirement is a modified application or a newly added application, an implementation manner of the first generating unit 302 includes:
and the downloading unit is used for downloading the application needing to be changed or the application needing to be added to the application catalog in the temporary catalog to obtain the temporary catalog corresponding to the upgrade package to be generated.
For specific working processes of the units disclosed in the above embodiments of the present application, reference may be made to the contents of the corresponding method embodiments, which are not described herein again.
Optionally, in another embodiment of the present application, if the customization requirement is to delete a file, an implementation manner of the first generating unit 302 includes:
and the first adding unit is used for adding the execution script of the deleted file into the script directory in the temporary directory to obtain the temporary directory corresponding to the upgrade package to be generated.
For specific working processes of the units disclosed in the above embodiments of the present application, reference may be made to the contents of the corresponding method embodiments, which are not described herein again.
Optionally, in another embodiment of the present application, if the customized requirement is to change a system attribute, an implementation manner of the first generating unit 302 includes:
and the second adding unit is used for adding the execution script for changing the system registry file into the script directory in the temporary directory to obtain the temporary directory corresponding to the upgrade package to be generated.
For specific working processes of the units disclosed in the above embodiments of the present application, reference may be made to the contents of the corresponding method embodiments, which are not described herein again.
A second generating unit 303, configured to generate an upgrade package using the temporary directory corresponding to the upgrade package to be generated.
For a specific working process of the unit disclosed in the above embodiment of the present application, reference may be made to the content of the corresponding method embodiment, as shown in fig. 1, which is not described herein again.
Optionally, in another embodiment of the present application, an implementation manner of the second generating unit 303, as shown in fig. 4, includes:
the compressing unit 401 is configured to compress the temporary directory, the upgrade script file, and the upgrade script verification file corresponding to the upgrade package to be generated into a compressed package.
And a signature unit 402, configured to sign the compressed package to obtain an upgrade package.
For a specific working process of the unit disclosed in the above embodiment of the present application, reference may be made to the content of the corresponding method embodiment, as shown in fig. 2, which is not described herein again.
Optionally, in another embodiment of the present application, an implementation manner of the signature unit 402 includes:
and the signature subunit is used for signing the compressed package by using the system signature authority file to obtain the upgrade package.
For specific working processes of the units disclosed in the above embodiments of the present application, reference may be made to the contents of the corresponding method embodiments, which are not described herein again.
According to the above scheme, the device for generating the upgrade package provided by the present application includes: first, the obtaining unit 301 obtains the customized requirement of the upgrade package to be generated; then, the first generating unit 302 generates a temporary directory corresponding to the upgrade package to be generated; the temporary directory comprises an execution script or application meeting the customization requirement; finally, the second generating unit 303 generates an upgrade package using the temporary directory corresponding to the upgrade package to be generated. Therefore, the purpose of generating the upgrade package which meets the requirements of users and does not contain redundant files is achieved.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a unit does not in some cases constitute a limitation of the unit itself, for example, the first retrieving unit may also be described as a "unit for retrieving at least two internet protocol addresses".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
Another embodiment of the present application provides a server, as shown in fig. 5, including:
one or more processors 501.
A storage device 502 on which one or more programs are stored.
The one or more programs, when executed by the one or more processors 501, cause the one or more processors 501 to implement the method as in any of the above embodiments.
Another embodiment of the present application provides a computer storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method as described in any of the above embodiments.
In the above embodiments disclosed in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The apparatus and method embodiments described above are illustrative only, as the flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present disclosure. 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.
In addition, functional modules in the embodiments of the present disclosure may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part. The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a live broadcast device, or a network device) to execute all or part of the steps of the method according to the embodiments of the present disclosure. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Those skilled in the art can make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (10)
1. A method for generating an upgrade package, comprising:
acquiring the customization requirement of an upgrade package to be generated;
generating a temporary directory corresponding to the upgrade package to be generated; wherein the temporary directory contains an execution script or application meeting the customization requirement;
and generating an upgrade package by using the temporary directory corresponding to the upgrade package to be generated.
2. The method according to claim 1, wherein the customizing requirement is a modified application or a newly added application, and the generating of the temporary directory corresponding to the upgrade package to be generated includes:
and downloading the application to be changed or the application to be added to the application catalog in the temporary catalog to obtain the temporary catalog corresponding to the upgrade package to be generated.
3. The generation method according to claim 1, wherein the customization requirement is a deletion file, and the generating of the temporary directory corresponding to the upgrade package to be generated includes:
and adding the execution script of the deleted file into a script directory in the temporary directory to obtain the temporary directory corresponding to the upgrade package to be generated.
4. The generation method according to claim 1, wherein the customizing requirement is a change of a system attribute, and the generating of the temporary directory corresponding to the upgrade package to be generated includes:
and adding an execution script for changing the system registry file into a script directory in the temporary directory to obtain the temporary directory corresponding to the upgrade package to be generated.
5. The generation method according to claim 1, wherein the generating an upgrade package by using the temporary directory corresponding to the upgrade package to be generated comprises:
compressing the temporary directory, the upgrading script file and the upgrading script verification file corresponding to the upgrading package to be generated into a compressed package;
and signing the compressed package to obtain an upgrade package.
6. The method according to claim 5, wherein the signing the compressed package to obtain an upgrade package comprises:
and signing the compressed package by using the system signature authority file to obtain an upgrade package.
7. An upgrade package generation apparatus, comprising:
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring the customization requirement of an upgrade package to be generated;
the first generating unit is used for generating a temporary directory corresponding to the upgrade package to be generated; wherein the temporary directory contains an execution script or application meeting the customization requirement;
and the second generation unit is used for generating the upgrade package by using the temporary directory corresponding to the upgrade package to be generated.
8. The generation apparatus according to claim 7, wherein the second generation unit includes:
the compression unit is used for compressing the temporary directory, the upgrading script file and the upgrading script verification file corresponding to the upgrading package to be generated into a compression package;
and the signature unit is used for signing the compressed package to obtain the upgrade package.
9. A server, comprising:
one or more processors;
a storage device having one or more programs stored thereon;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1-6.
10. A computer storage medium, having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method of any of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010849284.7A CN111949298A (en) | 2020-08-21 | 2020-08-21 | Generation method and device of upgrade package, server and computer storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010849284.7A CN111949298A (en) | 2020-08-21 | 2020-08-21 | Generation method and device of upgrade package, server and computer storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111949298A true CN111949298A (en) | 2020-11-17 |
Family
ID=73359307
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010849284.7A Pending CN111949298A (en) | 2020-08-21 | 2020-08-21 | Generation method and device of upgrade package, server and computer storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111949298A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112685065A (en) * | 2021-01-06 | 2021-04-20 | 广州朗国电子科技有限公司 | Method and device for issuing OTA upgrade package by android platform device and storage medium |
CN113342378A (en) * | 2021-06-25 | 2021-09-03 | 山东浪潮通软信息科技有限公司 | Mirror image generation method, device and medium based on file system update |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2016177061A1 (en) * | 2015-10-30 | 2016-11-10 | 中兴通讯股份有限公司 | Upgrade method and apparatus using over-the-air download technology |
CN110502263A (en) * | 2019-08-14 | 2019-11-26 | 深圳市东微智能科技股份有限公司 | Upgrade package production method, system and computer readable storage medium |
CN110597542A (en) * | 2019-09-17 | 2019-12-20 | Oppo(重庆)智能科技有限公司 | Automatic OTA (over the air) software upgrading method and device and electronic equipment |
-
2020
- 2020-08-21 CN CN202010849284.7A patent/CN111949298A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2016177061A1 (en) * | 2015-10-30 | 2016-11-10 | 中兴通讯股份有限公司 | Upgrade method and apparatus using over-the-air download technology |
CN110502263A (en) * | 2019-08-14 | 2019-11-26 | 深圳市东微智能科技股份有限公司 | Upgrade package production method, system and computer readable storage medium |
CN110597542A (en) * | 2019-09-17 | 2019-12-20 | Oppo(重庆)智能科技有限公司 | Automatic OTA (over the air) software upgrading method and device and electronic equipment |
Non-Patent Citations (1)
Title |
---|
ELIOT_SHAO: "自定义OTA升级包(差分包,增量包,增量更新)", 《HTTPS://BLOG.CSDN.NET/ELIOT_SHAO/ARTICLE/DETAILS/53086531》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112685065A (en) * | 2021-01-06 | 2021-04-20 | 广州朗国电子科技有限公司 | Method and device for issuing OTA upgrade package by android platform device and storage medium |
CN113342378A (en) * | 2021-06-25 | 2021-09-03 | 山东浪潮通软信息科技有限公司 | Mirror image generation method, device and medium based on file system update |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108279932B (en) | Method and device for dynamically configuring user interface of mobile terminal | |
CN107870787B (en) | Application program plug-in loading method and system | |
WO2019201039A1 (en) | Method and system for updating application and application server | |
KR20180137554A (en) | PATCH UPGRADE BASED FILE PROCESSING METHOD AND DEVICE, TERMINAL, | |
CN106843978B (en) | SDK access method and system | |
CN106250143A (en) | The OTA upgrade method of a kind of wearable device and device | |
CN103123588A (en) | Method and system for obtaining difference upgrade patch | |
CN103838573A (en) | Application program generation method and device | |
WO2014187255A1 (en) | Application packaging device and method | |
EP2076834A1 (en) | Program upgrade system and method for ota-capable mobile terminal | |
US10579592B2 (en) | Method and apparatus for compressing an application | |
TW201734780A (en) | Mobile terminal application update method and device | |
US20210373882A1 (en) | Method and apparatus for generating difference between old and new versions of data for updating software | |
CN105700925A (en) | APP interface implementation method and apparatus | |
CN111949298A (en) | Generation method and device of upgrade package, server and computer storage medium | |
CN111651468A (en) | Data updating method and device based on SQL analysis, electronic equipment and storage medium | |
WO2016202000A1 (en) | Differential rollback upgrading method and apparatus | |
CN103051652A (en) | Mobile terminal cloud commuting delivery platform | |
CN111767704A (en) | Excel form template generation method and device | |
CN104331522A (en) | OEM (Original Equipment Manufacture) information customizing method and OEM equipment | |
CN110191176B (en) | Rapid electronic evidence obtaining method and system | |
CN113873013B (en) | Offline package reorganization method and system | |
US20210349855A1 (en) | Method of data structuring for difference between old and new data and device thereof | |
CN111722865A (en) | Resource data processing method and device for application program | |
CN113900723B (en) | Common platform updating method, network device and computer readable storage medium |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20201117 |
|
RJ01 | Rejection of invention patent application after publication |