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

[Bug]: Can't install on Android 10. #4360

Closed
oAnblu opened this issue Jan 19, 2025 · 7 comments
Closed

[Bug]: Can't install on Android 10. #4360

oAnblu opened this issue Jan 19, 2025 · 7 comments

Comments

@oAnblu
Copy link

oAnblu commented Jan 19, 2025

Problem description

Whenever I try to install termux, I get this error:

java.io.IOException: Failed to allocate 34119164 because only 1019904 allocatable
	at java.lang.reflect.Constructor.newInstance0(Native Method)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
	at android.os.ParcelableException.readFromParcel(ParcelableException.java:56)
	at android.os.ParcelableException$1.createFromParcel(ParcelableException.java:82)
	at android.os.ParcelableException$1.createFromParcel(ParcelableException.java:79)
	at android.os.Parcel.readParcelable(Parcel.java:2973)
	at android.os.Parcel.createException(Parcel.java:2066)
	at android.os.Parcel.readException(Parcel.java:2039)
	at android.os.Parcel.readException(Parcel.java:1987)
	at android.content.pm.IPackageInstallerSession$Stub$Proxy.openWrite(IPackageInstallerSession.java:469)
	at android.content.pm.PackageInstaller$Session.openWrite(PackageInstaller.java:935)
	at com.aefyr.sai.installer2.impl.rootless.RootlessSaiPackageInstaller.install(RootlessSaiPackageInstaller.java:94)
	at com.aefyr.sai.installer2.impl.rootless.RootlessSaiPackageInstaller.lambda$enqueueSession$0$RootlessSaiPackageInstaller(RootlessSaiPackageInstaller.java:70)
	at com.aefyr.sai.installer2.impl.rootless.-$$Lambda$RootlessSaiPackageInstaller$ivyAcunEgIkYlu_dB2vN6MOWZPU.run(Unknown Source:6)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
	at java.lang.Thread.run(Thread.java:919)
Caused by: android.os.RemoteException: Remote stack trace:
	at android.util.ExceptionUtils.wrap(ExceptionUtils.java:34)
	at com.android.server.pm.PackageInstallerSession.openWrite(PackageInstallerSession.java:696)
	at android.content.pm.IPackageInstallerSession$Stub.onTransact(IPackageInstallerSession.java:231)
	at android.os.Binder.execTransactInternal(Binder.java:1021)
	at android.os.Binder.execTransact(Binder.java:994)

Steps to reproduce the behavior.

  1. try to install v0.119.0-beta.1 (this also happens with the oldest v0.118 version that I could find)
  2. See error (I've used SAI aswell as android's default package installer)

What is the expected behavior?

No response

System information

  • Termux application version: v0.119.0-beta.1 (also happened on oldest v0.118 version that i could find on F-Droid and GitHub.)
  • Android OS version: 10
  • Device model: Allview Viva H1003LTE PRO
@oAnblu
Copy link
Author

oAnblu commented Jan 19, 2025

NOTE: I did have Termux on this device before (same android build, since this device doesn't get updates anymore), it was probably a version older than the ones specified, so it's probably something added in the new versions.

@twaik
Copy link
Member

twaik commented Jan 19, 2025

What is com.aefyr.sai.installer2.impl.rootless.RootlessSaiPackageInstaller and why do you try to install termux this way?

@oAnblu
Copy link
Author

oAnblu commented Jan 21, 2025

@twaik What is com.aefyr.sai.installer2.impl.rootless.RootlessSaiPackageInstaller and why do you try to install termux this way?

I used the SAI app from F-Droid since it shows errors, however it isn't the cause since Android Package Installer fails too

@twaik
Copy link
Member

twaik commented Jan 21, 2025

How exactly it fails? Can you show the error message which happens when you install app with pm install <path to apk> (with adb or root)?

@oAnblu
Copy link
Author

oAnblu commented Jan 21, 2025

How exactly it fails? Can you show the error message which happens when you install app with pm install <path to apk> (with adb or root)?

I don't have a working pc at hand and this device isn't rooted, but I deleted some stuff and now it errors with INSTALL_FAILED_VERIFICATION_FAILURE

@oAnblu
Copy link
Author

oAnblu commented Jan 21, 2025

@twaik I figured it out, Google Play Protect was blocking it

NOTE: It's unsigned/signed with untrusted certificate so I had to use a apk signer app

@twaik
Copy link
Member

twaik commented Jan 21, 2025

It seems like you found it.

@twaik twaik closed this as completed Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants