Snap for 10196038 from 2070d1fba3 to udc-qpr1-release

Change-Id: I69cea0f943415f8c545b06c5f12da78b523dae8c
This commit is contained in:
Android Build Coastguard Worker 2023-05-25 02:42:39 +00:00
commit 614e09e448
5 changed files with 27 additions and 0 deletions

View file

@ -34,3 +34,10 @@ license {
"NOTICE", "NOTICE",
], ],
} }
sh_binary {
name: "disable_contaminant_detection.sh",
src: "disable_contaminant_detection.sh",
vendor: true,
sub_dir: "hw",
}

View file

@ -790,6 +790,12 @@ on property:sys.boot_completed=1
# Set bg group throttle # Set bg group throttle
write /proc/vendor_sched/ug_bg_group_throttle 308 write /proc/vendor_sched/ug_bg_group_throttle 308
# Set uclamp.max for some groups, which could indicate cpu importance used in scheduling
write /proc/vendor_sched/bg_uclamp_max 512
write /proc/vendor_sched/sysbg_uclamp_max 512
write /proc/vendor_sched/ota_uclamp_max 512
write /proc/vendor_sched/dex2oat_uclamp_max 615
# Set PMU freq limit parameters # Set PMU freq limit parameters
write /sys/devices/system/cpu/cpufreq/policy0/sched_pixel/lcpi_threshold 2 write /sys/devices/system/cpu/cpufreq/policy0/sched_pixel/lcpi_threshold 2
write /sys/devices/system/cpu/cpufreq/policy0/sched_pixel/spc_threshold 59 write /sys/devices/system/cpu/cpufreq/policy0/sched_pixel/spc_threshold 59

View file

@ -195,6 +195,9 @@ on property:sys.usb.config=charger && property:sys.usb.configfs=1
on property:ro.bootmode=usbuwb on property:ro.bootmode=usbuwb
setprop persist.vendor.usb.usbradio.config uwb_acm setprop persist.vendor.usb.usbradio.config uwb_acm
on property:vendor.usb.contaminantdisable=true
exec /vendor/bin/hw/disable_contaminant_detection.sh
on property:persist.vendor.usb.displayport.enabled=1 on property:persist.vendor.usb.displayport.enabled=1
write /sys/class/typec/port0/port0.0/mode1/active "yes" write /sys/class/typec/port0/port0.0/mode1/active "yes"

View file

@ -359,6 +359,10 @@ PRODUCT_COPY_FILES += \
device/google/$(TARGET_BOARD_PLATFORM)/conf/fstab.persist:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.persist \ device/google/$(TARGET_BOARD_PLATFORM)/conf/fstab.persist:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.persist \
device/google/$(TARGET_BOARD_PLATFORM)/conf/fstab.modem:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.modem device/google/$(TARGET_BOARD_PLATFORM)/conf/fstab.modem:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.modem
# Shell scripts
PRODUCT_PACKAGES += \
disable_contaminant_detection.sh
include device/google/gs-common/insmod/insmod.mk include device/google/gs-common/insmod/insmod.mk
# Insmod config files # Insmod config files

View file

@ -0,0 +1,7 @@
#!/vendor/bin/sh
for f in /sys/devices/platform/10cb0000.hsi2c/i2c-*/*-0025; do
if [ -d $f ]; then
echo 0 > $f/contaminant_detection;
fi
done