mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-22 16:07:39 +00:00
Update magiskboot docs
This commit is contained in:
parent
bd438ca288
commit
15bd2da824
@ -25,9 +25,11 @@ The concept of `magiskboot` is to make boot image modification simpler. For unpa
|
|||||||
Usage: magiskboot <action> [args...]
|
Usage: magiskboot <action> [args...]
|
||||||
|
|
||||||
Supported actions:
|
Supported actions:
|
||||||
unpack [-h] <bootimg>
|
unpack [-n] [-h] <bootimg>
|
||||||
Unpack <bootimg> to, if available, kernel, kernel_dtb, ramdisk.cpio,
|
Unpack <bootimg> to, if available, kernel, kernel_dtb, ramdisk.cpio,
|
||||||
second, dtb, extra, and recovery_dtbo into current directory.
|
second, dtb, extra, and recovery_dtbo into current directory.
|
||||||
|
If '-n' is provided, it will not attempt to decompress kernel or
|
||||||
|
ramdisk.cpio from their original formats.
|
||||||
If '-h' is provided, it will dump header info to 'header',
|
If '-h' is provided, it will dump header info to 'header',
|
||||||
which will be parsed when repacking.
|
which will be parsed when repacking.
|
||||||
Return values:
|
Return values:
|
||||||
@ -45,7 +47,7 @@ Supported actions:
|
|||||||
|
|
||||||
cpio <incpio> [commands...]
|
cpio <incpio> [commands...]
|
||||||
Do cpio commands to <incpio> (modifications are done directly)
|
Do cpio commands to <incpio> (modifications are done directly)
|
||||||
Each command is a single argument, use quotes if necessary
|
Each command is a single argument, add quotes for each command
|
||||||
Supported commands:
|
Supported commands:
|
||||||
exists ENTRY
|
exists ENTRY
|
||||||
Return 0 if ENTRY exists, else return 1
|
Return 0 if ENTRY exists, else return 1
|
||||||
@ -65,8 +67,9 @@ Supported actions:
|
|||||||
Test the current cpio's patch status
|
Test the current cpio's patch status
|
||||||
Return values:
|
Return values:
|
||||||
0:stock 1:Magisk 2:unsupported (phh, SuperSU, Xposed)
|
0:stock 1:Magisk 2:unsupported (phh, SuperSU, Xposed)
|
||||||
patch KEEPVERITY KEEPFORCEENCRYPT
|
patch
|
||||||
Ramdisk patches. KEEP**** are boolean values
|
Apply ramdisk patches. Configure settings with env variables:
|
||||||
|
KEEPVERITY KEEPFORCEENCRYPT
|
||||||
backup ORIG
|
backup ORIG
|
||||||
Create ramdisk backups from ORIG
|
Create ramdisk backups from ORIG
|
||||||
restore
|
restore
|
||||||
@ -74,17 +77,25 @@ Supported actions:
|
|||||||
sha1
|
sha1
|
||||||
Print stock boot SHA1 if previously backed up in ramdisk
|
Print stock boot SHA1 if previously backed up in ramdisk
|
||||||
|
|
||||||
dtb-<cmd> <dtb>
|
dtb <input> <action> [args...]
|
||||||
Do dtb related cmds to <dtb> (modifications are done directly)
|
Do dtb related actions to <input>
|
||||||
Supported commands:
|
Supported actions:
|
||||||
dump
|
print [-f]
|
||||||
Dump all contents from dtb for debugging
|
Print all contents of dtb for debugging
|
||||||
test
|
Specify [-f] to only print fstab nodes
|
||||||
Check if fstab has verity/avb flags
|
patch [OUT]
|
||||||
Return values:
|
|
||||||
0:flag exists 1:no flags
|
|
||||||
patch
|
|
||||||
Search for fstab and remove verity/avb
|
Search for fstab and remove verity/avb
|
||||||
|
If [OUT] is not specified, it will directly output to <input>
|
||||||
|
Configure with env variables: KEEPVERITY TWOSTAGEINIT
|
||||||
|
|
||||||
|
split <input>
|
||||||
|
Split image.*-dtb into kernel + kernel_dtb
|
||||||
|
|
||||||
|
sha1 <file>
|
||||||
|
Print the SHA1 checksum for <file>
|
||||||
|
|
||||||
|
cleanup
|
||||||
|
Cleanup the current working directory
|
||||||
|
|
||||||
compress[=method] <infile> [outfile]
|
compress[=method] <infile> [outfile]
|
||||||
Compress <infile> with [method] (default: gzip), optionally to [outfile]
|
Compress <infile> with [method] (default: gzip), optionally to [outfile]
|
||||||
@ -95,12 +106,6 @@ Supported actions:
|
|||||||
Detect method and decompress <infile>, optionally to [outfile]
|
Detect method and decompress <infile>, optionally to [outfile]
|
||||||
<infile>/[outfile] can be '-' to be STDIN/STDOUT
|
<infile>/[outfile] can be '-' to be STDIN/STDOUT
|
||||||
Supported methods: bzip2 gzip lz4 lz4_legacy lzma xz
|
Supported methods: bzip2 gzip lz4 lz4_legacy lzma xz
|
||||||
|
|
||||||
sha1 <file>
|
|
||||||
Print the SHA1 checksum for <file>
|
|
||||||
|
|
||||||
cleanup
|
|
||||||
Cleanup the current working directory
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### magiskinit
|
### magiskinit
|
||||||
|
Loading…
x
Reference in New Issue
Block a user