Sample Header Ad - 728x90

Android 16 : apps installing in to workprofile via ADB command is failing

1 vote
0 answers
32 views
We would like to install our app inside work profile , for this purpose we are using testDPC for creating the workprofile and will use the following command to install our app eg: adb -s emulator-5554 install --user 10 -r application.apk Its working for the android versions till 15 , but with android 16 getting the below error any way fix this issue..? > Exception occurred while executing 'install': java.lang.SecurityException: Shell does not have permission to access user 10 com.android.server.am.ActivityManagerService.handleIncomingUser:13871 android.app.ActivityManager.handleIncomingUser:5300 com.android.server.pm.PackageManagerShellCommand.translateUserId:3965 at com.android.server.am.UserController.handleIncomingUser(UserController.java:2895) at com.android.server.am.ActivityManagerService.handleIncomingUser(ActivityManagerService.java:13871) at android.app.ActivityManager.handleIncomingUser(ActivityManager.java:5300) at com.android.server.pm.PackageManagerShellCommand.translateUserId(PackageManagerShellCommand.java:3965) at com.android.server.pm.PackageManagerShellCommand.doCreateSession(PackageManagerShellCommand.java:3976) at com.android.server.pm.PackageManagerShellCommand.doRunInstall(PackageManagerShellCommand.java:1626) at com.android.server.pm.PackageManagerShellCommand.runInstall(PackageManagerShellCommand.java:1562) at com.android.s
Asked by Deepak (11 rep)
Jul 24, 2025, 09:18 AM
Last activity: Jul 24, 2025, 09:57 AM