CN103793254A - Android system and customized tailoring method thereof - Google Patents
Android system and customized tailoring method thereof Download PDFInfo
- Publication number
- CN103793254A CN103793254A CN201410061673.8A CN201410061673A CN103793254A CN 103793254 A CN103793254 A CN 103793254A CN 201410061673 A CN201410061673 A CN 201410061673A CN 103793254 A CN103793254 A CN 103793254A
- Authority
- CN
- China
- Prior art keywords
- img
- image file
- update
- file
- android system
- 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
Abstract
The invention relates to an android system and a customized tailoring method thereof. The android system comprises a mirror image file update.img, wherein the mirror image file update.img is generated by a mirror image sub-file ramdisk.img, a mirror image sub-file system.img, a mirror image sub-file userdata.img, a mirror image sub-file boot.img and a mirror image sub-file kernel.img in a packed mode. The customized tailoring method of the android system comprises the steps that the mirror image file update.img of the android system is unpacked; a corresponding common module is generated; the common model is modified; a packing module is provided, and the modified common module is packed until mirror image files are produced. The specific android system, the packing module and an unpacking module are adopted, and therefore the android system can be decomposed conveniently, and modification is conducted conveniently.
Description
Technical field
The present invention relates to operation system of software technical field, specifically, relate to a kind of Android system and custom tailoring method thereof.
Background technology
Andorid has become most popular mobile platform operating system at present, on the equipment such as mobile phone, flat board, is widely used, the android equipment that increasing manufacturer all releases one after another separately, and these equipment are a feast for the eyes, and function differs.In the situation that competition is so fierce, to primary android modify, cut out, performance optimization, function refinement, keep otherness, the only selection of Shi Meijia manufacturer, therefore manufacturer's customized demand will continue to break out.
Traditional android customization is to modify in source code aspect, then compiles and packs, and last test, so repeatedly.Because android code size is very huge, needed compilation time is not short.With ICS(android4.0) with example, on the machine of two four core processor 2.4GHz, 16GB internal memory, complete single and build and need more than 5 hour, if machines configurations is lower, the so spent time is also just longer.Manufacturer customization can not be accomplished in one move, but will be through repeatedly revising, and manufacturer confirms and proposes new demand then the repetitive process of modification.If still adopt traditional method for customizing, efficiency is very low beyond doubt.
Therefore need to develop a kind of novel Android system, this Android system can easily customize, revise.
Summary of the invention
The object of the invention is to solve in prior art, the modification of the Android system on electronic equipment is very complicated and time-consuming, is unfavorable for the renewal of electronic functionalities.
The technical solution used in the present invention is:
A kind of Android system, comprises image file update.img; This image file update.img is generated by 5 sub-image file ramdisk.img, system.img, userdata.img, boot.img and kernel.img packing, and packing step is as follows:
1), provide packetization module, packetization module reads 5 sub-image files, and to the processing of packing of these 5 sub-image files, image file in the middle of generation _ update.img, the header file of this centre image file comprises zone bit and the length scale information of every individual sub-image file;
2), to middle image file _ update.img processing of again packing, generate the image file update.img of Android system, the zone bit of image file and position and the size of length scale information and start-up code in the middle of the header file of image file update.img comprises.
Further, in described step 1), the header file of middle image file also comprises an edition type, chip parameter.
Again further, described step 2) in, the header file of image file update.img also comprises an edition type, chip parameter.
A custom tailoring method for Android system, the method comprises the following steps:
1), provide parse module, image file update.img to Android system unpacks processing, unpack and generate 5 target image files, be respectively: ramdisk.img, system.img, userdata.img, boot.img, kernel.img file;
2), at least one in 5 target image files unpacked to processing again, generate corresponding public module;
3), this public module is modified;
4), packetization module is provided, to the processing of packing of amended public module, generate corresponding target image file;
5), to the processing of packing of 5 target image files, image file _ update.img in the middle of generating;
6), to middle image file _ update.img processing of packing, generate the image file update.img of Android system.
Further, in the time carrying out step 1), separate packet procedures and comprise the steps:
A), the image file of Android system is update.img; Read the header file of update.img; Header file comprises zone bit, length, chip model, version shape parameter;
B), zone bit, length are judged, whether unpack the stage in first, if met, carry out step c); Otherwise stop;
C), read length and the size of the position of the start-up code that writes of packing and size, middle image file;
D), according to the parameter of step c), update.img is unpacked, generate one in the middle of image file _ update.img;
E), right _ update.img file unpacks, the header packet information of read _ update.img; Header packet information comprises zone bit, length, chip model, version shape parameter;
F), zone bit, length are judged, whether unpack the stage in second, if met, carry out step g); Otherwise stop;
G), while unpacking, select the filename, file path, the document location that unpack; Successively corresponding 5 target image files are unpacked under the path of appointment.
The beneficial effect that the present invention obtains is: the present invention adopts the Android system of specific customized and packing, parse module, can conveniently decompose Android system, most basic public module is modified, reach system customization object, retouching operation is convenient.
Embodiment
Embodiment 1.
A kind of Android system, comprises image file update.img; This image file update.img is generated by 5 sub-image file ramdisk.img, system.img, userdata.img, boot.img and kernel.img packing, and packing step is as follows:
1), provide packetization module, packetization module reads 5 sub-image files, and to the processing of packing of these 5 sub-image files, image file in the middle of generation _ update.img, the header file of this centre image file comprises zone bit and the length scale information of every individual sub-image file;
2), to middle image file _ update.img processing of again packing, generate the image file update.img of Android system, the zone bit of image file and position and the size of length scale information and start-up code in the middle of the header file of image file update.img comprises.
Because the image file of Android system can generate by 5 sub-image file packings, therefore just can reverse its image file be unpacked, thereby generate 5 sub-image files; Again 5 sub-image files are unpacked and just can generate general public module, as: boot setup of attribute module, apk modified module, animation modified module, logo modified module, kernel configuration module, usb label arrange module, line module arranges module, apk signature blocks, wallpaper modified module, system attribute removing module, system setup of attribute module.In the time of custom-built system, only need to modify to some public modules wherein, after modification, then the processing of packing, just can complete customization.To unpacking of 5 sub-image files, it is the general solution packet procedures of android.Therefore this Android system is very easy to customization, revises.Simple, convenient.
In the time 5 sub-image files being packed to processing, be just similar to compressed file the same; 5 sub-image files are carried out to image file _ update.img in the middle of combination producing in some way, and this _ record zone bit and the length scale of every sub-image file in update.img, facilitate the later stage to unpack.The applied Android system of version type, chip of different electronic products may have larger difference, and for the ease of Android system is customized, different version type, chips will be applied to different packetization module (software packaging).
Further, in described step 1), the header file of middle image file also comprises an edition type, chip parameter.
In the time that Android system need to be applied to certain electronic equipment, just adopt corresponding with it packetization module to the processing of packing of 5 sub-image files, obtain meeting the middle image file of its combination.
In the technical program, image file in the middle of why generating, because the image file that elementary packing generates is not activated the zone bit of code and enable position, can not normally start.Therefore need middle image file to carry out packing again, make it generate start-up code and relevant information thereof; Thereby generate the image file of final Android system.But because the image file of Android system has larger difference with respect to its framework of distinct electronic apparatuses, therefore in the time using android image file, be necessary whether it is suitable for and is checked, therefore need in android image file, have chip, version shape parameter.
Again further, described step 2) in, the header file of image file update.img also comprises an edition type, chip parameter.
Had chip, version shape parameter, in the time that Android system is installed, first the version type to electronic equipment and chip parameter check whether meet, if met, install, if do not met, do not install.
Embodiment 2.
A custom tailoring method for Android system, the method comprises the following steps:
1), provide parse module, image file update.img to Android system unpacks processing, unpack and generate 5 target image files, be respectively: ramdisk.img, system.img, userdata.img, boot.img, kernel.img file;
2), at least one in 5 target image files unpacked to processing again, generate corresponding public module;
3), this public module is modified;
4), packetization module is provided, to the processing of packing of amended public module, generate corresponding target image file;
5), to the processing of packing of 5 target image files, image file _ update.img in the middle of generating;
6), to middle image file _ update.img processing of packing, generate the image file update.img of Android system.
Further, in the time carrying out step 1), separate packet procedures and comprise the steps:
A), the image file of Android system is update.img; Read the header file of update.img; Header file comprises zone bit, length, chip model, version shape parameter;
B), zone bit, length are judged, whether unpack the stage in first, if met, carry out step c); Otherwise stop;
C), read length and the size of the position of the start-up code that writes of packing and size, middle image file;
D), according to the parameter of step c), update.img is unpacked, generate one in the middle of image file _ update.img;
E), right _ update.img file unpacks, the header packet information of read _ update.img; Header packet information comprises zone bit, length, chip model, version shape parameter;
F), zone bit, length are judged, whether unpack the stage in second, if met, carry out step g); Otherwise stop;
G), while unpacking, select the filename, file path, the document location that unpack; Successively corresponding 5 target image files are unpacked under the path of appointment.
In g) step, the filename of file 5 sub-image files by name, file path and document location, generally can first provide default location, if separately there is selection, can select in addition; During as decompression, the setting of the filename of decompress(ion) release, file path, document location.
Requiring to revise wallpaper, animation, logo, apk take manufacturer comprises the steps: as example, this method for customizing
Step 1: detect the image file that whether has Android system, if so, proceed to step 2; No, proceed to step 3;
Step 2: user calls parse module, unpacks the image file of Android system, until generate public module, enters step 4;
Step 3: the final image file of the android of institute is not found in prompting, logs off;
Step 4: user calls wallpaper modified module and revises wallpaper;
Step 5: user calls the interpolation of animation modified module or revises boot animation;
Step 6: user calls logo modified module and revises start logo;
Step 7: user calls apk modified module and revises apk;
Step 8: user calls packetization module, the intermediate file of the above-mentioned modification of packing is that desired manufacturer customizes final image file;
Step 9: log off.
The present invention has done to explain, and those of ordinary skill in the art should be appreciated that and can modify or be equal to replacement technical scheme of the present invention, and do not depart from essence and the scope of technical solution of the present invention.
Claims (5)
1. an Android system, comprises image file update.img; It is characterized in that: this image file update.img is generated by 5 sub-image file ramdisk.img, system.img, userdata.img, boot.img and kernel.img packing, and packing step is as follows:
1), provide packetization module, packetization module reads 5 sub-image files, and to the processing of packing of these 5 sub-image files, image file in the middle of generation _ update.img, the header file of this centre image file comprises zone bit and the length scale information of every individual sub-image file;
2), to middle image file _ update.img processing of again packing, generate the image file update.img of Android system, the zone bit of image file and position and the size of length scale information and start-up code in the middle of the header file of image file update.img comprises.
2. a kind of Android system according to claim 1, is characterized in that: in described step 1), the header file of middle image file also comprises an edition type, chip parameter.
3. a kind of Android system according to claim 1, is characterized in that: described step 2) in, the header file of image file update.img also comprises an edition type, chip parameter.
4. a custom tailoring method for Android system, is characterized in that: the method comprises the following steps:
1), provide parse module, image file update.img to Android system unpacks processing, unpack and generate 5 target image files, be respectively: ramdisk.img, system.img, userdata.img, boot.img, kernel.img file;
2), at least one in 5 target image files unpacked to processing again, generate corresponding public module;
3), this public module is modified;
4), packetization module is provided, to the processing of packing of amended public module, generate corresponding target image file;
5), to the processing of packing of 5 target image files, image file _ update.img in the middle of generating;
6), to middle image file _ update.img processing of packing, generate the image file update.img of Android system.
5. the custom tailoring method of a kind of Android system according to claim 4, is characterized in that: in the time carrying out step 1), separate packet procedures and comprise the steps:
A), the image file of Android system is update.img; Read the header file of update.img; Header file comprises zone bit, length, chip model, version shape parameter;
B), zone bit, length are judged, whether unpack the stage in first, if met, carry out step c); Otherwise stop;
C), read length and the size of the position of the start-up code that writes of packing and size, middle image file;
D), according to the parameter of step c), update.img is unpacked, generate one in the middle of image file _ update.img;
E), right _ update.img file unpacks, the header packet information of read _ update.img; Header packet information comprises zone bit, length, chip model, version shape parameter;
F), zone bit, length are judged, whether unpack the stage in second, if met, carry out step g); Otherwise stop;
G), while unpacking, select the filename, file path, the document location that unpack; Successively corresponding 5 target image files are unpacked under the path of appointment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410061673.8A CN103793254A (en) | 2014-02-24 | 2014-02-24 | Android system and customized tailoring method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410061673.8A CN103793254A (en) | 2014-02-24 | 2014-02-24 | Android system and customized tailoring method thereof |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103793254A true CN103793254A (en) | 2014-05-14 |
Family
ID=50668969
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410061673.8A Pending CN103793254A (en) | 2014-02-24 | 2014-02-24 | Android system and customized tailoring method thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103793254A (en) |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104199674A (en) * | 2014-09-23 | 2014-12-10 | 浪潮电子信息产业股份有限公司 | Software reuse based embedded operating system customization method |
CN104391719A (en) * | 2014-11-24 | 2015-03-04 | 上海盈方微电子有限公司 | Compiling-free fast mirror image customizing method based on Android platform |
CN104461533A (en) * | 2014-12-03 | 2015-03-25 | 重庆蓝岸通讯技术有限公司 | System firmware customizing method based on Marvell LTE (Long Term Evolution) platform |
CN104731602A (en) * | 2015-03-31 | 2015-06-24 | 上海盈方微电子有限公司 | Method for separating Android mirror image burning process |
CN105204890A (en) * | 2015-08-24 | 2015-12-30 | 小米科技有限责任公司 | Preassembly application modifying method and device |
CN106201567A (en) * | 2015-05-08 | 2016-12-07 | 小米科技有限责任公司 | Obtain the method and device of application message |
CN106775723A (en) * | 2016-12-16 | 2017-05-31 | 深圳市优博讯科技股份有限公司 | The method and Android device of the system firmware customization based on Android platform |
CN107423073A (en) * | 2017-08-11 | 2017-12-01 | 广东天波信息技术股份有限公司 | The method for customizing and system of system |
CN110955458A (en) * | 2019-10-22 | 2020-04-03 | 深圳市优博讯科技股份有限公司 | EXT4 file system-based os rapid customization method, system, storage medium and electronic equipment |
CN112148301A (en) * | 2020-09-23 | 2020-12-29 | 深圳鑫想科技有限责任公司 | Method, system and storage medium for integrated production of customized version of non-compiled Android system |
CN113741954A (en) * | 2021-08-04 | 2021-12-03 | 深圳Tcl新技术有限公司 | System software generation method and device, electronic equipment and storage medium |
WO2023231565A1 (en) * | 2022-05-31 | 2023-12-07 | 中兴通讯股份有限公司 | Mirror image file processing method and apparatus, and storage medium and electronic apparatus |
CN117648110A (en) * | 2024-01-29 | 2024-03-05 | 麒麟软件有限公司 | Method for independently packaging kernel images by separating AOSP compiling environment |
-
2014
- 2014-02-24 CN CN201410061673.8A patent/CN103793254A/en active Pending
Non-Patent Citations (3)
Title |
---|
(狼)•#之?吻!: "[RKXX_ANDROID4.1.1-SDK] 固件工厂工具_Package_V3.3发布说明", 《HTTP://WWW.DOCIN.COM/P-675328204.HTML》 * |
CONOWEN: "RKAndroidTool工具的各项image详解(RK2918版本)", 《HTTP://BLOG.CSDN.NET/ CONOWEN/ARTICLE/DETAILS/7251886》 * |
DEHEPO: "RK2918固件解包打包教程,更新发布V2.2版,支持各类RK29/30固件", 《HTTP://BBS.IMP3.NET/THREAD-10397956-1-1.HTML》 * |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104199674A (en) * | 2014-09-23 | 2014-12-10 | 浪潮电子信息产业股份有限公司 | Software reuse based embedded operating system customization method |
CN104391719A (en) * | 2014-11-24 | 2015-03-04 | 上海盈方微电子有限公司 | Compiling-free fast mirror image customizing method based on Android platform |
CN104461533A (en) * | 2014-12-03 | 2015-03-25 | 重庆蓝岸通讯技术有限公司 | System firmware customizing method based on Marvell LTE (Long Term Evolution) platform |
CN104731602A (en) * | 2015-03-31 | 2015-06-24 | 上海盈方微电子有限公司 | Method for separating Android mirror image burning process |
CN106201567A (en) * | 2015-05-08 | 2016-12-07 | 小米科技有限责任公司 | Obtain the method and device of application message |
CN105204890A (en) * | 2015-08-24 | 2015-12-30 | 小米科技有限责任公司 | Preassembly application modifying 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 |
CN107423073A (en) * | 2017-08-11 | 2017-12-01 | 广东天波信息技术股份有限公司 | The method for customizing and system of system |
CN110955458A (en) * | 2019-10-22 | 2020-04-03 | 深圳市优博讯科技股份有限公司 | EXT4 file system-based os rapid customization method, system, storage medium and electronic equipment |
CN112148301A (en) * | 2020-09-23 | 2020-12-29 | 深圳鑫想科技有限责任公司 | Method, system and storage medium for integrated production of customized version of non-compiled Android system |
CN113741954A (en) * | 2021-08-04 | 2021-12-03 | 深圳Tcl新技术有限公司 | System software generation method and device, electronic equipment and storage medium |
WO2023231565A1 (en) * | 2022-05-31 | 2023-12-07 | 中兴通讯股份有限公司 | Mirror image file processing method and apparatus, and storage medium and electronic apparatus |
CN117648110A (en) * | 2024-01-29 | 2024-03-05 | 麒麟软件有限公司 | Method for independently packaging kernel images by separating AOSP compiling environment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103793254A (en) | Android system and customized tailoring method thereof | |
WO2017185606A1 (en) | Overlay mechanism-based apk development method and system | |
CN104077118A (en) | Resource customization method and resource customization device of application program | |
CN104866293B (en) | A kind of method and device to Android application extensions for Microsoft Internet Explorer & Microsoft Office | |
CN108897543B (en) | Temporary compiling system, method, device and storage medium of version | |
CN106843901B (en) | Page rendering and verification method and device | |
TWI604754B (en) | A control method for light display effect | |
CN105760176A (en) | Packaging method, starting method and corresponding devices for web application | |
US20170052765A1 (en) | Method and system for creating app | |
CN111596951A (en) | Method and device for configuring engineering file | |
CN113181657B (en) | Cross-platform rendering method and device | |
CN104133706A (en) | Firmware modifying method and device | |
WO2013056555A1 (en) | User terminal partitioning method, device and user terminal | |
CN113741954A (en) | System software generation method and device, electronic equipment and storage medium | |
CN109766123A (en) | Application program packaging method and device | |
CN104899051B (en) | Structure loading method, system and the device of Flash program library file | |
JP6001199B2 (en) | Method for automatic conversion of package for taizen installation of android application and computer-readable recording medium therefor | |
WO2004095283A3 (en) | A method for cpu simulation using virtual machine extensions | |
CN102750167B (en) | Application program launching method, device and computer system | |
WO2018014687A1 (en) | Parameter passing method and apparatus, and computer storage medium | |
CN101876898B (en) | Registration method of COM assembly and device thereof | |
JP2008250838A (en) | Software generation device, method and program | |
CN110109698B (en) | Keypad configuration method, device, computer equipment and readable storage medium | |
CN114327593A (en) | Method and system for generating aar by Unity packaging Android and electronic device | |
CN114416101A (en) | Front-end project debugging method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20140514 |
|
RJ01 | Rejection of invention patent application after publication |