termux-app icon indicating copy to clipboard operation
termux-app copied to clipboard

Support for Android < 5 (4.*)

Open valerio-bozzolan opened this issue 11 years ago • 39 comments

I think that you was waiting for this request from your community :D

The Android Support Library is very useful for that.

(For the records: sadly my latest avaiable CyanogenMod is a 4.4)

valerio-bozzolan avatar Oct 28 '15 22:10 valerio-bozzolan

Only available on android 5+, that's why I can't install it? (Lastest for me is 4.4.4)

ZatsuneSakurako avatar Oct 31 '15 15:10 ZatsuneSakurako

Hi, Termux is only available on Android 5.0 or later indeed.

The app itself could be ported to run on previous Android versions, but porting the collection of packages are a considerable larger task, since Android broke compatibility of the system libc in Android 5.

Would the app itself (without many packages) be interesting in itself for older versions, running just as a terminal emulator?

fornwall avatar Oct 31 '15 17:10 fornwall

It mean, without things like nano?

ZatsuneSakurako avatar Oct 31 '15 17:10 ZatsuneSakurako

Yes, a question is if people are interested in running Termux just as a terminal emulator without packages (which could then be made to run on previous Android versions, and more cpu arches such as mips). Or if it's not much point in making a "Termux Terminal" without packages...

fornwall avatar Nov 03 '15 11:11 fornwall

Dunno if it's much useful, there's several other terminal apps

ZatsuneSakurako avatar Nov 03 '15 17:11 ZatsuneSakurako

I'd be extremely interested in running Termux on 4.0 ICS. My previous phone is an Atrix HD, ICS & JB stock roms, but only the ICS stock works with my Motorola Lapdock 500 - a phone dock with a 13" screen, keyboard, & touchpad (hdmi driver changed in the kernel between ICS & JB as well as it's settings in the stock rom removed).

Currently my solution is to use Linux Deploy and use an Arch Linux chroot for advanced needs, but Termux does all that I need to use that chroot for -- Zsh shell, ssh, quick nano edits.

My current phone is the LG G3 and Termux works great. It's one of my go-to, must have applications now (especially since Zshaolin doesn't work past KitKat). Just purchased Styling and I'm picking up Float once I get a few more Google Rewards surveys.

skeevy420 avatar Nov 09 '15 15:11 skeevy420

Could we replace package manager "APT" with "emerge(Portage)" (in Gentoo) to support more cpu arches.

linhua55 avatar Dec 18 '15 02:12 linhua55

@linhua55 pacman as mentioned here https://github.com/termux/termux-packages/issues/104 would be likely be good. Plus http://archlinuxarm.org/packages already has many prebuild armv6 packages and there are mips packages somewhere aswell

ThePreviousOne avatar Dec 28 '15 07:12 ThePreviousOne

@fornwall, what specific libc compatibility did you have in mind? I've been porting the D standard library to use bionic back to API 9 and have had few issues, though only tested on actual devices back to API 16, ie 4.1 Jelly Bean, so far. If you simply compile using the NDK compilers against an older API, Android maintains backward compatibility, so the resulting binaries should work on Android 4 (well, technically even back to Android 2).

joakim-noah avatar Jan 02 '16 10:01 joakim-noah

what about using arch linux arm packages? would they work?

franciscod avatar Jan 17 '16 01:01 franciscod

I have a 2.3.7 armv6 phone if it will help.

easyaspi314 avatar Feb 13 '16 16:02 easyaspi314

@franciscod, if you did something similar to this, you might be able to use Arch linux arm packages, if you packaged glibc too.

joakim-noah avatar Feb 15 '16 09:02 joakim-noah

nice link! thanks, KBOX seems similar to termux, we should probably mention that somewhere and list some of their similarities/differences

franciscod avatar Feb 15 '16 12:02 franciscod

@fornwall Hi Fredrik! I would very much be interested in a down-port of only the core app as well. I assume that would mean that most of the nifty addons like api and widgets will not work. The one package I would need to make this useful is openssh - I assume when you say "without many packages" ssh would/could be included.

Why would this be so great? Because the usability of the terminal itself is really good: pinch to zoom, I am able to use the standard keyboard (and do not have to ressort to hacker's keyboard) because of the VolUp/VolDown shortcuts, easy copy/paste, wakelock...

If you can go lower than Kitkat it would be great (4.2 would be very nice).

Cheers, Raja

voidling42 avatar May 04 '16 11:05 voidling42

4.1. Might as well support that; they are almost identical and 4.1 has 7% usage, rather significant for Android.

There are only a few differences which usually can be fixed with reflection. It also supports PIE.

easyaspi314 avatar May 04 '16 12:05 easyaspi314

Can you point us in the right direction for a port?

I've allready changed the theme to AppCompat

Some mentioned here a lib change. Can you indicate which your jni calls use the newer lib?

ghost avatar Jul 14 '16 07:07 ghost

Backported the android.system.os code..

any indication of what other new apis were used is appreciated

ghost avatar Jul 14 '16 09:07 ghost

jni looks pretty std..

ghost avatar Jul 14 '16 10:07 ghost

on 4.4.2 crashes on launch every time. I suspect my lack of knowledge in Material designn backporting is at play. .. uninstall. :)

ghost avatar Jul 14 '16 11:07 ghost

Its not all about material design... You have to change the minimum sdk and other things (Just run after changing the sdk and check logcat if there is crashes)

TheDiamondYT1 avatar Sep 29 '16 14:09 TheDiamondYT1