platform_build_soong/dexpreopt
Anton Hansson 12b8d427c7 Move odexes of non-system apps into system_other
Previously, the patterns in SYSTEM_OTHER_ODEX_FILTER only matched
subpaths of /system. Broaden this to match /<p> as well as /system/<p>.

Because SYSTEM_OTHER_ODEX_FILTER includes system_ext and product apps,
the immediate effect of this is that the odex and vdex files of
apps on those partitions move to system_other for A/B devices.

This makes the product and system_ext partitions smaller, which
in turn makes OTAs smaller.

Bug: 141707536
Test: soong unit tests
Test: (adb shell dumpsys package com.android.stk &&
       adb shell dumpsys package com.android.quicksearchbox) | grep -i dexopt -A3;
      verify dexpreopt state is 'prebuilt' for both
Test: adb shell find /data/dalvik-cache -name '*QuickSearch*.vdex' | wc -l == 1
Test: adb shell find /data/dalvik-cache -name '*Stk*.vdex' | wc -l == 1

Change-Id: I6e1e6d89c5822d48b522e7e6d77a363ed9f0e05b
2019-10-03 14:52:37 +01:00
..
dexpreopt_gen Write dexpreopt.config again during the build 2019-05-10 07:07:21 -07:00
Android.bp Move dexpreopt.Script to android.RuleBuilder 2019-02-05 13:28:43 -08:00
OWNERS Add an owners file for dexpreopt files. 2018-12-18 20:28:06 +00:00
config.go Update dexpreopt for the ART APEX name change. 2019-08-30 17:47:30 +01:00
dexpreopt.go Move odexes of non-system apps into system_other 2019-10-03 14:52:37 +01:00
dexpreopt_test.go Move odexes of non-system apps into system_other 2019-10-03 14:52:37 +01:00