Check for running app op when checking recent

Ensure that it is checked if an app op is running before filtering it
due to an old "lastAccessTime".

Fixes: 177089983
Test: manual
Change-Id: Ibeb344ad691994a93bde1a93794093d7d4fc920c
This commit is contained in:
Nate Myren
2021-01-08 13:35:00 -08:00
parent f88fbe5128
commit caf1078e52

View File

@@ -240,7 +240,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)