Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

BOFH excuse #40: not enough memory, go get system upgrade


comp / comp.mobile.android / Re: 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: Re: programming/scripting on an Android device - suggestions ?
From: Anne de Royde
Newsgroups: comp.mobile.android
Date: Fri, 14 Jun 2024 07:25 UTC
References: 1 2 3 4 5
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!peer03.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!fx12.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> <dXxaO.2157$WOa6.820@usenetxs.com> <v4ebrk$26buv$1@dont-email.me>
User-Agent: Mozilla Thunderbird
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 30
Message-ID: <UfSaO.27327$PCJ6.16452@usenetxs.com>
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Fri, 14 Jun 2024 07:25:40 UTC
Date: Fri, 14 Jun 2024 07:25:37 -0000
X-Received-Bytes: 1945
View all headers

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>

Subject: Re: programming/scripting on an Android device - suggestions ?
From: Andrew
Newsgroups: comp.mobile.android
Organization: BWH Usenet Archive (https://usenet.blueworldhosting.com)
Date: Fri, 14 Jun 2024 20:34 UTC
References: 1 2 3 4 5 6
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!news.swapon.de!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: Fri, 14 Jun 2024 20:34:01 -0000 (UTC)
Organization: BWH Usenet Archive (https://usenet.blueworldhosting.com)
Message-ID: <v4i9fo$l6m$1@nnrp.usenet.blueworldhosting.com>
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> <v4ebrk$26buv$1@dont-email.me> <UfSaO.27327$PCJ6.16452@usenetxs.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 14 Jun 2024 20:34:01 -0000 (UTC)
Injection-Info: nnrp.usenet.blueworldhosting.com;
logging-data="21718"; mail-complaints-to="usenet@blueworldhosting.com"
Cancel-Lock: sha1:fPQfJ7RfVTC/TFv3ZSn8MkiC9dg= sha256:P5rf8GOL88oshVxsPytVB4uLOOBpD+dWqR6kheC/eNY=
sha1:L+JXpvnqx00GG7tydp7dcv+WtmQ= sha256:prWIJMtssPSHXEuxifFCVA1unC4PDSb/IHp9Wq/DIl0=
X-Newsreader: PiaoHong.Usenet.Client.Free:1.65
View all headers

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.

Subject: Re: programming/scripting on an Android device - suggestions ?
From: R.Wieser
Newsgroups: comp.mobile.android
Organization: A noiseless patient Spider
Date: Sat, 15 Jun 2024 08:06 UTC
References: 1 2 3 4 5
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: Sat, 15 Jun 2024 10:06:58 +0200
Organization: A noiseless patient Spider
Lines: 39
Message-ID: <v4jmlo$3daj0$1@dont-email.me>
References: <v49hdi$12a13$1@dont-email.me> <v49rvl$14bo8$1@dont-email.me> <eli$2406111712@qaz.wtf> <v4bem1$1h84c$3@dont-email.me> <eli$2406132020@qaz.wtf>
Injection-Date: Sat, 15 Jun 2024 11:25:12 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="067e3ff4a1959b53c867d4758713b1e3";
logging-data="3582560"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Bs46QYjx5KUikMzJmpZ2+O9jm/A6+xTexrXCj2nIfEg=="
Cancel-Lock: sha1:G+O+RTNvrDdPdQPNyUyJ7BjvwP4=
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Priority: 3
X-RFC2646: Format=Flowed; Original
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
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. :-)
>
> 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

Subject: Re: programming/scripting on an Android device - suggestions ?
From: R.Wieser
Newsgroups: comp.mobile.android
Organization: A noiseless patient Spider
Date: Sat, 15 Jun 2024 09:24 UTC
References: 1 2 3 4 5 6
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: Sat, 15 Jun 2024 11:24:54 +0200
Organization: A noiseless patient Spider
Lines: 33
Message-ID: <v4jmlo$3daj0$2@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> <v4ebrk$26buv$1@dont-email.me> <UfSaO.27327$PCJ6.16452@usenetxs.com>
Injection-Date: Sat, 15 Jun 2024 11:25:13 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="067e3ff4a1959b53c867d4758713b1e3";
logging-data="3582560"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/quoeie/aCV0Ff1kLMQ8H5nUoQha9VuLNJdQIrvRAQQg=="
Cancel-Lock: sha1:hZeN4luHChXAPZ1GHJd80ndkJ9Q=
X-RFC2646: Format=Flowed; Original
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-MSMail-Priority: Normal
View all headers

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

Subject: Re: programming/scripting on an Android device - suggestions ?
From: Eli the Bearded
Newsgroups: comp.mobile.android
Organization: Some absurd concept
Date: Sun, 16 Jun 2024 07:28 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: Sun, 16 Jun 2024 07:28:49 -0000 (UTC)
Organization: Some absurd concept
Message-ID: <eli$2406160328@qaz.wtf>
References: <v49hdi$12a13$1@dont-email.me> <v4bem1$1h84c$3@dont-email.me> <eli$2406132020@qaz.wtf> <v4jmlo$3daj0$1@dont-email.me>
Injection-Date: Sun, 16 Jun 2024 07:28:49 -0000 (UTC)
Injection-Info: reader1.panix.com; posting-host="panix5.panix.com:166.84.1.5";
logging-data="5985"; 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:
> 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

Subject: Re: programming/scripting on an Android device - suggestions ?
From: Anne de Royde
Newsgroups: comp.mobile.android
Date: Sun, 16 Jun 2024 07:29 UTC
References: 1 2 3 4 5 6 7
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!border-2.nntp.ord.giganews.com!border-1.nntp.ord.giganews.com!nntp.giganews.com!npeer.as286.net!npeer-ng0.as286.net!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!fx16.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> <dXxaO.2157$WOa6.820@usenetxs.com> <v4ebrk$26buv$1@dont-email.me> <UfSaO.27327$PCJ6.16452@usenetxs.com> <v4jmlo$3daj0$2@dont-email.me>
User-Agent: Mozilla Thunderbird
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 23
Message-ID: <zvwbO.62463$ujOb.13311@usenetxs.com>
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Sun, 16 Jun 2024 07:29:35 UTC
Date: Sun, 16 Jun 2024 07:29:36 -0000
X-Received-Bytes: 1729
X-Original-Bytes: 1587
View all headers

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.

Subject: Re: programming/scripting on an Android device - suggestions ?
From: W. Greenhouse
Newsgroups: comp.mobile.android
Organization: Usenet.Farm
Date: Sun, 16 Jun 2024 13:46 UTC
References: 1 2 3 4 5
Cancel-Lock: sha1:7HwQ81WSQKWSMoYm5YMd8ophspk=
Subject: Re: programming/scripting on an Android device - suggestions ?
Content-Type: text/plain
From: wgreenhouse@tilde.club (W. Greenhouse)
Organization: Usenet.Farm
X-Ufhash: 75N0El3qiOykTZ4dBsAG33mbynGG18H3cAYuSky1i0XRpoqYxOf%2BlQSv4OsiQdl7isnU7ukbXjM%2Bd%2BMkq%2Ffdmpt5ovYg%2Bm5KpugeBTo6iu1yYUVeORMhDbzWp3cf3om52GcuGg3jkMaf5zuWFiODP8olWOD7afaHA%2FAQZH%2BaBVzrFHzLcrQIl%2FQRsh4eJ8JMGvDCxCBe34yQ4sr1HtB71z5VvDw%2BkqYmUxE%3D
References: <v49hdi$12a13$1@dont-email.me> <v4bem1$1h84c$3@dont-email.me> <eli$2406132020@qaz.wtf> <v4jmlo$3daj0$1@dont-email.me> <eli$2406160328@qaz.wtf>
Newsgroups: comp.mobile.android
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!nntp.comgw.net!peer03.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feeder3.usenet.farm!feeder4.usenet.farm!feed.usenet.farm!news.usenet.farm
Date: Sun, 16 Jun 24 13:46:14 UTC
User-Agent: Gnus/5.13 (Gnus v5.13)
Mime-Version: 1.0
Message-Id: <s0rplshgfvp.fsf@tilde.club>
X-Received-Bytes: 2987
View all headers

Eli the Bearded <*@eli.users.panix.com> writes:

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

Pages:12

rocksolid light 0.9.8
clearnet tor