Merge "Consistent reporting of failure conditions" into sc-dev

This commit is contained in:
Chris Tate
2021-07-28 21:19:45 +00:00
committed by Android (Google) Code Review

View File

@ -2603,7 +2603,7 @@ public class AlarmManagerService extends SystemService {
final int uid = mPackageManagerInternal.getPackageUid(packageName, 0, userId);
if (callingUid != uid && !UserHandle.isCore(callingUid)) {
throw new SecurityException("Uid " + callingUid
+ " cannot query hasScheduleExactAlarm for uid " + uid);
+ " cannot query hasScheduleExactAlarm for package " + packageName);
}
return (uid > 0) ? hasScheduleExactAlarmInternal(packageName, uid) : false;
}