:: Re: [DNG] android transfer through …
Page principale
Supprimer ce message
Répondre à ce message
Auteur: al3xu5
Date:  
À: dng
Sujet: Re: [DNG] android transfer through mtp
Thu, 7 Sep 2023 20:51:55 -0700 - Gregory Nowak via Dng <dng@???>:

> On Fri, Sep 08, 2023 at 10:38:46AM +1000, Ralph Ronnquist wrote:
> > On Thu, Sep 07, 2023 at 07:07:49PM +0300, Klearchos-Angelos Gkountras via
> > Dng wrote:
> > > Hello guys ,
> > >
> > > I am using an Android device and I can't connect via usb
> > > to transfer some files . I am using devuan stable
> > >
> > > I have installed some applications like `android-file-transfer`
> > > and work kinda fine ..
> > >
> > > But I have used to do the job done with thunar .
> > >
> > > is there something that I should install and working via thunar
> > >
> > > Thanks for your time and assistance .
> > > --
> >
> > At some point in time the package jmtpfs worked; provided a mount
> > point for mtp acces to my android handset.
>
> It still does for me, at least under Chimaera. However, the OP wants
> something that specifically works in thunar.


There is a gui for jmtpfs which is called transfero.
Never used... so I do not know if is good....
https://github.com/jerichofs/transfero/blob/master/README.md
https://ppa.launchpadcontent.net/jerichofs/jaconda/ubuntu/pool/main/t/transfero/


Another package similar to jmtpfs should be mtpfs:
https://github.com/cjd/mtpfs


Anyway, I use ADB to transfer files via usb from an android phone to my devuan
system:

=== On the phone

- Enable developer options [1]

- Go to developer options and enable android debug (enable adb)

- Go to developer options and enable debug with root access

- Connect the phone via usb...

=== On your Linux system (adb should be installed)

- Start adb as root:
    $ adb root
    * daemon not running; starting now at tcp:5037
if you have a message like:
    adb: unable to connect for root: device unauthorized.
    This adb server's $ADB_VENDOR_KEYS is not set
    Try 'adb kill-server' if that seems wrong.
    Otherwise check for a confirmation dialog on your device.
then you need to authorize the connection in a confirmation dialog you
should have *on your phone*


- Now your device should be listed by
    $ adb devices -l
    List of devices attached
    XXXXXXXXXX  device usb:4-3 product:lineage_beyond1lte
    model:SM_G973F device:beyond1lte transport_id:2


- Using adb you can control your device: copy files back and forth, install
and uninstall apps, run shell commands, and more... see: [2][3][4] and/or
search for adb commands in the www
Note that in this way you can do many root actions on the phone also if it
has not been "rooted"!

- To list files on your phone:
    $ adb shell ls
    $ adb shell ls -R


- To copy files from your computer to the phone:
        $ adb push <computer_path> <phone_path>


- To copy files from the phone to your computer:
    $ adb pull <phone_path> <computer_path> 


=== On the phone

- Do not forget to disable developer options: go to developer options and
disable android debug (enable adb)


[1] https://www.xda-developers.com/android-developer-options/
[2] https://www.droidviews.com/adb-fastboot-commands-android/
[3] https://gist.github.com/Pulimet/5013acf2cd5b28e55036c82c91bd56d8
[4] https://adbshell.com/


Regards
alexus


--
Property is theft! (P-J Proudhon) -- True today more than ever.
______________________________________________________________________

Public GPG/PGP key: 8FC2 3121 2803 86E9 F7D8 B624 DA50 835B 2624 A36B