Skip to content

Clone Android Boot Image Header Info. Use during custom kernels installation to clone os_patch_date and avoid OS rollback protection.

License

Notifications You must be signed in to change notification settings

CruelKernel/clone_header

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clone Android Header Info

Tool to copy metadata from one android boot image to another. Use during custom kernels installation to clone os_patch_date and avoid OS rollback protection. Supported android image formats: V0, V1, V2. V3 is not supported. Documentation: https://source.android.com/devices/bootloader/boot-image-header

Usage:

# ./clone_header [options] <src_img> <dst_img>
# Options: --name, --version, --cmd
#          --no-name, --no-version, --no-cmd
# Name - board name (enabled by default)
# Version - OS Patch Version (enabled by default)
# Cmd - cmdline, extra_cmdline (disabled by default)

$ ./clone_header /dev/block/by-name/boot boot.img
$ ./clone_header /dev/block/by-name/recovery recovery.img
$ ./clone_header --cmd /dev/block/by-name/recovery recovery.img

Downloads: https://github.com/CruelKernel/clone_header/releases

About

Clone Android Boot Image Header Info. Use during custom kernels installation to clone os_patch_date and avoid OS rollback protection.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published