vendor: soong: Add TARGET_CAMERA_NEEDS_CLIENT_INFO_LIB
Recently LOS changed KeyHandler to service. Service doesn't use system_server context, so FileObserver of old implementation can't access client info file. This implementation directly writes package name without using any files.
Change-Id: I2fbbef69bc605ba709d0fef89dff5093a3be8c98
(cherry picked from commit b1349cd0920440359731f2806477fccac413da81)
diff --git a/build/soong/Android.bp b/build/soong/Android.bp
index 208d8d6..68f82f5 100644
--- a/build/soong/Android.bp
+++ b/build/soong/Android.bp
@@ -157,6 +157,27 @@
}
soong_config_module_type {
+ name: "camera_needs_client_info_lib",
+ module_type: "cc_defaults",
+ config_namespace: "blissGlobalVars",
+ bool_variables: ["camera_needs_client_info_lib"],
+ properties: [
+ "cppflags",
+ "shared_libs",
+ ],
+}
+
+camera_needs_client_info_lib {
+ name: "camera_needs_client_info_lib_defaults",
+ soong_config_variables: {
+ camera_needs_client_info_lib: {
+ cppflags: ["-DCAMERA_NEEDS_CLIENT_INFO_LIB"],
+ shared_libs: ["//hardware/oneplus:vendor.oneplus.hardware.camera@1.0"],
+ },
+ },
+}
+
+soong_config_module_type {
name: "egl_display_array",
module_type: "cc_defaults",
config_namespace: "blissGlobalVars",