commit | 413be716ab9ee8476810f00392cdd5873bea56de | [log] [tgz] |
---|---|---|
author | Ulya Trafimovich <skvadrik@google.com> | Thu Mar 11 15:10:49 2021 +0000 |
committer | Ulya Trafimovich <skvadrik@google.com> | Fri Mar 19 11:01:53 2021 +0000 |
tree | 1b19ff9f3e72643aa54be4c6de002b5b3bd4a971 | |
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
This is the Makefile-based portion of the Android Build System.
For documentation on how to run a build, see Usage.txt
For a list of behavioral changes useful for Android.mk writers see Changes.md
For an outdated reference on Android.mk files, see build-system.html. Our Android.mk files look similar, but are entirely different from the Android.mk files used by the NDK build system. When searching for documentation elsewhere, ensure that it is for the platform build system -- most are not.
This Makefile-based system is in the process of being replaced with Soong, a new build system written in Go. During the transition, all of these makefiles are read by Kati, and generate a ninja file instead of being executed directly. That's combined with a ninja file read by Soong so that the build graph of the two systems can be combined and run as one.