Skip to content

Commit

Permalink
r5x: overlay: Configure aux camera for Aperture
Browse files Browse the repository at this point in the history
  • Loading branch information
gotenksIN authored and takumi021 committed Dec 12, 2022
1 parent ae4b128 commit b83eb1d
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 2 deletions.
3 changes: 2 additions & 1 deletion device.mk
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,8 @@ PRODUCT_PACKAGES += \
WifiOverlay \
FrameworksOverlay \
TetheringCOverlay \
BluetoothOverlay
BluetoothOverlay \
ApertureOverlay

# Power
PRODUCT_PACKAGES += \
Expand Down
4 changes: 4 additions & 0 deletions rro_overlay/ApertureOverlay/Android.bp
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
runtime_resource_overlay {
name: "ApertureOverlay",
system_ext_specific: true,
}
20 changes: 20 additions & 0 deletions rro_overlay/ApertureOverlay/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2019 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.lineageos.aperture.overlay.realme_r5x">

<overlay
android:isStatic="true"
android:priority="800"
android:targetPackage="org.lineageos.aperture" />
</manifest>
15 changes: 15 additions & 0 deletions rro_overlay/ApertureOverlay/res/values/bools.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2022 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<resources>
<bool name="config_enableAuxCameras">true</bool>
</resources>
2 changes: 1 addition & 1 deletion vendor.prop
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ persist.vendor.camera.eis.enable=1
persist.vendor.camera.ois.disable=1
persist.vendor.camera.expose.aux=1
persist.vendor.camera.perflock.enable=0
vendor.camera.aux.packagelist=org.codeaurora.snapcam,com.android.camera,org.lineageos.snap
vendor.camera.aux.packagelist=org.codeaurora.snapcam,com.android.camera,org.lineageos.aperture
vidc.enc.dcvs.extra-buff-count=2
vendor.camera.not.cts.apk=1
vendor.camera.not.ctsverify.apk=1
Expand Down

0 comments on commit b83eb1d

Please sign in to comment.