Install "android-tools" instead of "libsparse" for img2simg (!1821)

The sparse image tools (simg2img, img2simg, append2simg) are now
part of Alpine's android-tools where they are continously updated.
(See https://github.com/nmeum/android-tools/pull/8)

Therefore, "libsparse" now conflicts with "android-tools", which
causes the fastboot flasher to fail if "libsparse" is already
installed.

Install "android-tools" instead of "libsparse" before generating
a sparse image to avoid this problem.
This commit is contained in:
lambdadroid 2019-10-05 14:48:11 +02:00 committed by Oliver Smith
parent a6704fa09d
commit 23ebb71b27
No known key found for this signature in database
GPG Key ID: 5AE7F5513E0885CB
1 changed files with 1 additions and 1 deletions

View File

@ -400,7 +400,7 @@ def install_system_image(args):
# Convert rootfs to sparse using img2simg
if args.deviceinfo["flash_sparse"] == "true" and not args.split and not args.sdcard:
logging.info("(native) make sparse rootfs")
pmb.chroot.apk.install(args, ["libsparse"])
pmb.chroot.apk.install(args, ["android-tools"])
sys_image = args.device + ".img"
sys_image_sparse = args.device + "-sparse.img"
pmb.chroot.user(args, ["img2simg", sys_image, sys_image_sparse],