From ff948d8a2fb0e98ab6ec59b9ee1712e00c46dbaa Mon Sep 17 00:00:00 2001 From: atrost Date: Thu, 10 Oct 2019 19:27:31 +0100 Subject: 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 --- native/android/Android.bp | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'native/android/Android.bp') 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 -- cgit v1.2.3-59-g8ed1b