commit | ad346e12d57a41bf052900d16a9af27086d80782 | [log] [tgz] |
---|---|---|
author | ykhung <ykhung@google.com> | Mon Aug 09 15:14:07 2021 +0800 |
committer | YUKAI HUNG <ykhung@google.com> | Thu Aug 12 03:53:14 2021 +0000 |
tree | f369b35ee1754fb7ab8d0f25deb0b0304374ac75 | |
parent | 7863a996a71068036aeedd15c19a78903bffe9be [diff] |
[Robustness] protect get battery stats from DeadSystemException In some corner cases, we will receive the DeadSystemException from BatteryStatService when invoking getBatteryUsageStats() method. Before this issue is resolved by BatteryStatService team, we will add some protections to avoid Settings app is crashed. Bug: 195306545 Bug: 195467687 Test: make SettingsRoboTests Change-Id: I75fcf63f4f69d86d6dce0e12bd4d738b1219ae47