After conversion, it will be placed in another folder, the original file will be deleted and the generated file will be put back. if
Transformation process
Failed, the JAVA version should be low, try to upgrade to the latest JRE. Of course, it is not necessary to merge, and it does not affect the transplantation of ROM. .
To change the files dedicated to our mobile phone, we usually need to download a ROM of a similar model. After downloading, you should first change the files dedicated to the mobile phone: boot.img and bcm4329.ko are the kernel and.
Wireless driver
Generally speaking, the system/lib/modules/bcm4329.ko that must be changed in the kernel is wifi and.
Blue sun
The drivers of different kernels are different. If you don't change wifi and Bluetooth, you will only get an error. This can be obtained from the following locations
Cyanogen Maud
7 ROM extraction. You can also download the new AOSP core from XDA. The two files awb_camera and lsc_camera in the bin/ directory are camera-related files.
The whole folder such as etc/firmware can be replaced (note that it is firmware under etc).
etc/directory a 1026 _ CFG . CSV,AdieHWCodec _ WA.csv,AdieHWCodec.csv,media_profiles.xml, NOTICE.html.gz。
Audio decoding and video-related configuration, replace it.
etc/gps.conf
The configuration of GPS can be searched by yourself. After you know how to change it, you can change it yourself. Lib/hw/ directory, extracted from the original rom and replaced.
Lib/modules/bcm4329.ko is a WIFI driver, so it should be replaced. Yes. So the files in the lib/ directory can be downloaded from the corresponding version of CM (
CM7
It is 2.3,
CM9
It is 4.0,
CM 10
That's 4. 1). Note: Be sure to look carefully. You are comparing the file sizes of the official ROM and the basic ROM. Don't compare with CM7. If the replacement is not correct, the guide card will be stuck above the fold. The keylayout and keychars2 folders in the usr/ directory are keyboard-related files, which can be directly extracted and replaced from my rom. So far, all the simple work has been completed.
It's time to revise the document.
modify
brush
script
Update program-script
This is relatively simple. Generally, it is only necessary to modify the first few lines, change the conditions and add another paragraph.
opening remarks
Please make corrections according to the documents I provided.
Modify build.prop
system/build.prop
This file is usually used to name:
The main changes are as follows:
1, ro.product.locale.language = hdpi (or some models are mdpi.
ldpi)
ro.product.locale.region=
Change it to ro.product.locale.language=zh
ro.product.locale.region=CN
So when the screen is locked for the first time, it is Chinese 2.ro.build
describe
=
Change the back to what you want, which is the name of your work.
Ro. product. version
On =
You can also change the name or version number of your work here. Generally, we leave it as the driver version number of the official system according to the production situation.
3、
ro.sf.lcd_density=
The back is usually 240.
4、
ro.ril.def.agps.mode
=
2
I heard that changing it to 0 can speed up gps positioning.
Save process
Please make corrections according to the documents I provided.
In this way, even if our transplantation is completed, the next step is to generate ROM. We use compression tools to package ROM into.
Zip format
, pay attention to the directory structure, the generated zip root directory has MATE-INF and system, don't make a mistake. Copy the packaged zip file to
Needle bag
Among them, change it to update.zip, and then double-click sign.bat to sign it. After signing, generate update_signed.zip