Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: Failed to download APKs #12

Open
penserbjorne opened this issue May 6, 2023 · 1 comment
Open

ERROR: Failed to download APKs #12

penserbjorne opened this issue May 6, 2023 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@penserbjorne
Copy link
Collaborator

Hi!

I'm having troubles getting the applications from Samsung devices with Android 13.
This only happened on Samsung devices at this moment, I don't know if this is happening on other Android 13 devices, but reading on Internet it seems to happen since Android 11 (?).

Downloading copies of installed apps...
ERROR: Failed to download APKs: failed to retrieve list of installed packages: failed to launch `pm list packages` command: exit status 255

Also, trying the same command from terminal I got this:

$ adb shell pm list packages

Exception occurred while executing 'list':
java.lang.SecurityException: Shell does not have permission to access user 10
 com.android.server.am.ActivityManagerService.handleIncomingUser:14888 android.app.ActivityManager.handleIncomingUser:4802 com.android.server.pm.PackageManagerShellCommand.translateUserId:3510 
	at com.android.server.am.UserController.handleIncomingUser(UserController.java:2672)
	at com.android.server.am.ActivityManagerService.handleIncomingUser(ActivityManagerService.java:14888)
	at android.app.ActivityManager.handleIncomingUser(ActivityManager.java:4802)
	at com.android.server.pm.PackageManagerShellCommand.translateUserId(PackageManagerShellCommand.java:3510)
	at com.android.server.pm.PackageManagerShellCommand.runListPackages(PackageManagerShellCommand.java:969)
	at com.android.server.pm.PackageManagerShellCommand.runListPackages(PackageManagerShellCommand.java:865)
	at com.android.server.pm.PackageManagerShellCommand.runList(PackageManagerShellCommand.java:724)
	at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:226)
	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(PackageManagerService.java:6997)
	at android.os.Binder.shellCommand(Binder.java:1085)
	at android.os.Binder.onTransact(Binder.java:903)
	at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:4909)
	at com.android.server.pm.PackageManagerService$IPackageManagerImpl.onTransact(PackageManagerService.java:6981)
	at android.os.Binder.execTransactInternal(Binder.java:1321)
	at android.os.Binder.execTransact(Binder.java:1280)

The command can be run as primary user:

pm list packages --user 0

I don't know if this is a fix, but it helps for now.

Thanks!
P.

@penserbjorne
Copy link
Collaborator Author

Hi!

Is there any update on this. Can I help in something?

Best.
P

@Te-k Te-k added the bug Something isn't working label Jul 17, 2023
@Te-k Te-k added this to the v1 milestone Jul 17, 2023
@mvt-project mvt-project deleted a comment from DrWhax Dec 20, 2023
@Te-k Te-k self-assigned this Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants