Change MagiskBoot patch behavior

Use environment variables to toggle configurations for patching ramdisk
This commit is contained in:
topjohnwu
2019-09-21 05:55:23 -04:00
parent 4d91e50d6d
commit a1ccd44013
3 changed files with 23 additions and 9 deletions

View File

@@ -61,8 +61,9 @@ Supported actions:
Test the current cpio's patch status
Return values:
0:stock 1:Magisk 2:unsupported (phh, SuperSU, Xposed)
patch KEEPVERITY KEEPFORCEENCRYPT
Ramdisk patches. KEEP**** are boolean values
patch
Apply ramdisk patches. Configure settings with env variables:
KEEPVERITY KEEPFORCEENCRYPT
backup ORIG
Create ramdisk backups from ORIG
restore