The most complete tool for unpacking and repacking Android boot images.
Note: This is a minimal (dirty) copy of topjohnwu's MagiskBoot.
- Using MSYS2
clang64environment withmingw-w64-clang-x86_64-toolchainpackages group, LLVM version 14 and up, runmingw32-makecommand. (magiskboot.exewill appear in theoutfolder). - if built a non-static variant, all DLLs in
out/obj/lib/sharedmust be present in your PATH for successful execution.
cpioactionextractwith no paramaters toramdiskfolder in current directory.- it creates
cpiofile to allow mode/uid/gid changes in Windows (withsyncorpack)
- it creates
- new
cpioactionsyncthat synchronize incpio entries withramdiskdirectory (as new cpio). Any changes will be captured and dumped toincpio. - new
cpioactionpackas follows:cpio pack [-c <config>] <infolder> <outcpio>- if
<config>is undefinedcpiois looked-up instead.
- if
- There's some UBs/SFs that needs to be addressed (test and report).
- Tested and working operations are limited.