Make reset lockout PendingIntent immutable

Fixes: 170159763
Test: Lockout on keyguard, wait 30s, able to auth again
Change-Id: I463f4ff194254c6e4692e524af744f4b10d9ed35
This commit is contained in:
Kevin Chyn
2020-10-16 12:54:42 -07:00
parent 1a77a3bea7
commit 34445bb0eb

View File

@@ -135,6 +135,6 @@ public class LockoutFrameworkImpl implements LockoutTracker {
private PendingIntent getLockoutResetIntentForUser(int userId) {
return PendingIntent.getBroadcast(mContext, userId,
new Intent(ACTION_LOCKOUT_RESET).putExtra(KEY_LOCKOUT_RESET_USER, userId),
PendingIntent.FLAG_UPDATE_CURRENT);
PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_IMMUTABLE);
}
}