Properly blame the correct uid for wakeup alarms that don't have a WorkSource.

It was setting the uid to -1, but BatteryStats should be tracking the actual uid.

Bug: 28637246
Change-Id: If6577602e3fe59a95b5cece4fc99e704ba43c03e
This commit is contained in:
Joe Onorato
2016-05-09 10:10:29 -07:00
parent 1476d32b87
commit 78bcdf91ed

View File

@@ -3067,7 +3067,7 @@ class AlarmManagerService extends SystemService {
}
} else {
ActivityManagerNative.noteWakeupAlarm(
alarm.operation, -1, alarm.packageName, alarm.statsTag);
alarm.operation, alarm.uid, alarm.packageName, alarm.statsTag);
}
}
}