Deprecate AImageReader_getWindowNativeHandle
After Android U, new devices will no longer have HIDL support and will
no longer need to use AImageReader_getWindowNativeHandle.
Test: atest ACameraNdkVendorTest
Bug: 283283111
Change-Id: Ia774f27aeb76e70a0f4e2e4dcb5d4b59af22b9e4
Merged-In: Ia774f27aeb76e70a0f4e2e4dcb5d4b59af22b9e4
diff --git a/camera/ndk/Android.bp b/camera/ndk/Android.bp
index 24a11e3..921aab2 100644
--- a/camera/ndk/Android.bp
+++ b/camera/ndk/Android.bp
@@ -177,6 +177,7 @@
shared_libs: [
"libcamera2ndk_vendor",
"libcamera_metadata",
+ "libhidlbase",
"libmediandk",
"libnativewindow",
"libutils",
@@ -186,6 +187,7 @@
],
static_libs: [
"android.hardware.camera.common@1.0-helper",
+ "android.hidl.token@1.0",
],
cflags: [
"-D__ANDROID_VNDK__",