clover: overlay: Configure aux camera for Aperture
[@jjpprrrr: camera ids 0: main camera 1: front facing camera Therefore, block the rest of the aux camera ids.] Change-Id: I543f078dd4dba30e1b22737d5c22d591e3fb34e6 Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com> Signed-off-by: pix106 <sbordenave@gmail.com>
This commit is contained in:
parent
4da632a176
commit
74369df033
4 changed files with 31 additions and 0 deletions
|
@ -45,6 +45,7 @@ DEVICE_PACKAGE_OVERLAYS += \
|
|||
$(DEVICE_PATH)/overlay
|
||||
|
||||
PRODUCT_PACKAGES += \
|
||||
CloverApertureOverlay \
|
||||
CloverFrameworksOverlay \
|
||||
CloverSystemUIOverlay
|
||||
|
||||
|
|
5
rro_overlay/CloverApertureOverlay/Android.bp
Normal file
5
rro_overlay/CloverApertureOverlay/Android.bp
Normal file
|
@ -0,0 +1,5 @@
|
|||
runtime_resource_overlay {
|
||||
name: "CloverApertureOverlay",
|
||||
theme: "CloverApertureOverlay",
|
||||
product_specific: true,
|
||||
}
|
9
rro_overlay/CloverApertureOverlay/AndroidManifest.xml
Normal file
9
rro_overlay/CloverApertureOverlay/AndroidManifest.xml
Normal file
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="org.lineageos.aperture.overlay.clover">
|
||||
|
||||
<overlay
|
||||
android:isStatic="true"
|
||||
android:priority="750"
|
||||
android:targetPackage="org.lineageos.aperture" />
|
||||
</manifest>
|
16
rro_overlay/CloverApertureOverlay/res/values/config.xml
Normal file
16
rro_overlay/CloverApertureOverlay/res/values/config.xml
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<!-- Enable auxiliary cameras selector. -->
|
||||
<bool name="config_enableAuxCameras">true</bool>
|
||||
|
||||
<!-- List of ID of auxiliary cameras that must be ignored by the app. -->
|
||||
<string-array name="config_ignoredAuxCameraIds">
|
||||
<item>2</item>
|
||||
<item>3</item>
|
||||
<item>4</item>
|
||||
<item>5</item>
|
||||
<item>6</item>
|
||||
<item>7</item>
|
||||
<item>8</item>
|
||||
</string-array>
|
||||
</resources>
|
Loading…
Reference in a new issue