From ac99727658b18dc7b617aaf598920d4856f3ca8a Mon Sep 17 00:00:00 2001 From: Darren Hsu Date: Wed, 31 Jan 2024 14:13:07 +0800 Subject: [PATCH] odpm: replace MMWAVE rail with AUR rail for SUB6 only sku Bug: 323103160 Test: dumpsys android.hardware.power.stats.IPowerStats/default Change-Id: I9e8bacce73f1b81c1c6b8ce7fbf1bc8fef8ec40c Signed-off-by: Darren Hsu --- conf/init.caiman.rc | 6 ++++++ conf/init.komodo.rc | 6 ++++++ conf/init.tokay.rc | 6 ++++++ 3 files changed, 18 insertions(+) diff --git a/conf/init.caiman.rc b/conf/init.caiman.rc index d5ba716b..d33ed77c 100644 --- a/conf/init.caiman.rc +++ b/conf/init.caiman.rc @@ -60,6 +60,12 @@ on property:persist.vendor.touch_sensitivity_mode=0 && property:sys.boot_complet on property:persist.vendor.touch_sensitivity_mode=1 && property:sys.boot_completed=1 write /sys/devices/virtual/goog_touch_interface/gti.0/screen_protector_mode_enabled 1 +# ODPM +on early-boot && property:ro.boot.hardware.sku=GEC77 + write /sys/bus/iio/devices/iio:device0/enabled_rails "CH11=BUCK12S" +on early-boot && property:ro.boot.hardware.sku=GWVK6 + write /sys/bus/iio/devices/iio:device0/enabled_rails "CH11=BUCK12S" + # Start the twoshay touch service on property:sys.boot_completed=1 chown system input /dev/touch_offload diff --git a/conf/init.komodo.rc b/conf/init.komodo.rc index cc471732..4924ae0a 100644 --- a/conf/init.komodo.rc +++ b/conf/init.komodo.rc @@ -64,6 +64,12 @@ on property:persist.vendor.touch_sensitivity_mode=0 && property:sys.boot_complet on property:persist.vendor.touch_sensitivity_mode=1 && property:sys.boot_completed=1 write /sys/devices/virtual/goog_touch_interface/gti.0/screen_protector_mode_enabled 1 +# ODPM +on early-boot && property:ro.boot.hardware.sku=GZC4K + write /sys/bus/iio/devices/iio:device0/enabled_rails "CH11=BUCK12S" +on early-boot && property:ro.boot.hardware.sku=GQ57S + write /sys/bus/iio/devices/iio:device0/enabled_rails "CH11=BUCK12S" + # Start the twoshay touch service on property:sys.boot_completed=1 chown system input /dev/touch_offload diff --git a/conf/init.tokay.rc b/conf/init.tokay.rc index 0cafe305..7ad036c5 100644 --- a/conf/init.tokay.rc +++ b/conf/init.tokay.rc @@ -56,6 +56,12 @@ on property:persist.vendor.touch_sensitivity_mode=0 && property:sys.boot_complet on property:persist.vendor.touch_sensitivity_mode=1 && property:sys.boot_completed=1 write /sys/devices/virtual/goog_touch_interface/gti.0/screen_protector_mode_enabled 1 +# ODPM +on early-boot && property:ro.boot.hardware.sku=GUR25 + write /sys/bus/iio/devices/iio:device0/enabled_rails "CH11=BUCK12S" +on early-boot && property:ro.boot.hardware.sku=G1B60 + write /sys/bus/iio/devices/iio:device0/enabled_rails "CH11=BUCK12S" + # Start the twoshay touch service on property:sys.boot_completed=1 chown system input /dev/touch_offload