From 6e0bb1cb11b05768d04767e85cd28eaef212f305 Mon Sep 17 00:00:00 2001 From: Jack Wu Date: Thu, 17 Jan 2019 21:38:27 +0800 Subject: [PATCH 1/2] battery: raviole: disable wireless for pts battery test Disable wireless charging during drain, usb charging, and charger stress test - vendor.disable.wlc 1 If device put onto dreamliner and shutdwon(drain out), it would boot up by DC_CHG and keep shutdown(0%)-boot up (by DC_CHG) continously. To avoid this symptom, limit wireless current_max as 75000 after device boot up - persist.vendor.limit.wlc.current=1 How to verify: adb shell setprop vendor.disable.wlc 1 adb shell cat /sys/class/power_supply/wireless/online >>>> 0 adb shell setprop persist.vendor.limit.wlc.current 1 adb shell cat /sys/class/power_supply/dc/current_max >>>> 75000 Bug: 179094447 Test: set the property manually and query the result from file node. Change-Id: Ic5791c53f735caa19c73bae750651d774c0d4615 Signed-off-by: Ken Tsou (synced from commit 84d73dafb7e44bd195adcc4cbb16bad28728aedc) --- device-oriole.mk | 6 ++++++ device-raven.mk | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/device-oriole.mk b/device-oriole.mk index 6476916..c2754e7 100644 --- a/device-oriole.mk +++ b/device-oriole.mk @@ -95,3 +95,9 @@ PRODUCT_PRODUCT_PROPERTIES += ro.com.google.ime.kb_pad_port_b=10 # Display LBE PRODUCT_DEFAULT_PROPERTY_OVERRIDES += vendor.display.lbe.supported=1 + +# userdebug specific +ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) + PRODUCT_COPY_FILES += \ + device/google/gs101/init.hardware.wlc.rc.userdebug:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.$(PRODUCT_PLATFORM).wlc.rc +endif diff --git a/device-raven.mk b/device-raven.mk index e9af790..fedff0b 100644 --- a/device-raven.mk +++ b/device-raven.mk @@ -93,3 +93,9 @@ PRODUCT_DEFAULT_PROPERTY_OVERRIDES += vendor.display.lbe.supported=1 # PowerStats HAL PRODUCT_SOONG_NAMESPACES += device/google/raviole/powerstats/raven + +# userdebug specific +ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) + PRODUCT_COPY_FILES += \ + device/google/gs101/init.hardware.wlc.rc.userdebug:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.$(PRODUCT_PLATFORM).wlc.rc +endif From cb7d8ddca36a510507f98127455cc44c257b9fe7 Mon Sep 17 00:00:00 2001 From: Tai Kuo Date: Mon, 15 Mar 2021 14:46:47 +0800 Subject: [PATCH 2/2] raven: Launch twoshay during boot Bug: 174189880 Test: twoshay is launched Signed-off-by: Steve Pfetsch Change-Id: I9c4b2c760d4b004944728a3ebdeb4c0da937c10f Signed-off-by: Tai Kuo --- conf/init.raven.rc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/conf/init.raven.rc b/conf/init.raven.rc index 58a219e..b468737 100644 --- a/conf/init.raven.rc +++ b/conf/init.raven.rc @@ -38,6 +38,9 @@ on fs # FIXME(b/183223359): Only grant write access to SystemUI. chmod 0666 /sys/class/drm/card0/card0-DSI-1/panel/backlight/panel0-backlight/local_hbm_mode + # Start the twoshay touch service + start twoshay + on property:ro.revision=PROTO1.0 setprop persist.fingerprint.ghbm true