From 5efa2900a60e66dca0e90dc419391c88a01f2ee3 Mon Sep 17 00:00:00 2001 From: achigoliu Date: Thu, 4 Aug 2022 11:49:22 +0800 Subject: [PATCH 1/3] Bundle tablet_core_hardware.xml Bug: 237110906 Test: Manual, verify build artifacts Signed-off-by: achigoliu Change-Id: I6f6f393aaae6a6f751d65e91fe28997fb1b77f3b Merged-In: I2e3a2c069302b518e00a10e362d2f08eb6518f66 --- device-tangorpro.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/device-tangorpro.mk b/device-tangorpro.mk index e796186..9f9ea19 100644 --- a/device-tangorpro.mk +++ b/device-tangorpro.mk @@ -189,3 +189,7 @@ PRODUCT_PACKAGES += \ # Use GmsCorePrebuilt y2022w28 USE_GMSCORE_PREBUILT_Y2022W28 := true + +# Device features +PRODUCT_COPY_FILES += \ + frameworks/native/data/etc/tablet_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/tablet_core_hardware.xml From f01909cc0412591272d6b2af5a3e31053d5208e5 Mon Sep 17 00:00:00 2001 From: Roger Liao Date: Tue, 9 Aug 2022 17:46:25 +0800 Subject: [PATCH 2/3] Remove GPS settings Bug: 240652154 Test: build pass Change-Id: I51a6ec9e078304ff46c6b7510021af4a0c386e44 --- device-tangorpro.mk | 9 --------- 1 file changed, 9 deletions(-) diff --git a/device-tangorpro.mk b/device-tangorpro.mk index 3788ffa..fa24c5d 100644 --- a/device-tangorpro.mk +++ b/device-tangorpro.mk @@ -116,15 +116,6 @@ FPC_MODULE_TYPE=1542_S # Trusty liboemcrypto.so PRODUCT_SOONG_NAMESPACES += vendor/google_devices/tangorpro/prebuilts -# GPS xml -ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) - PRODUCT_COPY_FILES += \ - device/google/tangorpro/gps.xml.l10:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml -else - PRODUCT_COPY_FILES += \ - device/google/tangorpro/gps_user.xml.l10:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml -endif - # DCK properties based on target PRODUCT_PROPERTY_OVERRIDES += \ ro.gms.dck.eligible_wcc=2 From 752f979adb78f0ce2fa82bf93c1c654dfc1c9244 Mon Sep 17 00:00:00 2001 From: Roger Liao Date: Tue, 9 Aug 2022 18:06:44 +0800 Subject: [PATCH 3/3] Disable Baro, Prox and HIFI sensors on Tablet products Adding the FLAG to exclude related sensor features. Bug: 240652154 Test: adb shell pm list features Change-Id: I80e55ff6496bff6d181a806807a194ce38c6bd44 --- device-tangorpro.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/device-tangorpro.mk b/device-tangorpro.mk index fa24c5d..f484d12 100644 --- a/device-tangorpro.mk +++ b/device-tangorpro.mk @@ -33,6 +33,9 @@ PRODUCT_PACKAGES += WifiOverlayT6pro # This flag need to be set before device/google/gs201/device.mk DISABLE_CAMERA_FS_AF := true +# Disable baro, prox, hifi sensor related xml with a disable flag. +DISABLE_SENSOR_BARO_PROX_HIFI := true + include device/google/tangorpro/audio/tangorpro/audio-tables.mk include device/google/gs201/device-shipping-common.mk