CN112685065A - Method and device for issuing OTA upgrade package by android platform device and storage medium - Google Patents
Method and device for issuing OTA upgrade package by android platform device and storage medium Download PDFInfo
- Publication number
- CN112685065A CN112685065A CN202110010712.1A CN202110010712A CN112685065A CN 112685065 A CN112685065 A CN 112685065A CN 202110010712 A CN202110010712 A CN 202110010712A CN 112685065 A CN112685065 A CN 112685065A
- Authority
- CN
- China
- Prior art keywords
- upgrade package
- files
- file
- ota
- ota upgrade
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 20
- 238000004806 packaging method and process Methods 0.000 claims abstract description 38
- 230000000694 effects Effects 0.000 claims description 10
- 238000004590 computer program Methods 0.000 claims description 6
- 238000004519 manufacturing process Methods 0.000 abstract description 3
- 238000012858 packaging process Methods 0.000 abstract description 3
- 238000012856 packing Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
Images
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a method, a device and a storage medium for issuing an OTA upgrade package by android platform equipment, wherein the method comprises the following steps: extracting files of the same part and files of different parts of the upgrade package; files of the same part are obtained by compiling the upgrade package only once, and files of different parts are copied to a packaging position through a script tool in a covering manner; after the overlay copy is finished, the files are packaged into an OTA upgrade package through a packaging tool; repeating the step 3 until all OTA upgrade packages which need to be issued to the android platform device are packaged; and uploading the OTA upgrade package to a server to complete the release of the OTA upgrade package. The invention separates compiling and packaging by decomposing the android platform OTA upgrade package manufacturing step. Therefore, the complete package does not need to be compiled repeatedly, different parts only need to be packaged for many times when the upgrade package is manufactured, and the time is saved compared with the compiling in the packaging process, so that the release efficiency of the upgrade package can be greatly improved.
Description
Technical Field
The invention relates to the technical field of software upgrading, in particular to a method, a device and a storage medium for issuing an OTA upgrade package by an android platform device.
Background
At present, software platforms of most hardware devices are android, and the software upgrading of the android platforms can use an OTA (over the air) upgrading mode. However, one main board designed by a main board supplier of hardware equipment is supplied to different equipment customers or one main board supplied to the same equipment customer is used for different equipment models. The software of the same mainboard can have software differences due to the whole machine differences, different startup logos and startup animations can be generated when different clients are installed, different android applications are preinstalled, the same application is used but different UI (interface) styles are used, different image effect processing and screen matching time sequences can be realized due to different liquid crystal screens, different sound effect processing can be realized due to different loudspeakers, different driving modules can be realized due to different peripherals, and the like.
When the same main board software updates the upgrade package, the upgrade package needs to be provided for each differentiated model. In this upgrade package, some parts will be the same and some parts will be different. For the management of the upgrade package, customized configuration can be realized by finding out a differential part, customized processing is executed before compiling, and then the whole package is compiled to generate the OTA upgrade package.
In order to obtain the OTA upgrade package with partial difference, the difference item uses a script mode to generate a file of a corresponding configuration item, then an OTA complete package is compiled, the difference upgrade package is made by the complete upgrade packages of two different versions, and then the difference upgrade package is uploaded to an upgrade server. However, if the same part of the upgrade package has updates, the upgrade package needs to be compiled for the corresponding number of times as many pieces of software configured for the model. Because the android system has many modules, executing the customized script and compiling the complete upgrade package consumes resources of a Central Processing Unit (CPU) of the server, and compiling the upgrade package once can take a long time. If the configuration of the compiling server is low, or more teams share the same server manually and compile at the same time, the time for compiling the upgrade package once is longer. Therefore, the upgrade packages are compiled for different models of the android platform respectively, and the upgrade efficiency is greatly reduced after repeated compiling.
Disclosure of Invention
The invention aims to provide a method for issuing an OTA upgrade patch by android platform equipment, which can solve the problems that in the prior art, different models under an android platform need to be compiled respectively and repeatedly for many times, and the issuing and upgrading efficiency is low.
The purpose of the invention is realized by the following technical scheme:
in a first aspect, the present invention provides a method for issuing an OTA upgrade package by an android platform device, including the following steps:
step 1, extracting files of the same part and files of different parts of an upgrade package;
step 2, compiling the upgrade package once to obtain files of the same part, and copying the files of different parts to a packaging position through a script tool in a covering manner;
step 3, packaging the files which are copied in a covering manner into an OTA upgrade package through a packaging tool;
step 4, repeating the step 3 until all OTA upgrade packages needing to be issued to the android platform device are packaged;
and 5, uploading the OTA upgrade package to a server to complete the release of the OTA upgrade package.
Further, the files of the different parts comprise an android system attribute file, a drive function configuration file of a scheme, a screen parameter file, a preset android application file, a dynamic connection library file, an executable file, a drive file, a database file, an image effect related configuration file, a sound effect related configuration file, a startup logo file and a startup animation file.
Furthermore, the script tool realizes that files of different parts of corresponding configuration are copied to the positions required by the packaging upgrade package tool in a covering manner.
Further, the files of different parts of the corresponding configuration are specifically a configuration corresponding to a folder, and the folder includes configuration customized files.
Further, the server is connected with the android platform device of the client through a serial port.
In a second aspect, the invention provides a device for issuing an OTA upgrade package by using android platform equipment, which comprises a compiling module, a packaging module and a server;
the compiling module is used for compiling the upgrading packet once to obtain the files of the same part of the upgrading packet, the files of the rest different parts are integrated into an OTA upgrading packet through the packing module, and the OTA upgrading packet is uploaded to the server to complete release.
Further, the packaging module comprises a script tool and a packaging tool;
the script tool realizes that files of different parts of corresponding configuration are copied to the positions required by the packaging tool in a covering manner, and one configuration corresponds to one folder which contains the configuration customized file;
the packaging tool is an android native tool, and the compiled target files are packaged into the upgrade package.
In a third aspect, the present invention provides a storage medium, where a computer program is stored in the storage medium, and the computer program is run to execute the method for the android platform device to issue the OTA upgrade package.
The invention separates compiling and packaging by decomposing the android platform OTA upgrade package manufacturing step. And extracting the same part and different parts of the upgrade package, obtaining the same part by compiling the upgrade package only once, replacing files by simple coverage for the different parts, and then performing packaging to obtain the OTA upgrade package. Therefore, the complete package does not need to be compiled repeatedly, different parts only need to be packaged for many times when the upgrade package is manufactured, and the time is saved compared with the compiling in the packaging process, so that the release efficiency of the upgrade package can be greatly improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic diagram illustrating steps of a method for an android platform device to issue an OTA upgrade package in the present invention;
fig. 2 is a schematic flow chart of the OTA upgrade package creation method in the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, 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 invention.
The invention provides a method for issuing an OTA upgrade package by android platform equipment, which comprises the following steps:
and step 1, extracting files of the same part and files of different parts of the upgrade package.
And 2, compiling the upgrade package once to obtain files of the same part, and copying the files of different parts to a packaging position through a script tool in a covering manner.
Step 3, packaging the files which are copied in a covering manner into an OTA upgrade package through a packaging tool;
step 4, repeating the step 3 until all OTA upgrade packages needing to be issued to the android platform device are packaged;
and 5, uploading the OTA upgrade package to a server to complete the release of the OTA upgrade package.
It should be noted that the packaging tool provides a tool for android native, and packages the compiled target files into the upgrade package.
The server is connected with the plurality of clients through the serial ports, and after the OTA upgrade package is uploaded to the server and issued, the android platform client can download the corresponding OTA upgrade package and complete the upgrade.
Specifically, the classification of the files of the different parts specifically includes:
the android system comprises an android system attribute file, a prop file, a drive function configuration file of a scheme, an ini file, a screen parameter file, an ini file, other function configuration files, an xml file, a json file, a preset android application apk file, a dynamic connection library file, a so file, an executable file, a drive file, a ko file, a database file, a db file, an image effect related configuration file, a sound effect related configuration file, a startup logo file and a startup animation file.
Specifically, the script tool realizes that files of different parts of corresponding configuration are copied to the positions required by the packaging upgrade package tool in a covering manner.
Specifically, the files of different parts of the corresponding configuration specifically correspond to a folder for one configuration, and the folder includes configuration customized files. And meanwhile, the customized script realizes the covering and copying of the customized file to a target position.
In specific implementation, the server is connected with the android platform device of the client through a serial port. When the OTA upgrade package is uploaded on the server, the client can download the upgrade package.
The invention provides a device for issuing an OTA upgrade package by android platform equipment.
The compiling module is used for compiling the upgrading packet once to obtain the files of the same part of the upgrading packet, the files of the rest different parts are integrated into an OTA upgrading packet through the packing module, and the OTA upgrading packet is uploaded to the server to complete release.
Specifically, the packaging module comprises a script tool and a packaging tool.
The script tool realizes that files of different parts of corresponding configuration are copied to the position required by the packaging tool in a covering manner, one configuration corresponds to one folder, and the folder contains the configuration customized file. Wherein the customized script enables the overlay copying of the customized file to the target location.
The packaging tool is an android native tool, and the compiled target files are packaged into the upgrade package. And if n upgrade packages need to be issued, packaging for n times, wherein the n upgrade packages correspond to n android platform devices with component differences or n customers with software customization differences.
The invention also provides a storage medium, wherein the storage medium is stored with a computer program, and the computer program is run to execute the following method:
step 1, extracting files of the same part and files of different parts of an upgrade package;
step 2, compiling the upgrade package once to obtain files of the same part, and copying the files of different parts to a packaging position through a script tool in a covering manner;
step 3, packaging the files which are copied in a covering manner into an OTA upgrade package through a packaging tool;
step 4, repeating the step 3 until all OTA upgrade packages needing to be issued to the android platform device are packaged;
and 5, uploading the OTA upgrade package to a server to complete the release of the OTA upgrade package.
Specifically, the classification of the files of the different parts specifically includes:
the android system comprises an android system attribute file, a prop file, a drive function configuration file of a scheme, an ini file, a screen parameter file, an ini file, other function configuration files, an xml file, a json file, a preset android application apk file, a dynamic connection library file, a so file, an executable file, a drive file, a ko file, a database file, a db file, an image effect related configuration file, a sound effect related configuration file, a startup logo file and a startup animation file.
Specifically, the script tool realizes that files of different parts of corresponding configuration are copied to the positions required by the packaging upgrade package tool in a covering manner.
Specifically, the files of different parts of the corresponding configuration specifically correspond to a folder for one configuration, and the folder includes configuration customized files. And meanwhile, the customized script realizes the covering and copying of the customized file to a target position.
In specific implementation, the server is connected with the android platform device of the client through a serial port. When the OTA upgrade package is uploaded on the server, the client can download the upgrade package.
The invention separates compiling and packaging by decomposing the android platform OTA upgrade package manufacturing step. And extracting the same part and different parts of the upgrade package, obtaining the same part by compiling the upgrade package only once, replacing files by simple coverage for the different parts, and then performing packaging to obtain the OTA upgrade package. Therefore, the complete package does not need to be compiled repeatedly, different parts only need to be packaged for many times when the upgrade package is manufactured, and the time is saved compared with the compiling in the packaging process, so that the release efficiency of the upgrade package can be greatly improved.
In addition, the method, the apparatus, and the storage medium for the android platform device to issue the OTA upgrade package provided in the embodiment of the present invention are described in detail above, a specific example should be adopted herein to explain the principle and the implementation manner of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.
Claims (8)
1. The method for releasing the OTA upgrade package by the android platform device is characterized by comprising the following steps:
step 1, extracting files of the same part and files of different parts of an upgrade package;
step 2, compiling the upgrade package once to obtain files of the same part, and copying the files of different parts to a packaging position through a script tool in a covering manner;
step 3, packaging the files which are copied in a covering manner into an OTA upgrade package through a packaging tool;
step 4, repeating the step 3 until all OTA upgrade packages needing to be issued to the android platform device are packaged;
and 5, uploading the OTA upgrade package to a server to complete the release of the OTA upgrade package.
2. The method for the android platform device to publish the OTA upgrade package according to claim 1, wherein the different part files include an android system attribute file, a drive function configuration file of a scheme, a screen parameter file, a preset android application file, a dynamic connection library file, an executable file, a drive file, a database file, an image effect related configuration file, a sound effect related configuration file, a boot logo file, and a boot animation file.
3. The method for the android platform device to publish the OTA upgrade package according to claim 1, wherein the scripting tool enables the overlay copying of different portions of the files of the corresponding configuration to the locations required by the package upgrade package tool.
4. The method for the android platform device to publish the OTA upgrade package of claim 3, wherein the files of different parts of the corresponding configuration are specifically one configuration corresponding to one folder, and the folder includes a configuration customized file.
5. The method for the android platform device to issue the OTA upgrade package according to claim 1, wherein the server is connected to the android platform device of the client via a serial port.
6. The device for releasing the OTA upgrade package by the android platform equipment is characterized by comprising a compiling module, a packaging module and a server;
the compiling module is used for compiling the upgrading packet once to obtain the files of the same part of the upgrading packet, the files of the rest different parts are packed into an OTA upgrading packet, and the OTA upgrading packet is uploaded to the server to complete the release.
7. The apparatus for the android platform device to publish the OTA upgrade package of claim 6, wherein the packaging module comprises a scripting tool and a packaging tool;
the script tool realizes that files of different parts of corresponding configuration are copied to the positions required by the packaging tool in a covering manner, and one configuration corresponds to one folder which contains the configuration customized file;
the packaging tool is an android native tool, and the compiled target files are packaged into the upgrade package.
8. A storage medium having a computer program stored therein, wherein the computer program is executed to perform the method of any one of claims 1-5 for issuing an OTA upgrade package by an android platform device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110010712.1A CN112685065A (en) | 2021-01-06 | 2021-01-06 | Method and device for issuing OTA upgrade package by android platform device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110010712.1A CN112685065A (en) | 2021-01-06 | 2021-01-06 | Method and device for issuing OTA upgrade package by android platform device and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112685065A true CN112685065A (en) | 2021-04-20 |
Family
ID=75457406
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110010712.1A Pending CN112685065A (en) | 2021-01-06 | 2021-01-06 | Method and device for issuing OTA upgrade package by android platform device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112685065A (en) |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9389851B1 (en) * | 2015-06-02 | 2016-07-12 | Oracle International Corporation | System and method for providing consistency between software library repositories |
CN105867993A (en) * | 2016-03-29 | 2016-08-17 | 乐视控股(北京)有限公司 | Software product compiling method and device |
CN106681784A (en) * | 2016-12-23 | 2017-05-17 | 维沃移动通信有限公司 | System software management method and terminal |
CN106775723A (en) * | 2016-12-16 | 2017-05-31 | 深圳市优博讯科技股份有限公司 | The method and Android device of the system firmware customization based on Android platform |
CN107506219A (en) * | 2017-09-21 | 2017-12-22 | 烽火通信科技股份有限公司 | A kind of general version upgrade method based on android system |
CN109451357A (en) * | 2018-11-22 | 2019-03-08 | 四川长虹电器股份有限公司 | Method for smart television optimization OEM order production upgrading |
CN111580813A (en) * | 2020-03-25 | 2020-08-25 | 博雅信安科技(北京)有限公司 | Automatic management method for Java class hot update |
CN111736857A (en) * | 2020-05-27 | 2020-10-02 | 杭州易现先进科技有限公司 | System upgrading method and device based on OTA (over-the-air technology) upgrading package and computer equipment |
CN111949298A (en) * | 2020-08-21 | 2020-11-17 | 湖南快乐阳光互动娱乐传媒有限公司 | Generation method and device of upgrade package, server and computer storage medium |
CN112073994A (en) * | 2020-09-03 | 2020-12-11 | 百度在线网络技术(北京)有限公司 | Method and device for over-the-air upgrading, electronic equipment and readable storage medium |
-
2021
- 2021-01-06 CN CN202110010712.1A patent/CN112685065A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9389851B1 (en) * | 2015-06-02 | 2016-07-12 | Oracle International Corporation | System and method for providing consistency between software library repositories |
CN105867993A (en) * | 2016-03-29 | 2016-08-17 | 乐视控股(北京)有限公司 | Software product compiling method and device |
CN106775723A (en) * | 2016-12-16 | 2017-05-31 | 深圳市优博讯科技股份有限公司 | The method and Android device of the system firmware customization based on Android platform |
CN106681784A (en) * | 2016-12-23 | 2017-05-17 | 维沃移动通信有限公司 | System software management method and terminal |
CN107506219A (en) * | 2017-09-21 | 2017-12-22 | 烽火通信科技股份有限公司 | A kind of general version upgrade method based on android system |
CN109451357A (en) * | 2018-11-22 | 2019-03-08 | 四川长虹电器股份有限公司 | Method for smart television optimization OEM order production upgrading |
CN111580813A (en) * | 2020-03-25 | 2020-08-25 | 博雅信安科技(北京)有限公司 | Automatic management method for Java class hot update |
CN111736857A (en) * | 2020-05-27 | 2020-10-02 | 杭州易现先进科技有限公司 | System upgrading method and device based on OTA (over-the-air technology) upgrading package and computer equipment |
CN111949298A (en) * | 2020-08-21 | 2020-11-17 | 湖南快乐阳光互动娱乐传媒有限公司 | Generation method and device of upgrade package, server and computer storage medium |
CN112073994A (en) * | 2020-09-03 | 2020-12-11 | 百度在线网络技术(北京)有限公司 | Method and device for over-the-air upgrading, electronic equipment and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10095489B1 (en) | GUI-based application template for containerized application software development | |
CN106775723B (en) | Android platform-based system firmware customization method and Android device | |
CN107733985B (en) | Method and device for deploying functional components of cloud computing system | |
KR100952251B1 (en) | Servicing a component base software product | |
EP3522005A1 (en) | Method and apparatus for constructing mirror image | |
CN114077423A (en) | Airport APP development container architecture based on mobile cross-platform | |
CN107239309B (en) | Patch generation method and device, updating method, electronic device and storage medium | |
US9513762B1 (en) | Static content updates | |
CN107133055B (en) | Method for realizing customized development based on ClassLoader | |
CN108733370B (en) | Stylized display method, device, terminal and storage medium of native APP | |
CN104503778A (en) | Installation method and installation device for applications | |
US20240078103A1 (en) | Generating and distributing customized embedded operating systems | |
CN111273960A (en) | Method for realizing cloud native MIPS architecture container cloud | |
US20170322792A1 (en) | Updating of operating system images | |
US10579342B1 (en) | Encapsulated application templates for containerized application software development | |
CN116301951B (en) | Micro-service application installation upgrading method and device based on kubernetes | |
US10268647B2 (en) | Asset catalog layered image support | |
CN112685065A (en) | Method and device for issuing OTA upgrade package by android platform device and storage medium | |
CN115857961A (en) | Multi-platform project unified deployment method and device | |
CN115729604A (en) | Micro application integration method, system, electronic device and storage medium | |
CN115407971A (en) | Software product generation method and device | |
CN115576560A (en) | Hot reloading method, device, equipment and medium for dynamic loader | |
CN110806876B (en) | Lightweight Linux system customization method based on slit, device computer equipment and storage medium | |
CN112286568A (en) | Multi-version compatible method for Android system | |
CN113495738A (en) | Method and device for updating service logic of application program |
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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: Room 238, room 406, No.1, Yichuang street, Huangpu District, Guangzhou, Guangdong 510000 Applicant after: Guangzhou langguo Electronic Technology Co.,Ltd. Address before: Room 238, room 406, No.1, Yichuang street, Huangpu District, Guangzhou, Guangdong 510000 Applicant before: GUANGZHOU LANGO ELECTRONIC SCIENCE & TECHNOLOGY Co.,Ltd. |