summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Bestas <mkbestas@lineageos.org>2025-09-14 18:05:36 +0300
committerSiluxsept <ronny.horn.rh@gmail.com>2025-09-22 18:44:38 +0200
commite3bf162ded3fce0ddfc4990c96e692b9aca3e137 (patch)
tree893d5a8d00bd67f8869587a3d13e34da1b0bc5ab
parent321e3028170444d419f339e45ad157929a330035 (diff)
redbull: Remove userdebug/eng configuration
Change-Id: Ib41bb297a37783e677e04ed36d6518d0caec5b5d
-rw-r--r--device-common.mk115
-rw-r--r--init.hardware.diag.rc.userdebug117
-rw-r--r--init.hardware.ipa.rc.userdebug19
-rw-r--r--init.hardware.mpssrfs.rc.userdebug11
4 files changed, 4 insertions, 258 deletions
diff --git a/device-common.mk b/device-common.mk
index 971b7a29..1f6f2738 100644
--- a/device-common.mk
+++ b/device-common.mk
@@ -93,19 +93,10 @@ PRODUCT_COPY_FILES += \
MSM_VIDC_TARGET_LIST := lito # Get the color format from kernel headers
MASTER_SIDE_CP_TARGET_LIST := lito # ION specific settings
-ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
- PRODUCT_COPY_FILES += \
- $(LOCAL_PATH)/init.hardware.mpssrfs.rc.userdebug:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.$(PRODUCT_PLATFORM).mpssrfs.rc
- PRODUCT_COPY_FILES += \
- $(LOCAL_PATH)/init.hardware.diag.rc.userdebug:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.$(PRODUCT_PLATFORM).diag.rc
- PRODUCT_COPY_FILES += \
- $(LOCAL_PATH)/init.hardware.ipa.rc.userdebug:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.$(PRODUCT_PLATFORM).ipa.rc
-else
- PRODUCT_COPY_FILES += \
- $(LOCAL_PATH)/init.hardware.mpssrfs.rc.user:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.$(PRODUCT_PLATFORM).mpssrfs.rc
- PRODUCT_COPY_FILES += \
- $(LOCAL_PATH)/init.hardware.diag.rc.user:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.$(PRODUCT_PLATFORM).diag.rc
-endif
+PRODUCT_COPY_FILES += \
+ $(LOCAL_PATH)/init.hardware.mpssrfs.rc.user:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.$(PRODUCT_PLATFORM).mpssrfs.rc
+PRODUCT_COPY_FILES += \
+ $(LOCAL_PATH)/init.hardware.diag.rc.user:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.$(PRODUCT_PLATFORM).diag.rc
# A/B support
PRODUCT_PACKAGES += \
@@ -139,10 +130,6 @@ AB_OTA_POSTINSTALL_CONFIG += \
PRODUCT_PACKAGES += \
update_engine_sideload
-PRODUCT_PACKAGES_DEBUG += \
- f2fs_io \
- check_f2fs
-
PRODUCT_PROPERTY_OVERRIDES += \
ro.crypto.volume.filenames_mode=aes-256-cts
@@ -160,22 +147,9 @@ PRODUCT_PACKAGES += \
PRODUCT_PACKAGES += \
android.hardware.contexthub-service.generic
-# CHRE tools
-ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
-PRODUCT_PACKAGES += \
- chre_power_test_client \
- chre_test_client
-endif
-
# Enable project quotas and casefolding for emulated storage without sdcardfs
$(call inherit-product, $(SRC_TARGET_DIR)/product/emulated_storage.mk)
-# The following modules are included in debuggable builds only.
-PRODUCT_PACKAGES_DEBUG += \
- bootctl \
- r.vendor \
- update_engine_client
-
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.camera.concurrent.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.concurrent.xml \
frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.flash-autofocus.xml \
@@ -397,13 +371,6 @@ PRODUCT_PROPERTY_OVERRIDES += \
PRODUCT_PROPERTY_OVERRIDES += \
persist.vendor.ims.mm_minqp=1
-# Google Camera HAL test libraries in debug builds
-ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
-PRODUCT_PACKAGES_DEBUG += \
- libgoogle_camera_hal_proprietary_tests \
- libgoogle_camera_hal_tests
-endif
-
PRODUCT_PACKAGES += \
fs_config_dirs \
fs_config_files
@@ -431,19 +398,12 @@ ENABLE_VENDOR_RIL_SERVICE := true
USE_QCRIL_OEMHOOK := true
HOSTAPD := hostapd
-ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
-HOSTAPD += hostapd_cli
-endif
PRODUCT_PACKAGES += $(HOSTAPD)
WPA := wpa_supplicant.conf
WPA += wpa_supplicant
PRODUCT_PACKAGES += $(WPA)
-ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
-PRODUCT_PACKAGES += wpa_cli
-endif
-
# Wifi
PRODUCT_PACKAGES += \
android.hardware.wifi-service \
@@ -475,15 +435,6 @@ PRODUCT_PACKAGES += \
android.hardware.bluetooth.audio@2.0-impl \
android.hardware.audio.service
-ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
-PRODUCT_PACKAGES += \
- tinyplay \
- tinycap \
- tinymix \
- tinypcminfo \
- cplay
-endif
-
# Audio hal xmls
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/audio/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml
@@ -528,24 +479,10 @@ PRODUCT_COPY_FILES += \
PRODUCT_PROPERTY_OVERRIDES += \
vendor.audio.snd_card.open.retries=50
-
-ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
-# Subsystem ramdump
-PRODUCT_PROPERTY_OVERRIDES += \
- persist.vendor.sys.ssr.enable_ramdumps=1
-endif
-
# Subsystem silent restart
PRODUCT_PROPERTY_OVERRIDES += \
persist.vendor.sys.ssr.restart_level=modem,adsp
-ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
-# Sensor debug flag
-PRODUCT_PROPERTY_OVERRIDES += \
- persist.vendor.debug.ash.logger=0 \
- persist.vendor.debug.ash.logger.time=0
-endif
-
# setup dalvik vm configs
$(call inherit-product, frameworks/native/build/phone-xhdpi-6144-dalvik-heap.mk)
@@ -553,16 +490,6 @@ $(call inherit-product, frameworks/native/build/phone-xhdpi-6144-dalvik-heap.mk)
PRODUCT_PACKAGES += \
charger_res_images
-ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
-# b/36703476: Set default log size to 1M
-PRODUCT_PROPERTY_OVERRIDES += \
- ro.logd.size=1M
-# b/114766334: persist all logs by default rotating on 30 files of 1MiB
-PRODUCT_PROPERTY_OVERRIDES += \
- logd.logpersistd=logcatd \
- logd.logpersistd.size=30
-endif
-
# Storage: for factory reset protection feature
PRODUCT_PROPERTY_OVERRIDES += \
ro.frp.pst=/dev/block/bootdevice/by-name/frp
@@ -603,23 +530,11 @@ PRODUCT_PROPERTY_OVERRIDES += \
ro.vendor.radio.log_prefix="modem_log_"
# Enable modem logging for debug
-ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
-PRODUCT_PROPERTY_OVERRIDES += \
- persist.vendor.sys.modem.diag.mdlog=true
-else
PRODUCT_PROPERTY_OVERRIDES += \
persist.vendor.sys.modem.diag.mdlog=false
-endif
PRODUCT_PROPERTY_OVERRIDES += \
persist.vendor.sys.modem.diag.mdlog_br_num=5
-# Enable tcpdump_logger on eng
-ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
- PRODUCT_PROPERTY_OVERRIDES += \
- persist.vendor.tcpdump.log.alwayson=false \
- persist.vendor.tcpdump.log.br_num=5
-endif
-
# Preopt SystemUI.
PRODUCT_DEXPREOPT_SPEED_APPS += SystemUIGoogle # For internal
PRODUCT_DEXPREOPT_SPEED_APPS += SystemUI # For AOSP
@@ -634,12 +549,6 @@ TARGET_LMKD_STATS_LOG := true
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/init.gadgethal.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.gadgethal.sh
-# default usb oem functions
-ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
- PRODUCT_PROPERTY_OVERRIDES += \
- persist.vendor.usb.usbradio.config=diag
-endif
-
# Enable app/sf phase offset as durations. The numbers below are translated from the existing
# positive offsets by finding the duration app/sf will have with the offsets.
# For SF the previous value was 6ms which under 16.6ms vsync time (60Hz) will leave SF with ~10.5ms
@@ -707,11 +616,6 @@ PRODUCT_PROPERTY_OVERRIDES += \
ro.vendor.build.svn=76
endif
-# Enable iwlan service logging for debug
-ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
- PRODUCT_PROPERTY_OVERRIDES += persist.vendor.iwlan.logging.logcat=true
-endif
-
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/powerhint.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.json
@@ -803,19 +707,8 @@ PRODUCT_PRODUCT_PROPERTIES += \
ro.thermal_warmreset = true \
# Vendor verbose logging default property
-ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
-PRODUCT_PROPERTY_OVERRIDES += \
- persist.vendor.verbose_logging_enabled=true
-else
PRODUCT_PROPERTY_OVERRIDES += \
persist.vendor.verbose_logging_enabled=false
-endif
-
-# Disable Rescue Party on eng build
-ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
-PRODUCT_PRODUCT_PROPERTIES += \
- persist.sys.disable_rescue=true
-endif
# Set support one-handed mode
PRODUCT_PRODUCT_PROPERTIES += \
diff --git a/init.hardware.diag.rc.userdebug b/init.hardware.diag.rc.userdebug
deleted file mode 100644
index 16225b95..00000000
--- a/init.hardware.diag.rc.userdebug
+++ /dev/null
@@ -1,117 +0,0 @@
-#
-# Copyright (C) 2018 The Android Open-Source Project
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-on init
- chmod 666 /dev/diag
-
-on post-fs-data
- # Modem logging collection
- mkdir /data/vendor/radio 0777 radio radio
- mkdir /data/vendor/radio/diag_logs 0777 system system
- rm /data/vendor/radio/diag_logs/logs/diag_poweron_log.qmdl
- # WLAN logging collection
- mkdir /data/vendor/wifi 0777 system system
- mkdir /data/vendor/wifi/cnss_diag 0777 system system
-
-service diag_mdlog_start /vendor/bin/diag_mdlog
- class late_start
- user shell
- group system diag media_rw
- socket diag_router stream 0666 system system
- disabled
- oneshot
-
-service diag_mdlog_stop /vendor/bin/diag_mdlog -k
- class late_start
- user shell
- group system diag media_rw
- disabled
- oneshot
-
-on boot && property:persist.vendor.sys.modem.diag.mdlog=*
- rm /data/vendor/radio/diag_logs/diag_mdlog_pid
- setprop vendor.sys.modem.diag.mdlog ${persist.vendor.sys.modem.diag.mdlog}
-
-on property:vendor.sys.modem.diag.mdlog=true && property:persist.vendor.verbose_logging_enabled=true
- start diag_mdlog_start
-
-on property:vendor.sys.modem.diag.mdlog=false
- start diag_mdlog_stop
-
-on property:persist.vendor.sys.cnss.diag_qxdm=true
- start vendor.cnss_diag
-
-on property:persist.vendor.sys.cnss.diag_qxdm=false
- stop vendor.cnss_diag
-
-on property:persist.vendor.sys.cnss.diag_txt=true
- start vendor.cnss_diag_txt
-
-on property:persist.vendor.sys.cnss.diag_txt=false
- stop vendor.cnss_diag_txt
-
-service vendor.cnss_diag /vendor/bin/cnss_diag -q -u -w
- class late_start
- user system
- group system
- disabled
- oneshot
-
-service vendor.cnss_diag_txt /vendor/bin/cnss_diag -s -f -P -m /data/vendor/wifi/cnss_diag/cnss_diag.conf -t HELIUM
- class late_start
- user system
- group system
- disabled
- oneshot
-
-on property:vendor.debug.ramdump.force_crash=true
- write /proc/sysrq-trigger "c"
-
-on property:ro.vendor.bluetooth.ftm_enabled=true
- start ftmd
-
-service ftmd /vendor/bin/ftmdaemon
- class late_start
- user root
- group bluetooth net_bt_admin misc diag net_bt
- disabled
- oneshot
-
-on property:vendor.sys.logger.bluetooth=true
- setprop persist.vendor.service.bdroid.snooplog true
- setprop persist.vendor.service.bdroid.fwsnoop true
-
-on property:vendor.sys.logger.bluetooth=false
- setprop persist.vendor.service.bdroid.snooplog false
- setprop persist.vendor.service.bdroid.fwsnoop false
-
-on property:persist.bluetooth.btsnoopenable=true
- setprop persist.vendor.service.bdroid.soclog true
-
-on property:persist.bluetooth.btsnoopenable=false
- setprop persist.vendor.service.bdroid.soclog false
-
-on property:vendor.usb.config=*
- start usbd
-
-on property:persist.vendor.usb.usbradio.config=*
- start usbd
-
-on property:power.battery_input.suspended=true
- write /sys/kernel/debug/google_charger/input_suspend 1
-
-on property:power.battery_input.suspended=false
- write /sys/kernel/debug/google_charger/input_suspend 0
diff --git a/init.hardware.ipa.rc.userdebug b/init.hardware.ipa.rc.userdebug
deleted file mode 100644
index a690c0d4..00000000
--- a/init.hardware.ipa.rc.userdebug
+++ /dev/null
@@ -1,19 +0,0 @@
-#
-# Copyright (C) 2018 The Android Open-Source Project
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-on boot
- # Enable RmNet IPA3 TX timeout detection
- write /d/ipawwan/debug 1
diff --git a/init.hardware.mpssrfs.rc.userdebug b/init.hardware.mpssrfs.rc.userdebug
deleted file mode 100644
index 5939bfc3..00000000
--- a/init.hardware.mpssrfs.rc.userdebug
+++ /dev/null
@@ -1,11 +0,0 @@
-on post-fs-data
- # Modem Remote FS
- mkdir /data/vendor/rfs 0770 vendor_rfs vendor_rfs
- mkdir /data/vendor/rfs/mpss 0770 vendor_rfs vendor_rfs
- mkdir /data/vendor/tombstones/rfs 0770 vendor_rfs vendor_rfs
- write /data/vendor/rfs/mpss/mcfg_nv_list_flag "1"
- chown vendor_rfs vendor_rfs /data/vendor/rfs/mpss/mcfg_nv_list_flag
- chmod 0700 /data/vendor/rfs/mpss/mcfg_nv_list_flag
-
-on property:vendor.sys.modem.diag.efsdump=true
- chmod 0660 /data/vendor/rfs/mpss/modem_efs