commit | 3d71a082ed89a32511ddd10483718b10304f147d | [log] [tgz] |
---|---|---|
author | Jiyong Park <jiyong@google.com> | Fri Feb 23 18:12:59 2018 +0900 |
committer | Jiyong Park <jiyong@google.com> | Wed Mar 07 18:36:20 2018 +0000 |
tree | e7dbfff4695a306ffe105502b254a3437fa5f373 | |
parent | fe5b69a4aee5949346eaddea7741c8c0c1ce7fa9 [diff] |
Don't allow linking to a java module with broader API surface It has been allowed that a java module built with Android SDK or System SDK to link against other java module built with broader API surface. For example, an app that is building with SDK (LOCAL_SDK_VERSION := current or <number>) can link libs like telephony-common or bouncycastle which are built without SDK but in fact exposing private APIs. From now on, this is no longer allowed because it prevents the app from being unbundled. In general, a Java module A cannot be linked to Java module B if B is built with broader API surface than A. Bug: 69899800 Test: m -j checkbuild on walleye, sailfish, and crosshatch Test: m -j ANDROID_BUILDSPEC=vendor/google/build/app_build_spec.mk Test: ./vendor/google/build/build_test.bash --dist Change-Id: Ibfdb1a6777f4e0606927d834d56f808639eb91f0
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.