Merge "Check for running app op when checking recent"
This commit is contained in:
committed by
Android (Google) Code Review
commit
5e96902fb1
@@ -241,7 +241,7 @@ public class PermissionUsageHelper {
|
||||
opEntry.getAttributedOpEntries().get(attributionTag);
|
||||
|
||||
long lastAccessTime = attrOpEntry.getLastAccessTime(opFlags);
|
||||
if (lastAccessTime < recentThreshold) {
|
||||
if (lastAccessTime < recentThreshold && !attrOpEntry.isRunning()) {
|
||||
continue;
|
||||
}
|
||||
if (!isUserSensitive(packageName, user, op)
|
||||
|
||||
Reference in New Issue
Block a user