summaryrefslogtreecommitdiff
path: root/apex
diff options
context:
space:
mode:
authorPaul Duffin <paulduffin@google.com>2020-05-22 17:12:12 +0100
committerPaul Duffin <paulduffin@google.com>2020-05-26 09:47:45 +0100
commit077b4dffe5686456ea71c57566e5c75642d971b1 (patch)
tree2564b1f701525b650353e6d97d490ca5da9353fb /apex
parentff2641428fbe9f7766f8ab901680c9bb7524f005 (diff)
Disable shared library support for framework modules
Defaults shared library to false as the majority of framework modules should not be usable as a shared library. The exception is ike but it does not currently use the defaults and will override this setting when it does. (cherry picked from f657ae3ee5a03276591195b9ce99dc5ab2e8201d) Bug: 156723295 Bug: 155164730 Test: m droid and flash Change-Id: I3e78994a9855110b02c3d71944ff38b986208e9a Merged-In: I3e78994a9855110b02c3d71944ff38b986208e9a
Diffstat (limited to 'apex')
-rw-r--r--apex/Android.bp5
1 files changed, 5 insertions, 0 deletions
diff --git a/apex/Android.bp b/apex/Android.bp
index 3a63c80588ca..505c3fc12d05 100644
--- a/apex/Android.bp
+++ b/apex/Android.bp
@@ -71,6 +71,11 @@ java_defaults {
// stubs libraries.
libs: ["framework-annotations-lib"],
+ // Framework modules are not generally shared libraries, i.e. they are not
+ // intended, and must not be allowed, to be used in a <uses-library> manifest
+ // entry.
+ shared_library: false,
+
// Enable api lint. This will eventually become the default for java_sdk_library
// but it cannot yet be turned on because some usages have not been cleaned up.
// TODO(b/156126315) - Remove when no longer needed.