0x192 / 0x192/universal-android-debloater

Crashes: does not have permission to access user 150

Aperta
#1,194 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
bug
Lingua principale
Rust
Stelle
19.9k
Fork
1.1k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

**Describe the bug**
Boot it up, see 100+ packages on my Galaxy A16. Click Uninstall.

App crashes.

**Expected behavior**
Something. Anything that's not a crash.

**You have a solution?**
Nope!

**UAD log**
Upload the logfile generated by UAD.

Screenshot: shows the UI with two users at the top: 0 and 150. If I pick 0, and uninstall, this crash (see logs). If I click 150, I get a different stack:

Exception occurred while executing 'uninstall':
java.lang.SecurityException: Shell does not have permission to access user 150
com.android.server.am.ActivityManagerService.handleIncomingUser:8 android.app.ActivityManager.handleIncomingUser:6316 com.android.server.pm.PackageManagerShellCommand.translateUserId:24
at com.android.server.am.UserController.handleIncomingUser(qb/109720563 86dbee7f0847772a18215ace02f34f8f317c628dcab7868dbafa1f16e984e4a3:354)
at com.android.server.am.ActivityManagerService.handleIncomingUser(qb/109720563 86dbee7f0847772a18215ace02f34f8f317c628dcab7868dbafa1f16e984e4a3:8)
at android.app.ActivityManager.handleIncomingUser(ActivityManager.java:6316)
at com.android.server.pm.PackageManagerShellCommand.translateUserId(qb/109720563 86dbee7f0847772a18215ace02f34f8f317c628dcab7868dbafa1f16e984e4a3:24)
at com.android.server.pm.PackageManagerShellCommand.runUninstall(qb/109720563 86dbee7f0847772a18215ace02f34f8f317c628dcab7868dbafa1f16e984e4a3:245)
at com.android.server.pm.PackageManagerShellCommand.onCommand(qb/109720563 86dbee7f0847772a18215ace02f34f8f317c628dcab7868dbafa1f16e984e4a3:1330)
at com.android.modules.utils.BasicShellCommandHandler.exec(BasicShellCommandHandler.java:97)
at android.os.ShellCommand.exec(ShellCommand.java:38)
at com.android.server.pm.PackageManagerService$IPackageManagerImpl.onShellCommand(qb/109720563 86dbee7f0847772a18215ace02f34f8f317c628dcab7868dbafa1f16e984e4a3:193)
at android.os.Binder.shellCommand(Binder.java:1219)
at android.os.Binder.onTransact(Binder.java:987)
at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:5243)
at com.android.server.pm.PackageManagerService$IPackageManagerImpl.onTransact(qb/109720563 86dbee7f0847772a18215ace02f34f8f317c628dcab7868dbafa1f16e984e4a3:1)
at android.os.Binder.execTransactInternal(Binder.java:1514)
at android.os.Binder.execTransact(Binder.java:1454)

Running the app and uninstalling over and over seems to be uninstalling; I had 107 packages and now I'm down to ~70.

[UAD_20260624.log](https://github.com/user-attachments/files/29313961/UAD_20260624.log)

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

The crash log shows a SecurityException when trying to uninstall packages for user 150. Start by examining the ADB command execution and user permission handling in the Rust codebase, likely around the uninstall functionality. Look for where user IDs are passed to ADB shell commands. The UAD log file attached may contain more context about the device state and the specific commands that failed.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
android, rust
Ambito
cli, mobile
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Tranquilla
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.