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

This commit is contained in:
Abhijoy Saha
2021-04-29 23:15:54 +00:00
committed by Android (Google) Code Review

View File

@@ -151,7 +151,9 @@ class PrivacyItemController @Inject constructor(
return
}
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)
update(false)
}