ginkgo: overlay: Import Aperture RRO
Change-Id: I4ba33f4306f402982f4951404dd39e3881e22991
This commit is contained in:
@@ -71,6 +71,7 @@ DEVICE_PACKAGE_OVERLAYS += \
|
||||
$(DEVICE_PATH)/overlay-lineage
|
||||
|
||||
PRODUCT_PACKAGES += \
|
||||
ApertureGinkgo \
|
||||
LineageSDKGinkgo
|
||||
|
||||
# Shipping API level
|
||||
|
||||
5
rro_overlays/ApertureGinkgo/Android.bp
Normal file
5
rro_overlays/ApertureGinkgo/Android.bp
Normal file
@@ -0,0 +1,5 @@
|
||||
runtime_resource_overlay {
|
||||
name: "ApertureGinkgo",
|
||||
theme: "ApertureGinkgo",
|
||||
product_specific: true,
|
||||
}
|
||||
10
rro_overlays/ApertureGinkgo/AndroidManifest.xml
Normal file
10
rro_overlays/ApertureGinkgo/AndroidManifest.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="org.lineageos.aperture.overlay.xiaomi_ginkgo">
|
||||
|
||||
<application android:hasCode="false" android:allowBackup="false"/>
|
||||
<overlay
|
||||
android:isStatic="true"
|
||||
android:priority="750"
|
||||
android:targetPackage="org.lineageos.aperture" />
|
||||
</manifest>
|
||||
39
rro_overlays/ApertureGinkgo/res/values/config.xml
Normal file
39
rro_overlays/ApertureGinkgo/res/values/config.xml
Normal file
@@ -0,0 +1,39 @@
|
||||
<?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>20</item>
|
||||
</string-array>
|
||||
|
||||
<!-- An array of triplets made of (camera ID, qualities, frame rates).
|
||||
These video modes will be added to the available
|
||||
quality/frame rate combinations of a camera device.
|
||||
Make sure the device is able to handle those configurations
|
||||
and maintain a stable frame rate at any condition.
|
||||
Note that you can't add video qualities that aren't
|
||||
exposed by the camera, only new frame rates.
|
||||
Valid values of resolution are:
|
||||
- "sd" (480p)
|
||||
- "hd" (720p)
|
||||
- "fhd" (1080p)
|
||||
- "uhd" (2160p)
|
||||
Valid values of frame rate are:
|
||||
- "24"
|
||||
- "30"
|
||||
- "60"
|
||||
- "120"
|
||||
Additionally you can prepend `-` to frame rate to mark it as unsupported.
|
||||
Example:
|
||||
<string-array name="config_additionalVideoConfigurations">
|
||||
<item>0</item> <item>sd|hd|fhd</item> <item>60|120</item>
|
||||
<item>0</item> <item>uhd</item> <item>-60</item>
|
||||
<item>1</item> <item>sd|hd|fhd</item> <item>60</item>
|
||||
</string-array>
|
||||
-->
|
||||
<string-array name="config_additionalVideoConfigurations">
|
||||
<item>0</item> <item>sd|hd|fhd</item> <item>60</item>
|
||||
</string-array>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user