summaryrefslogtreecommitdiff
path: root/native/android/Android.bp
diff options
context:
space:
mode:
author atrost <atrost@google.com> 2019-10-10 19:27:31 +0100
committer Anna Trostanetski <atrost@google.com> 2019-10-22 18:54:13 +0000
commitff948d8a2fb0e98ab6ec59b9ee1712e00c46dbaa (patch)
tree3636dddabf03b0d227ca74f7770a0743aeefdb31 /native/android/Android.bp
parent90dfd6b00928209a2ca4cf067df496b65e39d44a (diff)
Add a native aidl API.
Introduce a platform_compat_native service that just calls the platform_compat service. The new service is needed as it needs a slightly different (more limited, no ApplicationInfo in cpp) aidl API, and a class can only extend one stub. Test: Call the service from dumpsys.cpp (http://aosp/1142055) Bug: 138275545 Change-Id: Ic46cc34b4c1dd4ebc6bcc996fb3f8503607214ac Merged-In: Ic46cc34b4c1dd4ebc6bcc996fb3f8503607214ac
Diffstat (limited to 'native/android/Android.bp')
-rw-r--r--native/android/Android.bp28
1 files changed, 28 insertions, 0 deletions
diff --git a/native/android/Android.bp b/native/android/Android.bp
index 7c1af4a81f9d..ae8cb3a47a05 100644
--- a/native/android/Android.bp
+++ b/native/android/Android.bp
@@ -110,3 +110,31 @@ llndk_library {
symbol_file: "libandroid_net.map.txt",
unversioned: true,
}
+
+
+// Aidl library for platform compat.
+cc_library_shared {
+ name: "lib-platform-compat-native-api",
+ defaults: ["libandroid_defaults"],
+
+ shared_libs: [
+ "libbinder",
+ "libutils",
+ ],
+ aidl: {
+ local_include_dirs: ["aidl"],
+ export_aidl_headers: true,
+ },
+ srcs: [
+ ":platform-compat-native-aidl",
+ ],
+ export_include_dirs: ["aidl"],
+}
+
+filegroup {
+ name: "platform-compat-native-aidl",
+ srcs: [
+ "aidl/com/android/internal/compat/IPlatformCompatNative.aidl",
+ ],
+ path: "aidl",
+} \ No newline at end of file