diff options
author | Ulya Trafimovich <skvadrik@google.com> | 2021-03-11 15:10:49 +0000 |
---|---|---|
committer | Ulya Trafimovich <skvadrik@google.com> | 2021-03-19 11:01:53 +0000 |
commit | 413be716ab9ee8476810f00392cdd5873bea56de (patch) | |
tree | 1b19ff9f3e72643aa54be4c6de002b5b3bd4a971 /tools/warn/cpp_warn_patterns.py | |
parent | 928fc2c1ef0c9e005f1a41c239027f1795924449 (diff) |
Reorder compatibility libraries used in class loader context.
Compatibility library "android.hidl.manager-V1.0-java" should go
before "android.hidl.base-V1.0-java" in class loader context for
dexpreopt, because this is the order used by PackageManager when it
constructs class loader context on device.
This allows to avoid "ClassLoaderContext classpath element mismatch"
errors on first boot for Calendar and messaging apps, which have old
enough targetSdkVersion to need HIDL compatibility libraries. Previously
the errors were masked because these apps used the deprecated
&-classpath hack.
Bug: 132357300
Test: lunch aosp_cf_x86_64_phone-userdebug && m && launch_cvd \
adb wait-for-device && adb root && adb logcat \
| grep -E 'ClassLoaderContext [a-z ]+ mismatch'
# empty grep output, no errors
Change-Id: Ibde9a4578cd86b85a9e7f11d8752716b6567e51e
Diffstat (limited to 'tools/warn/cpp_warn_patterns.py')
0 files changed, 0 insertions, 0 deletions