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

Commit 54421288 authored by Eran Messeri's avatar Eran Messeri
Browse files

Documentation fix: Permission grant opt-out

The documentation for EXTRA_PROVISIONING_PERMISSION_GRANT_OPT_OUT says
it should be used ACTION_PROVISION_MANAGED_DEVICE. However, that is
deprecated since it's no longer needed (and there's another way to
provision a fully-managed device).

Remove reference to the deprecated constant and simply mention device
owner provisioning.

Bug: 182180699
Test: That it compiles.
Change-Id: I8681c09fb9fa008f0e2ccf62c5dad8d37cd1b843
parent f41a01c8
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -987,7 +987,8 @@ public class DevicePolicyManager {
     * The default for this extra is {@code false} - by default, the admin of a fully-managed
     * The default for this extra is {@code false} - by default, the admin of a fully-managed
     * device has the ability to grant sensors-related permissions.
     * device has the ability to grant sensors-related permissions.
     *
     *
     * <p>Use with {@link #ACTION_PROVISION_MANAGED_DEVICE} only.
     * <p>Use only for device owner provisioning.
     * @see #ACTION_GET_PROVISIONING_MODE
     */
     */
    public static final String EXTRA_PROVISIONING_PERMISSION_GRANT_OPT_OUT =
    public static final String EXTRA_PROVISIONING_PERMISSION_GRANT_OPT_OUT =
            "android.app.extra.PROVISIONING_PERMISSION_GRANT_OPT_OUT";
            "android.app.extra.PROVISIONING_PERMISSION_GRANT_OPT_OUT";