diff --git a/pmb/config/__init__.py b/pmb/config/__init__.py index 7c967397..7c32e5ba 100644 --- a/pmb/config/__init__.py +++ b/pmb/config/__init__.py @@ -936,7 +936,7 @@ flashers = { # Some Samsung devices need a 'boot.img' file, just like the one generated # fastboot compatible devices. Example: s7562, n7100 "heimdall-bootimg": { - "depends": ["heimdall", "avbtool"], + "depends": [], # pmaports.cfg: supported_heimdall_depends "actions": { "list_devices": [["heimdall", "detect"]], "flash_rootfs": [ diff --git a/pmb/flasher/init.py b/pmb/flasher/init.py index e4297891..1ca47ae2 100644 --- a/pmb/flasher/init.py +++ b/pmb/flasher/init.py @@ -28,6 +28,10 @@ def install_depends(args): pmaports_cfg = pmb.config.pmaports.read_config(args) depends = pmaports_cfg.get("supported_fastboot_depends", "android-tools,avbtool").split(",") + elif method == "heimdall-bootimg": + pmaports_cfg = pmb.config.pmaports.read_config(args) + depends = pmaports_cfg.get("supported_heimdall_depends", + "heimdall,avbtool").split(",") pmb.chroot.apk.install(args, depends)