CHERRY-PICK: Candy: Add wipe option support per factory_wipe_option
1. battery_cut_off: add discharge battery to ensure battery capacity is
in desired range before battery cut-off
2. shutdown: directly shutdown after wiping
3. rma_battery_cut_off: skip checking battery capacity for rma battery
cut-off
BUG=chrome-os-partner:35369
TEST=Factory wipe and check the different wipe option behavior
Change-Id: I53be31f6a2be72d59820f2e69d73c172771ff08a
Reviewed-on: https://chromium-review.googlesource.com/240883
Reviewed-by: Bowgo Tsai <bowgotsai@chromium.org>
Commit-Queue: JAMES C Chen <james.c.chen@intel.com>
Tested-by: JAMES C Chen <james.c.chen@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/244283
Commit-Queue: Huki Huang <huki.huang@intel.com>
Tested-by: Nicole Li <nicole.li@intel.com>
(cherry picked from commit c63cae23c21629bae3ed8ac8030a9c842bcbc261)
Reviewed-on: https://chromium-review.googlesource.com/246113
Commit-Queue: Bowgo Tsai <bowgotsai@chromium.org>
Tested-by: Bowgo Tsai <bowgotsai@chromium.org>
6 files changed