Add common RRO overlay to enable AOSP camera launch gesture
authordianlujitao <dianlujitao@lineageos.org>
Fri, 4 Nov 2022 13:14:41 +0000 (21:14 +0800)
committerdianlujitao <dianlujitao@lineageos.org>
Fri, 4 Nov 2022 13:14:41 +0000 (21:14 +0800)
Change-Id: Ia2e124beb01f8be7625e894df1e28289a4cb4110

overlay/Android.bp [new file with mode: 0644]
overlay/MotoFrameworksResTarget/Android.bp [new file with mode: 0644]
overlay/MotoFrameworksResTarget/AndroidManifest.xml [new file with mode: 0644]
overlay/MotoFrameworksResTarget/res/values/config.xml [new file with mode: 0644]

diff --git a/overlay/Android.bp b/overlay/Android.bp
new file mode 100644 (file)
index 0000000..e9f705e
--- /dev/null
@@ -0,0 +1,11 @@
+//
+// Copyright (C) 2022 The LineageOS Project
+// SPDX-License-Identifier: Apache-2.0
+//
+
+phony {
+    name: "MotoCommonOverlay",
+    required: [
+        "FrameworksResMotoCommon",
+    ]
+}
diff --git a/overlay/MotoFrameworksResTarget/Android.bp b/overlay/MotoFrameworksResTarget/Android.bp
new file mode 100644 (file)
index 0000000..7019d24
--- /dev/null
@@ -0,0 +1,10 @@
+//
+// Copyright (C) 2022 The LineageOS Project
+// SPDX-License-Identifier: Apache-2.0
+//
+
+runtime_resource_overlay {
+    name: "FrameworksResMotoCommon",
+    sdk_version: "current",
+    vendor: true
+}
diff --git a/overlay/MotoFrameworksResTarget/AndroidManifest.xml b/overlay/MotoFrameworksResTarget/AndroidManifest.xml
new file mode 100644 (file)
index 0000000..a288b18
--- /dev/null
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+     Copyright (C) 2022 The LineageOS Project
+     SPDX-License-Identifier: Apache-2.0
+-->
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+    package="android.overlay.moto.common">
+    <overlay android:targetPackage="android" android:isStatic="true" android:priority="500"/>
+</manifest>
diff --git a/overlay/MotoFrameworksResTarget/res/values/config.xml b/overlay/MotoFrameworksResTarget/res/values/config.xml
new file mode 100644 (file)
index 0000000..c6086a6
--- /dev/null
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+     Copyright (C) 2022 The LineageOS Project
+     SPDX-License-Identifier: Apache-2.0
+-->
+<resources>
+    <!-- The OEM specified sensor type for the gesture to launch the camera app. -->
+    <integer name="config_cameraLaunchGestureSensorType">65540</integer>
+    <!-- The OEM specified sensor string type for the gesture to launch camera app, this value
+         must match the value of config_cameraLaunchGestureSensorType in OEM's HAL -->
+    <string translatable="false" name="config_cameraLaunchGestureSensorStringType">com.motorola.sensor.camera_activate</string>
+</resources>