Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fab23cea authored by Abhijoy Saha's avatar Abhijoy Saha Committed by Automerger Merge Worker
Browse files

Merge "Add phone call check to app opp usage callback." into sc-dev am: b4cea781

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14356610

Change-Id: I2f97f160339538ad6b991f620518f5771556b806
parents 9cfa6895 b4cea781
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -151,7 +151,9 @@ class PrivacyItemController @Inject constructor(
                return
                return
            }
            }
            val userId = UserHandle.getUserId(uid)
            val userId = UserHandle.getUserId(uid)
            if (userId in currentUserIds) {
            if (userId in currentUserIds ||
                    code == AppOpsManager.OP_PHONE_CALL_MICROPHONE ||
                    code == AppOpsManager.OP_PHONE_CALL_CAMERA) {
                logger.logUpdatedItemFromAppOps(code, uid, packageName, active)
                logger.logUpdatedItemFromAppOps(code, uid, packageName, active)
                update(false)
                update(false)
            }
            }