Interaction with Tab A from client (ubuntu laptop)
Code:
makem@XPS-13-9300:~$ ssh -t -p 2222 makem@192.168.2.8 "cd /storage/48BE-2703; bash --login"
SSHelper Version 13.0 Copyright 2018, P. Lutus
Galaxy_Tab_A_(2018,_10.5):3.18.120-18306396
u0_a264@localhost:48BE-2703$ ls -la
ls: ./.android_secure: Permission denied
total 2176
drwxr-xr-x 7 root everybod 131072 Jun 29 16:39 .
drwxr-xr-x 6 root root 120 Jun 29 02:13 ..
drwxr-x--- 4 root everybod 131072 Jan 26 16:11 Android
drwxr-xr-x 3 root everybod 131072 Feb 10 21:47 Data
-rwxr-xr-x 1 root everybod 196467 Aug 11 2019 M25.png
drwxr-xr-x 4 root everybod 131072 Apr 23 14:45 Movies
-rwxr-xr-x 1 root everybod 1271646 Aug 11 2019 bookmarks.html
drwxr-xr-x 2 root everybod 131072 Aug 11 2019 expressvpn
u0_a264@localhost:48BE-2703$ mkdir test
mkdir: can't create directory 'test': Permission denied
u0_a264@localhost:48BE-2703$
I have a feeling the denial is because Android needs manual input from the Tab A user to allow writing.
The, "ls: ./.android_secure: Permission denied" error is caused by the ls -la command where Android does not recognise the "-la". No error with just "ls".
Attempt to change the lack of write permission:
Code:
u0_a264@localhost:48BE-2703$ chmod 777 Movies
u0_a264@localhost:48BE-2703$ ls -la
ls: ./.android_secure: Permission denied
total 2176
drwxr-xr-x 7 root everybod 131072 Jun 29 16:39 .
drwxr-xr-x 6 root root 120 Jun 29 02:13 ..
drwxr-x--- 4 root everybod 131072 Jan 26 16:11 Android
drwxr-xr-x 3 root everybod 131072 Feb 10 21:47 Data
-rwxr-xr-x 1 root everybod 196467 Aug 11 2019 M25.png
drwxr-xr-x 4 root everybod 131072 Apr 23 14:45 Movies
-rwxr-xr-x 1 root everybod 1271646 Aug 11 2019 bookmarks.html
drwxr-xr-x 2 root everybod 131072 Aug 11 2019 expressvpn
u0_a264@localhost:48BE-2703$
Edit: Until I can write it is not possible to act as a conductor and pass files between Pi4 and remote Android.
Until I find something better I will use Method 1 here (assuming it works!):
https://arachnoid.com/android/SSHelper/index.html#External_Storage_Access
Following those instructions I can now connect to and write to the 'special folder' using the following syntax:
Code:
makem@XPS-13-9300:~$ ssh -t -p 2222 makem@192.168.2.8 "cd SDCard/Android/data/com.arachnoid.sshelper; bash --login"
SSHelper Version 13.0 Copyright 2018, P. Lutus
Galaxy_Tab_A_(2018,_10.5):3.18.120-18306396
u0_a264@localhost:com.arachnoid.sshelper$ ls
test
u0_a264@localhost:com.arachnoid.sshelper$
The 'test' folder is one I created previously.
So far so good.
Hopefully will now be able to duplicate this on the Pi4 and be able to copy files to the Tab A remotely from the client laptop.
The downside mentioned in the instructions about losing the data does not affect me as the data is transient anyway.
Bookmarks