Typo caused an infinite loop causing a watchdog kill.
Change-Id: If9a8973c28e284d993d81ba7d6724f9575a30c92
final List<UserInfo> users = mUserManager.getUsers();
for (int i = 0; i < users.size(); i++) {
final UserInfo user = users.get(i);
- for (int j = mPowerSaveTempWhitelistAppIds.size() - 1; j >= 0; i--) {
+ for (int j = mPowerSaveTempWhitelistAppIds.size() - 1; j >= 0; j--) {
int appId = mPowerSaveTempWhitelistAppIds.keyAt(j);
int uid = UserHandle.getUid(user.id, appId);
updateRuleForAppIdleLocked(uid);