diff options
-rw-r--r-- | services/core/java/com/android/server/incident/PendingReports.java | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/services/core/java/com/android/server/incident/PendingReports.java b/services/core/java/com/android/server/incident/PendingReports.java index 35b3673fdf77..9a6c87e525e0 100644 --- a/services/core/java/com/android/server/incident/PendingReports.java +++ b/services/core/java/com/android/server/incident/PendingReports.java @@ -324,16 +324,12 @@ class PendingReports { // Allow system apps to skip the consent dialog and use their in-built consent mechanism // instead. - boolean captureConsentlessBugreportDelegatedConsentGranted = false; - if ((flags & IncidentManager.FLAG_ALLOW_CONSENTLESS_BUGREPORT) != 0) { - captureConsentlessBugreportDelegatedConsentGranted = - mPermissionManager.checkPermissionForDataDelivery( - Manifest.permission - .CAPTURE_CONSENTLESS_BUGREPORT_DELEGATED_CONSENT, - attributionSource, - /* message= */ null) - == PERMISSION_GRANTED; - } + boolean captureConsentlessBugreportDelegatedConsentGranted = + mPermissionManager.checkPermissionForDataDelivery( + Manifest.permission.CAPTURE_CONSENTLESS_BUGREPORT_DELEGATED_CONSENT, + attributionSource, + /* message= */ null) + == PERMISSION_GRANTED; if (captureConsentlessBugreportOnUserdebugBuildGranted || captureConsentlessBugreportDelegatedConsentGranted) { |