Not at all frustrating. I hope you're not too offended when I have to remind everybody that you're an admitted non-expert :-)
As I've said (but not necessarily in this thread) I've played with FPC running directly on an x86_64-based tablet using Termux in the past, and just to check that the basics still worked I loaded Termux onto my old development phablet a few days ago and was able to ssh into it (i.e. get a shell over a network connection) which implies sftp (file transfer) should also work. The implication of that is that FPC should run on an Android device itself and be controllable from a desktop computer, but something sophisticated like Lazarus might not because of the threads library problem (unless it's been fixed over the last three years, but that is related to the Android architecture rather than being directly fixable by either the Termux or FPC/Lazarus developers).
MarkMLl
Thank you Mark, anyway I do not understand practically one single sentence of what you wrote!!
Anyway now I think I am SU from what I wrote above
Considering what Mark said, I've just performed the following steps with Termux on my phone (it is not rooted):
The answer was something like: u0_a322
$ pkg install openssh
$ passwd
$ sshd
On second line I've entered a password for the current user (u0_a322)
Then on a Windows box you can use
scp command to transfer files, including your pascal sources, and I presume, you can copy also your binaries generated from laz4android.
$ scp -P 8022 test.pas u0_a322@192.168.1.114:~
8022 is the port on which the sshd listens, the 192.168.1.114 is the IP of my phone, test.pas is the file. The ~ marks the home directory on the destination. It will ask for password, which is the same given to the
passwd above.
The thing is that the copied files will have
the same owner as the user who started
sshd, namely u0_a322. Thus
you don't need root permissions to execute:
i.e. to mark it as executable.
Further, I used a WinSCP program on my PC - it works with SCP protocol and has a synchronization function (Commands/Synchronize...) - similar to rsync, but with Window-ish GUI.
In short - if you install sshd on your Termux, you'll be able to chmod without root permissions (su), and you can install program like WinSCP to easily synchronize directories between tablet and the PC.