Closed misterzed88 closed 5 years ago
@misterzed88 thanks for reporting. I'll try to reproduce and investigate. Most likely an update in the factory image apps is not compatible with oatdump decompilation utilities.
Should be fixed in https://github.com/anestisb/android-prepare-vendor/commit/cf8e900e216fc07c501f3f4c9c5427ff3ccc4943. Very weird though as to why it happens. The --header-only
does not affect the paths that do the actual Dex export. Seems like an oatdump internal bug that is triggered if the Dex methods are not traversed.
Nice that you found the cause and made a quick workaround! (so that's why this problem surfaced after the 0.4.1 release: the optimization was introduced after that release). I assume it's not worth the effort troubleshooting and patching an old oatdump version, with the workaround in place, with only minor performance penalty.
Thank you for spending the time and the effort, making a great tool!
Running version 0.5.0 or later of the tools (including the latest master), execute-all.sh fails on a factory image from Google: https://dl.google.com/dl/android/aosp/angler-n2g48c-factory-6a21e528.zip
The reason is that bytecode repair with the oatdump method fails.
This must be a newly introduced bug since version 0.4.1 works fine.
The full output log is provided below.