forked from Mirror/pmbootstrap
Recovery installer zip (#404)
Supports flashing with TWRP and other Android recovery OS through adb sideload, as well as exporting a generated recovery zip file. See also: https://github.com/postmarketOS/pmbootstrap/wiki/deviceinfo_flash_methods#recovery-mode-adb
This commit is contained in:
parent
28fa7eeaf0
commit
fbe968f1ab
17 changed files with 552 additions and 54 deletions
|
@ -24,7 +24,7 @@ def run(args, action, flavor=None):
|
|||
pmb.flasher.init(args)
|
||||
|
||||
# Verify action
|
||||
method = args.deviceinfo["flash_methods"]
|
||||
method = args.flash_method or args.deviceinfo["flash_methods"]
|
||||
cfg = pmb.config.flashers[method]
|
||||
if action not in cfg["actions"]:
|
||||
raise RuntimeError("action " + action + " is not"
|
||||
|
@ -42,6 +42,9 @@ def run(args, action, flavor=None):
|
|||
"$KERNEL_CMDLINE": _cmdline,
|
||||
"$PARTITION_INITFS": args.deviceinfo["flash_heimdall_partition_initfs"],
|
||||
"$PARTITION_KERNEL": args.deviceinfo["flash_heimdall_partition_kernel"],
|
||||
"$RECOVERY_ZIP": "/mnt/buildroot_" + args.deviceinfo["arch"] +
|
||||
"/var/lib/postmarketos-android-recovery-installer"
|
||||
"/pmos-" + args.device + ".zip",
|
||||
}
|
||||
|
||||
# Run the commands of each action
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue