android.hardware.common: support Java
The handle type here is needed in some HALs now (specifically in order
to encode a Surface, which is backed by a handle). This previously
wasn't in Java simply because handles are more common in native code,
and so it wasn't expected to be used.
Fixes: 171087128
Test: build
Change-Id: Ie1eaf50cc8e62932cc553b80c02be434bfbaf3b3
diff --git a/common/aidl/Android.bp b/common/aidl/Android.bp
index 9ea4cdf..c7f11ee 100644
--- a/common/aidl/Android.bp
+++ b/common/aidl/Android.bp
@@ -12,7 +12,7 @@
stability: "vintf",
backend: {
java: {
- enabled: false,
+ sdk_version: "module_current",
},
cpp: {
enabled: false,