From 4c3321d29ae98a466bce7a837f7f03ebdd556979 Mon Sep 17 00:00:00 2001 From: Ethan Chen Date: Wed, 28 Nov 2018 20:41:20 -0800 Subject: [PATCH] felix: Disable userdebug diagnostics * We can't make use of most of the debug features on userdebug builds. Change-Id: I31df2090b31243b742c4e82dc08cd8491dada54f --- audio/felix/audio-tables.mk | 4 ++-- device-felix.mk | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/audio/felix/audio-tables.mk b/audio/felix/audio-tables.mk index 4e788d1..b63db17 100644 --- a/audio/felix/audio-tables.mk +++ b/audio/felix/audio-tables.mk @@ -65,8 +65,8 @@ PRODUCT_COPY_FILES += \ device/google/felix/audio/$(AUDIO_TABLE_FOLDER)/tuning/waves/waves_config.ini:$(TARGET_COPY_OUT_VENDOR)/etc/waves_config.ini \ device/google/felix/audio/$(AUDIO_TABLE_FOLDER)/tuning/waves/waves_preset.mps:$(TARGET_COPY_OUT_VENDOR)/etc/waves_preset.mps -# userdebug specific -ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) +# eng specific +ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT))) PRODUCT_COPY_FILES += \ device/google/felix/audio/$(AUDIO_TABLE_FOLDER)/tuning/fortemedia/BLUETOOTH.mods:$(TARGET_COPY_OUT_VENDOR)/etc/aoc/BLUETOOTH.mods \ device/google/felix/audio/$(AUDIO_TABLE_FOLDER)/tuning/fortemedia/HANDSFREE.mods:$(TARGET_COPY_OUT_VENDOR)/etc/aoc/HANDSFREE.mods \ diff --git a/device-felix.mk b/device-felix.mk index a83c16a..0162137 100644 --- a/device-felix.mk +++ b/device-felix.mk @@ -166,11 +166,11 @@ PRODUCT_PROPERTY_OVERRIDES += \ persist.vendor.audio.spatializer.speaker_enabled=true # Bluetooth SAR test tool -PRODUCT_PACKAGES_DEBUG += \ +PRODUCT_PACKAGES_ENG += \ sar_test # Bluetooth hci_inject test tool -PRODUCT_PACKAGES_DEBUG += \ +PRODUCT_PACKAGES_ENG += \ hci_inject # Bluetooth @@ -284,7 +284,7 @@ PRODUCT_COPY_FILES += \ frameworks/native/data/etc/android.hardware.sensor.hinge_angle.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.hinge_angle.xml # Location -ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) +ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT))) PRODUCT_COPY_FILES += \ device/google/felix/location/gps.xml.f10:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml \ device/google/felix/location/lhd.conf.f10:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/lhd.conf \ @@ -346,8 +346,8 @@ PRODUCT_VENDOR_PROPERTIES += \ PRODUCT_PRODUCT_PROPERTIES += \ persist.bluetooth.opus.enabled=true -# WLC userdebug specific -ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) +# WLC eng specific +ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT))) PRODUCT_COPY_FILES += \ device/google/gs201/init.hardware.wlc.rc.userdebug:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.wlc.rc endif @@ -365,7 +365,7 @@ PRODUCT_PRODUCT_PROPERTIES += \ bluetooth.profile.vcp.controller.enabled=true \ # Override BQR mask to enable LE Audio Choppy report -ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) +ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT))) PRODUCT_PRODUCT_PROPERTIES += \ persist.bluetooth.bqr.event_mask=262238 else @@ -392,7 +392,7 @@ PRODUCT_PRODUCT_PROPERTIES += \ persist.bluetooth.leaudio.allow_list=SM-R510 # Bluetooth EWP test tool -PRODUCT_PACKAGES_DEBUG += \ +PRODUCT_PACKAGES_ENG += \ ewp_tool # Enable DeviceAsWebcam support