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

Commit eae59e3d authored by Kholoud Mohamed's avatar Kholoud Mohamed
Browse files

Add API to check if bugreport onboarding v2 flag is enabeld

Bug: 302517677
Test: N/A
Change-Id: If3f3b9681999696aca3b39f5f688c86cfa4182a3
parent 8baa959c
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -49,6 +49,7 @@ import static android.Manifest.permission.QUERY_ADMIN_POLICY;
import static android.Manifest.permission.REQUEST_PASSWORD_COMPLEXITY;
import static android.Manifest.permission.SET_TIME;
import static android.Manifest.permission.SET_TIME_ZONE;
import static android.app.admin.flags.Flags.onboardingBugreportV2Enabled;
import static android.content.Intent.LOCAL_FLAG_FROM_SYSTEM;
import static android.net.NetworkCapabilities.NET_ENTERPRISE_ID_1;
import static android.os.Build.VERSION_CODES.UPSIDE_DOWN_CAKE;
@@ -17136,4 +17137,14 @@ public class DevicePolicyManager {
        }
        return null;
    }
    // TODO(b/308755220): Remove once the build is finalised.
    /**
     * Returns true if the flag for the onboarding bugreport V2 is enabled.
     *
     * @hide
     */
    public boolean isOnboardingBugreportV2FlagEnabled() {
        return onboardingBugreportV2Enabled();
    }
}
 No newline at end of file