prepare cellbroadcastservice to be a mainline module
1. prepare two build targets one for updatable module another
for the legacy platform module with diferent config
2. switch to the updatable module as this is a mandatory module
3. update jarjar rules
Bug: 135956699
Test: unit test and test app
Change-Id: I1b3fad912c6fa5b921fef077301005a6af0c6402
diff --git a/Android.bp b/Android.bp
index bef85be..49e0d97 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,7 +1,7 @@
// Copyright 2019 The Android Open Source Project
-
-android_app {
- name: "CellBroadcastServiceModule",
+java_defaults {
+ name: "CellBroadcastServiceCommon",
+ min_sdk_version: "29",
srcs: [
"src/**/*.java",
":framework-cellbroadcast-shared-srcs",
@@ -14,6 +14,23 @@
optimize: {
proguard_flags_files: ["proguard.flags"],
},
+ jarjar_rules: "cellbroadcast-jarjar-rules.txt",
+}
+
+android_app {
+ name: "CellBroadcastServiceModule",
+ defaults: ["CellBroadcastServiceCommon"],
+ certificate: "networkstack",
+ manifest: "AndroidManifest.xml",
+}
+
+android_app {
+ name: "CellBroadcastServiceModulePlatform",
+ defaults: ["CellBroadcastServiceCommon"],
+ certificate: "platform",
+ // CellBroadcastServicePlatformModule is a replacement for CellBroadcastServiceModule
+ overrides: ["CellBroadcastServiceModule"],
+ manifest: "AndroidManifest_Platform.xml",
}
filegroup {