Skip to content

Commit

Permalink
martini: Set correct front camera id for FaceUnlockService
Browse files Browse the repository at this point in the history
Co-authored-by: bheatleyyy <[email protected]>
Change-Id: Ie20ba329f816a2573f68f0047c32e8cd295bcdef
  • Loading branch information
2 people authored and inferno0230 committed Jan 10, 2023
1 parent c6a8adc commit ed06a2d
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
2 changes: 2 additions & 0 deletions device.mk
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,7 @@ DEVICE_PACKAGE_OVERLAYS += \

PRODUCT_ENFORCE_RRO_TARGETS := *
PRODUCT_PACKAGES += \
FaceUnlockServiceMartini \
CarrierConfigResCommon \
FrameworksResTarget \
OPlusFrameworksResCommon \
Expand Down Expand Up @@ -511,3 +512,4 @@ PRODUCT_BOOT_JARS += \

# Inherit from the proprietary files makefile.
$(call inherit-product, vendor/oneplus/martini/martini-vendor.mk)

4 changes: 4 additions & 0 deletions overlay/FaceUnlockServiceMartini/Android.bp
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
runtime_resource_overlay {
name: "FaceUnlockServiceMartini",
device_specific: true,
}
9 changes: 9 additions & 0 deletions overlay/FaceUnlockServiceMartini/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.pixelexperience.faceunlock.custom">

<overlay
android:isStatic="true"
android:priority="350"
android:targetPackage="org.pixelexperience.faceunlock" />
</manifest>
4 changes: 4 additions & 0 deletions overlay/FaceUnlockServiceMartini/res/values/config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<integer name="override_front_cam_id">1</integer>
</resources>

0 comments on commit ed06a2d

Please sign in to comment.