Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.mobile.android > #142011

Re: programming/scripting on an Android device - suggestions ?

From Anne de Royde <AdR@spam.invalid>
Newsgroups comp.mobile.android
Subject Re: programming/scripting on an Android device - suggestions ?
References <v49hdi$12a13$1@dont-email.me> <Q5baO.7751$9d96.7423@usenetxs.com> <v4crr5$1pumc$1@dont-email.me>
Message-ID <dXxaO.2157$WOa6.820@usenetxs.com> (permalink)
Date 2024-06-13 08:18 +0000

Show all headers | View raw


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

Back to comp.mobile.android | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

programming/scripting on an Android device - suggestions ? "R.Wieser" <address@is.invalid> - 2024-06-11 14:53 +0200
  Re: programming/scripting on an Android device - suggestions ? Kees Nuyt <k.nuyt@nospam.demon.nl> - 2024-06-11 15:58 +0200
    Re: programming/scripting on an Android device - suggestions ? "R.Wieser" <address@is.invalid> - 2024-06-11 17:53 +0200
      Re: programming/scripting on an Android device - suggestions ? Andy Burns <usenet@andyburns.uk> - 2024-06-11 17:09 +0100
        Re: programming/scripting on an Android device - suggestions ? Andrew <andrew@spam.net> - 2024-06-11 20:05 +0000
        Re: programming/scripting on an Android device - suggestions ? "R.Wieser" <address@is.invalid> - 2024-06-12 08:15 +0200
      Re: programming/scripting on an Android device - suggestions ? Eli the Bearded <*@eli.users.panix.com> - 2024-06-11 21:12 +0000
        Re: programming/scripting on an Android device - suggestions ? "R.Wieser" <address@is.invalid> - 2024-06-12 08:19 +0200
          Re: programming/scripting on an Android device - suggestions ? Eli the Bearded <*@eli.users.panix.com> - 2024-06-14 00:20 +0000
            Re: programming/scripting on an Android device - suggestions ? "R.Wieser" <address@is.invalid> - 2024-06-15 10:06 +0200
              Re: programming/scripting on an Android device - suggestions ? Eli the Bearded <*@eli.users.panix.com> - 2024-06-16 07:28 +0000
                Re: programming/scripting on an Android device - suggestions ? "W. Greenhouse" <wgreenhouse@tilde.club> - 2024-06-16 13:46 +0000
      Re: programming/scripting on an Android device - suggestions ? Bob Martin <bob.martin@excite.com> - 2024-06-12 05:10 +0000
        Re: programming/scripting on an Android device - suggestions ? "R.Wieser" <address@is.invalid> - 2024-06-12 21:13 +0200
  Re: programming/scripting on an Android device - suggestions ? Richmond <dnomhcir@gmx.com> - 2024-06-11 18:01 +0100
  Re: programming/scripting on an Android device - suggestions ? Andrew <andrew@spam.net> - 2024-06-11 20:05 +0000
    Re: programming/scripting on an Android device - suggestions ? "R.Wieser" <address@is.invalid> - 2024-06-12 08:02 +0200
  Re: programming/scripting on an Android device - suggestions ? Anne de Royde <AdR@spam.invalid> - 2024-06-12 06:19 +0000
    Re: programming/scripting on an Android device - suggestions ? "R.Wieser" <address@is.invalid> - 2024-06-12 20:42 +0200
      Re: programming/scripting on an Android device - suggestions ? Anne de Royde <AdR@spam.invalid> - 2024-06-13 08:18 +0000
        Re: programming/scripting on an Android device - suggestions ? "R.Wieser" <address@is.invalid> - 2024-06-13 10:48 +0200
          Re: programming/scripting on an Android device - suggestions ? Anne de Royde <AdR@spam.invalid> - 2024-06-14 07:25 +0000
            Re: programming/scripting on an Android device - suggestions ? Andrew <andrew@spam.net> - 2024-06-14 20:34 +0000
            Re: programming/scripting on an Android device - suggestions ? "R.Wieser" <address@is.invalid> - 2024-06-15 11:24 +0200
              Re: programming/scripting on an Android device - suggestions ? Anne de Royde <AdR@spam.invalid> - 2024-06-16 07:29 +0000
  Re: programming/scripting on an Android device - suggestions ? Dave Royal <dave@dave123royal.com> - 2024-06-12 07:26 +0100
    Re: programming/scripting on an Android device - suggestions ? "R.Wieser" <address@is.invalid> - 2024-06-12 20:58 +0200
      Re: programming/scripting on an Android device - suggestions ? Dave Royal <dave@dave123royal.com> - 2024-06-13 06:25 +0100
        Re: programming/scripting on an Android device - suggestions ? "R.Wieser" <address@is.invalid> - 2024-06-13 10:24 +0200
  Re: programming/scripting on an Android device - suggestions ? Arno Welzel <usenet@arnowelzel.de> - 2024-06-12 12:58 +0200
    Re: programming/scripting on an Android device - suggestions ? "R.Wieser" <address@is.invalid> - 2024-06-12 21:10 +0200
    Re: programming/scripting on an Android device - suggestions ? "R.Wieser" <address@is.invalid> - 2024-06-12 21:32 +0200

csiph-web