Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

[Bug]: "Too many active sessions for UID ..." (package installation) #1213

Closed
2 tasks done
gituser1000000 opened this issue Aug 16, 2023 · 0 comments
Closed
2 tasks done
Labels
bug Something isn't working

Comments

@gituser1000000
Copy link

gituser1000000 commented Aug 16, 2023

What happened?

I use my file explorer to install apps so I have "Install unkown apps" disabled for AndroidIDE. After many times dismissing the popup asking to install after a build, the popup doesn't show anymore but these errors show up after a build instead.

What's the expected behavior?

Maybe we shoud have a preference whether to install or not after a build, and handle the "Too many active sessions" error.

What version of AndroidIDE you're using?

v2.5.2 (debug builds)

Relevant log output

ApkInstaller E Package installation failed
ApkInstaller E android.os.RemoteException: Remote stack trace:
ApkInstaller E at com.android.server.pm.PackageInstallerService.createSessionInternal(PackageInstallerService.java:734)
ApkInstaller E at com.android.server.pm.PackageInstallerService.createSession(PackageInstallerService.java:548)
ApkInstaller E at android.content.pm.IPackageInstaller$Stub.onTransact(IPackageInstaller.java:202)
ApkInstaller E at android.os.Binder.execTransactInternal(Binder.java:1168)
ApkInstaller E at android.os.Binder.execTransact(Binder.java:1132)
ApkInstaller E
ApkInstaller E at com.android.server.pm.PackageInstallerService.createSessionInternal(PackageInstallerService.java:734)
ApkInstaller E at com.android.server.pm.PackageInstallerService.createSession(PackageInstallerService.java:548)
ApkInstaller E at android.content.pm.IPackageInstaller$Stub.onTransact(IPackageInstaller.java:202)
ApkInstaller E at android.os.Binder.execTransactInternal(Binder.java:1168)
ApkInstaller E at android.os.Binder.execTransact(Binder.java:1132)
ApkInstaller E Caused by: java.lang.IllegalStateException: Too many active sessions for UID 10563
ApkInstaller E at android.os.Parcel.createExceptionOrNull(Parcel.java:2382)
ApkInstaller E at android.os.Parcel.createException(Parcel.java:2358)
ApkInstaller E at android.os.Parcel.readException(Parcel.java:2341)
ApkInstaller E at android.os.Parcel.readException(Parcel.java:2283)
ApkInstaller E at android.content.pm.IPackageInstaller$Stub$Proxy.createSession(IPackageInstaller.java:474)
ApkInstaller E at android.content.pm.PackageInstaller.createSession(PackageInstaller.java:445)
ApkInstaller E at com.itsaky.androidide.utils.ApkInstaller.installApk(Unknown Source:198)
ApkInstaller E at androidx.room.QueryInterceptorDatabase$$ExternalSyntheticLambda0.run(Unknown Source:986)
ApkInstaller E at android.os.Handler.handleCallback(Handler.java:938)
ApkInstaller E at android.os.Handler.dispatchMessage(Handler.java:99)
ApkInstaller E at android.os.Looper.loop(Looper.java:250)
ApkInstaller E at android.app.ActivityThread.main(ActivityThread.java:7868)
ApkInstaller E at java.lang.reflect.Method.invoke(Native Method)
ApkInstaller E at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
ApkInstaller E at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:958)
ApkInstaller E
ApkInstaller E

Duplicate issues

  • This issue has not been reported yet.

Code of Conduct

  • I agree to follow this project's Code of Conduct
@gituser1000000 gituser1000000 added the bug Something isn't working label Aug 16, 2023
@itsaky itsaky closed this as completed in 6b05c02 Aug 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant