Skip to main content
Tweeted twitter.com/StackAndroid/status/1593937153549275137
clarified the issue
Source Link
Andrew T.
  • 16.5k
  • 10
  • 76
  • 127

How to uninstall bloatwares (e Getting "java.glang. Facebook, Chrome)SecurityException: Shell does not have permission to access user 150" when uninstalling apps from Samsung Secure folder? using ADB

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)

How to uninstall bloatwares (e.g. Facebook, Chrome) from Samsung Secure folder?

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)

Getting "java.lang.SecurityException: Shell does not have permission to access user 150" when uninstalling apps from Samsung Secure folder using ADB

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)
code formatting, copyedit
Source Link
Andrew T.
  • 16.5k
  • 10
  • 76
  • 127

How to uninstall bloatwares ( facebook, chromee.g. Facebook, Chrome) from samsung secureSamsung Secure folder?

Owner profile user is 0I am using Samsung Galaxy A50, secureAndroid 11, One UI 3.1. I use Samsung Secure folder user is 150.

pm There are many bloatware in it and I could not find a way to uninstall -k --user 150 com.android(and disable) them via ADB.chrome gives this error

Exception occurred while executing 'uninstall': java.lang.SecurityException: Shell does not have permission to accessOwner profile user is 0, Secure Folder user is 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)

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)

How to uninstall bloatwares ( facebook, chrome..) from samsung secure folder?

Owner profile user is 0, secure folder user is 150.

pm uninstall -k --user 150 com.android.chrome gives this error

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)

How to uninstall bloatwares (e.g. Facebook, Chrome) from Samsung Secure folder?

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)
Source Link
Halilb1978
  • 151
  • 1
  • 1
  • 8

How to uninstall bloatwares ( facebook, chrome..) from samsung secure folder?

Owner profile user is 0, secure folder user is 150.

pm uninstall -k --user 150 com.android.chrome gives this error

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)