rom教程跨平台移植.pdf
*WindowsXP/7/8
*7-Zip
*Notepad++
*BootimgUnpack/RepackToolsforWindows!
*StockROM
*AndaLittleRespect!!
SonowLetsBegin...
PORTINGForSameSoCs(Ex:MT6572toMT6572)
*ReplacethesefromyourStockROMtotheROMuwanttoPORT!!LetsCallitPORT
FILELISTFORREPLACING:
*system/vendor
*system/usr
*system/lib/modules
*system/lib/hw
*system/lib/libncurses.so
*system/etc/firmware
*system/etc/vold.fstab
*system/etc/vold.fstab.nand
*system/etc/bluetooth
ForFixingProblems...
*system/etc/permissions
*system/etc/security
*system/etc/audio
*system/etc/wifi
*system/lib/drm
*system/lib/egl
*system/lib/soundfx
*NowReplacetheStockBoot.imgtoPortROM!
*NowOpenThePortROMfolderandgotoMETA-INF//androidandopenupdater-script
inNotepad++
*DothesamefortheStockROM
*NowInthePortROMsUpdaterScript,findalinethatstartswiththis...
format(
andonlyreplacethemmcblk0p..withthestockone!
*Dothesameforthisline...
mount(...
Example:
ThisisthePORTone!!!
format(ext4,EMMC,/dev/block/mmcblk0p5,0,/system);
mount(ext4,EMMC,/dev/block/mmcblk0p5,/system);
ThisistheStockone!!
format(ext4,EMMC,/dev/block/mmcblk0p3,/system);
mount(ext4,EMMC,/dev/block/mmcblk0p3,/system);
NowjustReplacethemmcblk0p3fromSTOCKtoPORT!!
Itshouldlooklikethis:
format(ext4,EMMC,/dev/block/mmcblk0p3,0,/system);
mount(ext4,EMMC,/dev/block/mmcblk0p3,/system);
DONOTREPLACETHEWHOLELINE!
*NowgobacktotheFolderofPortROMandYoullsee2folders1filenamed
-META-INF
-system
-boot.img
*NowSelectthesethreeandClickRightMouseButtonandClickon7-Zip-AddtoArchive
*Nowadialougeboxshouldappear!
*ConfiguretheFormatlikeThis:
Archiveformat:ZIP
C