CN111949303A - Upgrade package processing method and device, electronic equipment and storage medium - Google Patents

Upgrade package processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111949303A
CN111949303A CN202010639143.2A CN202010639143A CN111949303A CN 111949303 A CN111949303 A CN 111949303A CN 202010639143 A CN202010639143 A CN 202010639143A CN 111949303 A CN111949303 A CN 111949303A
Authority
CN
China
Prior art keywords
file
upgrade package
target
directory
processed
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010639143.2A
Other languages
Chinese (zh)
Inventor
骆冬冬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen SDMC Technology Co Ltd
Original Assignee
Shenzhen SDMC 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 Shenzhen SDMC Technology Co Ltd filed Critical Shenzhen SDMC Technology Co Ltd
Priority to CN202010639143.2A priority Critical patent/CN111949303A/en
Publication of CN111949303A publication Critical patent/CN111949303A/en
Pending legal-status Critical Current

Links

Images

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses and provides an upgrade package processing method, an upgrade package processing device, electronic equipment and a storage medium, wherein the upgrade package processing method comprises the following steps: acquiring an upgrade package to be processed of a target system; decompressing the upgrade package to be processed under the current system environment to obtain a decompressed file of the upgrade package to be processed, wherein the decompressed file comprises a directory file; according to the directory file, searching a corresponding file position for updating; compressing the updated file in the current system environment to obtain a target upgrade package, signing the target upgrade package, and issuing the target upgrade package to an upgrade platform of a target system. The upgrading package to be processed is decompressed under the current environment, the target upgrading package is obtained through updating, and then secondary packaging is carried out, so that more development environments can be prevented from being configured, and the development efficiency of the upgrading package is improved.

Description

Upgrade package processing method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to an upgrade package processing method and apparatus, an electronic device, and a storage medium.
Background
With the update iteration of Android SDK versions, from Android1.0 to current Android 10.0, 28 Android API version numbers are spanned, and the upgrading of an Android system brings more new functions and repairs known bugs on one hand, and on the other hand, the SDK codes are more and more popular, and more time is needed for compiling the SDK, although google launches an ninja compiler on Android 7.0, the whole compiling efficiency is not greatly improved, and even in small projects, the whole compiling is not as fast as Makefile compiling. At present, the SDK packing scheme is, as shown in fig. 1, a conventional SDK packing scheme generates an OTA upgrade package based on an SDK, so that the SDK needs to be downloaded first, then the last version of upgrade package software is merged for modification, the SDK is aligned with the last version of upgrade package software, then a newly required source code is developed or a third-party product is preset, and finally, a Ninja compiling system is used for compiling the SDK. Because the engineering code of the android SDK is too huge, if the whole SDK is compiled in the Linux system every time, firstly, a complete set of SDK codes needs to be provided, secondly, a better server needs to be provided for compiling the SDK, and a large amount of time needs to be consumed for compiling once. Many times, only a certain partition or a certain file needs to be replaced, and if the whole android SDK is compiled in this time, a large amount of repeated work can be caused, which wastes manpower and time. Based on the above, it is proposed to construct the integrated software of the SDK under the Linux system, but if the method is operated on the Linux system, inconvenience is brought to a developer user using the windows system. Although the corresponding linux server can be configured for the developer to use, the method also has the defects that on the first hand, the occupied server resources waste the resources of the personal computer, and the packing needs to consume a long time for one time; secondly, running android integrated software on Linux requires root authority to use, so that many common developer users cannot use the android integrated software directly, and need to install a virtual machine and an ubuntu system, which is inconvenient and affects development efficiency, and the installation of the virtual machine and the ubuntu system occupies more computer resources; in a third aspect, especially if the business developer user needs to upgrade a version of software to the customer a second time, the mobile computer is equipped with virtual machines and ubuntu, which is not conducive to migration of work.
Therefore, the existing updating or developing mode of the upgrade package has the problem of low updating or developing efficiency of the upgrade package.
Content of application
The invention aims to provide an upgrade package processing method aiming at the defects in the prior art, and solves the problem that the existing upgrade package is low in updating or developing efficiency.
The purpose of the invention is realized by the following technical scheme:
in a first aspect, an upgrade package processing method is provided, where the method includes:
acquiring an upgrade package to be processed of a target system;
decompressing the upgrade package to be processed under the current system environment to obtain a decompressed file of the upgrade package to be processed, wherein the decompressed file comprises a directory file;
according to the directory file, searching a corresponding file position for updating;
compressing the updated file in the current system environment to obtain a target upgrade package, signing the target upgrade package, and issuing the target upgrade package to an upgrade platform of a target system.
Optionally, the updating includes at least one of file replacement, file clipping, and file addition, and the finding out the corresponding file location according to the directory file to perform the updating includes:
searching a file to be replaced according to the directory file, and replacing the file to be replaced through a replacement file prepared in advance; and/or
Searching a file to be cut according to the directory file, and cutting the file to be cut; and/or
And searching the position of the file to be added according to the directory file, and adding the file to be added, which is prepared in advance.
Optionally, after the corresponding file location is found according to the directory file and is updated, the method further includes:
updating the version information according to the update processing.
Optionally, decompressing the upgrade package to be processed in the current system environment to obtain a decompressed file of the upgrade package to be processed, where the decompressed file includes a directory file, and the decompressing includes:
and decompressing and partitioning the upgrade package to be processed under the current system environment to obtain decompressed partition files of the upgrade package to be processed, wherein the decompressed partition files comprise directory files.
In a second aspect, there is provided an upgrade package processing apparatus, the apparatus comprising:
acquiring an upgrade package to be processed of a target system;
decompressing the upgrade package to be processed under the current system environment to obtain a decompressed file of the upgrade package to be processed, wherein the decompressed file comprises a directory file;
according to the directory file, searching a corresponding file position for updating;
compressing the updated file in the current system environment to obtain a target upgrade package, signing the target upgrade package, and issuing the target upgrade package to an upgrade platform of a target system.
Optionally, the updating includes at least one of file replacement, file clipping, and file addition, and the finding out the corresponding file location according to the directory file to perform the updating includes:
searching a file to be replaced according to the directory file, and replacing the file to be replaced through a replacement file prepared in advance; and/or
Searching a file to be cut according to the directory file, and cutting the file to be cut; and/or
And searching the position of the file to be added according to the directory file, and adding the file to be added, which is prepared in advance.
Optionally, after the corresponding file location is found according to the directory file and is updated, the method further includes:
updating the version information according to the update processing.
Optionally, decompressing the upgrade package to be processed in the current system environment to obtain a decompressed file of the upgrade package to be processed, where the decompressed file includes a directory file, and the decompressing includes:
and decompressing and partitioning the upgrade package to be processed under the current system environment to obtain decompressed partition files of the upgrade package to be processed, wherein the decompressed partition files comprise directory files.
In a third aspect, an electronic device is provided, including: memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps in the upgrade package processing method according to any one of claims 1 to 4 when executing the computer program.
In a fourth aspect, a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps in the upgrade package processing method according to any one of claims 1 to 4.
The invention has the following beneficial effects: acquiring an upgrade package to be processed of a target system; decompressing the upgrade package to be processed under the current system environment to obtain a decompressed file of the upgrade package to be processed, wherein the decompressed file comprises a directory file; according to the directory file, searching a corresponding file position for updating; compressing the updated file in the current system environment to obtain a target upgrade package, signing the target upgrade package, and issuing the target upgrade package to an upgrade platform of a target system. The upgrading package to be processed is decompressed under the current environment, the target upgrading package is obtained through updating, and then secondary packaging is carried out, so that more development environments can be prevented from being configured, and the development efficiency of the upgrading package is improved.
Drawings
Fig. 1 is a schematic diagram of a conventional upgrade package processing method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of an upgrade package processing method according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of another upgrade package processing method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an upgrade package processing apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a search module 403 according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of another upgrade package processing apparatus according to an embodiment of the present invention.
Detailed Description
The following describes preferred embodiments of the present invention and those skilled in the art will be able to realize the invention by using the related art in the following and will more clearly understand the innovative features and the advantages brought by the present invention.
The invention provides an upgrade package processing method. The purpose of the invention is realized by the following technical scheme:
referring to fig. 2, fig. 2 is a schematic flowchart of an upgrade package processing method according to an embodiment of the present invention, and as shown in fig. 2, the method includes:
201. and acquiring the upgrade package to be processed of the target system.
The target system can be any version of Android system. Such as any version of the Android system from Android1.0 to Android 10.0. The upgrade package to be processed refers to a system upgrade package corresponding to the target system.
Further, the upgrade package to be processed includes a corresponding version number, and the upgrade package to be processed may be an ota _ update. The ota is a short hand for over the air, and means an over-the-air technology, and the ota upgrade package is a file package which can be upgraded for an android phone system by using a network or an SD card.
202. And decompressing the upgrade package to be processed under the current system environment to obtain a decompressed file of the upgrade package to be processed.
Wherein the decompressed file comprises a directory file.
In an embodiment of the present invention, the current system environment may be a windows system. Since the upgrade package to be processed is ota _ update. And decompressing through a decompressing tool in the windows system to obtain a decompressed file.
The decompressed files include directory files, which may also be referred to as index files, and the directory files are used for searching files in corresponding positions.
The decompressed partition file comprises a system partition file, a starting partition file and a recovery partition file, and the directory file comprises subdirectories corresponding to the system partition, the starting partition and the recovery partition.
Specifically, the above list may be:
Figure BDA0002570789990000051
img (boot partition) is a file required for updating the boot partition; the system/(system partition) content will be placed in the system partition of the system after upgrading; the recovery-from-boot.p in the recovery/(recovery partition) is a patch (patch) for starting and recovering partitions, and is mainly used for updating the recovery partition, wherein an install-recovery.sh file under the etc/directory is an update script; the above-mentioned update-binary can be understood as a script interpreter capable of recognizing operations described in the update-script; the update-script is a script file and describes a specific updating process; the META-INF is a metadata directory; the cert.rsa is a signature program file associated with a signature file, and is used for storing a public signature of the signature file; the cert.sf above is a signature file; mf is a file defining data related to the composition structure of a data packet, and the metadata file is metadata describing device information and environment variables, and mainly includes compilation options, a signature public key, a timestamp, a device model, and the like.
203. And searching the corresponding file position according to the directory file to perform updating processing.
In this step, a location where an update is needed is provided by the developer user, for example, a new file needs to be added to the system partition, and the developer user provides the added location after compiling the needed update file, for example: and out/target/product/tcc8800/system/, adding the file to be added to the system partition directory of out/target/product/tcc 8800/system/. Or, for example, a new file needs to be cut in the system partition, the developer user provides the name of the file that needs to be cut and the corresponding location, such as: out/target/product/tcc8800/system/145200824087.PNG, the 145200824087.PNG files under the system partition directory are trimmed. Or, for example, when a file needs to be replaced in a system partition, after the developer user compiles the needed upgrade file, the developer user provides the name of the file that needs to be replaced and the location of the replacement file, where the location is, for example: out/target/product/tcc8800/system/145200824087.PNG, wherein 145200824087.PNG is the name of the file to be replaced, and if the file is upgraded, such as 190085872402.PNG, the original file 145200824087.PNG is replaced by the upgraded file 190085872402. PNG.
204. And compressing the updated file in the current system environment to obtain a target upgrade package, signing the target upgrade package, and issuing the target upgrade package to an upgrade platform of the target system for a user to download.
In this step, the current system environment described above may be a windows system. After the updated file is obtained, the file is compressed, and the compression tool may be any compression tool running on the windows system. And obtaining the target upgrade package after compression.
The target system can be an Android system. And processing the upgrade package of the Android system on the windows system to obtain the latest upgrade package of the Android system. The SDK does not need to be downloaded and configured for packaging, and root permission is not needed, so that the development efficiency of Android system developer users is improved.
In the embodiment of the invention, an upgrade package to be processed of a target system is obtained; decompressing the upgrade package to be processed under the current system environment to obtain a decompressed file of the upgrade package to be processed, wherein the decompressed file comprises a directory file; according to the directory file, searching a corresponding file position for updating; compressing the updated file in the current system environment to obtain a target upgrade package, signing the target upgrade package, and issuing the target upgrade package to an upgrade platform of a target system. The upgrading package to be processed is decompressed under the current environment, the target upgrading package is obtained through updating, and then secondary packaging is carried out, so that more development environments can be prevented from being configured, and the development efficiency of the upgrading package is improved.
Optionally, referring to fig. 3, fig. 3 is a schematic flowchart of another upgrade package processing method provided in the embodiment of the present invention, and as shown in fig. 3, the method includes:
301. and acquiring the upgrade package to be processed of the target system.
The target system can be any version of Android system. Such as any version of the Android system from Android1.0 to Android 10.0. The upgrade package to be processed refers to a system upgrade package corresponding to the target system.
Further, the upgrade package to be processed includes a corresponding version number, and the upgrade package to be processed may be an ota _ update. The ota is a short hand for over the air, and means an over-the-air technology, and the ota upgrade package is a file package which can be upgraded for an android phone system by using a network or an SD card.
302. And decompressing the upgrade package to be processed under the current system environment to obtain a decompressed file of the upgrade package to be processed, wherein the decompressed file comprises a directory file.
In an embodiment of the present invention, the current system environment may be a windows system. Since the upgrade package to be processed is ota _ update. And decompressing through a decompressing tool in the windows system to obtain a decompressed file.
The decompressed files include directory files, which may also be referred to as index files, and the directory files are used for searching files in corresponding positions.
The decompressed partition file comprises a system partition file, a starting partition file and a recovery partition file, and the directory file comprises subdirectories corresponding to the system partition, the starting partition and the recovery partition.
Specifically, the above list may be:
Figure BDA0002570789990000071
Figure BDA0002570789990000081
img (boot partition) is a file required for updating the boot partition; the system/(system partition) content will be placed in the system partition of the system after upgrading; the recovery-from-boot.p in the recovery/(recovery partition) is a patch (patch) for starting and recovering partitions, and is mainly used for updating the recovery partition, wherein an install-recovery.sh file under the etc/directory is an update script; the above-mentioned update-binary can be understood as a script interpreter capable of recognizing operations described in the update-script; the update-script is a script file and describes a specific updating process; the META-INF is a metadata directory; the cert.rsa is a signature program file associated with a signature file, and is used for storing a public signature of the signature file; the cert.sf above is a signature file; mf is a file defining data related to the composition structure of a data packet, and the metadata file is metadata describing device information and environment variables, and mainly includes compilation options, a signature public key, a timestamp, a device model, and the like.
303. And searching the position of the file to be added according to the directory file, and adding the file to be added, which is prepared in advance.
In this step, a location where an update is needed is provided by the developer user, for example, a new file needs to be added to the system partition, and the developer user provides the added location after compiling the needed update file, for example: and out/target/product/tcc8800/system/, adding the file to be added to the system partition directory of out/target/product/tcc 8800/system/.
304. And searching a file to be cut according to the directory file, and cutting the file to be cut.
In this step, a location where an update is needed is provided by the developer user, for example, a new file needs to be cut in the system partition, and the developer user provides a name of the file needing to be cut and a corresponding location, for example: out/target/product/tcc8800/system/145200824087.PNG, the 145200824087.PNG files under the system partition directory are trimmed.
305. And searching a file to be replaced according to the directory file, and replacing the file to be replaced by a replacement file prepared in advance.
In this step, a location where an update is needed is provided by the developer user, for example, when a file needs to be replaced in a system partition, the developer user provides a name of the file needing to be replaced and a location of the file needing to be replaced after the developer user compiles the file needing to be updated, where the location is, for example: out/target/product/tcc8800/system/145200824087.PNG, wherein 145200824087.PNG is the name of the file to be replaced, and if the file is upgraded, such as 190085872402.PNG, the original file 145200824087.PNG is replaced by the upgraded file 190085872402. PNG.
306. And compressing the updated file in the current system environment to obtain a target upgrade package, signing the target upgrade package, and issuing the target upgrade package to an upgrade platform of the target system.
In this step, the current system environment described above may be a windows system. After the updated file is obtained, the file is compressed, and the compression tool may be any compression tool running on the windows system. And obtaining the target upgrade package after compression.
The target system can be an Android system. And processing the upgrade package of the Android system on the windows system to obtain the latest upgrade package of the Android system. The SDK does not need to be downloaded and configured for packaging, and root permission is not needed, so that the development efficiency of Android system developer users is improved.
In the embodiment of the invention, an upgrade package to be processed of a target system is obtained; decompressing the upgrade package to be processed under the current system environment to obtain a decompressed file of the upgrade package to be processed, wherein the decompressed file comprises a directory file; according to the directory file, searching a corresponding file position for updating; compressing the updated file in the current system environment to obtain a target upgrade package, signing the target upgrade package, and issuing the target upgrade package to an upgrade platform of a target system. The upgrading package to be processed is decompressed under the current environment, the target upgrading package is obtained through updating, and then secondary packaging is carried out, so that more development environments can be prevented from being configured, and the development efficiency of the upgrading package is improved.
Optionally, before step 203, the version information may also be updated according to the update content in the update process, where the version information may be version description information.
Referring to fig. 4, fig. 4 is an upgrade package processing apparatus according to an embodiment of the present invention, and as shown in fig. 4, the upgrade package processing apparatus includes:
the obtaining module 401 is configured to obtain an upgrade package to be processed of a target system.
The target system can be any version of Android system. Such as any version of the Android system from Android1.0 to Android 10.0. The upgrade package to be processed refers to a system upgrade package corresponding to the target system.
Further, the upgrade package to be processed includes a corresponding version number, and the upgrade package to be processed may be an ota _ update. The ota is a short hand for over the air, and means an over-the-air technology, and the ota upgrade package is a file package which can be upgraded for an android phone system by using a network or an SD card.
And the decompressing module 402 is configured to decompress the upgrade package to be processed in the current system environment to obtain a decompressed file of the upgrade package to be processed, where the decompressed file includes a directory file.
In an embodiment of the present invention, the current system environment may be a windows system. Since the upgrade package to be processed is ota _ update. And decompressing through a decompressing tool in the windows system to obtain a decompressed file.
The decompressed files include directory files, which may also be referred to as index files, and the directory files are used for searching files in corresponding positions.
The decompressed partition file comprises a system partition file, a starting partition file and a recovery partition file, and the directory file comprises subdirectories corresponding to the system partition, the starting partition and the recovery partition.
Specifically, the above list may be:
Figure BDA0002570789990000101
img (boot partition) is a file required for updating the boot partition; the system/(system partition) content will be placed in the system partition of the system after upgrading; the recovery-from-boot.p in the recovery/(recovery partition) is a patch (patch) for starting and recovering partitions, and is mainly used for updating the recovery partition, wherein an install-recovery.sh file under the etc/directory is an update script; the above-mentioned update-binary can be understood as a script interpreter capable of recognizing operations described in the update-script; the update-script is a script file and describes a specific updating process; the META-INF is a metadata directory; the cert.rsa is a signature program file associated with a signature file, and is used for storing a public signature of the signature file; the cert.sf above is a signature file; mf is a file defining data related to the composition structure of a data packet, and the metadata file is metadata describing device information and environment variables, and mainly includes compilation options, a signature public key, a timestamp, a device model, and the like.
The searching module 403 is configured to search, according to the directory file, a corresponding file location for performing update processing.
In this module, a developer user provides a location where an update is needed, for example, a new file needs to be added to a system partition, and the developer user compiles the needed update file and provides an added location, for example: and out/target/product/tcc8800/system/, adding the file to be added to the system partition directory of out/target/product/tcc 8800/system/. Or, for example, a new file needs to be cut in the system partition, the developer user provides the name of the file that needs to be cut and the corresponding location, such as: out/target/product/tcc8800/system/145200824087.PNG, the 145200824087.PNG files under the system partition directory are trimmed. Or, for example, when a file needs to be replaced in a system partition, after the developer user compiles the needed upgrade file, the developer user provides the name of the file that needs to be replaced and the location of the replacement file, where the location is, for example: out/target/product/tcc8800/system/145200824087.PNG, wherein 145200824087.PNG is the name of the file to be replaced, and if the file is upgraded, such as 190085872402.PNG, the original file 145200824087.PNG is replaced by the upgraded file 190085872402. PNG.
And the compression module 404 is configured to compress the updated file in the current system environment to obtain a target upgrade package, sign the target upgrade package, and issue the signed target upgrade package to the upgrade platform of the target system.
In this module, the current system environment described above may be a windows system. After the updated file is obtained, the file is compressed, and the compression tool may be any compression tool running on the windows system. And obtaining the target upgrade package after compression.
The target system can be an Android system. And processing the upgrade package of the Android system on the windows system to obtain the latest upgrade package of the Android system. The SDK does not need to be downloaded and configured for packaging, and root permission is not needed, so that the development efficiency of Android system developer users is improved.
In the embodiment of the invention, an upgrade package to be processed of a target system is obtained; decompressing the upgrade package to be processed under the current system environment to obtain a decompressed file of the upgrade package to be processed, wherein the decompressed file comprises a directory file; according to the directory file, searching a corresponding file position for updating; compressing the updated file in the current system environment to obtain a target upgrade package, signing the target upgrade package, and issuing the target upgrade package to an upgrade platform of a target system. The upgrading package to be processed is decompressed under the current environment, the target upgrading package is obtained through updating, and then secondary packaging is carried out, so that more development environments can be prevented from being configured, and the development efficiency of the upgrading package is improved.
Optionally, as shown in fig. 5, the searching module 403 includes:
a replacing unit 4031, configured to find a file to be replaced according to the directory file, and replace the file to be replaced with a replacement file prepared in advance; and/or the cutting unit 4032 is used for finding the file to be cut according to the directory file and cutting the file to be cut; and/or an adding unit 4033, configured to find a location of a file to be added according to the directory file, and add a previously prepared file to be added.
Optionally, as shown in fig. 6, the upgrade package processing apparatus further includes: an update module 405, configured to update the version information according to the update processing. The version information described above may be version description information.
Optionally, the decompression module 402 is further configured to decompress and partition the upgrade package to be processed in the current system environment, so as to obtain a decompressed partition file of the upgrade package to be processed, where the decompressed partition file includes a directory file.
An embodiment of the present invention provides an electronic device, including: the upgrade package processing method comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor realizes the steps in the upgrade package processing method provided by the embodiment of the invention when executing the computer program.
The embodiment of the invention provides a computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps in the upgrade package processing method provided by the embodiment of the invention are realized.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are exemplary embodiments and that the acts and modules illustrated are not necessarily required to practice the invention.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus can be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative
In addition, the processors and chips in the embodiments of the present invention may be integrated into one processing unit, may exist alone physically, or may be integrated into one unit by two or more hardware. The computer-readable storage medium or the computer-readable program may be stored in a computer-readable memory. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a memory and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing is a more detailed description of the present invention in connection with specific preferred embodiments thereof, and it is not intended that the specific embodiments of the present invention be limited to these descriptions. For those skilled in the art to which the invention pertains, several simple deductions or substitutions can be made without departing from the spirit of the invention, and all shall be considered as belonging to the protection scope of the invention.

Claims (10)

1. An upgrade package processing method, comprising:
acquiring an upgrade package to be processed of a target system;
decompressing the upgrade package to be processed under the current system environment to obtain a decompressed file of the upgrade package to be processed, wherein the decompressed file comprises a directory file;
according to the directory file, searching a corresponding file position for updating;
compressing the updated file in the current system environment to obtain a target upgrade package, signing the target upgrade package, and issuing the target upgrade package to an upgrade platform of a target system.
2. The upgrade package processing method according to claim 1, wherein the update processing includes at least one of file replacement, file clipping, and file addition, and the finding of the corresponding file location according to the directory file for update processing includes:
searching a file to be replaced according to the directory file, and replacing the file to be replaced through a replacement file prepared in advance; and/or
Searching a file to be cut according to the directory file, and cutting the file to be cut; and/or
And searching the position of the file to be added according to the directory file, and adding the file to be added, which is prepared in advance.
3. The upgrade package processing method according to claim 1, wherein after the corresponding file location is found according to the directory file and updated, the method further comprises:
updating the version information according to the update processing.
4. The upgrade package processing method according to claim 1, wherein decompressing the upgrade package to be processed under the current system environment to obtain a decompressed file of the upgrade package to be processed, includes:
and decompressing and partitioning the upgrade package to be processed under the current system environment to obtain decompressed partition files of the upgrade package to be processed, wherein the decompressed partition files comprise directory files.
5. An upgrade package processing apparatus, characterized in that the apparatus comprises:
the acquisition module is used for acquiring the upgrade package to be processed of the target system;
the decompression module is used for decompressing the upgrade package to be processed under the current system environment to obtain a decompressed file of the upgrade package to be processed, wherein the decompressed file comprises a directory file;
the searching module is used for searching the corresponding file position according to the directory file and performing updating processing;
and the compression module is used for compressing the updated file in the current system environment to obtain a target upgrade package, signing the target upgrade package and issuing the target upgrade package to an upgrade platform of the target system.
6. The upgrade package processing apparatus according to claim 5, wherein the update process includes at least one of file replacement, file clipping, and file addition, the search module includes:
the replacing unit is used for searching the file to be replaced according to the directory file and replacing the file to be replaced by a replacing file prepared in advance; and/or
The cutting unit is used for searching the file to be cut according to the directory file and cutting the file to be cut; and/or
And the adding unit is used for searching the position of the file to be added according to the directory file and adding the file to be added, which is prepared in advance.
7. The upgrade package processing apparatus according to claim 5, wherein the apparatus further comprises:
and the updating module is used for updating the version information according to the updating processing.
8. The upgrade package processing apparatus according to claim 5, wherein the decompression module is further configured to decompress and partition the upgrade package to be processed under a current system environment, to obtain a decompressed partition file of the upgrade package to be processed, where the decompressed partition file includes a directory file.
9. An electronic device, comprising: memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps in the upgrade package processing method according to any one of claims 1 to 4 when executing the computer program.
10. A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, implements the steps in the upgrade package processing method according to any one of claims 1 to 4.
CN202010639143.2A 2020-07-06 2020-07-06 Upgrade package processing method and device, electronic equipment and storage medium Pending CN111949303A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010639143.2A CN111949303A (en) 2020-07-06 2020-07-06 Upgrade package processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010639143.2A CN111949303A (en) 2020-07-06 2020-07-06 Upgrade package processing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111949303A true CN111949303A (en) 2020-11-17

Family

ID=73340081

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010639143.2A Pending CN111949303A (en) 2020-07-06 2020-07-06 Upgrade package processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111949303A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112732285A (en) * 2021-04-02 2021-04-30 北京易捷思达科技发展有限公司 Upgrading method and device suitable for cloud computing linux operating system and electronic equipment
CN113867768A (en) * 2021-09-30 2021-12-31 厦门亿联网络技术股份有限公司 Operating system processing method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014180425A1 (en) * 2013-12-16 2014-11-13 中兴通讯股份有限公司 File system upgrade package production method, upgrade method, device and terminal
CN108415714A (en) * 2018-02-08 2018-08-17 上海商米科技有限公司 The method for upgrading system and device of mobile terminal
CN109144519A (en) * 2018-08-23 2019-01-04 广州视源电子科技股份有限公司 Generation method and device of upgrade package, computer equipment and storage medium
CN109426515A (en) * 2017-09-04 2019-03-05 中兴通讯股份有限公司 The generation method and device of upgrade package

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014180425A1 (en) * 2013-12-16 2014-11-13 中兴通讯股份有限公司 File system upgrade package production method, upgrade method, device and terminal
CN109426515A (en) * 2017-09-04 2019-03-05 中兴通讯股份有限公司 The generation method and device of upgrade package
CN108415714A (en) * 2018-02-08 2018-08-17 上海商米科技有限公司 The method for upgrading system and device of mobile terminal
CN109144519A (en) * 2018-08-23 2019-01-04 广州视源电子科技股份有限公司 Generation method and device of upgrade package, computer equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112732285A (en) * 2021-04-02 2021-04-30 北京易捷思达科技发展有限公司 Upgrading method and device suitable for cloud computing linux operating system and electronic equipment
CN113867768A (en) * 2021-09-30 2021-12-31 厦门亿联网络技术股份有限公司 Operating system processing method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109491695B (en) Incremental updating method for integrated android application
CN106775723B (en) Android platform-based system firmware customization method and Android device
US10120672B2 (en) Method for offline updating virtual machine images
CN102609328B (en) System difference upgrade method and device and mobile terminal
CN107506219A (en) A kind of general version upgrade method based on android system
CN101986266B (en) Method for transplanting Android mobile phone operating system to Atom development board
CN105786538B (en) software upgrading method and device based on android system
CN103984582A (en) Method and device for hot updating
CN104506639A (en) Root right acquiring method and device
CN104991793A (en) Method, device and system used for application program subpackage
WO2019041891A1 (en) Method and device for generating upgrade package
CN112631622A (en) Application installation method and device, server and computer readable medium
US10248409B1 (en) Limiting the effects of source code patches on corresponding native-code patches
CN112732321B (en) Firmware modification method, device, computer readable storage medium and equipment
US10067753B2 (en) Application program uninstallation method and apparatus
CN115185550A (en) Service deployment method, device, computer equipment and storage medium
CN111949303A (en) Upgrade package processing method and device, electronic equipment and storage medium
CN111008034A (en) Patch generation method and device
CN114721688A (en) SDK upgrading method and device and computer equipment
CN112612502A (en) Patch generation method, device, equipment and storage medium
CN105700900B (en) A kind of method and device optimizing wireless lan function
CN108694049B (en) Method and equipment for updating software
CN114816816A (en) Collapse stack information processing method, device, equipment and storage medium
CN105119944A (en) Application starting method and related device
CN112612833B (en) Rule package updating method, device, equipment and 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