Loading core/java/android/app/admin/DevicePolicyManager.java +12 −0 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -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. Loading
core/java/android/app/admin/DevicePolicyManager.java +12 −0 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -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.