battery: disable wireless for pts battery test

Disable wireless charging during drain, usb charging,
and charger stress test
  - vendor.disable.wlc 1
If device is placed onto dreamliner and shutdwon(drain out),
it would boot up by DC_CHG and keep shutdown(0%)-boot up
(by DC_CHG) continuously. 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: 204211357
Test: set the property manually and query the result from file node.
Change-Id: I3ae2460f964b12924c3432d7f84203e2d802aa5f
Signed-off-by: Ken Tsou <kentsou@google.com>
(synced from commit 6e0bb1cb11b05768d04767e85cd28eaef212f305)
This commit is contained in:
Ken Tsou 2022-03-16 19:12:42 +08:00 committed by TreeHugger Robot
parent d92fb5e527
commit 27b511c302
2 changed files with 12 additions and 0 deletions

View file

@ -216,3 +216,9 @@ PRODUCT_PACKAGES += \
# SKU specific RROs # SKU specific RROs
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \
SettingsOverlayGFE4J SettingsOverlayGFE4J
# userdebug specific
ifneq (,$(filter userdebug 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

View file

@ -208,3 +208,9 @@ PRODUCT_PACKAGES += \
# SKU specific RROs # SKU specific RROs
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \
SettingsOverlayG03Z5 SettingsOverlayG03Z5
# userdebug specific
ifneq (,$(filter userdebug 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