• programming/scripting on an Android device - suggestions ?

    From R.Wieser@21:1/5 to All on Tue Jun 11 14:53:57 2024
    Hello all,

    I would like to be able to program/script on a smartphone itself (meaning:
    not having to use a PC).

    I did find a script-language launcher but surprisingly no APK downloads to programming/scripting languages.

    I've found some mentioning of a few different programming/scripting
    languages (like lua and python), but surprisingly no indication of APK downloads to any of them.

    Question:

    Does someone know of websites offering APKs for download ?

    - or even better: websites which offer the APK as well as containing a
    tutorial to its usage (on an Android smartphone).

    Regards,
    Rudy Wieser

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Kees Nuyt@21:1/5 to [email protected] on Tue Jun 11 15:58:49 2024
    On Tue, 11 Jun 2024 14:53:57 +0200, "R.Wieser"
    <[email protected]d> wrote:

    Hello all,

    I would like to be able to program/script on a smartphone itself
    (meaning: not having to use a PC).

    You may like Termux.

    https://f-droid.org/packages/com.termux/

    https://play.google.com/store/search?q=termux&c=apps
    --
    Kees Nuyt

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From R.Wieser@21:1/5 to All on Tue Jun 11 17:53:47 2024
    Kees,

    You may like Termux.

    Following the link to the webpage (and to https://wiki.termux.com/ ) it
    seems to be an all-in-one program, trying to emulate a Linux environment.
    And thats (currently) not what I'm after.

    Also, AFAIK compiling with GCC doesn't generate anything that will run on an android smartphone ?


    Starting with a basic flat-text editor to create scripts and than tapping
    the scrips to run them is, at least for now, more in the direction of what
    I'm after. Being able to compile a sourcefile into a native program for my smartphone would be nice too.

    I already have a few flat-text editors to write scripts with, now all I need
    is something(s) which will actually execute those scripts. Like
    interpreters for LUA, Python and others - and perhaps a compiler or two.

    Regards,
    Rudy Wieser

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andy Burns@21:1/5 to R.Wieser on Tue Jun 11 17:09:19 2024
    R.Wieser wrote:

    Following the link to the webpage (and to https://wiki.termux.com/ ) it
    seems to be an all-in-one program, trying to emulate a Linux environment.
    And thats (currently) not what I'm after.

    I think it does a poor job of describing itself ...it isn't a linux
    emulator, it's a terminal emulator that provides access to the real
    linux that underpins android

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Richmond@21:1/5 to R.Wieser on Tue Jun 11 18:01:28 2024
    "R.Wieser" <[email protected]d> writes:

    I would like to be able to program/script on a smartphone itself (meaning: not having to use a PC).


    You could write javascript and run it with a web browser.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andrew@21:1/5 to Andy Burns on Tue Jun 11 20:05:30 2024
    Andy Burns wrote on Tue, 11 Jun 2024 17:09:19 +0100 :

    I think it does a poor job of describing itself ...it isn't a linux
    emulator, it's a terminal emulator that provides access to the real
    linux that underpins android

    What I need, somewhat along the lines of what Rudy Weiser is asking for, is
    the ability to clone an APK and then make desired changes to the source.

    If you know of any tutorials that make use of that cloning, let me know,
    as I only know about these Windows-based apps which were posted previously.
    <https://adbappcontrol.com/en/>
    <https://qwertycube.com/apk-editor-studio/>
    <https://apktool.org/docs/install/>
    <https://clonemy.app/>

    The advantage of cloning is you can make changes & re-install the app.
    <https://xdaforums.com/t/tool-clonemyapp-android-apk-cloner.4513777/>

    The trick is in finding a step-by-step tutorial showing how to do it.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andrew@21:1/5 to R.Wieser on Tue Jun 11 20:05:28 2024
    R.Wieser wrote on Tue, 11 Jun 2024 14:53:57 +0200 :

    Does someone know of websites offering APKs for download ?

    All the open source apps are on sites offering APK source for download.
    Aren't they?

    If so, finding source code is NOT your main problem.

    Building the APK from that source code is the main problem, IMHO. https://xdaforums.com/t/is-there-a-walk-thru-step-by-step-tutorial-yet-for-compiling-existing-real-android-foss-src-found-on-github-that-is-on-this-xda-developers-forum.4571127/

    If you figure out how to build from source, I have a need for that skill! https://xdaforums.com/t/apps-what-no-root-free-real-fm-am-radio-tuner-app-do-you-use-that-has-no-ads-do-you-know-how-to-build-the-spirit1-no-root-source-code.4641228/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Eli the Bearded@21:1/5 to R.Wieser on Tue Jun 11 21:12:45 2024
    In comp.mobile.android, R.Wieser <[email protected]d> wrote:
    Following the link to the webpage (and to https://wiki.termux.com/ ) it
    seems to be an all-in-one program, trying to emulate a Linux environment.
    And thats (currently) not what I'm after.

    Also, AFAIK compiling with GCC doesn't generate anything that will run on an android smartphone ?

    I compile and run stuff with gcc in Termux. (Notably I only try to
    compile command line / TUI programs.)

    Starting with a basic flat-text editor to create scripts and than tapping
    the scrips to run them is, at least for now, more in the direction of what I'm after. Being able to compile a sourcefile into a native program for my smartphone would be nice too.

    I use Termux:Widget to run scripts from $HOME/.shortcuts/ in a Termux
    shell after tapping an icon on the launcher.

    I already have a few flat-text editors to write scripts with, now all I need is something(s) which will actually execute those scripts. Like interpreters for LUA, Python and others - and perhaps a compiler or two.

    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.

    My Termux these is mostly ssh and scripts for image processing (rotate
    and resize, stripping metadata, sending off to APIs with curl, that sort
    of thing).

    Elijah
    ------
    a bit of clipboard management, too

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Bob Martin@21:1/5 to R.Wieser on Wed Jun 12 05:10:57 2024
    On 11 Jun 2024 at 15:53:47, "R.Wieser" <[email protected]d> wrote:
    Kees,

    You may like Termux.

    Following the link to the webpage (and to https://wiki.termux.com/ ) it
    seems to be an all-in-one program, trying to emulate a Linux environment.
    And thats (currently) not what I'm after.

    Also, AFAIK compiling with GCC doesn't generate anything that will run on an android smartphone ?


    Starting with a basic flat-text editor to create scripts and than tapping
    the scrips to run them is, at least for now, more in the direction of what I'm after. Being able to compile a sourcefile into a native program for my smartphone would be nice too.

    I already have a few flat-text editors to write scripts with, now all I need is something(s) which will actually execute those scripts. Like interpreters for LUA, Python and others - and perhaps a compiler or two.

    Have you tried DroidScript?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From R.Wieser@21:1/5 to All on Wed Jun 12 08:02:03 2024
    Andrew,

    Does someone know of websites offering APKs for download ?

    All the open source apps are on sites offering APK source for download. Aren't they?

    If so, finding source code is NOT your main problem.

    You're both turning the question upside-down, as well as answering a
    question I did not ask.

    What makes you think that the (LUA, Python interpreter/compiler) APKs I'm
    after are open source, and why do you think I'm after their source code ? I did not mention anything toward that.

    For the record: I'm after APKs for scripting-language
    interpreters/compilers, as well as tutorials for them (can't use one without the other).

    Regards,
    Rudy Wieser

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From R.Wieser@21:1/5 to All on Wed Jun 12 08:19:24 2024
    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. :-)

    Regards,
    Rudy Wieser

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From R.Wieser@21:1/5 to All on Wed Jun 12 08:15:40 2024
    Andy,

    I think it does a poor job of describing itself ...it isn't a linux
    emulator, it's a terminal emulator that provides access to the real linux that underpins android

    Hmmm.... if that is what it does than "a poor job" is a bit of an understatement.

    I might take a look at it than.

    Question: Any chance of tutorials to the usage of both termux as well as the (scripting) language(s) that it supports (including API level stuff to the smarthones hardware) ?

    Regards,
    Rudy Wieser

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Anne de Royde@21:1/5 to R.Wieser on Wed Jun 12 06:19:28 2024
    R.Wieser wrote:

    Hello all,

    I would like to be able to program/script on a smartphone itself (meaning: not having to use a PC).

    Will shell scripting meet your needs? Android comes with the MirBSD
    Korn Shell built in (/system/bin/sh). Just install a terminal emulator
    APK and start creating your own shell scripts.

    I did find a script-language launcher but surprisingly no APK downloads to programming/scripting languages.

    I've found some mentioning of a few different programming/scripting
    languages (like lua and python), but surprisingly no indication of APK downloads to any of them.

    Android's built-in MirBSD Korn Shell is not an APK. Other command-line utilities in Android's /system/bin are not APKs. APKs are generally GUI
    apps, not command-line utilities.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dave Royal@21:1/5 to R.Wieser on Wed Jun 12 07:26:30 2024
    "R.Wieser" <[email protected]d> Wrote in message:

    Hello all,

    I would like to be able to program/script on a smartphone itself (meaning: not having to use a PC).

    I did find a script-language launcher but surprisingly no APK downloads to programming/scripting languages.

    I've found some mentioning of a few different programming/scripting
    languages (like lua and python), but surprisingly no indication of APK downloads to any of them.

    Question:

    Does someone know of websites offering APKs for download ?

    - or even better: websites which offer the APK as well as containing a tutorial to its usage (on an Android smartphone).

    Regards,
    Rudy Wieser

    Years ago I used SL4A, Py4A to run Python scripts on Android but I
    don't think it has worked for several years: <https://github.com/kuri65536/sl4a>
    I see the ex-maintainer mentions using termux: <https://github.com/kuri65536/sl4a/issues/50>

    I've also used pydroid and I see that pydroid3 is in the
    playstore. It wasn't a paid app when I used it.

    These days I use Kivy but I develop on a Linux PC and build an
    Android apk. Kivy provides a gui api which you can use in Python.
    (There's also a layout builder though I've not used it.) There
    used to be a Kivy Launcher app which would run a Kivy/Python
    script on Android but it's not it the playstore though it was a
    couple of years ago.
    --
    Remove numerics from my email address.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Arno Welzel@21:1/5 to All on Wed Jun 12 12:58:43 2024
    R.Wieser, 2024-06-11 14:53:

    I would like to be able to program/script on a smartphone itself (meaning: not having to use a PC).

    I did find a script-language launcher but surprisingly no APK downloads to programming/scripting languages.

    I've found some mentioning of a few different programming/scripting
    languages (like lua and python), but surprisingly no indication of APK downloads to any of them.

    Python:

    <https://play.google.com/store/apps/details?id=ru.iiec.pydroid3>

    Lua:

    <https://play.google.com/store/apps/details?id=com.alif.ide.lua>

    Both can be found quite easy by just searching von "Python" or "Lua" in
    Google Play.


    --
    Arno Welzel
    https://arnowelzel.de

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From R.Wieser@21:1/5 to All on Wed Jun 12 20:58:18 2024
    Dave,

    Years ago I used SL4A, Py4A to run Python scripts on Android but
    I don't think it has worked for several years: <https://github.com/kuri65536/sl4a>

    Hmmm.. while googeling I also found it, and an APK to it. But as it
    presented itself as a layer upon which scripting interpreters could be installed (read: it doesn't offer any scripting capabilities itself) I
    decided to see if simpler solutions where available.

    I see the ex-maintainer mentions using termux: <https://github.com/kuri65536/sl4a/issues/50>

    Thats a +1 for termux I guess. :-)

    These days I use Kivy but I develop on a Linux PC and build
    an Android apk.

    I also encountered that one, but its what I'm trying to evade, having to use
    a PC. You see, I don't think that my old 'puter running XP (or a single
    other one running Win7) wil be able to run stuff like that.

    Any ideas about using a Raspberry Pi for it ?

    ... it's not it the playstore

    I have absolutily zero problems with staying outof googles garden.

    Regards,
    Rudy Wieser

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From R.Wieser@21:1/5 to All on Wed Jun 12 20:42:59 2024
    Anne,

    I would like to be able to program/script on a smartphone itself
    (meaning:
    not having to use a PC).

    Will shell scripting meet your needs? Android comes with the MirBSD
    Korn Shell built in (/system/bin/sh).

    Currently I have nothing, so /anything/ would be an improvement.

    Just install a terminal emulator APK and start creating your
    own shell scripts.

    Just *any* terminal emulator ? Or should it have a specific capability (the "terminal emulator"s I know of needed to connect by either serial or
    ethernet to a server). IOW, any suggestion to a terminal program* ?

    * Termux was suggested. I assumed it tried to emulate a linux environment,
    but reading your post its quite possible that it connects to that Korn
    shell.

    Android's built-in MirBSD Korn Shell is not an APK.

    I was not aware that there was simething build-in available, hence my search for external software.

    Other command-line utilities in Android's /system/bin are not APKs.

    A question though : where would I find the above folder ? I've got a file browser, but it doesn't show any such folder.

    Regards,
    Rudy Wieser

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From R.Wieser@21:1/5 to All on Wed Jun 12 21:10:12 2024
    Arno,

    Python:

    <https://play.google.com/store/apps/details?id=ru.iiec.pydroid3>

    Lua:

    <https://play.google.com/store/apps/details?id=com.alif.ide.lua>

    Thanks. But those are complete programming environments (IDEs), while I'm looking for just the interpreter program which will execute a script.

    Like on my PC I can write scripts (in a few different languages) using any flat-text editor I want (notepad, word, norton editor), and than just run
    them by double-clicking them.

    Both can be found quite easy by just searching von "Python" or "Lua"
    in Google Play.

    I've got a non-google android phone (Graphene OS), and if possible I want to keep it that way. (I wrote a small program to extract the permissions of
    APKs I downloaded onto my PC (so that I can backup them) and its sometimes frightening to see how many and which some programs seem to need).

    Regards,
    Rudy Wieser

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From R.Wieser@21:1/5 to All on Wed Jun 12 21:32:57 2024
    Arno,

    Lua:

    <https://play.google.com/store/apps/details?id=com.alif.ide.lua>

    Hmmmm. I just downloaded it (from apkpure) and checked the permissions (as provided by the androidmanifest.xml file), but didn't see any permissions
    for blootooth, wifi or even the buzzer. Should I assume its a rather
    limited language (in regard to access of the smartphones hardware) ?

    Regards,
    Rudy Wieser

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From R.Wieser@21:1/5 to All on Wed Jun 12 21:13:00 2024
    Bob,

    Have you tried DroidScript?

    I don't think I have even encountered it. :-)

    Thanks for the suggestion, I'll try to find it to take a peek.

    Regards,
    Rudy Wieser

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dave Royal@21:1/5 to R.Wieser on Thu Jun 13 06:25:55 2024
    "R.Wieser" <[email protected]d> Wrote in message:

    Dave,

    Years ago I used SL4A, Py4A to run Python scripts on Android but
    I don't think it has worked for several years:
    <https://github.com/kuri65536/sl4a>

    Hmmm.. while googeling I also found it, and an APK to it. But as it presented itself as a layer upon which scripting interpreters could be installed (read: it doesn't offer any scripting capabilities itself) I decided to see if simpler solutions where available.

    PY4A - Python for Android - ran on SL4A. But I suspect you need an
    old version of Android to run it.

    I see the ex-maintainer mentions using termux:
    <https://github.com/kuri65536/sl4a/issues/50>

    Thats a +1 for termux I guess. :-)

    These days I use Kivy but I develop on a Linux PC and build
    an Android apk.

    I also encountered that one, but its what I'm trying to evade, having to use a PC. You see, I don't think that my old 'puter running XP (or a single other one running Win7) wil be able to run stuff like that.

    Any ideas about using a Raspberry Pi for it ?

    <https://kivy.org/doc/stable/installation/installation-rpi.html>
    The documentaion is extensive but cryptic!

    I build and initially test on Linux, but you have to allow for the
    different display size/resolution. A proper keyboard and screen
    is the important thing.

    Whether kivy is for you depends what you want to build.

    ... it's not it the playstore

    I have absolutily zero problems with staying outof googles garden.

    It was just an example. I'm using a standard in-support tablet here.

    They may call pydroid an IDE, btw, but I'm pretty sure you can run
    scripts developed outside it. QPython was like that.
    --
    Remove numerics from my email address.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From R.Wieser@21:1/5 to All on Thu Jun 13 10:24:24 2024
    Dave,

    PY4A - Python for Android - ran on SL4A. But I suspect you need
    an old version of Android to run it.

    The AndroidManifest.xml of the SL4A APK I downloaded shows a
    "targetSdkVersion" of 14, which translates to below Android v4.1. And as AFAIK my phone runs Android 13 ... Yep, it goes onto the garbage heap. :-\

    Any ideas about using a Raspberry Pi for it ?

    <https://kivy.org/doc/stable/installation/installation-rpi.html>
    The documentaion is extensive but cryptic!

    I build and initially test on Linux, but you have to allow for the
    different display size/resolution. A proper keyboard and screen
    is the important thing.

    Yikes! I might be a hobby programmer, but asking a first-timer to configure something without clear instructions is just asking him to fail. Which
    (having to go thru a gazillion of tries to get the whole thing to work)
    isn't really my cup of tea.

    Whether kivy is for you depends what you want to build.

    :-) I started off with the desire to just being able to run a script or
    two. I'm not at all sure what I want to build. Starting with the famous "hello world" would be a first step, activating the "buzzer" a likely
    second. But being able to do something with BLE (detecting "beacon" broadcasts) has been in the back of my mind. I might even want to build something which draws stuff in a ... what do you call those apps which have
    a full-screen GUI presence ?

    They may call pydroid an IDE, btw, but I'm pretty sure you can run
    scripts developed outside it. QPython was like that.

    My consideration was more the opposite of that : if I could run scripts (written using the IDE or not) without having to interact with the IDE every time.

    Regards,
    Rudy Wieser

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Anne de Royde@21:1/5 to R.Wieser on Thu Jun 13 08:18:15 2024
    R.Wieser wrote:
    Anne,

    I would like to be able to program/script on a smartphone itself (meaning: >>> not having to use a PC).

    Will shell scripting meet your needs? Android comes with the MirBSD
    Korn Shell built in (/system/bin/sh).

    Currently I have nothing, so /anything/ would be an improvement.

    Just install a terminal emulator APK and start creating your
    own shell scripts.

    Just *any* terminal emulator ? Or should it have a specific capability (the "terminal emulator"s I know of needed to connect by either serial or
    ethernet to a server). IOW, any suggestion to a terminal program* ?

    * Termux was suggested. I assumed it tried to emulate a linux environment, but reading your post its quite possible that it connects to that Korn
    shell.

    You can use one of these, installed on Android:
    * TermOne Plus <https://play.google.com/store/apps/details?id=com.termoneplus>
    * Termux <https://play.google.com/store/apps/details?id=com.termux>

    These give you a shell prompt in a terminal emulator window on Android.
    Like a Linux 'Terminal' window, or a Windows 'Command Prompt' window.

    The commands available to you are whatever is already provided by your
    Android device.

    Android's built-in MirBSD Korn Shell is not an APK.

    I was not aware that there was simething build-in available, hence my search for external software.

    Other command-line utilities in Android's /system/bin are not APKs.

    A question though : where would I find the above folder ? I've got a file browser, but it doesn't show any such folder.

    I expect your file browser also does not show the folders where your APK
    apps are installed to. For example,
    * Where Firefox is installed: /data/app/org.mozilla.firefox/
    * Where MS Edge is installed: /data/app/com.microsoft.emmx/

    Some ways to *find* the folder /system/bin

    1. From the shell prompt in a terminal emulator window, enter a
    command such as
    which sh
    to report the location of the 'sh' command-line executable.
    Whether you can *list* the contents of this folder depends on
    the folder's permissions. To see the folder's permissions,
    try one of these:
    ls -ld /system/bin
    stat -c %a /system/bin

    2. 'ES File Explorer' used to have an option to show more of the
    file system. But I hear ES File Explorer went downhill with
    banner ads.

    3. Using adb on your desktop computer connected to your Android
    device.
    adb command to use: <https://adbshell.com/commands/adb-shell-ls>
    adb overview: <https://en.wikipedia.org/wiki/Android_Debug_Bridge>


    Regards,
    Rudy Wieser

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From R.Wieser@21:1/5 to All on Thu Jun 13 10:48:14 2024
    Anne,

    You can use one of these, installed on Android:
    * TermOne Plus <https://play.google.com/store/apps/details?id=com.termoneplus>
    * Termux
    <https://play.google.com/store/apps/details?id=com.termux>

    These give you a shell prompt in a terminal emulator window on Android.
    Like a Linux 'Terminal' window, or a Windows 'Command Prompt' window.

    Thanks for the links.

    The commands available to you are whatever is already provided by your Android device.

    :-) And how do I know what my android device provides ? Its not like
    we're in a cyberpunk world where I would just grab the knowledge chip that
    came with the phone and plug it into the socket in my neck.

    IOW, I'm a noobie. Do you know of a(ny) website carrying that kind of info (and preferrably some examples and perhaps even tutorials too) ?

    Other command-line utilities in Android's /system/bin are not APKs.

    A question though : where would I find the above folder ? I've got a
    file browser, but it doesn't show any such folder.

    I expect your file browser also does not show the folders where your
    APK apps are installed to. For example,
    * Where Firefox is installed: /data/app/org.mozilla.firefox/
    * Where MS Edge is installed: /data/app/com.microsoft.emmx/

    True. I just checked and the best I can find in that direction is an "/Android" folder with the subfolders "data", "media" and "obb" (I still
    have to check what those are ment for).

    Some ways to *find* the folder /system/bin

    Thanks for those instructions. I saved your message for future reference.

    Regards,
    Rudy Wieser

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Eli the Bearded@21:1/5 to R.Wieser on Fri Jun 14 00:20:54 2024
    In comp.mobile.android, R.Wieser <[email protected]d> 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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Anne de Royde@21:1/5 to R.Wieser on Fri Jun 14 07:25:37 2024
    R.Wieser wrote:
    Anne,

    The commands available to you are whatever is already provided by your
    Android device.

    :-) And how do I know what my android device provides ? Its not like
    we're in a cyberpunk world where I would just grab the knowledge chip that came with the phone and plug it into the socket in my neck.

    Android is based on (a modified version of) Linux.

    Get a manual of Linux commands. Then experiment. Try different
    commands to see whether your particular Android device has that
    command or not.

    IOW, I'm a noobie. Do you know of a(ny) website carrying that kind of info (and preferrably some examples and perhaps even tutorials too) ?

    If you are also a Linux noobie, start by learning about Linux commands.

    * "The Linux command line for beginners"
    <https://ubuntu.com/tutorials/command-line-for-beginners>
    Although this tutorial was written for Ubuntu, much of it will
    also apply to Android - after you have installed a terminal
    emulator on Android.

    * "The Linux Commands Handbook"
    <https://bjpcjp.github.io/pdfs/devops/linux-commands-handbook.pdf>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andrew@21:1/5 to Anne de Royde on Fri Jun 14 20:34:01 2024
    Anne de Royde wrote on Fri, 14 Jun 2024 07:25:37 -0000 :

    Android is based on (a modified version of) Linux.

    As an aside, anyone (even non rooted phones) can freely add almost any
    Linux distro to Android, if that's something people might want to try.

    <https://andronix.app/>

    There are a lot of threads about this already, so no sense in repeating.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From R.Wieser@21:1/5 to All on Sat Jun 15 10:06:58 2024
    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.

    Any chance I can download them and than offer them to termux? You see, I
    have a deep-rooted wish to backup stuff like that. System crashes and all that.

    Install Termux and plugins you want, Termux:API probably at minimum. Configure your repos,

    Thats some sort of Linux inside joke, isn't it ? "You configure it". I
    have *zero* information on either termux or any of those plugins, but I'm expected to configure them ? How ? :-(

    The Termux:API stuff allows you to do various Android-y things.
    ...
    I had a script reading the air quality sensor built into the phone
    every five minutes using the sensors API.

    Yep, thats (in general) what I'm after. :-)


    So, any chance that you know of any tutorial in regard to termux and its (program languages) plugins ? I don't think I will even /try/ to install it without having anything to go on.

    Regards,
    Rudy Wieser

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From R.Wieser@21:1/5 to All on Sat Jun 15 11:24:54 2024
    Anne,

    Android is based on (a modified version of) Linux.

    Get a manual of Linux commands. Then experiment.

    :-) You're talking about the mundane stuff like being able to navigate the filesystem and run programs. I'm rather sure that my time with a Raspberry
    Pi will have been beneficial toward that. I just have to remember the
    execute bit and the ".\" prefix.

    No, I'm talking about the specific Linux version on the phone and what it offers that other linux versions do not.

    Especially in regard to programming (see subjectline), which means API
    support towards the devices capabilities.

    If learning some basics of Linux (and C ) was my goal I would have kept my attention on a Raspberry Pi. And that got, due to absense of information
    (and half implemented features but fully mentioned in header files),
    cumbersome fast.

    ... hence my request for information /before/ I go off the deep end.

    If you are also a Linux noobie,

    I am. Just like I will be a noobie on the next version of Windows - even if I've been using Windows in general for a good number of years now.

    Regards,
    Rudy Wieser

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Anne de Royde@21:1/5 to R.Wieser on Sun Jun 16 07:29:36 2024
    R.Wieser wrote:

    Especially in regard to programming (see subjectline), which means API support towards the devices capabilities.

    Android itself is deliberately designed as an end-user GUI environment
    only, not a programming environment. In this matter Android differs from
    both Linux and Windows.

    Yes, there is some support for scripting (see subjectline) in Android
    when you install a third-party terminal emulator.

    But if you also require API support towards device capabilities, you may
    need to call Android APIs from Kotlin or Java and cross-compile for
    Android on a desktop computer. :-(

    There is also the matter of Android permissions. For example, to access
    the device's camera the program needs the Android 'Camera' permission.
    Scripts do not have Android permissions. Only APK apps can have Android permissions.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Eli the Bearded@21:1/5 to R.Wieser on Sun Jun 16 07:28:49 2024
    In comp.mobile.android, R.Wieser <[email protected]d> wrote:
    Any chance I can download them and than offer them to termux? You see, I have a deep-rooted wish to backup stuff like that. System crashes and all that.

    Once downloaded, you can back them up. I use rsync (running in Termux).
    The directory tree is all readable inside the app.

    General layout:

    /data/data/com.termux/files
    /cache
    /code_cache
    /files
    /home
    /usr
    /bin
    /etc
    /include
    /lib
    /libexec
    /share
    /tmp
    /var
    /shared_preds

    Install Termux and plugins you want, Termux:API probably at minimum. Configure your repos,
    Thats some sort of Linux inside joke, isn't it ? "You configure it". I
    have *zero* information on either termux or any of those plugins, but I'm expected to configure them ? How ? :-(

    As I recall it was just a matter of selecting which of the list I'd
    prefer to use. I prefer not to use any of the ones in China and prefer
    to try North American ones first. It's faster to pick ones that are not
    an ocean away.

    So, any chance that you know of any tutorial in regard to termux and its (program languages) plugins ? I don't think I will even /try/ to install it without having anything to go on.

    There's a difference there between us. I tried first, then looked for
    help with what I wanted. I don't know of a tutorial, but I haven't
    looked for one either. There's a mailing list, which I'm on, that gets
    very little traffic. There's a wiki with some basic info. There's code
    and issue tracking at github.

    https://wiki.termux.com/wiki/Main_Page https://wiki.termux.com/wiki/Getting_started

    https://github.com/termux/

    People also ask and answer questions here. I try to read all the posts
    with Termux in the Subject, but this group is pretty far down my .newsrc
    so I don't reach it every time I look at Usenet.

    Elijah
    ------
    wants a pocket computer more than a portable phone

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From W. Greenhouse@21:1/5 to Eli the Bearded on Sun Jun 16 13:46:14 2024
    Eli the Bearded <*@eli.users.panix.com> writes:

    In comp.mobile.android, R.Wieser <[email protected]d> wrote:
    Any chance I can download them and than offer them to termux? You
    see, I have a deep-rooted wish to backup stuff like that. System
    crashes and all that.

    Once downloaded, you can back them up. I use rsync (running in Termux).
    The directory tree is all readable inside the app.

    General layout:

    /data/data/com.termux/files
    /cache
    /code_cache
    /files
    /home
    /usr
    /bin
    /etc
    /include
    /lib
    /libexec
    /share
    /tmp
    /var
    /shared_preds

    I use `restic` from within termux to back up my termux environment which
    also works well. A basic backup/restore is described on the official
    wiki at https://wiki.termux.com/wiki/Backing_up_Termux.

    So, any chance that you know of any tutorial in regard to termux and
    its (program languages) plugins ? I don't think I will even /try/ to
    install it without having anything to go on.

    There's a difference there between us. I tried first, then looked for
    help with what I wanted. I don't know of a tutorial, but I haven't
    looked for one either. There's a mailing list, which I'm on, that gets
    very little traffic. There's a wiki with some basic info. There's code
    and issue tracking at github.

    https://wiki.termux.com/wiki/Main_Page https://wiki.termux.com/wiki/Getting_started

    https://github.com/termux/

    People also ask and answer questions here. I try to read all the posts
    with Termux in the Subject, but this group is pretty far down my .newsrc
    so I don't reach it every time I look at Usenet.

    Elijah
    ------
    wants a pocket computer more than a portable phone

    There's also an IRC channel, #termux on irc.libera.chat and a Matrix
    channel, #termux_termux:gitter.im, both reasonably responsive.

    --wgreenhouse

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)