diff options
author | Anton Hansson <hansson@google.com> | 2021-09-02 12:42:08 +0100 |
---|---|---|
committer | Anton Hansson <hansson@google.com> | 2021-09-02 13:15:33 +0100 |
commit | 49066b054c8c243176b785e7b8c34801ddc2cd17 (patch) | |
tree | 34f166bae5c5d466b6d8ee94a2a5ebb46c725405 /legacy | |
parent | 4413c2b562029b4cff699ec0ab291006fcd00841 (diff) | |
download | CellBroadcastReceiver-49066b054c8c243176b785e7b8c34801ddc2cd17.tar.gz |
Compile CellBroadcastReceiver with module_current
This sdk_version is one created especially for modules, and includes
@SystemApi(client = MODULE_LIBRARIES) on top of normal @SystemApi.
Note that to call these APIs the app must be allowed to access hidden
APIs, which normal APKs are not but APK-in-apexes are.
This allows removing framework-annotations from the module sources,
which avoids follow-on problems of depending on shared util libraries.
Bug: 198418216
Test: m com.android.cellbroadcast
Change-Id: I2be92e9a42e104987519bfd3c617c443d9bfece1
Diffstat (limited to 'legacy')
-rw-r--r-- | legacy/Android.bp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/legacy/Android.bp b/legacy/Android.bp index 16d23700d..12008832c 100644 --- a/legacy/Android.bp +++ b/legacy/Android.bp @@ -24,14 +24,16 @@ android_app { "androidx.appcompat_appcompat", ], - libs: ["app-compat-annotations"], + libs: [ + "app-compat-annotations", + "framework-annotations-lib", + ], srcs: [ "src/**/*.aidl", "src/**/*.java", - ":framework-annotations", ":cellbroadcast-database-sources", ], privileged: true, - sdk_version: "system_current", + sdk_version: "module_current", } |