termux / termux-app

Termux - a terminal emulator application for Android OS extendible by variety of packages.
https://f-droid.org/en/packages/com.termux
Other
36.86k stars 3.87k forks source link

[Bug]: F-Droid offers version 0.119 beta to install but fails on TX8 armv8l... but the armv7 apk does install sideloaded #4032

Closed rodoviario closed 5 months ago

rodoviario commented 5 months ago

Problem description

I was using the unsupported 0.118 debug version for more than a year in an old and (I know, usupported) TX8 Android 6.0.1 armv8l device. Today F-Droid offered me the new 0.119 beta (with restored partial support) and I already was aware of the existence of termux-app_v0.119.0-beta.1+apt-android-5-github-debug_armeabi-v7a.apk in the repo

For installing, F-Droid told me to first uninstall the old one because of mismatched signatures.

The important fact is that the beta version is listed as compatible with my device (the 0.118 and 0.118.1 are not) And the termux-app_v0.119.0-beta.1+apt-android-5-github-debug_armeabi-v7a.apk version installs and works afterwards. The v8a doesn't FYI

May be there is not a bug per-se on the app, but surely there is something in the F-Droid store version/manifest that states compatibility and fails 🤷🏻‍♂️

Steps to reproduce the behavior.

What is the expected behavior?

Not sure, but I guess that one of the 2 following:

System information

termux-info:

$ termux-info
Packages CPU architecture:
arm
Subscribed repositories:
# sources.list
deb https://packages-cf.termux.dev/apt/termux-main-21 stable main
# game-repo (sources.list.d/game.list)
deb https://termux.dev/game-packages-21-bin games stable
# science-repo (sources.list.d/science.list)
deb https://termux.dev/science-packages-21-bin science stable
# root-repo (sources.list.d/root.list)
deb https://termux.dev/termux-root-packages-21-bin root stable
Updatable packages:
All packages up to date
Android version:
6.0.1
Kernel build information:
Linux localhost 3.14.29 #2 SMP PREEMPT Thu Oct 27 11:09:01 CST 2016 armv8l Android
Device manufacturer:
Amlogic
Device model:
TX8
sylirre commented 5 months ago

F-Droid and GitHub builds are incompatible at signature level. If you want to switch installation source, please uninstall Termux and all add-ons before.

GitHub builds are signed with testkey.

F-Droid builds are signed by F-Droid own release key.

Explained in README.md file. This is not a bug.

sylirre commented 5 months ago

Open device settings applications list menu. Look for everything with Termux in the name, examples are Termux, Termux:API, Termux:Float, Termux:Boot, Termux:Widget and so on. Uninstall all.

Only then F-Droid app should be installable.

rodoviario commented 5 months ago

Indeed. Uninstaled termux:boot (and termux)... F-Droid version worked afterwards. Thanks

UPDATE: the app opens but fails bootstraping bootstrap1 bootstrap2

agnostic-apollo commented 5 months ago

Do not install from F-Droid for android 5, it supplies the apt-android-7 variant. I will bump minSdkVersion to android 7 in beta.2 so it's not shown for android 5 on F-Droid and get beta.1 disabled. Will also set maxSdkVersion to android 6 for apt-android-5 so that it's not installable on Android 7 from github. Forgot to do all that due to rushed release.

agnostic-apollo commented 5 months ago

apt-android-5 variant will only be supplied on GitHub.

rodoviario commented 5 months ago

Sorry to bother you with with my lack of knowledge... Should I uninstall the F-Droid version and reinstall the github apk in order for it to be able to bootstrap and actually enter the termux environment?

It was kinda working well before witn the 0.118 github debug version And the 0.119 bet github debug that I had just installed worked too

agnostic-apollo commented 5 months ago

Yes, uninstall and use apt-android-5 variants from github only for Android 5/6.