Deprecating provisioning param- EXTRA_PROVISIONING_KEEP_SCREEN_ON.

From now on always keep the screen on throughout the provisioning flow.

Bug: 259249103
Fix: 259249103
Test: not required
Change-Id: Ia1e55912e4b454cfdde8c3971a369e038fc03edf
This commit is contained in:
shreyacsingh
2022-12-14 17:15:43 +00:00
committed by Shreya Singh
parent f78638401f
commit 9a887db4ac
2 changed files with 6 additions and 3 deletions

View File

@@ -7776,7 +7776,7 @@ package android.app.admin {
field @Deprecated public static final String EXTRA_PROVISIONING_EMAIL_ADDRESS = "android.app.extra.PROVISIONING_EMAIL_ADDRESS";
field public static final String EXTRA_PROVISIONING_IMEI = "android.app.extra.PROVISIONING_IMEI";
field public static final String EXTRA_PROVISIONING_KEEP_ACCOUNT_ON_MIGRATION = "android.app.extra.PROVISIONING_KEEP_ACCOUNT_ON_MIGRATION";
field public static final String EXTRA_PROVISIONING_KEEP_SCREEN_ON = "android.app.extra.PROVISIONING_KEEP_SCREEN_ON";
field @Deprecated public static final String EXTRA_PROVISIONING_KEEP_SCREEN_ON = "android.app.extra.PROVISIONING_KEEP_SCREEN_ON";
field public static final String EXTRA_PROVISIONING_LEAVE_ALL_SYSTEM_APPS_ENABLED = "android.app.extra.PROVISIONING_LEAVE_ALL_SYSTEM_APPS_ENABLED";
field public static final String EXTRA_PROVISIONING_LOCALE = "android.app.extra.PROVISIONING_LOCALE";
field public static final String EXTRA_PROVISIONING_LOCAL_TIME = "android.app.extra.PROVISIONING_LOCAL_TIME";

View File

@@ -3311,13 +3311,16 @@ public class DevicePolicyManager {
* A {@code boolean} flag that indicates whether the screen should be on throughout the
* provisioning flow.
*
* <p>The default value is {@code false}.
*
* <p>This extra can either be passed as an extra to the {@link
* #ACTION_PROVISION_MANAGED_PROFILE} intent, or it can be returned by the
* admin app when performing the admin-integrated provisioning flow as a result of the
* {@link #ACTION_GET_PROVISIONING_MODE} activity.
*
* @deprecated from {@link android.os.Build.VERSION_CODES#UPSIDE_DOWN_CAKE}, the flag wouldn't
* be functional. The screen is kept on throughout the provisioning flow.
*/
@Deprecated
public static final String EXTRA_PROVISIONING_KEEP_SCREEN_ON =
"android.app.extra.PROVISIONING_KEEP_SCREEN_ON";