CN118012457A - Decoupling development method of system firmware and computer storage medium - Google Patents

Decoupling development method of system firmware and computer storage medium Download PDF

Info

Publication number
CN118012457A
CN118012457A CN202311832257.9A CN202311832257A CN118012457A CN 118012457 A CN118012457 A CN 118012457A CN 202311832257 A CN202311832257 A CN 202311832257A CN 118012457 A CN118012457 A CN 118012457A
Authority
CN
China
Prior art keywords
compressed file
ota
file
packet
compressed
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
CN202311832257.9A
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.)
Fujian Star Net eVideo Information Systems Co Ltd
Original Assignee
Fujian Star Net eVideo Information Systems 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 Fujian Star Net eVideo Information Systems Co Ltd filed Critical Fujian Star Net eVideo Information Systems Co Ltd
Priority to CN202311832257.9A priority Critical patent/CN118012457A/en
Publication of CN118012457A publication Critical patent/CN118012457A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/43Checking; Contextual analysis
    • G06F8/433Dependency analysis; Data or control flow analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/44Encoding
    • G06F8/443Optimisation
    • G06F8/4434Reducing the memory space required by the program code

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a decoupling development method of system firmware and a computer storage medium, wherein the method comprises the following steps: acquiring an OTA packet compiled and generated by an android underlying system and taking the OTA packet as an OTA parent packet; unpacking the OTA parent package to obtain each partition compressed file, wherein each partition compressed file at least comprises a first compressed file and a second compressed file, wherein the first compressed file is used for storing bottom layer system data; decompressing the second compressed file when the application update data is received each time, converting the second compressed file into an image file, then mounting the image file under a preset catalog, and copying the acquired application update data into the preset catalog; generating a new image file from the preset catalogue stored with the application updating data and compressing the new image file to obtain an updated second compressed file; and merging the updated second compressed file with the rest partition compressed files comprising the first compressed file, and then recompressing the merged second compressed file to obtain the updated OTA packet. According to the invention, the development of the bottom layer of the android system and the development of the APP layer are decoupled, parallel development is realized, the effects of the development and the development are not influenced, and the development efficiency is greatly improved.

Description

Decoupling development method of system firmware and computer storage medium
Technical Field
The present invention relates to the field of computer software development, and in particular, to a decoupling development method for system firmware and a computer storage medium.
Background
When developing a new Android application, the bottom layer development and the APP layer development are often required to be performed cooperatively. The new Android application needs to be tested before leaving the factory, and a large number of BUGs are often found in the testing process. At this time, APP layer development is required to constantly repair and update the BUG. After the APP layer repairs the BUG each time, the APP layer provides one-time update data for the bottom layer, and after the bottom layer receives the APP update data each time, the APP update data is needed to be built in the SDK, and compiling of the whole SDK and generation of OTA packets are carried out. Because the APP layer is updated frequently, the bottom layer needs to compile and package the whole SDK frequently, so that the development efficiency of the bottom layer system is seriously affected.
Disclosure of Invention
The invention aims to solve the technical problem of providing a decoupling development method of system firmware and a computer readable storage medium, which are used for decoupling the bottom layer development of an android system and the APP layer development, realizing parallel development, realizing that the bottom layer development and the APP layer development are not influenced each other and greatly improving the development efficiency.
In a first aspect, the present invention provides a method for developing decoupling of system firmware, including the steps of:
acquiring an OTA packet compiled and generated by an android underlying system and taking the OTA packet as an OTA parent packet;
Unpacking the OTA parent packet to obtain compressed files of each partition; each partition compressed file at least comprises a first compressed file for storing bottom layer system data and a second empty compressed file for storing application update data;
After each time application update data is obtained, decompressing the second compressed file, converting the second compressed file into an image file, then mounting the image file under a preset catalog, and copying the obtained application update data into the preset catalog;
Generating a new image file from the preset catalogue stored with the application updating data and compressing the new image file to obtain an updated second compressed file;
and merging the updated second compressed file with the rest partition compressed files comprising the first compressed file, and then recompressing the merged second compressed file to obtain the updated OTA packet.
In a second aspect, the present invention provides a computer readable storage medium having stored thereon a computer program which when executed by a processor implements the method of the first aspect.
One or more technical solutions provided in the embodiments of the present invention at least have the following technical effects or advantages: according to the invention, the development of the bottom layer of the android system and the development of the APP layer are decoupled, parallel development is realized, the mutual influence between the development of the bottom layer and the development of the APP layer is realized, the working efficiency is low due to frequent packaging of the development of the bottom layer of the system is greatly reduced, the development of the APP layer can replace built-in APP data in the APP layer based on the SDK parent package at any time, the SDK source code containing the application update data does not need to be compiled again by waiting for the development of the bottom layer, the waiting time is saved, and the development efficiency is improved.
The foregoing description is only an overview of the present invention, and is intended to be implemented in accordance with the teachings of the present invention in order that the same may be more clearly understood and to make the same and other objects, features and advantages of the present invention more readily apparent.
Drawings
The invention will be further described with reference to examples of embodiments with reference to the accompanying drawings.
FIG. 1 is a flow chart of a method according to a first embodiment of the invention;
Fig. 2 is a schematic structural diagram of a computer readable storage medium according to a second embodiment of the present invention.
Detailed Description
The embodiment of the application decouples the development of the bottom layer of the android system and the development of the APP layer by providing the decoupling development method, the device, the equipment and the medium of the system firmware, realizes parallel development, realizes that the development of the bottom layer and the development of the APP layer are not influenced each other, and greatly improves the development efficiency.
The technical scheme in the embodiment of the application has the following overall thought: according to the method, the development of the bottom layer of the Android system and the development of the APP layer are decoupled, parallel development is realized, the interaction between the development of the bottom layer and the development of the APP layer is not influenced by the secondary automatic reconstruction based on the OTA package before Android upgrading, the development of the APP layer can replace application update data in the SDK parent package based on the packaging of the bottom layer at any time, the need of waiting for the recompilation of the SDK source code containing the application update data by the bottom layer development is avoided, and the development efficiency is improved.
Example 1
As shown in fig. 1, the present embodiment provides a decoupling development method of system firmware, which includes the following steps:
Acquiring an OTA packet compiled and generated by an android underlying system and taking the OTA packet as an OTA parent packet; and after the development of the bottom layer system is finished, generating an OTA mother packet, wherein the OTA mother packet stores bottom layer system data. Therefore, the underlying system data can be separated for later application data update.
Unpacking the OTA parent packet to obtain compressed files of each partition; the partition compressed files at least comprise a first compressed file for storing the underlying system data and an empty second compressed file for storing application update data. Because the OTA parent packet includes a partition compressed file, for example, a first compressed file, that stores the underlying system data, the OTA parent packet further includes an empty second compressed file that stores application update data. In this way, the application update data can be updated to the second compressed file each time the application update data is received later. Each time the data is updated, the data can be updated once based on the second compressed file in the OTA parent packet. By separately storing the storage bottom layer system data and the application update data, the independent update of the application update data can be realized, and further the decoupling of the bottom layer system development and the application layer development is realized.
After the application updating data are obtained each time, decompressing the second compressed file, converting the second compressed file into an image file, then mounting the image file under a preset catalog, and copying the obtained application updating data into the preset catalog. And in the test process, the APP layer sends updated application data to the underlying system every time based on the updated application data. After the bottom layer system acquires the application update data, the application update data is stored in a second compressed file of the OTA parent packet, and then the updated OTA is regenerated. And each time the APP layer is updated, generating an updated OTA based on the OTA parent packet.
Generating an image file from the preset catalogue stored with the application updating data and compressing the image file to obtain an updated second compressed file; after the preset catalogue storing the application updating data generates a new image file, the new image file automatically covers the image file generated in advance, and then the new image file is compressed brotli, so that an updated second compressed file can be obtained.
And merging the updated second compressed file with the rest partition compressed files comprising the first compressed file, re-compressing, and re-signing after re-compressing to obtain the updated OTA packet.
It should be noted that: because the first compressed file stored with the underlying system data is not updated in the process of late application update, in principle, customized modification can be made based on a certain stable version of the application software, but the second compressed file before update needs to be deleted or replaced when the second compressed file is updated, so that the operation is complicated, a special OTA mother package can be used for facilitating the application update, the OTA mother package comprises an empty second compressed file, the application update data can be directly stored when the application update is convenient, and the operation is greatly facilitated.
Further, the first compressed file at least includes a compressed file of system partition data and a compressed file of original design manufacturer data, and the compressed file of system partition data and the compressed file of original design manufacturer data are both used for storing the underlying system data.
The second compressed file at least comprises a compressed file of third party manufacturer data, and the preset directory comprises an app directory;
Copying the received application update data into the preset catalog comprises: the application update data is copied into the app directory.
And when the application updating data further comprises library files of a third party, the library files of the third party are respectively copied into the lib catalogue and/or the lib64 catalogue according to a platform architecture. When the platform architecture is armeabi-v7a and the like, copying the library file of the third party into a lib catalog; when the platform architecture is arm64-v8a, the library files of the third party are copied into the lib64 catalogue, or the library files of the third party are simultaneously copied into the lib catalogue and the lib64 catalogue.
The method comprises the steps that an app directory of third-party manufacturer data is used as a directory of preset applications, and when application update data is acquired, the application update data is copied to the app directory of the third-party manufacturer data, so that the preset applications under the app directory of the third-party manufacturer data can be automatically installed when an android system is started; the lib catalogue and the lib64 catalogue are used for placing library files of the third party manufacturer data and are used for calling application programs in the third party manufacturer data.
The step of generating the image file from the updated preset catalogue and compressing the image file is specifically as follows: and generating an image file from the updated preset catalogue, and then compressing brotli.
The recompressing the updated second compressed file and the remaining partition compressed file including the first compressed file to obtain an updated OTA packet includes: and merging the updated second compressed file with the rest partition compressed files comprising the first compressed file, then recompressing the second compressed file, and performing re-signing to obtain the updated OTA packet.
The method for obtaining the OTA package compiled and generated by the android underlying system and serving as the OTA parent package further comprises the following steps: and building an automatic construction server, wherein the decoupling development method is executed through a script of the automatic construction server.
The obtaining the OTA package compiled and generated by the android underlying system and serving as the OTA parent package comprises the following steps: and acquiring the OTA package compiled and generated by the android bottom layer system from the local area network online warehouse. After the development is completed, the bottom layer system compiles and generates an OTA mother packet and pushes the OTA mother packet to an online warehouse of the local area network.
The method further comprises the following steps after obtaining the updated OTA packet: pushing the updated OTA packet to a networking online warehouse. The local area network online warehouse is an http server.
After the development of the android underlying system is finished, an OTA parent packet is generated, and the android underlying system only generates an initial OTA parent packet. And the application update data is received every time later, the application update data is updated according to the OTA parent packet originally generated by the android underlying system, an updated OTA packet is generated every time and pushed to the networking online warehouse, so that the equipment for conveniently running the APP can directly acquire the latest OTA packet from the Internet for upgrading.
Based on the same inventive concept, the application provides a storage medium corresponding to the first embodiment, and the details are shown in the second embodiment.
Example two
As shown in fig. 2, the present embodiment provides a computer-readable storage medium having stored thereon a computer program, which when executed by a processor, can implement any implementation of the first embodiment.
The technical scheme provided by the embodiment of the application has at least the following technical effects or advantages: the application decouples the development of the bottom layer of the android system and the development of the APP layer, realizes parallel development, realizes that the development of the bottom layer and the development of the APP layer are not mutually influenced, greatly reduces the low working efficiency caused by frequent packaging of the development of the bottom layer of the system, and the development of the APP layer can replace application data in the development of the APP layer based on OTA parent packages at any time without waiting for the development of the bottom layer to recompile SDK source codes containing application update data, saves waiting time and improves development efficiency
While specific embodiments of the invention have been described above, it will be appreciated by those skilled in the art that the specific embodiments described are illustrative only and not intended to limit the scope of the invention, and that equivalent modifications and variations of the invention in light of the spirit of the invention will be covered by the claims of the present invention.

Claims (10)

1. A decoupling development method of system firmware is characterized in that: comprising the following steps:
acquiring an OTA packet compiled and generated by an android underlying system and taking the OTA packet as an OTA parent packet;
Unpacking the OTA parent packet to obtain compressed files of each partition; each partition compressed file at least comprises a first compressed file for storing bottom layer system data and an empty second compressed file for storing application update data;
After each time application update data is obtained, decompressing the second compressed file, converting the second compressed file into an image file, then mounting the image file under a preset catalog, and copying the obtained application update data into the preset catalog;
Generating a new image file from the preset catalogue stored with the application updating data and compressing the new image file to obtain an updated second compressed file;
and merging the updated second compressed file with the rest partition compressed files comprising the first compressed file, and then recompressing the merged second compressed file to obtain the updated OTA packet.
2. The decoupling development method of system firmware of claim 1, wherein: the first compressed file at least comprises a compressed file of system partition data and a compressed file of original design manufacturer data.
3. The decoupling development method of system firmware of claim 1, wherein: the second compressed file at least comprises a compressed file of third party manufacturer data, and the preset directory comprises an app directory;
Copying the acquired application update data into the preset catalog comprises the following steps: the application update data is copied into the app directory.
4. A decoupling development method of system firmware as claimed in claim 3, wherein: and when the application updating data further comprises library files of a third party, the library files of the third party are respectively copied into the lib catalogue and/or the lib64 catalogue according to a platform architecture.
5. The decoupling development method of system firmware of claim 1, wherein: the step of generating a new image file from the preset catalogue storing the application update data and compressing the new image file is specifically as follows: and generating a new image file from the preset catalogue stored with the application updating data, and then compressing brotli the new image file.
6. The decoupling development method of system firmware of claim 1, wherein: the step of recompressing the updated second compressed file and the remaining partition compressed file comprising the first compressed file after merging comprises the following steps: and merging the updated second compressed file with the rest partition compressed files comprising the first compressed file, then recompressing the second compressed file, and performing re-signing to obtain the updated OTA packet.
7. The decoupling development method of system firmware of claim 1, wherein: the method for obtaining the OTA package compiled and generated by the android underlying system and serving as the OTA parent package further comprises the following steps: and building an automatic construction server, wherein the decoupling development method is executed through a script of the automatic construction server.
8. The decoupling development method of system firmware of claim 1, wherein: the obtaining the OTA package compiled and generated by the android underlying system and serving as the OTA parent package comprises the following steps: and acquiring an OTA packet compiled and generated by the android underlying system from an online local area network warehouse, and taking the OTA packet as an OTA parent packet.
9. The decoupling development method of system firmware of claim 1, wherein: the updated OTA packet further comprises the following steps: pushing the updated OTA packet to a networking online warehouse.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any one of claims 1 to 9.
CN202311832257.9A 2023-12-28 2023-12-28 Decoupling development method of system firmware and computer storage medium Pending CN118012457A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311832257.9A CN118012457A (en) 2023-12-28 2023-12-28 Decoupling development method of system firmware and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311832257.9A CN118012457A (en) 2023-12-28 2023-12-28 Decoupling development method of system firmware and computer storage medium

Publications (1)

Publication Number Publication Date
CN118012457A true CN118012457A (en) 2024-05-10

Family

ID=90959651

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311832257.9A Pending CN118012457A (en) 2023-12-28 2023-12-28 Decoupling development method of system firmware and computer storage medium

Country Status (1)

Country Link
CN (1) CN118012457A (en)

Similar Documents

Publication Publication Date Title
CN109491695B (en) Incremental updating method for integrated android application
CN110377290B (en) Method, device and equipment for compiling target engineering
CN111090452B (en) Service environment switching method and computer readable storage medium
CN109032631B (en) Application program patch package obtaining method and device, computer equipment and storage medium
CN111897570A (en) Multi-dependency file extraction method and device based on Maven plug-in
CN110888652A (en) Multi-version construction method based on jenkins plug-in and terminal
CN111061486B (en) Android application program increment method
CN112286543B (en) Application service deployment method and device
CN114816816A (en) Collapse stack information processing method, device, equipment and storage medium
CN113360156B (en) IOS compiling method and related equipment
CN111240987B (en) Method and device for detecting migration program, electronic equipment and computer readable storage medium
CN114911481A (en) Code compiling method and device and electronic equipment
CN114490103A (en) Operating system interface calling method and device and electronic equipment
CN110321138B (en) Program updating and migration method and device
CN118012457A (en) Decoupling development method of system firmware and computer storage medium
CN113590179B (en) Plug-in detection method and device, electronic equipment and storage medium
CN115981779A (en) Data hot updating method and device, computer readable storage medium and electronic equipment
CN115729590A (en) Service deployment method, device, equipment and computer readable storage medium
CN113641389A (en) Software upgrading method, device and equipment based on OpenCPU
CN111273940B (en) Method and device for uploading program file to code warehouse
CN111752548A (en) SDK embedding method and device and computer readable storage medium
CN113467803B (en) Application program repairing method, related device and equipment
CN117435244B (en) Front-end engineering-crossing public library system and construction method thereof
CN113535566B (en) Android application verification method, device, equipment and storage medium
CN113076109B (en) Cross-platform script language deployment method

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