summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Jiyong Park <jiyong@google.com> 2019-10-28 05:13:57 -0700
committer android-build-merger <android-build-merger@google.com> 2019-10-28 05:13:57 -0700
commit8529d01c84482f9675cf7ce2092a394b20fdbbfc (patch)
treed080af5a781cd6d073ef285ea7502755839977d9
parent59e26de2dc1c4f96aff2556a6a400185f140d47e (diff)
parentdf5cd391988b1def6a127725a1c4ee4a39cad8b0 (diff)
Merge "Replace framework.jar with framework-minus-apex.jar"
am: df5cd39198 Change-Id: Ic2b5961baa0fb7d80f4cf69e4255377f3f42b6fc
-rw-r--r--Android.bp25
1 files changed, 24 insertions, 1 deletions
diff --git a/Android.bp b/Android.bp
index a913324aa9ca..7e659247c734 100644
--- a/Android.bp
+++ b/Android.bp
@@ -374,15 +374,38 @@ filegroup {
}
java_library {
- name: "framework",
+ name: "framework-minus-apex",
defaults: ["framework-defaults"],
srcs: [":framework-non-updatable-sources"],
+ installable: true,
javac_shard_size: 150,
required: [
"framework-platform-compat-config",
"libcore-platform-compat-config",
"services-platform-compat-config",
],
+ // For backwards compatibility.
+ stem: "framework",
+}
+
+// This "framework" module is NOT installed to the device. It's
+// "framework-minus-apex" that gets installed to the device. Note that
+// the filename is still framework.jar (via the stem property) for
+// compatibility reason. The purpose of this module is to provide
+// framework APIs (both public and private) for bundled apps.
+// "framework-minus-apex" can't be used for the purpose because 1)
+// many apps have already hardcoded the name "framework" and
+// 2) it lacks API symbols from updatable modules - as it's clear from
+// its suffix "-minus-apex".
+java_library {
+ name: "framework",
+ defaults: ["framework-aidl-export-defaults"],
+ installable: false, // this lib is a build-only library
+ static_libs: [
+ "framework-minus-apex",
+ // TODO(jiyong): add stubs for APEXes here
+ ],
+ sdk_version: "core_platform",
}
java_library {