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
This commit is contained in:
Eran Messeri
2021-03-09 11:10:54 +00:00
parent f41a01c8d2
commit 5442128882

View File

@@ -987,7 +987,8 @@ public class DevicePolicyManager {
* 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.
*
* <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 =
"android.app.extra.PROVISIONING_PERMISSION_GRANT_OPT_OUT";