summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Sandy Wiraatmadja <swiraatmadja@google.com> 2024-11-25 20:57:10 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2024-11-25 20:57:10 +0000
commit874bddff5d26f11f532bdee1efad4b338ae09537 (patch)
tree0f065bc139d7467acf39f17b8f3fdcfe348a460c
parent733ee15e92d00da064b74a539f95bcaa62c70165 (diff)
parent504babfefcc3493197363a4b2c1a81b373920c95 (diff)
Merge "Remove the check that excludes Telephony bug report mode from being consentless, since the newly added premission is not meant to bypass consent entirely, but instead using the system apps' own consent every time a bug report is generated." into main
-rw-r--r--services/core/java/com/android/server/incident/PendingReports.java16
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) {