Use jarjar rules for framework.jar.
Rather than copying the rules, boot libs (e.g. telephony-common
or those added by OEMs) can just add the following to their library:
jarjar_rules: ":framework-jarjar-rules",
This will ensure that rules can be changed in framework.jar without
breaking things downstream.
Bug: 127875362
Test: manual
Change-Id: I3dd64d418eca5302bb4aa142147040c459725e11
diff --git a/Android.bp b/Android.bp
index b274552..db8a4de 100644
--- a/Android.bp
+++ b/Android.bp
@@ -677,7 +677,7 @@
"ext",
],
- jarjar_rules: "jarjar_rules_hidl.txt",
+ jarjar_rules: ":framework-jarjar-rules",
static_libs: [
"apex_aidl_interface-java",
@@ -723,6 +723,11 @@
}
filegroup {
+ name: "framework-jarjar-rules",
+ srcs: ["jarjar_rules_hidl.txt"],
+}
+
+filegroup {
name: "libincident_aidl",
srcs: [
"core/java/android/os/IIncidentManager.aidl",