Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatable WITH dtbo.img ? #106

Closed
Lg-PWNd opened this issue Dec 30, 2022 · 3 comments
Closed

Incompatable WITH dtbo.img ? #106

Lg-PWNd opened this issue Dec 30, 2022 · 3 comments

Comments

@Lg-PWNd
Copy link

Lg-PWNd commented Dec 30, 2022

So i'm trying to de-compile the dtbo_a and i've pulled it to pc.. adb root && adb pull /dev/block/bootdevice/by-name/dtbo_a dtbo.img

then i tried ./gradlew unpack dtbo.img
i got this
Android_boot_image_editor$ ./gradlew unpack dtbo.img

FAILURE: Build failed with an exception.

  • What went wrong:
    Task 'dtbo.img' not found in root project 'boot'.

  • Try:

Run gradlew tasks to get a list of available tasks.
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.5/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 6s
######################################################

then i tried renaming dtbo.img to boot.img and did this...$ ./gradlew unpack

and
$ ./gradlew unpack

Task :unpack FAILED
15:44:35.682 [main] WARN cfig.packable.PackableLauncher - [boot.img] will be handled by [BootImgParser]
15:44:35.862 [main] WARN cfig.packable.PackableLauncher - 'unpack' sequence initialized
15:44:35.871 [main] INFO Helper - deleting uiderrors
15:44:35.887 [main] INFO cfig.packable.BootImgParser - header version 0
15:44:36.188 [main] WARN cfig.bootimg.v2.BootHeaderV2 - BootImgHeader constructor
Exception in thread "main" java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at kotlin.reflect.jvm.internal.calls.CallerImpl$Method.callMethod(CallerImpl.kt:97)
at kotlin.reflect.jvm.internal.calls.CallerImpl$Method$Instance.call(CallerImpl.kt:113)
at kotlin.reflect.jvm.internal.KCallableImpl.call(KCallableImpl.kt:108)
at cfig.packable.PackableLauncherKt.main(PackableLauncher.kt:108)
Caused by: java.lang.IllegalArgumentException: stream doesn't look like Android Boot Image Header
at cfig.bootimg.v2.BootHeaderV2.(BootHeaderV2.kt:64)
at cfig.bootimg.v2.BootV2$Companion.parse(BootV2.kt:87)
at cfig.packable.BootImgParser.unpack(BootImgParser.kt:45)
... 8 more

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':unpack'.

Process 'command '/usr/lib/jvm/zulu-17-amd64/bin/java'' finished with non-zero exit value 1

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.5/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 5s
10 actionable tasks: 1 executed, 9 up-to-date
#############################################################

so can anyone tell me whats going wrong here? maybe i'm not clear on how to use this for dtbo.img's
thanks for any help

@cfig
Copy link
Owner

cfig commented Dec 31, 2022

Hi @astrayal ,
Just try the command

./gradlew unpack

The tool will use "dtbo.img" if it's present in current directory.

@Lg-PWNd
Copy link
Author

Lg-PWNd commented Dec 31, 2022 via email

@cfig
Copy link
Owner

cfig commented Jan 2, 2023

So is the problem solved?

@cfig cfig closed this as completed Apr 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants