Clear the right uid's alarms, please

When we clear data for an app, we need to cancel the alarms for
that app's uid -- not the *calling* uid, which could be something
like the Settings app's, i.e. the system uid.  That's bad.

Bug: 72059961
Bug: 70670726
Test: manual
Change-Id: Ib6833ce2672bc6dfab6a4be6014a0301611576e2
This commit is contained in:
Christopher Tate
2018-01-16 17:45:44 -08:00
parent 182b3f994b
commit 5e5c171dea

View File

@@ -6243,7 +6243,7 @@ public class ActivityManagerService extends IActivityManager.Stub
// Clear its pending alarms
AlarmManagerInternal ami = LocalServices.getService(AlarmManagerInternal.class);
ami.removeAlarmsForUid(uid);
ami.removeAlarmsForUid(appInfo.uid);
}
} catch (RemoteException e) {
}