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
Labels
bug
Something isn't working
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
Code of Conduct
The text was updated successfully, but these errors were encountered: