Android_boot_image_editor
Android_boot_image_editor copied to clipboard
ubuntu 20.04 and ubuntu 16.04
fail to pack... on ubuntu 16.04 need c11 and on ubuntu nee java. upload ehen in home
on ubuntu 16 with this sudo apt-get update && sudo apt-get install git-core gnupg flex bison gperf libsdl1.2-dev libesd0-dev libwxgtk2.8-dev squashfs-tools build-essential zip curl libncurses5-dev zlib1g-dev openjdk-11-jre openjdk-11-jdk pngcrush schedtool libxml2 libxml2-utils xsltproc lzop libc6-dev schedtool g++-multilib lib32z1-dev lib32ncurses5-dev gcc-multilib maven tmux screen w3m ncftp
show this:
Task :aosp:mkbootfs.10:compileMkbootfsExecutableMkbootfsCpp FAILED In file included from /usr/include/c++/5/cstdint:35:0, from /home/ubuntu/Desktop/stock/aosp/mkbootfs.10/src/mkbootfs/cpp/mkbootfs.c:17: /usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options. #error This file requires compiler and library support
^
Task :aosp:mkbootfs.11:compileMkbootfsExecutableMkbootfsCpp FAILED In file included from /home/ubuntu/Desktop/stock/aosp/mkbootfs.11/src/mkbootfs/cpp/strings.cpp:1:0: /home/ubuntu/Desktop/stock/aosp/mkbootfs.11/src/mkbootfs/headers/android-base/strings.h:11:17: error: ‘string_view’ is not a member of ‘std’ bool StartsWith(std::string_view s, std::string_view prefix); ^ /home/ubuntu/Desktop/stock/aosp/mkbootfs.11/src/mkbootfs/headers/android-base/strings.h:11:37: error: ‘string_view’ is not a member of ‘std’ bool StartsWith(std::string_view s, std::string_view prefix); ^ /home/ubuntu/Desktop/stock/aosp/mkbootfs.11/src/mkbootfs/headers/android-base/strings.h:11:60: error: expression list treated as compound expression in initializer [-fpermissive] bool StartsWith(std::string_view s, std::string_view prefix); ^ /home/ubuntu/Desktop/stock/aosp/mkbootfs.11/src/mkbootfs/headers/android-base/strings.h:12:22: error: redefinition of ‘bool android::base::StartsWith’ bool StartsWith(std::string_view s, char prefix); ^ /home/ubuntu/Desktop/stock/aosp/mkbootfs.11/src/mkbootfs/headers/android-base/strings.h:11:6: note: ‘bool android::base::StartsWith’ previously defined here bool StartsWith(std::string_view s, std::string_view prefix); ^ /home/ubuntu/Desktop/stock/aosp/mkbootfs.11/src/mkbootfs/headers/android-base/strings.h:12:17: error: ‘string_view’ is not a member of ‘std’ bool StartsWith(std::string_view s, char prefix); ^ /home/ubuntu/Desktop/stock/aosp/mkbootfs.11/src/mkbootfs/headers/android-base/strings.h:12:37: error: expected primary-expression before ‘char’ bool StartsWith(std::string_view s, char prefix); ^ /home/ubuntu/Desktop/stock/aosp/mkbootfs.11/src/mkbootfs/headers/android-base/strings.h:15:15: error: ‘string_view’ is not a member of ‘std’ bool EndsWith(std::string_view s, std::string_view suffix); ^ /home/ubuntu/Desktop/stock/aosp/mkbootfs.11/src/mkbootfs/headers/android-base/strings.h:15:35: error: ‘string_view’ is not a member of ‘std’ bool EndsWith(std::string_view s, std::string_view suffix); ^ /home/ubuntu/Desktop/stock/aosp/mkbootfs.11/src/mkbootfs/headers/android-base/strings.h:15:58: error: expression list treated as compound expression in initializer [-fpermissive] bool EndsWith(std::string_view s, std::string_view suffix); ^ /home/ubuntu/Desktop/stock/aosp/mkbootfs.11/src/mkbootfs/headers/android-base/strings.h:16:20: error: redefinition of ‘bool android::base::EndsWith’ bool EndsWith(std::string_view s, char suffix); ^ /home/ubuntu/Desktop/stock/aosp/mkbootfs.11/src/mkbootfs/headers/android-base/strings.h:15:6: note: ‘bool android::base::EndsWith’ previously defined here bool EndsWith(std::string_view s, std::string_view suffix); ^ /home/ubuntu/Desktop/stock/aosp/mkbootfs.11/src/mkbootfs/headers/android-base/strings.h:16:15: error: ‘string_view’ is not a member of ‘std’ bool EndsWith(std::string_view s, char suffix); ^ /home/ubuntu/Desktop/stock/aosp/mkbootfs.11/src/mkbootfs/headers/android-base/strings.h:16:35: error: expected primary-expression before ‘char’ bool EndsWith(std::string_view s, char suffix); ^ /home/ubuntu/Desktop/stock/aosp/mkbootfs.11/src/mkbootfs/cpp/strings.cpp:8:22: error: redefinition of ‘bool android::base::StartsWith’ bool StartsWith(std::string_view s, std::string_view prefix) { ^ In file included from /home/ubuntu/Desktop/stock/aosp/mkbootfs.11/src/mkbootfs/cpp/strings.cpp:1:0: /home/ubuntu/Desktop/stock/aosp/mkbootfs.11/src/mkbootfs/headers/android-base/strings.h:11:6: note: ‘bool android::base::StartsWith’ previously defined here bool StartsWith(std::string_view s, std::string_view prefix); ^ /home/ubuntu/Desktop/stock/aosp/mkbootfs.11/src/mkbootfs/cpp/strings.cpp:8:17: error: ‘string_view’ is not a member of ‘std’ bool StartsWith(std::string_view s, std::string_view prefix) { ^ /home/ubuntu/Desktop/stock/aosp/mkbootfs.11/src/mkbootfs/cpp/strings.cpp:8:37: error: ‘string_view’ is not a member of ‘std’ bool StartsWith(std::string_view s, std::string_view prefix) { ^ /home/ubuntu/Desktop/stock/aosp/mkbootfs.11/src/mkbootfs/cpp/strings.cpp:12:22: error: redefinition of ‘bool android::base::StartsWith’ bool StartsWith(std::string_view s, char prefix) { ^ In file included from /home/ubuntu/Desktop/stock/aosp/mkbootfs.11/src/mkbootfs/cpp/strings.cpp:1:0: /home/ubuntu/Desktop/stock/aosp/mkbootfs.11/src/mkbootfs/headers/android-base/strings.h:11:6: note: ‘bool android::base::StartsWith’ previously defined here bool StartsWith(std::string_view s, std::string_view prefix); ^ /home/ubuntu/Desktop/stock/aosp/mkbootfs.11/src/mkbootfs/cpp/strings.cpp:12:17: error: ‘string_view’ is not a member of ‘std’ bool StartsWith(std::string_view s, char prefix) { ^ /home/ubuntu/Desktop/stock/aosp/mkbootfs.11/src/mkbootfs/cpp/strings.cpp:12:37: error: expected primary-expression before ‘char’ bool StartsWith(std::string_view s, char prefix) { ^ /home/ubuntu/Desktop/stock/aosp/mkbootfs.11/src/mkbootfs/cpp/strings.cpp:17:20: error: redefinition of ‘bool android::base::EndsWith’ bool EndsWith(std::string_view s, std::string_view suffix) { ^ In file included from /home/ubuntu/Desktop/stock/aosp/mkbootfs.11/src/mkbootfs/cpp/strings.cpp:1:0: /home/ubuntu/Desktop/stock/aosp/mkbootfs.11/src/mkbootfs/headers/android-base/strings.h:15:6: note: ‘bool android::base::EndsWith’ previously defined here bool EndsWith(std::string_view s, std::string_view suffix); ^ /home/ubuntu/Desktop/stock/aosp/mkbootfs.11/src/mkbootfs/cpp/strings.cpp:17:15: error: ‘string_view’ is not a member of ‘std’ bool EndsWith(std::string_view s, std::string_view suffix) { ^ /home/ubuntu/Desktop/stock/aosp/mkbootfs.11/src/mkbootfs/cpp/strings.cpp:17:35: error: ‘string_view’ is not a member of ‘std’ bool EndsWith(std::string_view s, std::string_view suffix) { ^ /home/ubuntu/Desktop/stock/aosp/mkbootfs.11/src/mkbootfs/cpp/strings.cpp:21:20: error: redefinition of ‘bool android::base::EndsWith’ bool EndsWith(std::string_view s, char suffix) { ^ In file included from /home/ubuntu/Desktop/stock/aosp/mkbootfs.11/src/mkbootfs/cpp/strings.cpp:1:0: /home/ubuntu/Desktop/stock/aosp/mkbootfs.11/src/mkbootfs/headers/android-base/strings.h:15:6: note: ‘bool android::base::EndsWith’ previously defined here bool EndsWith(std::string_view s, std::string_view suffix); ^ /home/ubuntu/Desktop/stock/aosp/mkbootfs.11/src/mkbootfs/cpp/strings.cpp:21:15: error: ‘string_view’ is not a member of ‘std’ bool EndsWith(std::string_view s, char suffix) { ^ /home/ubuntu/Desktop/stock/aosp/mkbootfs.11/src/mkbootfs/cpp/strings.cpp:21:35: error: expected primary-expression before ‘char’ bool EndsWith(std::string_view s, char suffix) { ^
In file included from /home/ubuntu/Desktop/stock/aosp/mkbootfs.11/src/mkbootfs/cpp/fs_config.cpp:37:0: /home/ubuntu/Desktop/stock/aosp/mkbootfs.11/src/mkbootfs/headers/android-base/strings.h:11:17: error: ‘string_view’ is not a member of ‘std’ bool StartsWith(std::string_view s, std::string_view prefix); ^ /home/ubuntu/Desktop/stock/aosp/mkbootfs.11/src/mkbootfs/headers/android-base/strings.h:11:37: error: ‘string_view’ is not a member of ‘std’ bool StartsWith(std::string_view s, std::string_view prefix); ^ /home/ubuntu/Desktop/stock/aosp/mkbootfs.11/src/mkbootfs/headers/android-base/strings.h:11:60: error: expression list treated as compound expression in initializer [-fpermissive] bool StartsWith(std::string_view s, std::string_view prefix); ^ /home/ubuntu/Desktop/stock/aosp/mkbootfs.11/src/mkbootfs/headers/android-base/strings.h:12:22: error: redefinition of ‘bool android::base::StartsWith’ bool StartsWith(std::string_view s, char prefix); ^ /home/ubuntu/Desktop/stock/aosp/mkbootfs.11/src/mkbootfs/headers/android-base/strings.h:11:6: note: ‘bool android::base::StartsWith’ previously defined here bool StartsWith(std::string_view s, std::string_view prefix); ^ /home/ubuntu/Desktop/stock/aosp/mkbootfs.11/src/mkbootfs/headers/android-base/strings.h:12:17: error: ‘string_view’ is not a member of ‘std’ bool StartsWith(std::string_view s, char prefix); ^ /home/ubuntu/Desktop/stock/aosp/mkbootfs.11/src/mkbootfs/headers/android-base/strings.h:12:37: error: expected primary-expression before ‘char’ bool StartsWith(std::string_view s, char prefix); ^ /home/ubuntu/Desktop/stock/aosp/mkbootfs.11/src/mkbootfs/headers/android-base/strings.h:15:15: error: ‘string_view’ is not a member of ‘std’ bool EndsWith(std::string_view s, std::string_view suffix); ^ /home/ubuntu/Desktop/stock/aosp/mkbootfs.11/src/mkbootfs/headers/android-base/strings.h:15:35: error: ‘string_view’ is not a member of ‘std’ bool EndsWith(std::string_view s, std::string_view suffix); ^ /home/ubuntu/Desktop/stock/aosp/mkbootfs.11/src/mkbootfs/headers/android-base/strings.h:15:58: error: expression list treated as compound expression in initializer [-fpermissive] bool EndsWith(std::string_view s, std::string_view suffix); ^ /home/ubuntu/Desktop/stock/aosp/mkbootfs.11/src/mkbootfs/headers/android-base/strings.h:16:20: error: redefinition of ‘bool android::base::EndsWith’ bool EndsWith(std::string_view s, char suffix); ^ /home/ubuntu/Desktop/stock/aosp/mkbootfs.11/src/mkbootfs/headers/android-base/strings.h:15:6: note: ‘bool android::base::EndsWith’ previously defined here bool EndsWith(std::string_view s, std::string_view suffix); ^ /home/ubuntu/Desktop/stock/aosp/mkbootfs.11/src/mkbootfs/headers/android-base/strings.h:16:15: error: ‘string_view’ is not a member of ‘std’ bool EndsWith(std::string_view s, char suffix); ^ /home/ubuntu/Desktop/stock/aosp/mkbootfs.11/src/mkbootfs/headers/android-base/strings.h:16:35: error: expected primary-expression before ‘char’ bool EndsWith(std::string_view s, char suffix); ^ /home/ubuntu/Desktop/stock/aosp/mkbootfs.11/src/mkbootfs/cpp/fs_config.cpp: In function ‘bool is_partition(const string&)’: /home/ubuntu/Desktop/stock/aosp/mkbootfs.11/src/mkbootfs/cpp/fs_config.cpp:259:43: error: ‘android::base::StartsWith’ cannot be used as a function if (StartsWith(path, partitions[i])) return true; ^ /home/ubuntu/Desktop/stock/aosp/mkbootfs.11/src/mkbootfs/cpp/fs_config.cpp: In function ‘bool fs_config_cmp(bool, const char*, size_t, const char*, size_t)’: /home/ubuntu/Desktop/stock/aosp/mkbootfs.11/src/mkbootfs/cpp/fs_config.cpp:273:33: error: ‘android::base::EndsWith’ cannot be used as a function if (!EndsWith(input, "/")) { ^ /home/ubuntu/Desktop/stock/aosp/mkbootfs.11/src/mkbootfs/cpp/fs_config.cpp:277:36: error: ‘android::base::EndsWith’ cannot be used as a function if (!EndsWith(pattern, "/*")) { ^ /home/ubuntu/Desktop/stock/aosp/mkbootfs.11/src/mkbootfs/cpp/fs_config.cpp:278:38: error: ‘android::base::EndsWith’ cannot be used as a function if (EndsWith(pattern, "/")) { ^ /home/ubuntu/Desktop/stock/aosp/mkbootfs.11/src/mkbootfs/cpp/fs_config.cpp:295:48: error: ‘android::base::StartsWith’ cannot be used as a function if (StartsWith(input, logical_partition)) { ^
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
- What went wrong: Execution failed for task ':aosp:mkbootfs.10:compileMkbootfsExecutableMkbootfsCpp'.
A build operation failed. C++ compiler failed while compiling mkbootfs.c. See the complete log at: file:///home/ubuntu/Desktop/stock/aosp/mkbootfs.10/build/tmp/compileMkbootfsExecutableMkbootfsCpp/output.txt C++ compiler failed while compiling mkbootfs.c.
- 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. ==============================================================================
2: Task failed with an exception.
- What went wrong: Execution failed for task ':aosp:mkbootfs.11:compileMkbootfsExecutableMkbootfsCpp'.
Multiple build operations failed. C++ compiler failed while compiling strings.cpp. C++ compiler failed while compiling fs_config.cpp. See the complete log at: file:///home/ubuntu/Desktop/stock/aosp/mkbootfs.11/build/tmp/compileMkbootfsExecutableMkbootfsCpp/output.txt C++ compiler failed while compiling strings.cpp. C++ compiler failed while compiling fs_config.cpp.
- 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. ==============================================================================
on ubuntu 20.10 comment: java empty i need to revert stock recovery.img android 11 becouse son of bitches realme has prohibite downgrade for european versions. Downgrade is only allowed for indian versions. I try indian version and it destroy partitions. When try restore stock recovery.img it dont detect hard disk of smartphone include wifi and etc. Now when developers help me i will try move stock recovery.img kernel to twrp android 10 realme x50 pro kernel and try from there.
What is trange: i try flash android 10 stock boot.img and recovery.img and it directly go in fastboot mode.
When try restore stock boot.img and rescovery.img after restart it go stock recovery. So if twrp kernel move work maybe it will run. I have fully twrp backup from android 10 but i need twrp to run it.
ubuntu 20.10
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:64) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:564) 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:92) Caused by: java.nio.BufferOverflowException at java.base/java.nio.HeapByteBuffer.put(HeapByteBuffer.java:235) at cfig.bootimg.Common$Companion.writePaddedFile(Common.kt:311) at cfig.bootimg.v2.BootV2.pack(BootV2.kt:390) at cfig.packable.BootImgParser.pack(BootImgParser.kt:60) ... 8 more
Task :pack FAILED
FAILURE: Build failed with an exception.
- What went wrong: Execution failed for task ':pack'.
Process 'command '/usr/lib/jvm/java-15-openjdk-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.
-
Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/6.8.3/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 9s 23 actionable tasks: 8 executed, 15 up-to-date
Hi, Ubuntu 16.04 is not supported anymore. For 20.04(or later) problems, we should fix it.
The problem on your ubuntu 20.10 may be a bug. Can you attach your image here? Then i can try to reproduce it.
Please help me. i just buy it 14 and it stay in fastboot mode realme x50 pro for beuropean version dont want to give restore rom that is 15 gb. and can restore indian version has restore rom that is 15 gb. but is only for india. magisk work only in android 10. in android 11 there is no magisk and downgrade is not possible. i need to get twrp android 10 and unpack vb2 and move from recovery.img vbmeta and who know what other .image " i too try with system.img and it comment it is not spare image " so maybe your program can work and boot in twrp before i upgrad android1 1 i make full backup twrp copy. i just need twrp android 11 to boot. now my mobile is stuck in fastboot for european version. im in telegram and first day i didnt sleep all night 24 hours. now today too i didnt sleep. person try compile twrp and it start load slow and then rebot in fastboot maybe he you kitchen android... if dont work i need call realme and return to service... they 3 wwek... i just ask why they dont give european ofp restore image to restore it. Please help me. im gonna put android 11 ota and 10 ota include boot.img vbmeta.img and recovery twrp too https://bgzashtita.es/android in u.s.a. there is laws who protect me. i can use all kind of programs include hackers to repair my smartphone. so dont have fear im uploading right now everything. please please help me
hi i see you make change is it possible to try it now.
make you maybe you can do it better. than
Hi, I only fixed the "pack" bug for the boot.img in your link, now you can unpack/pack boot images. About the problem you mentioned, "boot into fastboot mode", it may be caused by corrupted boot.img/vbmeta.img or fatal error thrown from Android init.
In your link there is only OTA package, which is not ideal to flash back to your phone.(the process maybe very tricky, if you insist on this way). Maybe you can flash boot.img(with recovery mode inside) and vbmeta.img together, and boot into recovery mode, then do OTA.
And if you can download factory image, which can be flashed via fastboot tools, the steps should be better and easier.
Good luck~
comments are welcome
pplease help me im not expert. i only need twrp becouse twrp i put is for anftoid 10 and it dont work. becouse rralme has put when detect amdroid 10 not to run and run fastboot. so i need from ota recovery.img kernel and move it to twrp all is in https://bgzashtita.es/andtoid i have fully twrp backup i only need it. im not home i try to unpack and comment error in umpack. so please do you. and upload it to me.
factory image are .ofp and only work for india verdion. my is european version. so you need to make twrp from recobery.img
Hi, I only fixed the "pack" bug for the boot.img in your link, now you can unpack/pack boot images. About the problem you mentioned, "boot into fastboot mode", it may be caused by corrupted boot.img/vbmeta.img or fatal error thrown from Android init.
In your link there is only OTA package, which is not ideal to flash back to your phone.(the process maybe very tricky, if you insist on this way). Maybe you can flash boot.img(with recovery mode inside) and vbmeta.img together, and boot into recovery mode, then do OTA.
And if you can download factory image, which can be flashed via fastboot tools, the steps should be better and easier.
Good luck~
comments are welcome
Hi
I try update your git clone and still dont work worse in ./gradlew unpack it comment error
./gradlew unpack Starting a Gradle Daemon (subsequent builds will be faster)
Task :bbootimg:compileKotlin w: /home/aa/Desktop/stock/bbootimg/src/main/kotlin/avb/desc/HashDescriptor.kt: (74, 43): Parameter 'parent' is never used
Task :unpack FAILED 18:45:53:759 WARN PackableLauncher - No handler is activated, DO NOTHING!
FAILURE: Build failed with an exception.
- What went wrong: Execution failed for task ':unpack'.
Process 'command '/usr/lib/jvm/java-11-openjdk-amd64/bin/java'' finished with non-zero exit value 2
-
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.
-
Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/6.8.3/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 50s 20 actionable tasks: 20 executed aa@aa-virtual-machine:~/Desktop/stock$ ./gradlew unpack --scan
Task :bbootimg:compileKotlin w: /home/aa/Desktop/stock/bbootimg/src/main/kotlin/avb/desc/HashDescriptor.kt: (74, 43): Parameter 'parent' is never used
Task :unpack FAILED 18:46:43:822 WARN PackableLauncher - No handler is activated, DO NOTHING!
FAILURE: Build failed with an exception.
- What went wrong: Execution failed for task ':unpack'.
Process 'command '/usr/lib/jvm/java-11-openjdk-amd64/bin/java'' finished with non-zero exit value 2
-
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.
-
Get more help at https://help.gradle.org
BUILD FAILED in 9s 20 actionable tasks: 5 executed, 15 up-to-date
Publishing a build scan to scans.gradle.com requires accepting the Gradle Terms of Service defined at https://gradle.com/terms-of-service. Do you accept these terms? [yes, no] n Please enter 'yes' or 'no': no
Gradle Terms of Service not accepted.
You must answer 'yes' to publish a build scan when prompted on the command line or accept the Gradle Terms of Service in a buildScan configuration block.
For more information, please see https://gradle.com/help/plugin-terms-of-service.
Alternatively, if you are using Gradle Enterprise, specify the server location. For more information, please see https://gradle.com/help/plugin-enterprise-config.
aa@aa-virtual-machine:~/Desktop/stock$ ./gradlew unpack --stacktrace
Task :bbootimg:compileKotlin w: /home/aa/Desktop/stock/bbootimg/src/main/kotlin/avb/desc/HashDescriptor.kt: (74, 43): Parameter 'parent' is never used
Task :unpack FAILED 18:47:13:145 WARN PackableLauncher - No handler is activated, DO NOTHING!
FAILURE: Build failed with an exception.
- What went wrong: Execution failed for task ':unpack'.
Process 'command '/usr/lib/jvm/java-11-openjdk-amd64/bin/java'' finished with non-zero exit value 2
-
Try: Run with --info or --debug option to get more log output. Run with --scan to get full insights.
-
Exception is: org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':unpack'. at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$3(ExecuteActionsTaskExecuter.java:186) at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:268) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:184) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:173) at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:109) at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46) at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:62) at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57) at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:56) at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36) at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77) at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55) at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52) at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:200) at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:195) at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:75) at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:68) at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:153) at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:68) at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:62) at org.gradle.internal.operations.DefaultBuildOperationExecutor.lambda$call$2(DefaultBuildOperationExecutor.java:76) at org.gradle.internal.operations.UnmanagedBuildOperationWrapper.callWithUnmanagedSupport(UnmanagedBuildOperationWrapper.java:54) at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:76) at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:52) at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:41) at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:411) at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:398) at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:391) at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:377) at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.lambda$run$0(DefaultPlanExecutor.java:127) at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:191) at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.executeNextNode(DefaultPlanExecutor.java:182) at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:124) at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64) at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48) at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56) Caused by: org.gradle.process.internal.ExecException: Process 'command '/usr/lib/jvm/java-11-openjdk-amd64/bin/java'' finished with non-zero exit value 2 at org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNormalExitValue(DefaultExecHandle.java:414) at org.gradle.process.internal.DefaultJavaExecAction.execute(DefaultJavaExecAction.java:42) at org.gradle.api.tasks.JavaExec.exec(JavaExec.java:154) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:104) at org.gradle.api.internal.project.taskfactory.StandardTaskAction.doExecute(StandardTaskAction.java:58) at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:51) at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:29) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$2.run(ExecuteActionsTaskExecuter.java:494) at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29) at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26) at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:75) at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:68) at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:153) at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:68) at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:56) at org.gradle.internal.operations.DefaultBuildOperationExecutor.lambda$run$1(DefaultBuildOperationExecutor.java:71) at org.gradle.internal.operations.UnmanagedBuildOperationWrapper.runWithUnmanagedSupport(UnmanagedBuildOperationWrapper.java:45) at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:71) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:479) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:462) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.access$400(ExecuteActionsTaskExecuter.java:105) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$TaskExecution.executeWithPreviousOutputFiles(ExecuteActionsTaskExecuter.java:273) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$TaskExecution.execute(ExecuteActionsTaskExecuter.java:251) at org.gradle.internal.execution.steps.ExecuteStep.lambda$executeOperation$1(ExecuteStep.java:66) at org.gradle.internal.execution.steps.ExecuteStep.executeOperation(ExecuteStep.java:66) at org.gradle.internal.execution.steps.ExecuteStep.access$000(ExecuteStep.java:34) at org.gradle.internal.execution.steps.ExecuteStep$1.call(ExecuteStep.java:47) at org.gradle.internal.execution.steps.ExecuteStep$1.call(ExecuteStep.java:44) at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:200) at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:195) at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:75) at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:68) at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:153) at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:68) at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:62) at org.gradle.internal.operations.DefaultBuildOperationExecutor.lambda$call$2(DefaultBuildOperationExecutor.java:76) at org.gradle.internal.operations.UnmanagedBuildOperationWrapper.callWithUnmanagedSupport(UnmanagedBuildOperationWrapper.java:54) at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:76) at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:44) at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:34) at org.gradle.internal.execution.steps.RemovePreviousOutputsStep.execute(RemovePreviousOutputsStep.java:72) at org.gradle.internal.execution.steps.RemovePreviousOutputsStep.execute(RemovePreviousOutputsStep.java:42) at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:53) at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:39) at org.gradle.internal.execution.steps.CancelExecutionStep.execute(CancelExecutionStep.java:44) at org.gradle.internal.execution.steps.TimeoutStep.executeWithoutTimeout(TimeoutStep.java:77) at org.gradle.internal.execution.steps.TimeoutStep.execute(TimeoutStep.java:58) at org.gradle.internal.execution.steps.CreateOutputsStep.execute(CreateOutputsStep.java:54) at org.gradle.internal.execution.steps.CreateOutputsStep.execute(CreateOutputsStep.java:32) at org.gradle.internal.execution.steps.CaptureStateAfterExecutionStep.execute(CaptureStateAfterExecutionStep.java:57) at org.gradle.internal.execution.steps.CaptureStateAfterExecutionStep.execute(CaptureStateAfterExecutionStep.java:38) at org.gradle.internal.execution.steps.BroadcastChangingOutputsStep.execute(BroadcastChangingOutputsStep.java:63) at org.gradle.internal.execution.steps.BroadcastChangingOutputsStep.execute(BroadcastChangingOutputsStep.java:30) at org.gradle.internal.execution.steps.BuildCacheStep.executeWithoutCache(BuildCacheStep.java:176) at org.gradle.internal.execution.steps.BuildCacheStep.execute(BuildCacheStep.java:76) at org.gradle.internal.execution.steps.BuildCacheStep.execute(BuildCacheStep.java:47) at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:43) at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:32) at org.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:39) at org.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:25) at org.gradle.internal.execution.steps.SkipUpToDateStep.executeBecause(SkipUpToDateStep.java:102) at org.gradle.internal.execution.steps.SkipUpToDateStep.lambda$execute$0(SkipUpToDateStep.java:95) at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:55) at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:39) at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:83) at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:44) at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:37) at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:27) at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:96) at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:52) at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.execute(CaptureStateBeforeExecutionStep.java:83) at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.execute(CaptureStateBeforeExecutionStep.java:54) at org.gradle.internal.execution.steps.ValidateStep.execute(ValidateStep.java:74) at org.gradle.internal.execution.steps.SkipEmptyWorkStep.lambda$execute$2(SkipEmptyWorkStep.java:88) at org.gradle.internal.execution.steps.SkipEmptyWorkStep.execute(SkipEmptyWorkStep.java:88) at org.gradle.internal.execution.steps.SkipEmptyWorkStep.execute(SkipEmptyWorkStep.java:34) at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsStartedStep.execute(MarkSnapshottingInputsStartedStep.java:38) at org.gradle.internal.execution.steps.LoadExecutionStateStep.execute(LoadExecutionStateStep.java:46) at org.gradle.internal.execution.steps.LoadExecutionStateStep.execute(LoadExecutionStateStep.java:34) at org.gradle.internal.execution.steps.AssignWorkspaceStep.lambda$execute$0(AssignWorkspaceStep.java:43) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$TaskExecution$3.withWorkspace(ExecuteActionsTaskExecuter.java:286) at org.gradle.internal.execution.steps.AssignWorkspaceStep.execute(AssignWorkspaceStep.java:43) at org.gradle.internal.execution.steps.AssignWorkspaceStep.execute(AssignWorkspaceStep.java:33) at org.gradle.internal.execution.steps.IdentityCacheStep.execute(IdentityCacheStep.java:40) at org.gradle.internal.execution.steps.IdentityCacheStep.execute(IdentityCacheStep.java:30) at org.gradle.internal.execution.steps.IdentifyStep.execute(IdentifyStep.java:54) at org.gradle.internal.execution.steps.IdentifyStep.execute(IdentifyStep.java:40) at org.gradle.internal.execution.impl.DefaultExecutionEngine.rebuild(DefaultExecutionEngine.java:46) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$0(ExecuteActionsTaskExecuter.java:182) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:182) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:173) at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:109) at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46) at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:62) at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57) at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:56) at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36) at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77) at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55) at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52) at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:200) at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:195) at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:75) at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:68) at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:153) at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:68) at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:62) at org.gradle.internal.operations.DefaultBuildOperationExecutor.lambda$call$2(DefaultBuildOperationExecutor.java:76) at org.gradle.internal.operations.UnmanagedBuildOperationWrapper.callWithUnmanagedSupport(UnmanagedBuildOperationWrapper.java:54) at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:76) at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:52) at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:41) at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:411) at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:398) at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:391) at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:377) at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.lambda$run$0(DefaultPlanExecutor.java:127) at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:191) at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.executeNextNode(DefaultPlanExecutor.java:182) at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:124) at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64) at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48) at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56)
-
Get more help at https://help.gradle.org
BUILD FAILED in 6s
20 actionable tasks: 5 executed, 15 up-to-date
aa@aa-virtual-machine:~/Desktop/stock$ File("platform.jks").let {
-bash: syntax error near unexpected token "platform.jks"' aa@aa-virtual-machine:~/Desktop/stock$ if (it.exists()) { -bash: syntax error near unexpected token )'
aa@aa-virtual-machine:~/Desktop/stock$ it.delete()
}
-bash: syntax error near unexpected token `}' please do it you. i need full working twrp with android 11 kernel from recovery,img i speak with service center and maybe need to wait 3 weeks include i had to feel complaint against women. include it is unknown if realme will help spain support is worse. if i had im feel very pissewd. phone cost 520 euros i want total control of my phone. im gonna repeat./ full restore image realme x50 pro is only for indian for european version it dont exist and never exist. Now something strange. when i try fastboot flash recovery recover.ymg and boot.img from android 11 it start stcok recovery, if i flash android 10 stock it fastboot. What in theory it need to boot in stock repair it just go in fastboot. Now when i return stock rom and recovery.img and boot.img it start android 11 stock rom. Include wheni try bwore phone hard disk it dont work, i try install ota from there too . and it comment installation failed. Something has broken in hard disk nad need delete for that i need fully working twrp android 11, i have it https://bgzashtita.es/android butit is for android 10 and it inmediatelly how i say when detect android1 10 fastboot so we need to unpack recovery.img vbmeta and maybe boot.img and get this kernel android 11 and move it to twrp to be android 11. in theory if everytiing work it need to start. please do it. im very pissed you cant belive what i read peoples bring they phones in realme and they service is worse include there was missing part. if you need i will send you my phone numeber i have telegram.
hi after update it unpack and pack. you have to see. there ia two .json unknown if they to change something. therr they have key maybe if we put them in twrp with new kernel it will start twrp i try only recovery.img with vbmeta.img unpack and repack and iagain fastboot. only changing android 11 kernel im twrp will not work. there is something else. i jist remember after i put from stock recovery dtb* and it slow down load... bit after that restart so we aee in rightvway.
Hi, I believe twrp recovery.img is combined with (1) custom kernel (2) custom rootfs from Android(10 or 11) (3) other misc .... So replacing kernel doesn't upgrade the image from 10 to 11.
I fully understand what you met when several years ago I rooted my Nexus 5X and system hang again and again. Sorry I don't know the configurations of realme, and I don't have such device model at hand. I can explain the the boot.img contents for you, but can not make a bootable image for it.
this morning all night i was try and i upgrade adb run with latest adb... i format and erase userdata and super. and now when flash boot and recovery original 11 it stuck on boot logo. we had advance. now lets see if you can understand. twrp is no oficial for realme x50 pro and it is another version 2071 maybe... so how he amke it... maybe he ported twrp of this device to 2075 now when i upgarde 11 peooles comment realme deny downgrade. like use flash recovery of other old android versions... i habe samsung s7 witg andeoid 7 and i can upgarde android 8 and use andrlid 7 twrp... fuck this morning i find this x50 pro play Disable boot Verification/ Fix bootloop: https://unofficialtwrp.com/twrp-3-4-2-root-realme-x50-pro-player-edition/ downgrade has offivial but only for indian version. so maybe now boot stuck is becouse missing super.img or userdata.img strange is if i try flash system.img it comment no such partition.. wow. i just remember i open with 7zip downgrade ofp and there was maybe super partition... so i will try from old andeoid 10 the same .img but if i remember there is sytem.img too and from fastboot dont find system.img and this ofp restore image are password protected. fuck if you want i will try give you remote control but please dont do something bas. i just want restore realme x50 i do so much things maybe it can help you find solution how to recover it. this who make twrp 2075 je know what he do.
Hi buddy, what's going on here? Problem get solved?