anestisb / android-prepare-vendor

Set of scripts to automate AOSP compatible vendor blobs generation from factory images
348 stars 155 forks source link

7.1.1 (December security update) appears to break bytecode generation #48

Closed thestinger closed 7 years ago

thestinger commented 7 years ago

I haven't looked into this in detail yet but the files are definitely still present with stripped apks alongside the oat files as before.

anestisb commented 7 years ago

Both oatdump & smali bytecode repair methods are failing because the OAT version at API 25 has been bumped to 0x3038380.

e.g. when enable debug

Invalid oat header for '/fast-datavault/nexus-vendor-blobs/bullhead/nmf26f/factory_imgs_data/system/app/HiddenMenu/oat/arm64/HiddenMenu.odex': Invalid oat version, expected 0x3037390, got 0x3038380.

I'll be able to build the standalone host tools from the art project for API 25 as soon as Google publishes the sources for 7.1.1 release. Will check the latest upstream smali repo to verify their current support status against new OAT & ART versions.

anestisb commented 7 years ago

Both oatdump & smali bytecode repair methods appear to be working fine now. Have tested some builds for both N6p & N5x and haven't noticed any issues so far.

thestinger commented 7 years ago

Yeah, this works well now.