Sujet : Re: programming/scripting on an Android device - suggestions ?
De : * (at) *nospam* eli.users.panix.com (Eli the Bearded)
Groupes : comp.mobile.androidDate : 14. Jun 2024, 01:20:54
Autres entêtes
Organisation : Some absurd concept
Message-ID : <eli$2406132020@qaz.wtf>
References : 1 2 3 4
User-Agent : Vectrex rn 2.1 (beta)
In comp.mobile.android, R.Wieser <
address@is.invalid> wrote:
Eli,
Python, Perl, GCC I have installed. There's few different Lua
packages, but I've never used them. Looks like most recent patch
levels of 5.2, 5.3, and 5.4, plus luajit.
Those work seperate from Termux, or are they a part of it ? If the first,
I could do with a link or two. :-)
They run inside Termux and operate with the same permissions as Termux.
Termux downloads precompiled binaries for them from a repo server. Once
you have enough of a build environment, you can compile and run things
locally. It feels like just another Linux distro with the quirks of an
new distro.
Biggest quirk is system tools in $HOME/../usr/bin instead of /bin and
/usr/bin. The trn build system needed a lot of /bin/sh patched away.
This is why Termux is F-Droid now instead of F-Droid and Play store.
Play has started to clamp down against programs creating new executibles
(or something like that, I'm not an Android dev).
Install Termux and plugins you want, Termux:API probably at minimum.
Configure your repos, I think `pkg up` will do that the first time run.
Then `pkg in python perl gcc lua54 vi git curl whatnot` then start
writing or importing your code. The Termux:API stuff allows you to do
various Android-y things. What depends on how locked down your system
is. On my Cat S61, I had a script reading the air quality sensor built
into the phone every five minutes using the sensors API. On other
devices I've had 'sudo' working or complete inability to use the API
even for set/read clipboard.
Elijah
------
okay, biggest quirk may be the really odd filesystem permissions