Create clone profile user for the StartActivityAsUserTests
The managed profile requires managed users feature which is not existed
on some devices, like TV.
Bug: 228856323
Test: atest android.server.wm.StartActivityAsUserTests
Change-Id: I02be979e3b23668f3aceefbcad8560ae7a64c666
diff --git a/tests/framework/base/windowmanager/src/android/server/wm/StartActivityAsUserTests.java b/tests/framework/base/windowmanager/src/android/server/wm/StartActivityAsUserTests.java
index 45f4dd9..7cbd32e 100644
--- a/tests/framework/base/windowmanager/src/android/server/wm/StartActivityAsUserTests.java
+++ b/tests/framework/base/windowmanager/src/android/server/wm/StartActivityAsUserTests.java
@@ -68,7 +68,7 @@
final Context context = InstrumentationRegistry.getInstrumentation().getContext();
final String output = runShellCommand(
- "pm create-user --user-type android.os.usertype.profile.MANAGED --profileOf "
+ "pm create-user --user-type android.os.usertype.profile.CLONE --profileOf "
+ context.getUserId() + " user2");
sSecondUserId = Integer.parseInt(output.substring(output.lastIndexOf(" ")).trim());
if (sSecondUserId == 0) {