cfig / Android_boot_image_editor

Parsing and re-packing Android boot.img/vbmeta.img/payload.bin, supporting Android 15
Apache License 2.0
995 stars 227 forks source link

Failed unpacking boot.img #142

Closed keren-gonen-wdc closed 3 months ago

keren-gonen-wdc commented 3 months ago

I am using Ubuntu 20.04. I installed all the pre-reqs according to the readme. Using Android14 boot image, I get the following (also added the debug output) - fail.log

Configure project :lazybox Path for java installation '/usr/lib/jvm/openjdk-17' (Common Linux Locations) does not contain a java executable

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

2: Task failed with an exception.

Thanks

cfig commented 3 months ago

Hi, Do you have a proper jdk installed?\ log says:

Path for java installation '/usr/lib/jvm/openjdk-17' (Common Linux Locations) does not contain a java executable

Did you try "sudo apt install openjdk-17-jdk" ?

keren-gonen-wdc commented 3 months ago

Just tried the install command, but I get this - openjdk-17-jdk is already the newest version (17.0.10+7-1~20.04.1)

shaquibimdad commented 3 months ago

I am having the same issue

❯ ./gradlew unpack

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

java --version openjdk 17.0.7 2023-04-18 OpenJDK Runtime Environment (build 17.0.7+0-17.0.7b1000.6-10550314) OpenJDK 64-Bit Server VM (build 17.0.7+0-17.0.7b1000.6-10550314, mixed mode)

shaquibimdad commented 3 months ago

Resetting head to this commit tmp fixes this issue

cfig commented 3 months ago

Resetting head to this commit tmp fixes this issue

Hi @shaquibimdad , thanks for finding this ~ It may be caused by the improper setting in gradle build file. Do you have a chance to try latest commit from "rc" branch?

shaquibimdad commented 3 months ago

Resetting head to this commit tmp fixes this issue

Hi @shaquibimdad , thanks for finding this ~ It may be caused by the improper setting in gradle build file. Do you have a chance to try latest commit from "rc" branch?

image

I can confirm it is working fine

cfig commented 3 months ago

Thank you @shaquibimdad and @keren-gonen-wdc ~