Closed m4jki closed 1 year ago
Yeah unfortunately Samsung is now restricting ADB for the user 150
(secure folder). You can no longer pm uninstall
. Does it work if you switch to disable mode
in the settings?
UAD should obviously not crash when adb crashes. I'll try to reproduce the crash by triggering an ADB crash
Yeah unfortunately Samsung is now restricting ADB for the user
150
(secure folder). You can no longerpm uninstall
. Does it work if you switch todisable mode
in the settings?UAD should obviously not crash when adb crashes. I'll try to reproduce the crash by triggering an ADB crash
I am trying to uninstall the app for user0 but the application also tries for user150 and here I get an error. the app for user0 is successfully uninstalled despite the program crash. it looks like your program trying to uninstall/disable app for both users at once.
edit: i'm really blind :)
after disable this option everything works!
I was not able to reproduce the program crash :/
I triggered the same kind of ADB error and UAD didn't crash (as expected).
Still a problem. Note that it also crashes if I just select user150 in the list. I'm using the secure folder, maybe it only crashes if the user does use it.
EDIT: the commit above is dated from Nov 20, 2022 and the latest release (0.5.1) is from Jul 3, 2022, so it should be fixed in the future 0.5.2.
2023-02-10 11:35:31 DEBUG [src\core\update.rs:178] Checking for UAD update 2023-02-10 11:35:31 WARN [src\gui\mod.rs:102] Trying to download remote UAD list 2023-02-10 11:35:32 INFO [src\gui\mod.rs:457] ----------------------------------------------------------------- 2023-02-10 11:35:32 INFO [src\gui\mod.rs:458] ANDROID_SDK: 31 | PHONE: samsung SM-G970F 2023-02-10 11:35:32 INFO [src\gui\views\list.rs:141] Custom selection has been successfully imported 2023-02-10 11:35:37 ERROR [src\core\utils.rs:228] [Recommended] pm uninstall --user 150 com.google.android.gm -> Exception occurred while executing 'uninstall': java.lang.SecurityException: Shell does not have permission to access user 150 com.android.server.am.ActivityManagerService.handleIncomingUser:14180 android.app.ActivityManager.handleIncomingUser:4540 com.android.server.pm.PackageManagerShellCommand.translateUserId:3228 at com.android.server.am.UserController.handleIncomingUser(UserController.java:2511) at com.android.server.am.ActivityManagerService.handleIncomingUser(ActivityManagerService.java:14180) at android.app.ActivityManager.handleIncomingUser(ActivityManager.java:4540) at com.android.server.pm.PackageManagerShellCommand.translateUserId(PackageManagerShellCommand.java:3228) at com.android.server.pm.PackageManagerShellCommand.runUninstall(PackageManagerShellCommand.java:2089) at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:248) at com.android.modules.utils.BasicShellCommandHandler.exec(BasicShellCommandHandler.java:97) at android.os.ShellCommand.exec(ShellCommand.java:38) at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:29818) at android.os.Binder.shellCommand(Binder.java:986) at android.os.Binder.onTransact(Binder.java:860) at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:5411) at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:9923) at android.os.Binder.execTransactInternal(Binder.java:1220) at android.os.Binder.execTransact(Binder.java:1179) 2023-02-10 11:35:39 INFO [src\core\utils.rs:222] [Recommended] pm uninstall --user 0 com.google.android.gm -> Success
Yeah unfortunately Samsung is now restricting ADB for the user
150
(secure folder). You can no longerpm uninstall
. Does it work if you switch todisable mode
in the settings? UAD should obviously not crash when adb crashes. I'll try to reproduce the crash by triggering an ADB crashI am trying to uninstall the app for user0 but the application also tries for user150 and here I get an error. the app for user0 is successfully uninstalled despite the program crash. it looks like your program trying to uninstall/disable app for both users at once.
edit: i'm really blind :)
after disable this option everything works!
I was having the same exact issue. App would crash on my linux system everytime I tried to uninstall something. Disabling the "Affect all other users" has fixed it for me.
Same happened for me. The 'Non-persistent settings' were so frustrating. I thought that would just mean 'closing app doesn't save the setting' but it resets every single time i press refresh button. Every noob who use work folder like you and me would face the same issue. Now i get that the button is for reconnecting adb, not refreshing app list tho. I think the dev should explicitly notice user like "this is reconnect adb button, you'll lose current UAD settings."
Application crash when i choose some action but app on phone is uninstalled
ERROR [src/core/utils.rs:228] [Recommended] pm uninstall --user 150 com.samsung.faceservice -> Exception occurred while executing 'uninstall': java.lang.SecurityException: Shell does not have permission to access user 150 com.android.server.am.ActivityManagerService.handleIncomingUser:14170 android.app.ActivityManager.handleIncomingUser:4540 com.android.server.pm.PackageManagerShellCommand.translateUserId:3219 at com.android.server.am.UserController.handleIncomingUser(UserController.java:2511) at com.android.server.am.ActivityManagerService.handleIncomingUser(ActivityManagerService.java:14170) at android.app.ActivityManager.handleIncomingUser(ActivityManager.java:4540) at com.android.server.pm.PackageManagerShellCommand.translateUserId(PackageManagerShellCommand.java:3219) at com.android.server.pm.PackageManagerShellCommand.runUninstall(PackageManagerShellCommand.java:2080) at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:246) at com.android.modules.utils.BasicShellCommandHandler.exec(BasicShellCommandHandler.java:97) at android.os.ShellCommand.exec(ShellCommand.java:38) at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:29791) at android.os.Binder.shellCommand(Binder.java:986) at android.os.Binder.onTransact(Binder.java:860) at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:5411) at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:9921) at android.os.Binder.execTransactInternal(Binder.java:1220) at android.os.Binder.execTransact(Binder.java:1179) thread 'main' panicked at 'index out of bounds: the len is 0 but the index is 314', src/gui/views/list.rs:348:69 note: run with
RUST_BACKTRACE=1environment variable to display a backtrace