DeviceAsWebcam: Add overlays for physical camera id

Using physical streams reduces power since camera consumes
a bulk of the power.

Bug: 242346116

Test: Manual webcam use; See power reduction

Change-Id: Ibfc0698f410c90049f77f0a071b8b4999fb1cfdd
Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
This commit is contained in:
Jayant Chowdhary 2023-05-25 20:16:27 +00:00
parent ec05035806
commit e3669c9af9
10 changed files with 52 additions and 0 deletions

View file

@ -193,6 +193,10 @@ PRODUCT_PACKAGES += \
NoCutoutOverlay \ NoCutoutOverlay \
AvoidAppsInCutoutOverlay AvoidAppsInCutoutOverlay
# Android DeviceAsWebcam specific overlay
PRODUCT_PACKAGES += \
DeviceAsWebcamOriole
# SKU specific RROs # SKU specific RROs
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \
SettingsOverlayGR1YH \ SettingsOverlayGR1YH \

View file

@ -205,6 +205,10 @@ PRODUCT_PACKAGES += \
NoCutoutOverlay \ NoCutoutOverlay \
AvoidAppsInCutoutOverlay AvoidAppsInCutoutOverlay
# Android DeviceAsWebcam specific overlay
PRODUCT_PACKAGES += \
DeviceAsWebcamRaven
# Fingerprint antispoof property # Fingerprint antispoof property
PRODUCT_PRODUCT_PROPERTIES +=\ PRODUCT_PRODUCT_PROPERTIES +=\
persist.vendor.fingerprint.disable.fake.override=none persist.vendor.fingerprint.disable.fake.override=none

View file

@ -0,0 +1,10 @@
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
runtime_resource_overlay {
name: "DeviceAsWebcamOriole",
certificate: "platform",
product_specific: true,
sdk_version: "current",
}

View file

@ -0,0 +1,10 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.google.android.overlay.DeviceAsWebcam"
android:versionCode="1"
android:versionName="1.0" >
<application android:hasCode="false" />
<overlay
android:targetPackage="com.android.DeviceAsWebcam"
android:isStatic="true"
android:priority="1"/>
</manifest>

View file

@ -0,0 +1 @@
include platform/frameworks/av:/camera/OWNERS

View file

@ -0,0 +1 @@
{"0": {"3" : "UW"}}

View file

@ -0,0 +1,10 @@
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
runtime_resource_overlay {
name: "DeviceAsWebcamRaven",
certificate: "platform",
product_specific: true,
sdk_version: "current",
}

View file

@ -0,0 +1,10 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.google.android.overlay.DeviceAsWebcam"
android:versionCode="1"
android:versionName="1.0" >
<application android:hasCode="false" />
<overlay
android:targetPackage="com.android.DeviceAsWebcam"
android:isStatic="true"
android:priority="1"/>
</manifest>

View file

@ -0,0 +1 @@
include platform/frameworks/av:/camera/OWNERS

View file

@ -0,0 +1 @@
{"0": {"3" : "UW"}}