diff options
| author | 2019-10-28 05:56:11 +0000 | |
|---|---|---|
| committer | 2019-10-28 05:56:11 +0000 | |
| commit | 0e7de3bb898806b37693364e281db5029e1e335c (patch) | |
| tree | 37da91bce2c220e78de23fb349c343493872435a | |
| parent | d6e55406ffeed0bf3742d547f0358606ad52e6b2 (diff) | |
| parent | 911cd4faf852f7a8730324ee795da94044ed4203 (diff) | |
Merge "Replace framework.jar with framework-minus-apex.jar"
| -rw-r--r-- | Android.bp | 29 |
1 files changed, 21 insertions, 8 deletions
diff --git a/Android.bp b/Android.bp index 8169d6de7813..b26b373943ae 100644 --- a/Android.bp +++ b/Android.bp @@ -402,22 +402,35 @@ java_library { 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", + "media-provider-platform-compat-config", + "services-devicepolicy-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: true, + installable: false, // this lib is a build-only library static_libs: [ "framework-minus-apex", - ], - required: [ - "framework-platform-compat-config", - "libcore-platform-compat-config", - "services-platform-compat-config", - "media-provider-platform-compat-config", - "services-devicepolicy-platform-compat-config", + // TODO(jiyong): add stubs for APEXes here ], sdk_version: "core_platform", } |