forceUpdateUserSetupComplete should have no effect in user build
Bug:30031808
Change-Id: I908a495633e03ace770a8ec19196841d19dfd41d
diff --git a/core/java/android/app/admin/DevicePolicyManager.java b/core/java/android/app/admin/DevicePolicyManager.java
index ae9b169..9005d3e 100644
--- a/core/java/android/app/admin/DevicePolicyManager.java
+++ b/core/java/android/app/admin/DevicePolicyManager.java
@@ -6467,7 +6467,10 @@
/**
* @hide
- * Force update user setup completed status
+ * Force update user setup completed status. This API has no effect on user build.
+ * @throws {@link SecurityException} if the caller has no
+ * {@link android.Manifest.permission.MANAGE_PROFILE_AND_DEVICE_OWNERS} or the caller is
+ * not {@link UserHandle.SYSTEM_USER}
*/
public void forceUpdateUserSetupComplete() {
try {