From 58793a2ba5e38f5b084555d0a8f6fa0fad579c2e Mon Sep 17 00:00:00 2001 From: Avichal Rakesh Date: Mon, 6 Feb 2023 13:38:32 -0800 Subject: [PATCH] Enable UVC support on pantah Panther and Cheetah now support UVC gadget function. Setting this flag triggers the framework to surface the UVC specific functionality and UI. Test: Manually tested that the UVC functionality is enabled Bug: 242344221 Change-Id: Ied214f4f0d83759a872ce669f6adabaf02d478c0 --- device-cheetah.mk | 4 ++++ device-panther.mk | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/device-cheetah.mk b/device-cheetah.mk index af512a1..101022d 100644 --- a/device-cheetah.mk +++ b/device-cheetah.mk @@ -385,3 +385,7 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/window_extensions.mk) # Disable Settings large-screen optimization enabled by Window Extensions PRODUCT_SYSTEM_PROPERTIES += \ persist.settings.large_screen_opt.enabled=false + +# Enable DeviceAsWebcam support +PRODUCT_VENDOR_PROPERTIES += \ + ro.usb.uvc.enabled=true diff --git a/device-panther.mk b/device-panther.mk index e6ecd57..ab5739c 100644 --- a/device-panther.mk +++ b/device-panther.mk @@ -369,3 +369,7 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/window_extensions.mk) # Disable Settings large-screen optimization enabled by Window Extensions PRODUCT_SYSTEM_PROPERTIES += \ persist.settings.large_screen_opt.enabled=false + +# Enable DeviceAsWebcam support +PRODUCT_VENDOR_PROPERTIES += \ + ro.usb.uvc.enabled=true