commit | 189eff767df3c648cb23f533b36c849a49515141 | [log] [tgz] |
---|---|---|
author | Guang Zhu <guangzhu@google.com> | Mon Oct 21 17:35:27 2013 -0700 |
committer | Guang Zhu <guangzhu@google.com> | Tue Oct 22 19:02:36 2013 -0700 |
tree | d338d4974167c89e04c746ce3d6235b62c7cc071 | |
parent | 1cd52bc7a33e6a3429777713f6349135da0d7390 [diff] |
prevent runtime restart loop in charging test now that it's possible to get battery level without runtime, it's possible to enter charging test with framework in a bad state. to make charging more effective, we try to detect if runtime is up; in case it's not, we do a 'adb shell stop' to prevent from 'charging' device while it's in a runtime restart loop. Change-Id: Ie3c62ef6c6850ecac5ab077a7f100799ed5cc3c5