Commit Graph

1 Commits

Author SHA1 Message Date
Jack Wu e2bd20f2ce battery: 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: 117845723
Test: set the property manually and query the result from file node.
Signed-off-by: Jack Wu <wjack@google.com>
Signed-off-by: Maggie White <maggiewhite@google.com>
Change-Id: Ic5791c53f735caa19c73bae750651d774c0d4615
(cherry picked from commit bff033f25b8b41bc28b37d86b3c3ab3bb4deb3fb)
2020-05-29 21:22:39 +08:00