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

Commit a447ed2e authored by Sandy Wiraatmadja's avatar Sandy Wiraatmadja
Browse files

Add new CAPTURE_CONSENTLESS_BUGREPORT_DELEGATED_CONSENT system permission.

BYPASS_INCLUSIVE_LANGUAGE_REASON=existing config name

Bug: 324046728
Test: make and flash
Flag: android.os.allow_consentless_bugreport_delegated_consent
Change-Id: I1dc07976fafe30348176659aca2a2b629a0d7cbc
parent 0c1aab59
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -105,6 +105,7 @@ package android {
    field public static final String CAMERA_OPEN_CLOSE_LISTENER = "android.permission.CAMERA_OPEN_CLOSE_LISTENER";
    field @FlaggedApi("com.android.internal.camera.flags.camera_privacy_allowlist") public static final String CAMERA_PRIVACY_ALLOWLIST = "android.permission.CAMERA_PRIVACY_ALLOWLIST";
    field public static final String CAPTURE_AUDIO_HOTWORD = "android.permission.CAPTURE_AUDIO_HOTWORD";
    field @FlaggedApi("android.os.allow_consentless_bugreport_delegated_consent") public static final String CAPTURE_CONSENTLESS_BUGREPORT_DELEGATED_CONSENT = "android.permission.CAPTURE_CONSENTLESS_BUGREPORT_DELEGATED_CONSENT";
    field public static final String CAPTURE_CONSENTLESS_BUGREPORT_ON_USERDEBUG_BUILD = "android.permission.CAPTURE_CONSENTLESS_BUGREPORT_ON_USERDEBUG_BUILD";
    field public static final String CAPTURE_MEDIA_OUTPUT = "android.permission.CAPTURE_MEDIA_OUTPUT";
    field public static final String CAPTURE_TUNER_AUDIO_INPUT = "android.permission.CAPTURE_TUNER_AUDIO_INPUT";
+7 −0
Original line number Diff line number Diff line
@@ -201,3 +201,10 @@ flag {
     description: "Tracing using Perfetto SDK."
     bug: "303199244"
}

flag {
    name: "allow_consentless_bugreport_delegated_consent"
    namespace: "crumpet"
    description: "Allow privileged apps to call bugreport generation without enforcing user consent and delegate it to the calling app instead"
    bug: "324046728"
}
+13 −0
Original line number Diff line number Diff line
@@ -8049,6 +8049,19 @@
    <permission android:name="android.permission.CAPTURE_CONSENTLESS_BUGREPORT_ON_USERDEBUG_BUILD"
                android:protectionLevel="internal|appop" />

    <!-- @hide @SystemApi
         @FlaggedApi(android.os.Flags.FLAG_ALLOW_CONSENTLESS_BUGREPORT_DELEGATED_CONSENT)
         Allows system applications to capture bugreport directly without consent dialog when using
         the bugreporting API, and instead use the applications-owned consent page.
         <p>The application still needs to hold {@link android.permission.DUMP} permission and be
         bugreport-whitelisted to be able to capture a bugreport using the bugreporting API in the
         first place.
         <p>Protection level: signature|privileged
         <p>Not for use by third-party applications. -->
    <permission
        android:name="android.permission.CAPTURE_CONSENTLESS_BUGREPORT_DELEGATED_CONSENT"
        android:protectionLevel="signature|privileged" />

    <!-- @SystemApi Allows to call APIs that log process lifecycle events
         @hide -->
    <permission android:name="android.permission.LOG_FOREGROUND_RESOURCE_USE"