Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can not transfer files to android device?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
pmam
Veteran
Veteran


Joined: 30 Dec 2013
Posts: 1145

PostPosted: Wed Aug 09, 2017 7:00 am    Post subject: Can not transfer files to android device? Reply with quote

I have problem to transfer files to my android smartphone: oppo 7a. I already enabled USB Debugging mode in the device.
The device do connect to the computer and can see it by file explorer, however can not copy files to device.
My DE is Gnome and I did not have any issue with other android device.
Maybe some driver are missing or any other issue - Please advise how to work it out!
_________________
“You can take our property, our sweet homes, even our cloths...
But don't touch the streets, Ah, That's NO, NO, NO!
The streets are our @world's compilable kernel ...”
Back to top
View user's profile Send private message
xaviermiller
Administrator
Administrator


Joined: 23 Jul 2004
Posts: 7942
Location: ~Brussels - Belgique

PostPosted: Wed Aug 09, 2017 8:21 am    Post subject: Reply with quote

Hi,

Take a look at dmesg when the phone is connected.
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
pmam
Veteran
Veteran


Joined: 30 Dec 2013
Posts: 1145

PostPosted: Wed Aug 09, 2017 8:47 am    Post subject: Reply with quote

xaviermiller Hi,

Here last part of dmesg after connecting oppo phone:
Code:
[ 9714.140037] usb 1-8: new high-speed USB device number 13 using ehci-pci
[ 9714.331234] usb 1-8: New USB device found, idVendor=22d9, idProduct=2774
[ 9714.331242] usb 1-8: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 9714.331245] usb 1-8: Product: Android
[ 9714.331247] usb 1-8: Manufacturer: Android
[ 9714.331251] usb 1-8: SerialNumber: 8a4b6a6
[ 9714.332298] usb-storage 1-8:1.1: USB Mass Storage device detected
[ 9714.338307] scsi host4: usb-storage 1-8:1.1
[ 9715.360727] scsi 4:0:0:0: CD-ROM            Linux    File-Stor Gadget 0000 PQ: 0 ANSI: 2
[ 9715.362652] sr 4:0:0:0: [sr0] scsi-1 drive
[ 9715.363326] sr 4:0:0:0: Attached scsi CD-ROM sr0
[ 9715.363736] sr 4:0:0:0: Attached scsi generic sg2 type 5

and here after disconnecting oppo and connecting Gionee phone that work ok with computer (can transfer files):
Code:
[10006.350125] usb 1-8: USB disconnect, device number 13
[10015.540040] usb 1-8: new high-speed USB device number 14 using ehci-pci
[10015.731616] usb 1-8: New USB device found, idVendor=271d, idProduct=3f11
[10015.731625] usb 1-8: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[10015.731630] usb 1-8: Product: E7
[10015.731632] usb 1-8: Manufacturer: GIONEE
[10015.731634] usb 1-8: SerialNumber: 8b05fda
[10015.732680] usb-storage 1-8:1.0: USB Mass Storage device detected
[10015.734066] scsi host4: usb-storage 1-8:1.0
[10016.810542] scsi 4:0:0:0: Direct-Access     Linux    File-CD Gadget   0000 PQ: 0 ANSI: 2
[10016.811938] sd 4:0:0:0: Attached scsi generic sg2 type 0
[10016.813520] sd 4:0:0:0: [sdc] Attached SCSI removable disk

Hope it helps...
Thanks
_________________
“You can take our property, our sweet homes, even our cloths...
But don't touch the streets, Ah, That's NO, NO, NO!
The streets are our @world's compilable kernel ...”
Back to top
View user's profile Send private message
sebB
l33t
l33t


Joined: 02 Mar 2011
Posts: 730
Location: S.O. France

PostPosted: Wed Aug 09, 2017 3:57 pm    Post subject: Reply with quote

I have same problem on one android device.

To make copy work, I have first to create a new folder and delete it.
Then I am able tto paste any file on the device.
Back to top
View user's profile Send private message
xaviermiller
Administrator
Administrator


Joined: 23 Jul 2004
Posts: 7942
Location: ~Brussels - Belgique

PostPosted: Wed Aug 09, 2017 6:59 pm    Post subject: Reply with quote

What version of Android do you have ?

With Cyanogenmod/LineageOS, the default is to hide the phone, you have to select it to MTP or usb mass storage manually.
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
1clue
Advocate
Advocate


Joined: 05 Feb 2006
Posts: 2522

PostPosted: Wed Aug 09, 2017 7:27 pm    Post subject: Reply with quote

I've never had luck transferring through usb for any recent android device. I found "Wifi File Transfer" that sets the phone up for ftp sharing very recently. I hope to do an rsync through that but haven't had time to try it yet.

My pictures and music are a huge mess.
Back to top
View user's profile Send private message
pmam
Veteran
Veteran


Joined: 30 Dec 2013
Posts: 1145

PostPosted: Thu Aug 10, 2017 6:04 am    Post subject: Reply with quote

Quote:
To make copy work, I have first to create a new folder and delete it.

I tried but did not help
Quote:
What version of Android do you have ?

android 5.0. The ROM is coloros (the original of oppo). I do not have MTP in my computer. I enabled USB debugging in device.

adb looks ok wit the device:
Code:
adb devices
List of devices attached
8a4b6a6   device


Quote:
I found "Wifi File Transfer" that sets the phone up for ftp sharing very recently.

At the moment I found FTP function in the device and with Filezilla I can transfer files by WIFI.
Hope to find out what is missing for the USB transferring files...

Thanks
_________________
“You can take our property, our sweet homes, even our cloths...
But don't touch the streets, Ah, That's NO, NO, NO!
The streets are our @world's compilable kernel ...”
Back to top
View user's profile Send private message
h0ttentot
n00b
n00b


Joined: 20 Jun 2017
Posts: 16

PostPosted: Thu Aug 10, 2017 11:18 am    Post subject: Reply with quote

I do it using simple-mtpfs. I have a Moto g 2015 with LineageOS.

I just select file transfer in my device when connected. Then mount with:

Code:
simple-mtpfs --device 1 /mnt/android/


Umount with:

Code:
fusermount -u /mnt/android/


I don't use gnome so this is my solution. I think gnome uses something like gvfs to handle that.
Back to top
View user's profile Send private message
Syl20
Guru
Guru


Joined: 04 Aug 2005
Posts: 564
Location: France

PostPosted: Thu Aug 10, 2017 1:52 pm    Post subject: Reply with quote

pmam wrote:
I enabled USB debugging in device.

adb looks ok wit the device:
Code:
adb devices
List of devices attached
8a4b6a6   device

adb shell has (very limited) file transfer capabilities. You could try QtADB if you want a graphical interface over adb, but it is very unstable on my own systems.
Back to top
View user's profile Send private message
1clue
Advocate
Advocate


Joined: 05 Feb 2006
Posts: 2522

PostPosted: Thu Aug 10, 2017 2:04 pm    Post subject: Reply with quote

I think simple file transfers are almost irrelevant for phones. IMO the ideal transfer method is rsync, because I always want my music synced and I always want my photos/videos synced. Part of the problem IMO is that a straight file transfer always copies everything, and either replaces or, worse, renames the newly transferred file with a number at the end.
Back to top
View user's profile Send private message
tberger2
n00b
n00b


Joined: 05 Feb 2013
Posts: 69

PostPosted: Fri Aug 11, 2017 9:48 am    Post subject: Reply with quote

sys-fs/jmtpfs is working for me. You have to enable FUSE.
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2587

PostPosted: Fri Aug 11, 2017 10:29 am    Post subject: Reply with quote

pmam wrote:
I do not have MTP in my computer. I enabled USB debugging in device.

You should try it, see https://wiki.gentoo.org/wiki/MTP#Troubleshooting and https://wiki.gentoo.org/wiki/MTPfs
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
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