Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

You will be held hostage by a radical group.


comp / comp.mobile.android / programming/scripting on an Android device - suggestions ?

SubjectAuthor
* programming/scripting on an Android device - suggestions ?R.Wieser
+* Re: programming/scripting on an Android device - suggestions ?Kees Nuyt
|`* Re: programming/scripting on an Android device - suggestions ?R.Wieser
| +* Re: programming/scripting on an Android device - suggestions ?Andy Burns
| |+- Re: programming/scripting on an Android device - suggestions ?Andrew
| |`- Re: programming/scripting on an Android device - suggestions ?R.Wieser
| +* Re: programming/scripting on an Android device - suggestions ?Eli the Bearded
| |`* Re: programming/scripting on an Android device - suggestions ?R.Wieser
| | `* Re: programming/scripting on an Android device - suggestions ?Eli the Bearded
| |  `* Re: programming/scripting on an Android device - suggestions ?R.Wieser
| |   `* Re: programming/scripting on an Android device - suggestions ?Eli the Bearded
| |    `- Re: programming/scripting on an Android device - suggestions ?W. Greenhouse
| `* Re: programming/scripting on an Android device - suggestions ?Bob Martin
|  `- Re: programming/scripting on an Android device - suggestions ?R.Wieser
+- Re: programming/scripting on an Android device - suggestions ?Richmond
+* Re: programming/scripting on an Android device - suggestions ?Andrew
|`- Re: programming/scripting on an Android device - suggestions ?R.Wieser
+* Re: programming/scripting on an Android device - suggestions ?Anne de Royde
|`* Re: programming/scripting on an Android device - suggestions ?R.Wieser
| `* Re: programming/scripting on an Android device - suggestions ?Anne de Royde
|  `* Re: programming/scripting on an Android device - suggestions ?R.Wieser
|   `* Re: programming/scripting on an Android device - suggestions ?Anne de Royde
|    +- Re: programming/scripting on an Android device - suggestions ?Andrew
|    `* Re: programming/scripting on an Android device - suggestions ?R.Wieser
|     `- Re: programming/scripting on an Android device - suggestions ?Anne de Royde
`* Re: programming/scripting on an Android device - suggestions ?Arno Welzel
 +- Re: programming/scripting on an Android device - suggestions ?R.Wieser
 `- Re: programming/scripting on an Android device - suggestions ?R.Wieser

Pages:12
Subject: programming/scripting on an Android device - suggestions ?
From: R.Wieser
Newsgroups: comp.mobile.android
Organization: A noiseless patient Spider
Date: Tue, 11 Jun 2024 12:53 UTC
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: comp.mobile.android
Subject: programming/scripting on an Android device - suggestions ?
Date: Tue, 11 Jun 2024 14:53:57 +0200
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <v49hdi$12a13$1@dont-email.me>
Injection-Date: Tue, 11 Jun 2024 14:54:10 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="913e19027b67fe984242a8fb107cbc7b";
logging-data="1124387"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19NuuXRWbeP1dr5CGNMLfTyibYdTArFZKkO/aDqHqW3bQ=="
Cancel-Lock: sha1:6iu1oH7sVIvxbC+6hUYdjgDP6UQ=
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Original
View all headers

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

Subject: Re: programming/scripting on an Android device - suggestions ?
From: Kees Nuyt
Newsgroups: comp.mobile.android
Organization: KPN B.V.
Date: Tue, 11 Jun 2024 13:58 UTC
References: 1
From: k.nuyt@nospam.demon.nl (Kees Nuyt)
Newsgroups: comp.mobile.android
Subject: Re: programming/scripting on an Android device - suggestions ?
Date: Tue, 11 Jun 2024 15:58:49 +0200
Reply-To: k.nuyt@nospam.demon.nl
Message-ID: <dtlg6jhj3e2tbg0ltpvc5ocu2gm3smdk69@dim53.demon.nl>
References: <v49hdi$12a13$1@dont-email.me>
User-Agent: ForteAgent/7.10.32.1214
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Organization: KPN B.V.
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!2.eu.feeder.erje.net!feeder.erje.net!feed.abavia.com!abe006.abavia.com!abp001.abavia.com!news.kpn.nl!not-for-mail
Lines: 16
Injection-Date: Tue, 11 Jun 2024 15:58:51 +0200
Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com"
View all headers

On Tue, 11 Jun 2024 14:53:57 +0200, "R.Wieser"
<address@is.invalid> 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

Subject: Re: programming/scripting on an Android device - suggestions ?
From: R.Wieser
Newsgroups: comp.mobile.android
Organization: A noiseless patient Spider
Date: Tue, 11 Jun 2024 15:53 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: comp.mobile.android
Subject: Re: programming/scripting on an Android device - suggestions ?
Date: Tue, 11 Jun 2024 17:53:47 +0200
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <v49rvl$14bo8$1@dont-email.me>
References: <v49hdi$12a13$1@dont-email.me> <dtlg6jhj3e2tbg0ltpvc5ocu2gm3smdk69@dim53.demon.nl>
Injection-Date: Tue, 11 Jun 2024 17:54:29 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="913e19027b67fe984242a8fb107cbc7b";
logging-data="1191688"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19I7Mo+lRUS/feJ4QCO1EE1+Lmpqm7udhHlBR95SPIrhA=="
Cancel-Lock: sha1:vuyv/Qrzzq7BjXuF9ul2e2Yeank=
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
View all headers

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

Subject: Re: programming/scripting on an Android device - suggestions ?
From: Andy Burns
Newsgroups: comp.mobile.android
Date: Tue, 11 Jun 2024 16:09 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: usenet@andyburns.uk (Andy Burns)
Newsgroups: comp.mobile.android
Subject: Re: programming/scripting on an Android device - suggestions ?
Date: Tue, 11 Jun 2024 17:09:19 +0100
Lines: 10
Message-ID: <lcrb5fFc356U2@mid.individual.net>
References: <v49hdi$12a13$1@dont-email.me>
<dtlg6jhj3e2tbg0ltpvc5ocu2gm3smdk69@dim53.demon.nl>
<v49rvl$14bo8$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net xBMTAAOBhNU4oACpeBp+vgXnWTWzidmkhQ2VWDfAchBwHt1tcR
Cancel-Lock: sha1:abcyMYqj8BK1BqvCb4REU3na/e4= sha256:snOGCponPfKsqMGGUsr7KR2+O+d4/JkTij9Z6mnJ2iw=
User-Agent: Mozilla Thunderbird
Content-Language: en-GB
In-Reply-To: <v49rvl$14bo8$1@dont-email.me>
View all headers

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

Subject: Re: programming/scripting on an Android device - suggestions ?
From: Richmond
Newsgroups: comp.mobile.android
Organization: Frantic
Date: Tue, 11 Jun 2024 17:01 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: dnomhcir@gmx.com (Richmond)
Newsgroups: comp.mobile.android
Subject: Re: programming/scripting on an Android device - suggestions ?
Date: Tue, 11 Jun 2024 18:01:28 +0100
Organization: Frantic
Message-ID: <8634pjbehj.fsf@example.com>
References: <v49hdi$12a13$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: solani.org;
logging-data="1585038"; mail-complaints-to="abuse@news.solani.org"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Cancel-Lock: sha1:sk/K21Hi6F5yHro89NqjpopUn4U= sha1:EUuQ8jyZPRTLD9o19fOYnAe6dww=
X-User-ID: eJwNwoERACEIA7CVQGjxx0HO7j+CfwmCzqkkmBC0JzldQyyW1sH+hXSuVX0DZxsqQ0ZG+30SrRCB
View all headers

"R.Wieser" <address@is.invalid> 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.

Subject: Re: programming/scripting on an Android device - suggestions ?
From: Andrew
Newsgroups: comp.mobile.android
Organization: BWH Usenet Archive (https://usenet.blueworldhosting.com)
Date: Tue, 11 Jun 2024 20:05 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!nnrp.usenet.blueworldhosting.com!.POSTED!not-for-mail
From: andrew@spam.net (Andrew)
Newsgroups: comp.mobile.android
Subject: Re: programming/scripting on an Android device - suggestions ?
Date: Tue, 11 Jun 2024 20:05:28 -0000 (UTC)
Organization: BWH Usenet Archive (https://usenet.blueworldhosting.com)
Message-ID: <v4aam8$2cvv$1@nnrp.usenet.blueworldhosting.com>
References: <v49hdi$12a13$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 11 Jun 2024 20:05:28 -0000 (UTC)
Injection-Info: nnrp.usenet.blueworldhosting.com;
logging-data="78847"; mail-complaints-to="usenet@blueworldhosting.com"
Cancel-Lock: sha1:YJKejHlJNsUu+e7AZD6NklzuVDM= sha256:a3nJdsSJEiPfDs+kU01Up96mQ1cM88mTvYrmTZVRIkA=
sha1:9gKSn4b6jzVF6jsV8A/NGK5LhkY= sha256:xXe4VGtJRAhMsP+3a0ok5fEQUt/Rkd7QyxWHpHE6MUc=
X-Newsreader: PiaoHong.Usenet.Client.Free:1.65
View all headers

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/

Subject: Re: programming/scripting on an Android device - suggestions ?
From: Andrew
Newsgroups: comp.mobile.android
Organization: BWH Usenet Archive (https://usenet.blueworldhosting.com)
Date: Tue, 11 Jun 2024 20:05 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!nnrp.usenet.blueworldhosting.com!.POSTED!not-for-mail
From: andrew@spam.net (Andrew)
Newsgroups: comp.mobile.android
Subject: Re: programming/scripting on an Android device - suggestions ?
Date: Tue, 11 Jun 2024 20:05:30 -0000 (UTC)
Organization: BWH Usenet Archive (https://usenet.blueworldhosting.com)
Message-ID: <v4aam9$2cvv$2@nnrp.usenet.blueworldhosting.com>
References: <v49hdi$12a13$1@dont-email.me> <dtlg6jhj3e2tbg0ltpvc5ocu2gm3smdk69@dim53.demon.nl> <v49rvl$14bo8$1@dont-email.me> <lcrb5fFc356U2@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 11 Jun 2024 20:05:30 -0000 (UTC)
Injection-Info: nnrp.usenet.blueworldhosting.com;
logging-data="78847"; mail-complaints-to="usenet@blueworldhosting.com"
Cancel-Lock: sha1:GzAyUYs4oxo+p3kQ10LMJBbc+GQ= sha256:Lg20Pa/fPSvPnxSUxO9Dm69x3kPZQ9za+SyJKh47QmE=
sha1:XEspOs6aLaI9w0wI182YfdoPBnA= sha256:Z0I180mwudTE+QgY3NJNu4/NZb3AxY/JDYuaGzzzQlY=
X-Newsreader: PiaoHong.Usenet.Client.Free:1.65
View all headers

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.

Subject: Re: programming/scripting on an Android device - suggestions ?
From: Eli the Bearded
Newsgroups: comp.mobile.android
Organization: Some absurd concept
Date: Tue, 11 Jun 2024 21:12 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!panix!.POSTED.panix5.panix.com!qz!not-for-mail
From: *@eli.users.panix.com (Eli the Bearded)
Newsgroups: comp.mobile.android
Subject: Re: programming/scripting on an Android device - suggestions ?
Date: Tue, 11 Jun 2024 21:12:45 -0000 (UTC)
Organization: Some absurd concept
Message-ID: <eli$2406111712@qaz.wtf>
References: <v49hdi$12a13$1@dont-email.me> <dtlg6jhj3e2tbg0ltpvc5ocu2gm3smdk69@dim53.demon.nl> <v49rvl$14bo8$1@dont-email.me>
Injection-Date: Tue, 11 Jun 2024 21:12:45 -0000 (UTC)
Injection-Info: reader1.panix.com; posting-host="panix5.panix.com:166.84.1.5";
logging-data="15209"; mail-complaints-to="abuse@panix.com"
User-Agent: Vectrex rn 2.1 (beta)
X-Liz: It's actually happened, the entire Internet is a massive game of Redcode
X-Motto: "Erosion of rights never seems to reverse itself." -- kenny@panix
X-US-Congress: Moronic Fucks.
X-Attribution: EtB
XFrom: is a real address
Encrypted: double rot-13
View all headers

In comp.mobile.android, R.Wieser <address@is.invalid> 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

Subject: Re: programming/scripting on an Android device - suggestions ?
From: Bob Martin
Newsgroups: comp.mobile.android
Date: Wed, 12 Jun 2024 05:10 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bob.martin@excite.com (Bob Martin)
Newsgroups: comp.mobile.android
Subject: Re: programming/scripting on an Android device - suggestions ?
Date: 12 Jun 2024 05:10:57 GMT
Lines: 24
Message-ID: <lcsov1FjqtsU1@mid.individual.net>
References: <v49hdi$12a13$1@dont-email.me>
<dtlg6jhj3e2tbg0ltpvc5ocu2gm3smdk69@dim53.demon.nl>
<v49rvl$14bo8$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net tGI9o5va8mu0/xKlewcBLgZHvq3QYcBMHLweZcPuSkcqjU38xf
X-Orig-Path: news.individual.net
Cancel-Lock: sha1:w9ZeYLkVAbdQyA/91K1Oj2Zr5Ec= sha256:03fTIN+kjzpOyLlJok9bJmXmP6mLMogVifasPvNESZk=
In-Reply-To: <v49rvl$14bo8$1@dont-email.me>
User-Agent: xnews (by Bob Martin, in ooRexx & ncurses)
View all headers

On 11 Jun 2024 at 15:53:47, "R.Wieser" <address@is.invalid> 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?

Subject: Re: programming/scripting on an Android device - suggestions ?
From: Anne de Royde
Newsgroups: comp.mobile.android
Date: Wed, 12 Jun 2024 06:19 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!peer03.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!fx01.ams4.POSTED!not-for-mail
From: AdR@spam.invalid (Anne de Royde)
Newsgroups: comp.mobile.android
Subject: Re: programming/scripting on an Android device - suggestions ?
References: <v49hdi$12a13$1@dont-email.me>
User-Agent: Mozilla Thunderbird
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 24
Message-ID: <Q5baO.7751$9d96.7423@usenetxs.com>
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Wed, 12 Jun 2024 06:19:28 UTC
Date: Wed, 12 Jun 2024 06:19:28 -0000
X-Received-Bytes: 1480
View all headers

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.

Subject: Re: programming/scripting on an Android device - suggestions ?
From: R.Wieser
Newsgroups: comp.mobile.android
Organization: A noiseless patient Spider
Date: Wed, 12 Jun 2024 06:02 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: comp.mobile.android
Subject: Re: programming/scripting on an Android device - suggestions ?
Date: Wed, 12 Jun 2024 08:02:03 +0200
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <v4bem0$1h84c$1@dont-email.me>
References: <v49hdi$12a13$1@dont-email.me> <v4aam8$2cvv$1@nnrp.usenet.blueworldhosting.com>
Injection-Date: Wed, 12 Jun 2024 08:19:44 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="da8eb7695b945e40e9b0a9813c6042c9";
logging-data="1613964"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18NOQtmMPQQw9UTXm9ulWR+fjuy5KyBx/paUKrGCePjKQ=="
Cancel-Lock: sha1:OwCv3LD2VxMySxnTnazwryr02aA=
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-Priority: 3
X-RFC2646: Format=Flowed; Original
View all headers

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

Subject: Re: programming/scripting on an Android device - suggestions ?
From: R.Wieser
Newsgroups: comp.mobile.android
Organization: A noiseless patient Spider
Date: Wed, 12 Jun 2024 06:15 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: comp.mobile.android
Subject: Re: programming/scripting on an Android device - suggestions ?
Date: Wed, 12 Jun 2024 08:15:40 +0200
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <v4bem0$1h84c$2@dont-email.me>
References: <v49hdi$12a13$1@dont-email.me> <dtlg6jhj3e2tbg0ltpvc5ocu2gm3smdk69@dim53.demon.nl> <v49rvl$14bo8$1@dont-email.me> <lcrb5fFc356U2@mid.individual.net>
Injection-Date: Wed, 12 Jun 2024 08:19:45 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="da8eb7695b945e40e9b0a9813c6042c9";
logging-data="1613964"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/m8TGQisN+YRCZ/oPYUG/AlUPasnuBfAA4Xk0K5ZO7PA=="
Cancel-Lock: sha1:JoQWp19LosWKt8WuBM7k7CkJkiw=
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Priority: 3
X-RFC2646: Format=Flowed; Response
View all headers

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

Subject: Re: programming/scripting on an Android device - suggestions ?
From: R.Wieser
Newsgroups: comp.mobile.android
Organization: A noiseless patient Spider
Date: Wed, 12 Jun 2024 06:19 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: comp.mobile.android
Subject: Re: programming/scripting on an Android device - suggestions ?
Date: Wed, 12 Jun 2024 08:19:24 +0200
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <v4bem1$1h84c$3@dont-email.me>
References: <v49hdi$12a13$1@dont-email.me> <dtlg6jhj3e2tbg0ltpvc5ocu2gm3smdk69@dim53.demon.nl> <v49rvl$14bo8$1@dont-email.me> <eli$2406111712@qaz.wtf>
Injection-Date: Wed, 12 Jun 2024 08:19:45 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="da8eb7695b945e40e9b0a9813c6042c9";
logging-data="1613964"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/LFbskiYS9fzue4jVnghmIGHITdijFAE/1CN/TQ2nUGA=="
Cancel-Lock: sha1:2zczM7i/Ja9Vg4bidMZI/8jEhQ4=
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-Priority: 3
X-RFC2646: Format=Flowed; Original
View all headers

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

Subject: Re: programming/scripting on an Android device - suggestions ?
From: Dave Royal
Newsgroups: comp.mobile.android
Organization: news.eternal-september.org
Date: Thu, 1 Jan 1970 00:00 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dave@dave123royal.com (Dave Royal)
Newsgroups: comp.mobile.android
Subject: Re: programming/scripting on an Android device - suggestions ?
Date: Wed, 12 Jun 2024 07:26:30 +0100 (GMT+01:00)
Organization: news.eternal-september.org
Lines: 41
Message-ID: <v4bf2m$1h142$1@dont-email.me>
References: <v49hdi$12a13$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 12 Jun 2024 08:26:31 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="201bef3833300ccd7804e15093547a93";
logging-data="1606786"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1959+tylxzrbXShYqfdb3b0"
Cancel-Lock: sha1:dWQh2t+73jzapTA+HTIT041AQOw=
X-Newsreader: Mod.PiaoHong.Usenet.Client:2.02.M16
View all headers

"R.Wieser" <address@is.invalid> 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.

Subject: Re: programming/scripting on an Android device - suggestions ?
From: Arno Welzel
Newsgroups: comp.mobile.android
Date: Wed, 12 Jun 2024 10:58 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: usenet@arnowelzel.de (Arno Welzel)
Newsgroups: comp.mobile.android
Subject: Re: programming/scripting on an Android device - suggestions ?
Date: Wed, 12 Jun 2024 12:58:43 +0200
Lines: 28
Message-ID: <lctdb3FmbboU1@mid.individual.net>
References: <v49hdi$12a13$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Trace: individual.net hqiIB+N4n0zctF5Z3WNCVQpoUxT6kK/lqn/bxI4b/HB3ooddMF
Cancel-Lock: sha1:Z6PgwBhbc7GZIn3Y44fY2svz/9g= sha256:3pAle0QQNpH5OzbIQAyTbqRvdNtS8UPb0dt42tAdERE=
Content-Language: de-DE
In-Reply-To: <v49hdi$12a13$1@dont-email.me>
View all headers

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

Subject: Re: programming/scripting on an Android device - suggestions ?
From: R.Wieser
Newsgroups: comp.mobile.android
Organization: A noiseless patient Spider
Date: Wed, 12 Jun 2024 18:42 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: comp.mobile.android
Subject: Re: programming/scripting on an Android device - suggestions ?
Date: Wed, 12 Jun 2024 20:42:59 +0200
Organization: A noiseless patient Spider
Lines: 36
Message-ID: <v4crr5$1pumc$1@dont-email.me>
References: <v49hdi$12a13$1@dont-email.me> <Q5baO.7751$9d96.7423@usenetxs.com>
Injection-Date: Wed, 12 Jun 2024 21:10:30 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="da8eb7695b945e40e9b0a9813c6042c9";
logging-data="1899212"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+9n8+59kddQL4XEMAebUx/wMFhByjsY6+908X70vOgQg=="
Cancel-Lock: sha1:Rde/tNtJJ5An1XEtqo339x1zuGA=
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Original
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
View all headers

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

Subject: Re: programming/scripting on an Android device - suggestions ?
From: R.Wieser
Newsgroups: comp.mobile.android
Organization: A noiseless patient Spider
Date: Wed, 12 Jun 2024 18:58 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: comp.mobile.android
Subject: Re: programming/scripting on an Android device - suggestions ?
Date: Wed, 12 Jun 2024 20:58:18 +0200
Organization: A noiseless patient Spider
Lines: 33
Message-ID: <v4crr6$1pumc$2@dont-email.me>
References: <v49hdi$12a13$1@dont-email.me> <v4bf2m$1h142$1@dont-email.me>
Injection-Date: Wed, 12 Jun 2024 21:10:30 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="da8eb7695b945e40e9b0a9813c6042c9";
logging-data="1899212"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX182LM6VBXgfSggf6p1ymagAsLOAGuITdopMjMUNUTDprg=="
Cancel-Lock: sha1:2q4UuhJyjUoatEHshMXnJKcPG9c=
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Original
X-Priority: 3
X-MSMail-Priority: Normal
View all headers

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

Subject: Re: programming/scripting on an Android device - suggestions ?
From: R.Wieser
Newsgroups: comp.mobile.android
Organization: A noiseless patient Spider
Date: Wed, 12 Jun 2024 19:10 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: comp.mobile.android
Subject: Re: programming/scripting on an Android device - suggestions ?
Date: Wed, 12 Jun 2024 21:10:12 +0200
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <v4crr6$1pumc$3@dont-email.me>
References: <v49hdi$12a13$1@dont-email.me> <lctdb3FmbboU1@mid.individual.net>
Injection-Date: Wed, 12 Jun 2024 21:10:31 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="da8eb7695b945e40e9b0a9813c6042c9";
logging-data="1899212"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+eL5zqQsi6UouBsweDQPiPp6UmP3Q3MirtBmIdoKClDw=="
Cancel-Lock: sha1:kL4hhuOou99o8wU//9PPAN5MiSQ=
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-MSMail-Priority: Normal
X-Priority: 3
X-RFC2646: Format=Flowed; Original
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
View all headers

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

Subject: Re: programming/scripting on an Android device - suggestions ?
From: R.Wieser
Newsgroups: comp.mobile.android
Organization: A noiseless patient Spider
Date: Wed, 12 Jun 2024 19:13 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: comp.mobile.android
Subject: Re: programming/scripting on an Android device - suggestions ?
Date: Wed, 12 Jun 2024 21:13:00 +0200
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <v4ct67$1q7d2$1@dont-email.me>
References: <v49hdi$12a13$1@dont-email.me> <dtlg6jhj3e2tbg0ltpvc5ocu2gm3smdk69@dim53.demon.nl> <v49rvl$14bo8$1@dont-email.me> <lcsov1FjqtsU1@mid.individual.net>
Injection-Date: Wed, 12 Jun 2024 21:33:28 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="da8eb7695b945e40e9b0a9813c6042c9";
logging-data="1908130"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18tGjqJP/tB0zg5iN2J8mj/RbJLSQihcs+U/V0geIyIbg=="
Cancel-Lock: sha1:CvjYongY57W6J3Jz36GLiExN2LA=
X-MSMail-Priority: Normal
X-RFC2646: Format=Flowed; Original
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Priority: 3
View all headers

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

Subject: Re: programming/scripting on an Android device - suggestions ?
From: R.Wieser
Newsgroups: comp.mobile.android
Organization: A noiseless patient Spider
Date: Wed, 12 Jun 2024 19:32 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: comp.mobile.android
Subject: Re: programming/scripting on an Android device - suggestions ?
Date: Wed, 12 Jun 2024 21:32:57 +0200
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <v4ct68$1q7d2$2@dont-email.me>
References: <v49hdi$12a13$1@dont-email.me> <lctdb3FmbboU1@mid.individual.net>
Injection-Date: Wed, 12 Jun 2024 21:33:28 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="da8eb7695b945e40e9b0a9813c6042c9";
logging-data="1908130"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+4ZQFYpdAVBK/0d2XMfClT2PPmWV/V5cChYLoYMkSwVw=="
Cancel-Lock: sha1:08XIbgNEeNBhacZ0Lc25MxWciCQ=
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Original
X-Priority: 3
View all headers

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

Subject: Re: programming/scripting on an Android device - suggestions ?
From: Dave Royal
Newsgroups: comp.mobile.android
Organization: news.eternal-september.org
Date: Thu, 1 Jan 1970 00:00 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dave@dave123royal.com (Dave Royal)
Newsgroups: comp.mobile.android
Subject: Re: programming/scripting on an Android device - suggestions ?
Date: Thu, 13 Jun 2024 06:25:55 +0100 (GMT+01:00)
Organization: news.eternal-september.org
Lines: 49
Message-ID: <v4dvt3$245h5$1@dont-email.me>
References: <v49hdi$12a13$1@dont-email.me> <v4bf2m$1h142$1@dont-email.me> <v4crr6$1pumc$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 13 Jun 2024 07:25:56 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="bdb6c14d7e88075a64fb1f43eec8995a";
logging-data="2233893"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18CM/OTbz41K6QSzOcSV5gH"
Cancel-Lock: sha1:73PAfKD+tTFV0VbobJ8NRpxeymU=
X-Newsreader: Mod.PiaoHong.Usenet.Client:2.02.M16
View all headers

"R.Wieser" <address@is.invalid> 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.

Subject: Re: programming/scripting on an Android device - suggestions ?
From: Anne de Royde
Newsgroups: comp.mobile.android
Date: Thu, 13 Jun 2024 08:18 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!news.szaf.org!news.bawue.net!npeer.as286.net!npeer-ng0.as286.net!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!fx14.ams4.POSTED!not-for-mail
From: AdR@spam.invalid (Anne de Royde)
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>
User-Agent: Mozilla Thunderbird
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 73
Message-ID: <dXxaO.2157$WOa6.820@usenetxs.com>
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Thu, 13 Jun 2024 08:18:17 UTC
Date: Thu, 13 Jun 2024 08:18:15 -0000
X-Received-Bytes: 3477
View all headers

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

Subject: Re: programming/scripting on an Android device - suggestions ?
From: R.Wieser
Newsgroups: comp.mobile.android
Organization: A noiseless patient Spider
Date: Thu, 13 Jun 2024 08:24 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: comp.mobile.android
Subject: Re: programming/scripting on an Android device - suggestions ?
Date: Thu, 13 Jun 2024 10:24:24 +0200
Organization: A noiseless patient Spider
Lines: 44
Message-ID: <v4eadc$263dv$2@dont-email.me>
References: <v49hdi$12a13$1@dont-email.me> <v4bf2m$1h142$1@dont-email.me> <v4crr6$1pumc$2@dont-email.me> <v4dvt3$245h5$1@dont-email.me>
Injection-Date: Thu, 13 Jun 2024 10:25:17 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="d528e39b76349b9a2cd9653810293810";
logging-data="2297279"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+jjYBvP+bI3jgUQ0zo5aLjfgWYBx5Oz0C1EDIF6y8pSg=="
Cancel-Lock: sha1:+/pe8lgyexwzSUZQ9sLwTiaMZUQ=
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Priority: 3
X-MSMail-Priority: Normal
View all headers

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

Subject: Re: programming/scripting on an Android device - suggestions ?
From: R.Wieser
Newsgroups: comp.mobile.android
Organization: A noiseless patient Spider
Date: Thu, 13 Jun 2024 08:48 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: comp.mobile.android
Subject: Re: programming/scripting on an Android device - suggestions ?
Date: Thu, 13 Jun 2024 10:48:14 +0200
Organization: A noiseless patient Spider
Lines: 45
Message-ID: <v4ebrk$26buv$1@dont-email.me>
References: <v49hdi$12a13$1@dont-email.me> <Q5baO.7751$9d96.7423@usenetxs.com> <v4crr5$1pumc$1@dont-email.me> <dXxaO.2157$WOa6.820@usenetxs.com>
Injection-Date: Thu, 13 Jun 2024 10:49:56 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="d528e39b76349b9a2cd9653810293810";
logging-data="2306015"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Ejoxapn3/WfJJ16oqgo0sKQQOX7j3ALLZsH1bPWqTxg=="
Cancel-Lock: sha1:XUJ/x2zYjfevtWwOVk3mSs7kkoQ=
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Priority: 3
X-MSMail-Priority: Normal
View all headers

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

Subject: Re: programming/scripting on an Android device - suggestions ?
From: Eli the Bearded
Newsgroups: comp.mobile.android
Organization: Some absurd concept
Date: Fri, 14 Jun 2024 00:20 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!panix!.POSTED.panix5.panix.com!qz!not-for-mail
From: *@eli.users.panix.com (Eli the Bearded)
Newsgroups: comp.mobile.android
Subject: Re: programming/scripting on an Android device - suggestions ?
Date: Fri, 14 Jun 2024 00:20:54 -0000 (UTC)
Organization: Some absurd concept
Message-ID: <eli$2406132020@qaz.wtf>
References: <v49hdi$12a13$1@dont-email.me> <v49rvl$14bo8$1@dont-email.me> <eli$2406111712@qaz.wtf> <v4bem1$1h84c$3@dont-email.me>
Injection-Date: Fri, 14 Jun 2024 00:20:54 -0000 (UTC)
Injection-Info: reader1.panix.com; posting-host="panix5.panix.com:166.84.1.5";
logging-data="3524"; mail-complaints-to="abuse@panix.com"
User-Agent: Vectrex rn 2.1 (beta)
X-Liz: It's actually happened, the entire Internet is a massive game of Redcode
X-Motto: "Erosion of rights never seems to reverse itself." -- kenny@panix
X-US-Congress: Moronic Fucks.
X-Attribution: EtB
XFrom: is a real address
Encrypted: double rot-13
View all headers

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

Pages:12

rocksolid light 0.9.8
clearnet tor