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

Commit 6b2eba8e authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add API for consentless bugreports flag" into main

parents 18d04dac 94009f5b
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -62,6 +62,7 @@ import static android.app.admin.flags.Flags.FLAG_HEADLESS_DEVICE_OWNER_PROVISION
import static android.app.admin.flags.Flags.FLAG_HEADLESS_DEVICE_OWNER_SINGLE_USER_ENABLED;
import static android.app.admin.flags.Flags.FLAG_SECURITY_LOG_V2_ENABLED;
import static android.app.admin.flags.Flags.onboardingBugreportV2Enabled;
import static android.app.admin.flags.Flags.onboardingConsentlessBugreports;
import static android.app.admin.flags.Flags.FLAG_IS_MTE_POLICY_ENFORCED;
import static android.content.Intent.LOCAL_FLAG_FROM_SYSTEM;
import static android.net.NetworkCapabilities.NET_ENTERPRISE_ID_1;
@@ -17626,6 +17627,17 @@ public class DevicePolicyManager {
        return onboardingBugreportV2Enabled();
    }
    // TODO(b/308755220): Remove once the build is finalised.
    /**
     * Returns true if the flag for consentless bugreports is enabled.
     *
     * @hide
     */
    @UnsupportedAppUsage
    public boolean isOnboardingConsentlessBugreportFlagEnabled() {
        return onboardingConsentlessBugreports();
    }
    /**
     * Returns the subscription ids of all subscriptions which were downloaded by the calling
     * admin.