發表文章

目前顯示的是 5月, 2019的文章

解開/解包boot.img

AOSP內只提供打包用的mkbootimg 這篇簡短描述解img用工具 https://unix.stackexchange.com/questions/64628/how-to-extract-boot-img 1. 下載unpackbootimg ./unpackbootimg -i {img檔案} -o {輸出目錄} 2. 會分解出zImage和ramdisk, 取出ramdisk用下面指令可解開 gunzip -c {Ramdisk的gz檔案} | cpio -i unpackbootimg https://github.com/osm0sis/mkbootimg 關於解包再打包寫的比較詳細的一篇 https://www.whitewinterwolf.com/posts/2016/08/11/how-to-unpack-and-edit-android-boot-img/ 簡短的打包指令 http://lagunawang.pixnet.net/blog/post/42548336-repack-android-ramdisk