Skip to content

Forgo7ten/BootImgTool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BootImgTool

略作修改

原GitHub:difcareer/BootImgTool: A Tool for unpack/pack android boot.img (github.com)

Usage

要在项目根目录使用

  1. compile
./build.sh
  1. unpack
bin/unpack-bootimg.sh path/of/boot.img
  1. repack
bin/repack-bootimg.sh [boot.img-kernel.gz] [boot.img-ramdisk-dir] [out_boot.img_name]

Example

一、解压谷歌原版镜像

二、打开zip压缩包,复制出boot.img文件

三、对boot.img进行解包

首先要编译BootImgTool

cd BootImgTool/
./build.sh
./bin/unpack-bootimg.sh ../boot.img 

会在boot.img同目录生成解包文件

五、编辑prop.default文件

进入boot.img-ramdisk文件夹,编辑default.prop

ro.secure=0

ro.adb.secure=0

ro.debuggable=1

六、对boot.img重打包

./bin/repack-bootimg.sh tmp/boot.img-kernel.gz tmp/boot.img-ramdisk tmp/new.img

七、刷入新img

adb reboot bootloader
fastboot flash boot new.img
fastboot reboot

OTHER-bootimg.py

另一个打包解包工具

查看用法:

python bootimg.py

About

A Tool for unpack/pack android boot.img

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published