-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Enable support for android 5/6 for termux-app #2740
Conversation
One question. Need a separate compilation of packages for android 5/6? |
Yes, android-5/6 packages need to be compiled from the android-5 branch, and that would probably require some work thanks to dead links (since branch is unmaintained for two years now) |
9460ac9
to
20f4300
Compare
So I have made some changes to the design, the Support for You can get latest apks from https://github.com/termux/termux-app/actions/runs/2237286563 Also note that if you bump down |
Also got termux Grimler has also tested on an android 5 tablet. Should also be tested on Android 6 as well if someone has it, may be able do it myself next week. |
I have android 6.0.1 but not the stock Android version. I can test some programs but not familiar with internals yet. |
Need to test the app basically and see if any issues or crashes are there. The packages are not really being changed and have been used by users for a long time. |
I did a few more checks on Android 12-AVD with your last updates A= If I start with A (bootstrap), B can also be installed and start (
|
Is the libandroid-support package missing or it doesn't work? |
libandroid-support is included in android-5 bootstraps (assuming bootstrap-2022.04.25-r1-apt-android-5 were used). Best guess would be that LD_LIBRARY_PATH is not set (android-5 requires it to find the libraries). Maybe installing
means |
right is
Can
Shouldn't |
Check 4e08f76 above (nobody reads commits?). And |
Thanks @Grimler91 for work on bootstraps. I have tested the Another issue is that terminal scrolls to bottom on selecting text on android 5, the copy menu shows at the top on android 5 and possibly the cause of the issue, can be looked into in future. The above The Considering that no other issues has been raised, will merge this soon to continue work on
|
Another issue I had (on the stock samsung rom I tested with) is that it is pretty hard to write due to some issue similar to #686, and the
Thanks, first error seem to be expected, coreutils provides chroot on the android-5 branch after commit termux/termux-packages@36968e7. I can remove chroot from the root repo to prevent that type of error. Hwinfo also needs to be rebuilt, so I'll do that (and update it). Don't think there should be any need to re-generate the bootstraps though |
Sorry @agnostic-apollo that I haven't read all your commits. With the last update I can use the
You had promised to enable this ( |
Not yet. Will do it. Also have to reimplement termux environment handling in cached way and export other stuff. |
This is a good news! I made a "ELF check" for the two current version (5/7). Result: 242/293 of 2037/3054 files must be stored in |
@agnostic-apollo I'm unable to reproduce the hwinfo on arm, so perhaps x86_64 specific. Could you try this updated hwinfo deb to see if it works? (zipped to allow upload to github) |
Same error. The
http://manpages.ubuntu.com/manpages/trusty/man2/iopl.2.html https://forums.raspberrypi.com/viewtopic.php?t=15587 Same error on android 12 avd |
I would like to see a collection created named something like |
Thanx I had not realised the Tarballs could be opened without downloading 7-8Gb of data.
Collections – A Basic Guide – Internet Archive Help Center |
…stead of TERMUX_MAIN_PACKAGE_FORMAT Make changes as per new design implemented in termux/termux-app@b950efec and termux/termux-app#2740 The package build and termux-tools scripts use current package manager for custom logic. The `termux-tools/termux-setup-package-manager` script has been added that will now be used to provide backward compatibility for termux-app `< 0.119.0` (when its released) and validate the package manager. It will also ensure the variable in not unset to prevent `unbound variable` errors if `set -u` is being used by calling scripts. Closes termux#10782
…stead of TERMUX_MAIN_PACKAGE_FORMAT Make changes as per new design implemented in termux/termux-app@b950efec and termux/termux-app#2740 The package build and termux-tools scripts use current package manager for custom logic. The `termux-tools/termux-setup-package-manager` script has been added that will now be used to provide backward compatibility for termux-app `< 0.119.0` (when its released) and validate the package manager. It will also ensure the variable in not unset to prevent `unbound variable` errors if `set -u` is being used by calling scripts. Closes termux#10782
…stead of TERMUX_MAIN_PACKAGE_FORMAT Make changes as per new design implemented in termux/termux-app@b950efec and termux/termux-app#2740 The package build and termux-tools scripts use current package manager for custom logic. The `termux-tools/termux-setup-package-manager` script has been added that will now be used to provide backward compatibility for termux-app `< 0.119.0` (when its released) and validate the package manager. It will also ensure the variable in not unset to prevent `unbound variable` errors if `set -u` is being used by calling scripts. Closes termux#10782
…stead of TERMUX_MAIN_PACKAGE_FORMAT Make changes as per new design implemented in termux/termux-app@b950efec and termux/termux-app#2740 The package build and termux-tools scripts use current package manager for custom logic. The `termux-tools/termux-setup-package-manager` script has been added that will now be used to provide backward compatibility for termux-app `< 0.119.0` (when its released) and validate the package manager. It will also ensure the variable in not unset to prevent `unbound variable` errors if `set -u` is being used by calling scripts. Closes termux#10782
Thank you very much! A check on my Samsung was successful and workarounds on Pixel5-AVD are superfluous. Your master merge from A=23.May contain 2 additional sources (299) and the APK is 2MB larger than the version in front of it. The update today (B=16.June) contains a further 14 sources. My selfbuild version and yours are identical but with bugs:
I continue the checks. Do you interested in details of OTS? |
Thanks. Check latest build for bootstrap fix.
|
Thanks @agnostic-apollo. Bootstrap with self-build version (+241-11 loc mods in 7 of 313 soures) is Ok. In these cases is I check with termux:float (you plan to integrates in termux). There is still no boostrap after new installation or |
…stead of TERMUX_MAIN_PACKAGE_FORMAT Make changes as per new design implemented in termux/termux-app@b950efec and termux/termux-app#2740 The package build and termux-tools scripts use current package manager for custom logic. The `termux-tools/termux-setup-package-manager` script has been added that will now be used to provide backward compatibility for termux-app `< 0.119.0` (when its released) and validate the package manager. It will also ensure the variable in not unset to prevent `unbound variable` errors if `set -u` is being used by calling scripts. Closes #10782
…stead of TERMUX_MAIN_PACKAGE_FORMAT Make changes as per new design implemented in termux/termux-app@b950efec and termux/termux-app#2740 The package build and termux-tools scripts use current package manager for custom logic. The `termux-tools/termux-setup-package-manager` script has been added that will now be used to provide backward compatibility for termux-app `< 0.119.0` (when its released) and validate the package manager. It will also ensure the variable in not unset to prevent `unbound variable` errors if `set -u` is being used by calling scripts. Closes #10782
…stead of TERMUX_MAIN_PACKAGE_FORMAT Make changes as per new design implemented in termux/termux-app@b950efec and termux/termux-app#2740 The package build and termux-tools scripts use current package manager for custom logic. The `termux-tools/termux-setup-package-manager` script has been added that will now be used to provide backward compatibility for termux-app `< 0.119.0` (when its released) and validate the package manager. It will also ensure the variable in not unset to prevent `unbound variable` errors if `set -u` is being used by calling scripts. Closes #10782
… supporting android 5/6 for the time being Also fixes vulnerability detailed in https://termux.dev/en/posts/general/2022/02/15/termux-apps-vulnerability-disclosures.html#termuxtasker-privilege-escalation-vulnerability for Android 5/6 Related commit termux/termux-app@623aaebb Related pull request termux/termux-app#2740
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
@agnostic-apollo I installed Tasker for android 5 from ci build ( installed universal apk). But now termux-tasker-4 from fdroid doesn't work. When I tried to install, it installs, then it says app not installed ? |
@agnostic-apollo I can't download from above link for termux-tasker builds. Tried the latest one. It says artfact expired. |
Is there a working download location for the apks? All I can find is links that say "expired" and can't be downloaded from. |
Use newer GitHub Actions run: https://github.com/termux/termux-app/actions/runs/5371492529. Not released APKs available only via GitHub Actions. Or wait N weeks until release will be published. |
The links to the Android 5/6 APKs lead to a 404 page. |
Same |
https://github.com/termux/termux-app/actions?query=is%3Asuccess+event%3Apush It's impossible to keep giving direct links that will be outdated in a few months |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
I tried to find a method to connect via X11-forwarding to a remote desktop via Termux in Android 5.1. Would someone be able to help me with this? Specially @Grimler91 @agnostic-apollo |
Hi, I just installed Termux on my Galaxy tab s 10.5 tablet and it keeps giving me this error "Termux was unable to install the bootstrap packages". I really don't know how to solve it, here I leave you the Termux Boostrap Error. Thanks so much in advance for your help. |
Download from GitHub only for Android 5/6, not F-Droid. https://github.com/termux/termux-app/releases/tag/v0.119.0-beta.1 |
Thanks a lot, It works! |
This comment was marked as off-topic.
This comment was marked as off-topic.
Would it be possible to update termux-keyring to a newer version? The gpg keys in root-repo, science-repo, and game-repo have expired. I understand that this repo is "dead", but losing access to so many packages just because of a key expiration is very unfortunate. |
Instructions for installing Termux on Android 5/6 are available here.
Despite android
5/6
support officially ending on 2020-01-01, we are re-enabling support temporarily for android5/6
forv0.119.0+
. There are mainly two reasons for it, firstly, the repos provided in old APKs that were hosted on termux.net (#2651) and bintray(#2067) are gone now, creating issues for users who are still on old android versions. Secondly, old versions of termux-app, termux-tasker and termux-widget were affected by critical privilege escalation vulnerabilities as detailed in https://termux.github.io/general/2022/02/15/termux-apps-vulnerability-disclosures.html and so need to be patched.The
termux-app
did not require too many changes to enable android5/6
support, but there is no guarantee how long it would be supported. It could be disabled even after a single version if new library dependencies require it. Moreover, at least I will not spend lot of time in fixing any new or old bugs that only affect android5/6
, users would have to send pull requests for fixes.Support ofThis will allowTERMUX_PACKAGE_MANAGER
to build APKs with different package manager configurations has been enabled via 105a19a inbuild.gradle
.apk
packaging system ofupdated-flavor
branch to be supported to, possibly namedapk-android-7
, since it requires different bootstrap andbuild.gradle
tasks. Thepacman
format could be supported too @Maxython.The apk version name and file name will contain the package manager tag so that users/devs can know which variant is being used.Currently,apt-android-7
andapt-android-5
will be built for by the workflows.Users on android
5/6
must installapt-android-5
variants and users on android7+
should installapt-android-7
variants. You can grab APKs from https://github.com/termux/termux-app/actions/runs/2237286563. Make sure to uninstall any already installed termux or plugin app before installing new APK. Theapt-android-5
variants will only be released onGithub
and not onF-Droid
.Note that bootstrap and all the packages for
apt-android-5
would still be from two years ago and on old versions and will not be updated by me and possibly other devs as well, other than minor updates to some packages, users can send pull requests to https://github.com/termux/termux-packages/tree/android-5 branch.An updated bootstrap for
apt-android-5
will be added later, once termux/termux-packages#10330 is merged. Current APKs are based on the bootstrap intermux-v0.79-offline-bootstraps.apk
with apt repo andtermux-keyring
fixes.@Grimler91
science
andgame
repos will need to be signed with your new key. Thebootstrap_archives.yml
will have to append theapt-android-7
to$new_tag
andapt-android-5
for the new android-5 bootstrap, check updated releases at https://github.com/termux/termux-packages/releases/tag/bootstrap-2022.04.22-r1%2Bapt-android-7 and https://github.com/termux/termux-packages/releases/tag/bootstrap-2022.04.25-r1%2Bapt-android-5