DO NOT MERGE Fix listenerId in GeofenceManager am: a2f847e72f am: a743d5cb57

Change-Id: Idf60d0266084b57060f83d74e3dd206d7a172f5c
This commit is contained in:
Soonil Nagarkar
2020-04-16 00:01:17 +00:00
committed by Automerger Merge Worker

View File

@@ -253,7 +253,7 @@ public class GeofenceManager implements LocationListener, PendingIntent.OnFinish
int op = CallerIdentity.asAppOp(identity.permissionLevel); int op = CallerIdentity.asAppOp(identity.permissionLevel);
if (op >= 0) { if (op >= 0) {
if (mAppOps.noteOpNoThrow(AppOpsManager.OP_FINE_LOCATION, identity.uid, if (mAppOps.noteOpNoThrow(AppOpsManager.OP_FINE_LOCATION, identity.uid,
identity.packageName, identity.featureId, null) identity.packageName, identity.featureId, identity.listenerId)
!= AppOpsManager.MODE_ALLOWED) { != AppOpsManager.MODE_ALLOWED) {
continue; continue;
} }