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

Commit 94009f5b authored by Kholoud Mohamed's avatar Kholoud Mohamed
Browse files

Add API for consentless bugreports flag

Bug: 340439309
Test: N/A
Change-Id: I718820cb1b6ea9b1f42a4070df9c64fab96c6b2d
parent b63ed2d4
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.