I am using Samsung Galaxy A50, Android 11, One UI 3.1. I use Samsung Secure folder. There are many bloatware in it and I could not find a way to uninstall (and disable) them via ADB.
Owner profile user is 0, Secure Folder user is 150.
pm uninstall -k --user 150 com.android.chrome
Exception occurred while executing 'uninstall': java.lang.SecurityException: Shell does not have permission to access user 150
com.android.server.am.ActivityManagerService.handleIncomingUser:17947
android.app.ActivityManager.handleIncomingUser:4863
com.android.server.pm.PackageManagerShellCommand.translateUserId:3125
at
com.android.server.am.UserController.handleIncomingUser(UserController.java:2375)
at
com.android.server.am.ActivityManagerService.handleIncomingUser(ActivityManagerService.java:17947)
at
android.app.ActivityManager.handleIncomingUser(ActivityManager.java:4863)
at
com.android.server.pm.PackageManagerShellCommand.translateUserId(PackageManagerShellCommand.java:3125)
at
com.android.server.pm.PackageManagerShellCommand.runUninstall(PackageManagerShellCommand.java:2024)
at
com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:237)
at
android.os.BasicShellCommandHandler.exec(BasicShellCommandHandler.java:98)
at
android.os.ShellCommand.exec(ShellCommand.java:44)
at
com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:26662)
at
android.os.Binder.shellCommand(Binder.java:965)
at
android.os.Binder.onTransact(Binder.java:839)
at
android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:5206)
at
com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:5281)
at
android.os.Binder.execTransactInternal(Binder.java:1195)
at
android.os.Binder.execTransact(Binder.java:1159)