Skip to content

(dirty) MagiskBoot - Boot Image Modification Tool (Windows)

Notifications You must be signed in to change notification settings

svoboda18/magiskboot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

2ae1419 · Jun 22, 2023

History

26 Commits
Nov 18, 2022
Mar 30, 2023
Jan 12, 2023
Nov 18, 2022
Aug 6, 2022
Nov 18, 2022
Jun 22, 2023
Mar 22, 2023
Aug 6, 2022
Jun 21, 2023
Jun 21, 2023
Mar 20, 2023
Jul 23, 2022
Jun 21, 2023
Jun 21, 2023
Aug 6, 2022
Jul 23, 2022
Aug 26, 2022
Aug 26, 2022
Jun 21, 2023
Aug 26, 2022
Jun 21, 2023
Aug 9, 2022
Jul 23, 2022
Jun 21, 2023

Repository files navigation

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.