Skip to content

Latest commit

 

History

History
executable file
·
22 lines (17 loc) · 1.3 KB

README.md

File metadata and controls

executable file
·
22 lines (17 loc) · 1.3 KB

MagiskBoot - Boot Image Modification Tool

The most complete tool for unpacking and repacking Android boot images.

Note: This is a minimal (dirty) copy of topjohnwu's MagiskBoot.

Documentation

Build

  • Using MSYS2 clang64 environment with mingw-w64-clang-x86_64-toolchain packages group, LLVM version 14 and up, run mingw32-make command. (magiskboot.exe will appear in the out folder).
  • if built a non-static variant, all DLLs in out/obj/lib/shared must be present in your PATH for successful execution.

What's changed:

  • cpio action extract with no paramaters to ramdisk folder in current directory.
    • it creates cpio file to allow mode/uid/gid changes in Windows (with sync or pack)
  • new cpio action sync that synchronize incpio entries with ramdisk directory (as new cpio). Any changes will be captured and dumped to incpio.
  • new cpio action pack as follows: cpio pack [-c <config>] <infolder> <outcpio>
    • if <config> is undefined cpio is looked-up instead.

For Windows

  • There's some UBs/SFs that needs to be addressed (test and report).
  • Tested and working operations are limited.