Add common RRO overlay to enable AOSP camera launch gesture

Change-Id: Ia2e124beb01f8be7625e894df1e28289a4cb4110
This commit is contained in:
dianlujitao 2022-11-04 21:14:41 +08:00
parent 2e86ad1f91
commit 5653c1c489
4 changed files with 42 additions and 0 deletions

11
overlay/Android.bp Normal file
View File

@ -0,0 +1,11 @@
//
// Copyright (C) 2022 The LineageOS Project
// SPDX-License-Identifier: Apache-2.0
//
phony {
name: "MotoCommonOverlay",
required: [
"FrameworksResMotoCommon",
]
}

View File

@ -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
}

View File

@ -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>

View File

@ -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>