anestisb / android-prepare-vendor

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

set LOCAL_DEX_PREOPT := false for RROs #104

Closed thestinger closed 7 years ago

thestinger commented 7 years ago

Trying to use dexpreopt with Runtime Resource Overlays will break:

dex2oatd E 10-03 23:19:50 18417 18417 oat_writer.cc:403] No dex files in zip file '/vendor/overlay/Pixel/PixelThemeOverlay.apk': Entry not found

CopperheadOS plans to enable dexpreopt for vendor again in order to ban executing dalvikcache_data_file for the base system again and this was getting in the way.

thestinger commented 7 years ago

Could be solved in CopperheadOS by special casing LOCAL_IS_RUNTIME_RESOURCE_OVERLAY but I don't think this should break if it was moved to system with unaltered AOSP so this seems better.