Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 25 Sep 2018, 03:15
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Access android phone BionicDog/FatDog64/XenPup64 <Solved>
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [10 Posts]  
Author Message
dcung

Joined: 13 Jul 2018
Posts: 223
Location: Down Under - 3rd rock from Sun.

PostPosted: Sun 02 Sep 2018, 03:07    Post subject:  Access android phone BionicDog/FatDog64/XenPup64 <Solved>
Subject description: File and fotos copying - OPPO F1 ans Sony E4
 

Hi,

I'd like to access file/fotos from mobile phone.
In windows, when you connect phone thru usb, you can access the filesystem. Looking for similar way to transfer files.

Something like these thread is discussing.
http://www.murga-linux.com/puppy/viewtopic.php?t=84424
http://www.murga-linux.com/puppy/viewtopic.php?t=80038

Reading those, I am still unable to transfer file from android phone.
Mine is OPPO F1 and old Sony.

I tried pmount (GUI), no filesystem is available to be mounted.
What software should I install to access usb connected android phone?

The OPPO has a small partition that has Windows driver (exe), that got auto mounted. But the rest of partitions?

Thanks.

Last edited by dcung on Mon 03 Sep 2018, 04:24; edited 1 time in total
Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 8676
Location: Perth, Western Australia

PostPosted: Sun 02 Sep 2018, 07:09    Post subject:  

What breed of pup are you using?

I recently introduced file sharing with an Android phone, in my experimental EasyOS (once upon a time, forked from Puppy, then there was Quirky Linux, now playing with EasyOS).

I am using the 'adb' utility, and a usb cable, and 'adbfs-rootless' to be able to browse the files.

See this blog post:

http://bkhome.org/news/201808/android-tools-and-adbfs-rootless-in-oe.html

You can use adb on its own, with any Linux distro, and it is pretty simple to connect to the phone. Using adbfs is also fairly simple.

If running one of the Debian or Ubuntu-based pups, there is package 'android-tools-adb' which has the adb utility. --- from memory, I think that is the name of the deb package.

It can do it manually, but I have added it to my EasyShare GUI on EasyOS:

http://www.bkhome.org/news/201808/easyshare-supports-android-phone-via-usb.html

...which in theory could be ported to any pup distro, but that would be a quite a bit of work, picking up all the bits of infrastructure that support EasyShare.

So, just follow the manual steps in a terminal, and it is fairly easy. You would probably have to compile adbfs-rootless, I don't know if there are any DEBs for it.

_________________
http://bkhome.org/news/
Back to top
View user's profile Send private message Visit poster's website 
rcrsn51


Joined: 05 Sep 2006
Posts: 12324
Location: Stratford, Ontario

PostPosted: Sun 02 Sep 2018, 09:17    Post subject:  

I haven't tested this, but CamPhoneTab should install on BionicDog. Ubuntu and Debian appear to have the same dependent packages.

However, Android access on old devices is a crap-shoot. It depends on your phone's version of Android and how the vendor implemented it.

[Edit] It looks like your OPPO F1 is Android 5.1. This should be OK. But Sony has a reputation for not implementing Media Transfer Protocol nicely.
Back to top
View user's profile Send private message 
dcung

Joined: 13 Jul 2018
Posts: 223
Location: Down Under - 3rd rock from Sun.

PostPosted: Sun 02 Sep 2018, 17:37    Post subject:  

rcrsn51 wrote:
I haven't tested this, but CamPhoneTab should install on BionicDog. Ubuntu and Debian appear to have the same dependent packages...


Thank you Bill..

I have installed it on BionicDog 32 bit and 64 bit.
Both OPPO F1 and Sony E4 connected and able to transfer files.
Just have to make sure phone is not 'sleeping' when making connection/mounting.

The Sony was slow in showing directory listing, but I was happy that I can still connect to that crappy phone... Smile

I will install in other Pup/Dog when I have time and update this thread.

Cheers.
xendog-20180903074646.jpg
 Description   
 Filesize   66.98 KB
 Viewed   179 Time(s)

xendog-20180903074646.jpg


Last edited by dcung on Sun 02 Sep 2018, 17:57; edited 2 times in total
Back to top
View user's profile Send private message 
dcung

Joined: 13 Jul 2018
Posts: 223
Location: Down Under - 3rd rock from Sun.

PostPosted: Sun 02 Sep 2018, 17:43    Post subject:  

BarryK wrote:
What breed of pup are you using?

I recently introduced file sharing with an Android phone, in my experimental EasyOS (once upon a time, forked from Puppy, then there was Quirky Linux, now playing with EasyOS).
...


G'day Barry.

BionicDog, Fatdog, XenPup are my most used ones.
But I pretty much like anything that I can get my hands on...just pity not enough time to tinker on all of them...

Thank you, I will try to digest the info and try it out.

Cheers.
Back to top
View user's profile Send private message 
dcung

Joined: 13 Jul 2018
Posts: 223
Location: Down Under - 3rd rock from Sun.

PostPosted: Sun 02 Sep 2018, 23:34    Post subject:  

Installed on XenialPup64-v7.5 with 32 bit compatibility SFS.

OPPO F1 works fine.

Sony E4 sort of half working. Refer to attached.

Simple-mtpfs - does not work. It display directory listing of internal phone storage, but not accessible. SD card not listed.

Jmtpfs - listed both internal phone storage and SD card.
SD card was accessible fine.

internal storage, 'not accessible', there are tons of "ACodec.OMX.MTK.AUDIO..." files.
The windows appears hang, but if you looong enough there's progress bar on the bottom. I waited a while and it was past my tolerance limit... Smile
It seems to try to list 'infinite' number of these files.
These strange files were not there if I access Sony E4 from BionicDog32/64.
.
.
capture29497.png
 Description   
 Filesize   47.09 KB
 Viewed   162 Time(s)

capture29497.png

capture28624.png
 Description   
 Filesize   41.83 KB
 Viewed   162 Time(s)

capture28624.png

capture22961.png
 Description   
 Filesize   42.25 KB
 Viewed   163 Time(s)

capture22961.png

Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 12324
Location: Stratford, Ontario

PostPosted: Mon 03 Sep 2018, 09:19    Post subject:  

Thanks for testing.

I have had good luck with simple-mtpfs, so I was surprised to discover that Debian/Ubuntu are using jmtpfs in their repos.

That's probably an indicator of something.

The Dog versions will always work better because they have the correctly matched set of dependencies.

Running through 32bit compatibility cannot be expected to automatically work properly.
Back to top
View user's profile Send private message 
dcung

Joined: 13 Jul 2018
Posts: 223
Location: Down Under - 3rd rock from Sun.

PostPosted: Tue 04 Sep 2018, 18:24    Post subject:  

Should be thanking you instead for your contribution.. 👏🏻 👍🏻

I rarely turn on my Windows box this last month.
Almost did just to post that picture of nVidia screenshot for my nVidia thread.
CamPhoneTab averted that.

Just building up my pup/dog 'repertoire' ....

Cheers.
Back to top
View user's profile Send private message 
rufwoof

Joined: 24 Feb 2014
Posts: 2557

PostPosted: Wed 12 Sep 2018, 12:40    Post subject: sshfs mount android as local rox folder mountpoint  

MTP works in Fatdog for me (Fatdog/Control Panel/Network). However personally I prefer ssh. Install SSHelper on your phone and then sshfs mount a folder as that works over wireless and avoids having to have the phone connected to the PC via USB cable. A downside is that ssh is (much) slower at moving files through its ssh tunnel than moving files via USB cable connected to the PC - but not unbearably so (I just kick off file copy's and leave them to run whilst I do other things).

For me its something like (from Fatdog terminal)
Code:
cd /root
mkdir android
sshfs -p 2222 192.168.1.12:/data/data/com.arachnoid.sshelper/home/SDCard/ android

to mount the phones folder as /root/android mountpoint in Fatdog.

That's setting up the connection to port 2222 on the android, which is shown as the sshd server port in the phones SSHelper config screen, along with its IP address. IIRC the default password for SSHelper is admin ... but I changed mine in SSHelper config as leaving passwords at their default seeing ... ain't good.

I can then use rox to drag/drop files into/from that fatdog /root/android folder.

Best to have the firewall off (eztables Service - see Fatdog control panel) when first setting things up to keep that out of the way. Also ensure you set a password in SSHelper that you know and other settings (can't recall what) to permit open passwords ...etc. Later you can use ssh-keygen to create a ~/.ssh .... public and private key files and install the public key into the relevant ~/.ssh/authorized_keys file on the server (phone) ... to avoid having to enter/send passwords (or better still disable passwords) and maybe set the ssh server (phone) to autostart at startup the sshd so that it auto connects/mounts.

ssh/scp/sftp/sshfs ... are good to learn, as they're very common/portable tools. If you've Termux installed on your phone, ssh server running on Fatdog ... then ssh into Fatdog using your phone and run poweroff ...or whatever.
xscreenshot-20180912T163046.jpg
 Description   
 Filesize   56.7 KB
 Viewed   83 Time(s)

xscreenshot-20180912T163046.jpg


_________________
( ͡° ͜ʖ ͡°) :wq
Back to top
View user's profile Send private message 
watchdog

Joined: 28 Sep 2012
Posts: 1663
Location: Italy

PostPosted: Sat 22 Sep 2018, 10:57    Post subject:  

BarryK wrote:
What breed of pup are you using?

I recently introduced file sharing with an Android phone, in my experimental EasyOS (once upon a time, forked from Puppy, then there was Quirky Linux, now playing with EasyOS).

I am using the 'adb' utility, and a usb cable, and 'adbfs-rootless' to be able to browse the files.

See this blog post:

http://bkhome.org/news/201808/android-tools-and-adbfs-rootless-in-oe.html

You can use adb on its own, with any Linux distro, and it is pretty simple to connect to the phone. Using adbfs is also fairly simple.

If running one of the Debian or Ubuntu-based pups, there is package 'android-tools-adb' which has the adb utility. --- from memory, I think that is the name of the deb package.

It can do it manually, but I have added it to my EasyShare GUI on EasyOS:

http://www.bkhome.org/news/201808/easyshare-supports-android-phone-via-usb.html

...which in theory could be ported to any pup distro, but that would be a quite a bit of work, picking up all the bits of infrastructure that support EasyShare.

So, just follow the manual steps in a terminal, and it is fairly easy. You would probably have to compile adbfs-rootless, I don't know if there are any DEBs for it.


I remembered this post and I wanted to experiment. I have had success in precise connecting an android 5.1.1 tablet by adbfs. This is very experimental so be cautious. Install in precise:

adbfs-rootless-git2018.pet:

https://drive.google.com/file/d/1MwOzIa_6gySlRajpyvstF02oDSQnVQ2m/view?usp=sharing

android-tools-adb from wheezy:

https://debian.pkgs.org/7/debian-backports-main-i386/android-tools-adb_4.2.2+git20130529-3~bpo70+1_i386.deb.html

In your smartphone-tablet go to the Developer Options and set USB debugging. Then connect it to a usb port and tap "Ok" on the device to consent connection. In precise open a console and:

Code:
mkdir -p /mnt/droid
adbfs /mnt/droid -o allow_root


My device's content was now at /mnt/droid. To unmount I used:

Code:
umount /mnt/droid


EDIT: compiled in tahr64 adbfs-rootless-git2018-x86_64.pet:

https://drive.google.com/file/d/1vppDE3bY_82d8j5xMW2jeaiy8UD44zFR/view?usp=sharing
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [10 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0633s ][ Queries: 12 (0.0089s) ][ GZIP on ]