Skip to content

Android boot.img creation and extraction tools (also MinGW compatible)

License

Notifications You must be signed in to change notification settings

largeriver/bootimg-tools

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bootimg-tools

Android boot.img creation and extraction tools (also MinGW compatible)

Based on the original Android bootimg tools from: https://android.googlesource.com/platform/system/core

原项目代码与AndroidL不兼容,主要是两点

  • 解包时没有考虑按照pagesize对齐
  • 不支持 dt.img,也就是 data device tree

steps

  1. unmkbootimg -i boot.img
  2. mkdir ramdisk_dir && cd ramdisk_dir
  3. gunzip -c ../ramdisk.cpio.gz | cpio -i
  4. edit files under ramdisk_dir
  5. find . | cpio -o -H newc | gzip > ../newramdisk.img
  6. cd ..
  7. mkbootimg with args

About

Android boot.img creation and extraction tools (also MinGW compatible)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 96.3%
  • C++ 3.4%
  • Makefile 0.3%