Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › Transfering files to Android 4.0 and later devices
New Posts  All Forums:Forum Nav:

Transfering files to Android 4.0 and later devices

post #1 of 24
Thread Starter 
I'm going to give the source for now and maybe write this up later (or someone else could).

http://news.softpedia.com/news/How-to-Transfer-Files-from-Ubuntu-to-Android-341722.shtml

PS: Is it truly just because Windows users were having trouble safely removing their phones that Google did the change to MTP? I don't even know what MTP means redface.gif

Anyway...sound off if it works for you guys. I've gotten it to work with my Galaxy Nexus but it seems files near the 4GB size don't want to transfer.
     
CPUGraphicsRAMHard Drive
Intel Core m3-6Y30 Intel HD515 8GB 1866DDR3L Micron M600 MTFDDAV256MBF M.2, 256 GB 
CoolingOSOSMonitor
Fanless Win10 Home x64 Kubuntu 16.04 (requires Linux kernel 4.5/4.6) 13.3 inch 16:9, 1920x1080 pixel, AU Optronics A... 
CPUMotherboardGraphicsRAM
AthlonIIX4 640 3.62GHz (250x14.5) 2.5GHz NB Asus M4A785TD-M EVO MSI GTX275 (Stock 666) 8GBs of GSkill 1600 
RAMHard DriveHard DriveHard Drive
4GBs of Adata 1333 Kingston HyperX 3k 120GB WD Caviar Black 500GB Hitachi Deskstar 1TB 
Optical DriveCoolingOSOS
LG 8X BDR (WHL08S20) Cooler Master Hyper 212+ Kubuntu x64 Windows 7 x64 
OSMonitorPowerCase
Bodhi Linux x64 Acer G215H (1920x1080) Seasonic 520 HAF912 
CPUMotherboardGraphicsRAM
N450 1.8GHz AC and 1.66GHz batt ASUS proprietary for 1001P GMA3150 (can play bluray now!?) 1GB DDR2 
Hard DriveOptical DriveOSOS
160GB LGLHDLBDRE32X Bodhi Linux Fedora LXDE 
OSOSMonitorKeyboard
Kubuntu SLAX 1280x600 + Dell 15inch Excellent! 
PowerCase
6 cells=6-12hrs and a charger 1001P MU17 Black 
  hide details  
Reply
     
CPUGraphicsRAMHard Drive
Intel Core m3-6Y30 Intel HD515 8GB 1866DDR3L Micron M600 MTFDDAV256MBF M.2, 256 GB 
CoolingOSOSMonitor
Fanless Win10 Home x64 Kubuntu 16.04 (requires Linux kernel 4.5/4.6) 13.3 inch 16:9, 1920x1080 pixel, AU Optronics A... 
CPUMotherboardGraphicsRAM
AthlonIIX4 640 3.62GHz (250x14.5) 2.5GHz NB Asus M4A785TD-M EVO MSI GTX275 (Stock 666) 8GBs of GSkill 1600 
RAMHard DriveHard DriveHard Drive
4GBs of Adata 1333 Kingston HyperX 3k 120GB WD Caviar Black 500GB Hitachi Deskstar 1TB 
Optical DriveCoolingOSOS
LG 8X BDR (WHL08S20) Cooler Master Hyper 212+ Kubuntu x64 Windows 7 x64 
OSMonitorPowerCase
Bodhi Linux x64 Acer G215H (1920x1080) Seasonic 520 HAF912 
CPUMotherboardGraphicsRAM
N450 1.8GHz AC and 1.66GHz batt ASUS proprietary for 1001P GMA3150 (can play bluray now!?) 1GB DDR2 
Hard DriveOptical DriveOSOS
160GB LGLHDLBDRE32X Bodhi Linux Fedora LXDE 
OSOSMonitorKeyboard
Kubuntu SLAX 1280x600 + Dell 15inch Excellent! 
PowerCase
6 cells=6-12hrs and a charger 1001P MU17 Black 
  hide details  
Reply
post #2 of 24
I think the real reason is that the old USB mass storage is a bit of hack for usage. If MTP didn't have some of its current problems (which can be solved with time mostly), it is a lot better for its use.

USB mass storage required a split partitioning on phones. With phones without USB mass storage let the app use the full space on the phone. Otherwise you need hacks to support it (apps 2 sd for instance). With MTP, it just exports a folder. It also lets you use the folder on your phone and computer simultaneously, meaning you don't lose access to things like music, videos, or apps.

It's just unfortunate that the support for MTP isn't quite there yet.
post #3 of 24
Quote:
Originally Posted by MJD View Post

I think the real reason is that the old USB mass storage is a bit of hack for usage. If MTP didn't have some of its current problems (which can be solved with time mostly), it is a lot better for its use.

USB mass storage required a split partitioning on phones. With phones without USB mass storage let the app use the full space on the phone. Otherwise you need hacks to support it (apps 2 sd for instance). With MTP, it just exports a folder. It also lets you use the folder on your phone and computer simultaneously, meaning you don't lose access to things like music, videos, or apps.

It's just unfortunate that the support for MTP isn't quite there yet.
You'd need separate partitions regardless because doing so offers up more benefits than just sandboxing users from accidentally filling up local storage (though that could still happen even with MTP because apps would have writable permissions as well. So all you'd need is a large download and you're screwed).


Personally I think MTP is a horrible idea. We've been here a million times before with Microsoft ActiveSync, Apples crappy implementation and the numerous other proprietary crap. It will always be slower and less supported than USB storage so what's the point?

And if you really want some poncey way to sync data, then install SFTP, SMB, Dropbox or one of the millions of other file sharing / network storage protocols that are already in wide spread use. MTP is just another attempt to fix something that was never broken to begin with.
post #4 of 24
Thread Starter 
Hmmm...I just don't understand what everyone's obsession with "the cloud" (AKA server) or wireless data transfer is...it just never works out as easily, reliably, or fast as a hardline. It just seems like another attempt (tin foil hats on people) at controlling and monitoring what the consumer is doing whether for something harmless like gathering consumption trends or dangerous like digging through emails and personal documents to potentially steal your ideas (tin foil hats off).

Back on the whole MTP and USB device storage methods...is this because you are essentially connecting one computer to another and therefore require some more complicated things instead of just cp, mv, or rsync? Hell, my damn phone doesn't even show up in my /mnt or /media (maybe a block device location?).

Either way...can someone try this with a 4GB or bigger file? I want to see if it's something funky with my stuff.
     
CPUGraphicsRAMHard Drive
Intel Core m3-6Y30 Intel HD515 8GB 1866DDR3L Micron M600 MTFDDAV256MBF M.2, 256 GB 
CoolingOSOSMonitor
Fanless Win10 Home x64 Kubuntu 16.04 (requires Linux kernel 4.5/4.6) 13.3 inch 16:9, 1920x1080 pixel, AU Optronics A... 
CPUMotherboardGraphicsRAM
AthlonIIX4 640 3.62GHz (250x14.5) 2.5GHz NB Asus M4A785TD-M EVO MSI GTX275 (Stock 666) 8GBs of GSkill 1600 
RAMHard DriveHard DriveHard Drive
4GBs of Adata 1333 Kingston HyperX 3k 120GB WD Caviar Black 500GB Hitachi Deskstar 1TB 
Optical DriveCoolingOSOS
LG 8X BDR (WHL08S20) Cooler Master Hyper 212+ Kubuntu x64 Windows 7 x64 
OSMonitorPowerCase
Bodhi Linux x64 Acer G215H (1920x1080) Seasonic 520 HAF912 
CPUMotherboardGraphicsRAM
N450 1.8GHz AC and 1.66GHz batt ASUS proprietary for 1001P GMA3150 (can play bluray now!?) 1GB DDR2 
Hard DriveOptical DriveOSOS
160GB LGLHDLBDRE32X Bodhi Linux Fedora LXDE 
OSOSMonitorKeyboard
Kubuntu SLAX 1280x600 + Dell 15inch Excellent! 
PowerCase
6 cells=6-12hrs and a charger 1001P MU17 Black 
  hide details  
Reply
     
CPUGraphicsRAMHard Drive
Intel Core m3-6Y30 Intel HD515 8GB 1866DDR3L Micron M600 MTFDDAV256MBF M.2, 256 GB 
CoolingOSOSMonitor
Fanless Win10 Home x64 Kubuntu 16.04 (requires Linux kernel 4.5/4.6) 13.3 inch 16:9, 1920x1080 pixel, AU Optronics A... 
CPUMotherboardGraphicsRAM
AthlonIIX4 640 3.62GHz (250x14.5) 2.5GHz NB Asus M4A785TD-M EVO MSI GTX275 (Stock 666) 8GBs of GSkill 1600 
RAMHard DriveHard DriveHard Drive
4GBs of Adata 1333 Kingston HyperX 3k 120GB WD Caviar Black 500GB Hitachi Deskstar 1TB 
Optical DriveCoolingOSOS
LG 8X BDR (WHL08S20) Cooler Master Hyper 212+ Kubuntu x64 Windows 7 x64 
OSMonitorPowerCase
Bodhi Linux x64 Acer G215H (1920x1080) Seasonic 520 HAF912 
CPUMotherboardGraphicsRAM
N450 1.8GHz AC and 1.66GHz batt ASUS proprietary for 1001P GMA3150 (can play bluray now!?) 1GB DDR2 
Hard DriveOptical DriveOSOS
160GB LGLHDLBDRE32X Bodhi Linux Fedora LXDE 
OSOSMonitorKeyboard
Kubuntu SLAX 1280x600 + Dell 15inch Excellent! 
PowerCase
6 cells=6-12hrs and a charger 1001P MU17 Black 
  hide details  
Reply
post #5 of 24
Quote:
Originally Posted by Rookie1337 View Post

Hmmm...I just don't understand what everyone's obsession with "the cloud" (AKA server) or wireless data transfer is...it just never works out as easily, reliably, or fast as a hardline. It just seems like another attempt (tin foil hats on people) at controlling and monitoring what the consumer is doing whether for something harmless like gathering consumption trends or dangerous like digging through emails and personal documents to potentially steal your ideas (tin foil hats off).
I don't use dropbox. I do use SFTP and SMB - both of which can be done locally and still have the convenience of not having to cable your handset to your PC.
Quote:
Originally Posted by Rookie1337 View Post

Back on the whole MTP and USB device storage methods...is this because you are essentially connecting one computer to another and therefore require some more complicated things instead of just cp, mv, or rsync? Hell, my damn phone doesn't even show up in my /mnt or /media (maybe a block device location?).
rsync is also connecting one computer to another. Im not familiar with the ins and outs of MTP, but I'd wager it's what you just said.
Quote:
Originally Posted by Rookie1337 View Post

Hmmm
Either way...can someone try this with a 4GB or bigger file? I want to see if it's something funky with my stuff.
Is it a video file you're copying? Is it doing any kind of transcoding?
post #6 of 24
Is it going to a partition formatted in a fat variant? 4gb files aren't supported on those partitions, Linux will let you write them, but it will write them as file.extension and file.extension.0 etc...

That may lead to your problem.

Now, on to the "issue" at hand, you can enable mass storage mode in Android 4.0 and later, I know - my phone does it just fine. My phone is a little weird and when in mass storage mode shows as two seperate partitions (8gb, internal; 64gb, sdcard) and a cdrom drive (motorola drivers).
This option is available in the system settings on any AOSP rom, not sure about stock options. For me, I just go to "Storage" and hit the menu button to bring up "USB Computer Connection" and select "Mass Storage" my three options are MTP, PTP and Mass Storage.
    
CPUMotherboardGraphicsRAM
Core i7 920 D0 4.2ghz HT (1.3625v) Asus R3E 2xGTX 460 (non SLi, no overclock) 6x2gb G.skill @ 6-8-6-24-1T 
Hard DriveOptical DriveOSMonitor
WD-VR 300GBx1, 2xWD 1tb,2x60gb Agility Some crappy combo burner... Arch x64 3xDell U2410f rev A02 
KeyboardPowerCaseMouse
X-Armor U9BL TT Toughpower 1200w (NTB more efficient) Mountain Mods Pinnacle 24 CYO Roccat Kone (R.I.P. A4Tech x7) 
Mouse Pad
Steelpad Experience I-1 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
Core i7 920 D0 4.2ghz HT (1.3625v) Asus R3E 2xGTX 460 (non SLi, no overclock) 6x2gb G.skill @ 6-8-6-24-1T 
Hard DriveOptical DriveOSMonitor
WD-VR 300GBx1, 2xWD 1tb,2x60gb Agility Some crappy combo burner... Arch x64 3xDell U2410f rev A02 
KeyboardPowerCaseMouse
X-Armor U9BL TT Toughpower 1200w (NTB more efficient) Mountain Mods Pinnacle 24 CYO Roccat Kone (R.I.P. A4Tech x7) 
Mouse Pad
Steelpad Experience I-1 
  hide details  
Reply
post #7 of 24
Thread Starter 
Well I don't actually know what the FS of a stock Droid system is...does anyone know as that would kind of suck if the damn phone is in stupid FAT (seriously, can't we just move to F2FS already?). There's no transcoding. It transfered the 1.6GB file just fine...but just wouldn't let me transfer the 4+GB ones at all (as in nothing happened no matter how many times I hit the "transfer" clickable GUI thing).

@Xaero: Yeah...I really wish I had waited before I went and updated my damn phone...Sprint took over and removed all the nice features like dev mode and root the moment I did. mad.gif I didn't want to do any ROMs. Pretty sure I'd somehow brick the stupid thing and that's the last thing I need right now.
     
CPUGraphicsRAMHard Drive
Intel Core m3-6Y30 Intel HD515 8GB 1866DDR3L Micron M600 MTFDDAV256MBF M.2, 256 GB 
CoolingOSOSMonitor
Fanless Win10 Home x64 Kubuntu 16.04 (requires Linux kernel 4.5/4.6) 13.3 inch 16:9, 1920x1080 pixel, AU Optronics A... 
CPUMotherboardGraphicsRAM
AthlonIIX4 640 3.62GHz (250x14.5) 2.5GHz NB Asus M4A785TD-M EVO MSI GTX275 (Stock 666) 8GBs of GSkill 1600 
RAMHard DriveHard DriveHard Drive
4GBs of Adata 1333 Kingston HyperX 3k 120GB WD Caviar Black 500GB Hitachi Deskstar 1TB 
Optical DriveCoolingOSOS
LG 8X BDR (WHL08S20) Cooler Master Hyper 212+ Kubuntu x64 Windows 7 x64 
OSMonitorPowerCase
Bodhi Linux x64 Acer G215H (1920x1080) Seasonic 520 HAF912 
CPUMotherboardGraphicsRAM
N450 1.8GHz AC and 1.66GHz batt ASUS proprietary for 1001P GMA3150 (can play bluray now!?) 1GB DDR2 
Hard DriveOptical DriveOSOS
160GB LGLHDLBDRE32X Bodhi Linux Fedora LXDE 
OSOSMonitorKeyboard
Kubuntu SLAX 1280x600 + Dell 15inch Excellent! 
PowerCase
6 cells=6-12hrs and a charger 1001P MU17 Black 
  hide details  
Reply
     
CPUGraphicsRAMHard Drive
Intel Core m3-6Y30 Intel HD515 8GB 1866DDR3L Micron M600 MTFDDAV256MBF M.2, 256 GB 
CoolingOSOSMonitor
Fanless Win10 Home x64 Kubuntu 16.04 (requires Linux kernel 4.5/4.6) 13.3 inch 16:9, 1920x1080 pixel, AU Optronics A... 
CPUMotherboardGraphicsRAM
AthlonIIX4 640 3.62GHz (250x14.5) 2.5GHz NB Asus M4A785TD-M EVO MSI GTX275 (Stock 666) 8GBs of GSkill 1600 
RAMHard DriveHard DriveHard Drive
4GBs of Adata 1333 Kingston HyperX 3k 120GB WD Caviar Black 500GB Hitachi Deskstar 1TB 
Optical DriveCoolingOSOS
LG 8X BDR (WHL08S20) Cooler Master Hyper 212+ Kubuntu x64 Windows 7 x64 
OSMonitorPowerCase
Bodhi Linux x64 Acer G215H (1920x1080) Seasonic 520 HAF912 
CPUMotherboardGraphicsRAM
N450 1.8GHz AC and 1.66GHz batt ASUS proprietary for 1001P GMA3150 (can play bluray now!?) 1GB DDR2 
Hard DriveOptical DriveOSOS
160GB LGLHDLBDRE32X Bodhi Linux Fedora LXDE 
OSOSMonitorKeyboard
Kubuntu SLAX 1280x600 + Dell 15inch Excellent! 
PowerCase
6 cells=6-12hrs and a charger 1001P MU17 Black 
  hide details  
Reply
post #8 of 24
Quote:
Originally Posted by Rookie1337 View Post

Well I don't actually know what the FS of a stock Droid system is...does anyone know as that would kind of suck if the damn phone is in stupid FAT (seriously, can't we just move to F2FS already?). There's no transcoding. It transfered the 1.6GB file just fine...but just wouldn't let me transfer the 4+GB ones at all (as in nothing happened no matter how many times I hit the "transfer" clickable GUI thing).
Of course they're still using FAT32. Microsoft are £^*%ing useless at rolling out new software except when it's pointless skin changes to flagship products that allow them to chart another £300 for the same sodding software.

Until Microsoft pull their thumb out of their arse, we're always going to be stuck with FAT32 on portable devices.

@Xaero252 Nice catch about the 4GB limit. I'd completely forgotten about that limitation in FAT32.
post #9 of 24
Thread Starter 
Quote:
Originally Posted by Plan9 View Post

Of course they're still using FAT32. Microsoft are £^*%ing useless at rolling out new software except when it's pointless skin changes to flagship products that allow them to chart another £300 for the same sodding software.

Until Microsoft pull their thumb out of their arse, we're always going to be stuck with FAT32 on portable devices.

@Xaero252 Nice catch about the 4GB limit. I'd completely forgotten about that limitation in FAT32.

Wait...so Google is intentionally using FAT32 which I've heard rumors is actually harmful to flash...because of MS? That's stupid. Why would Samsung invest time and effort into F2FS if it will never be used then?
     
CPUGraphicsRAMHard Drive
Intel Core m3-6Y30 Intel HD515 8GB 1866DDR3L Micron M600 MTFDDAV256MBF M.2, 256 GB 
CoolingOSOSMonitor
Fanless Win10 Home x64 Kubuntu 16.04 (requires Linux kernel 4.5/4.6) 13.3 inch 16:9, 1920x1080 pixel, AU Optronics A... 
CPUMotherboardGraphicsRAM
AthlonIIX4 640 3.62GHz (250x14.5) 2.5GHz NB Asus M4A785TD-M EVO MSI GTX275 (Stock 666) 8GBs of GSkill 1600 
RAMHard DriveHard DriveHard Drive
4GBs of Adata 1333 Kingston HyperX 3k 120GB WD Caviar Black 500GB Hitachi Deskstar 1TB 
Optical DriveCoolingOSOS
LG 8X BDR (WHL08S20) Cooler Master Hyper 212+ Kubuntu x64 Windows 7 x64 
OSMonitorPowerCase
Bodhi Linux x64 Acer G215H (1920x1080) Seasonic 520 HAF912 
CPUMotherboardGraphicsRAM
N450 1.8GHz AC and 1.66GHz batt ASUS proprietary for 1001P GMA3150 (can play bluray now!?) 1GB DDR2 
Hard DriveOptical DriveOSOS
160GB LGLHDLBDRE32X Bodhi Linux Fedora LXDE 
OSOSMonitorKeyboard
Kubuntu SLAX 1280x600 + Dell 15inch Excellent! 
PowerCase
6 cells=6-12hrs and a charger 1001P MU17 Black 
  hide details  
Reply
     
CPUGraphicsRAMHard Drive
Intel Core m3-6Y30 Intel HD515 8GB 1866DDR3L Micron M600 MTFDDAV256MBF M.2, 256 GB 
CoolingOSOSMonitor
Fanless Win10 Home x64 Kubuntu 16.04 (requires Linux kernel 4.5/4.6) 13.3 inch 16:9, 1920x1080 pixel, AU Optronics A... 
CPUMotherboardGraphicsRAM
AthlonIIX4 640 3.62GHz (250x14.5) 2.5GHz NB Asus M4A785TD-M EVO MSI GTX275 (Stock 666) 8GBs of GSkill 1600 
RAMHard DriveHard DriveHard Drive
4GBs of Adata 1333 Kingston HyperX 3k 120GB WD Caviar Black 500GB Hitachi Deskstar 1TB 
Optical DriveCoolingOSOS
LG 8X BDR (WHL08S20) Cooler Master Hyper 212+ Kubuntu x64 Windows 7 x64 
OSMonitorPowerCase
Bodhi Linux x64 Acer G215H (1920x1080) Seasonic 520 HAF912 
CPUMotherboardGraphicsRAM
N450 1.8GHz AC and 1.66GHz batt ASUS proprietary for 1001P GMA3150 (can play bluray now!?) 1GB DDR2 
Hard DriveOptical DriveOSOS
160GB LGLHDLBDRE32X Bodhi Linux Fedora LXDE 
OSOSMonitorKeyboard
Kubuntu SLAX 1280x600 + Dell 15inch Excellent! 
PowerCase
6 cells=6-12hrs and a charger 1001P MU17 Black 
  hide details  
Reply
post #10 of 24
sub'd for when i get home, i was just trying to figure this out last night.
    
CPUMotherboardGraphicsRAM
Intel Processor Z97-PRO AMD Radeon R9 290 Series G. Skill 
Hard DriveHard DriveOptical DriveCooling
OCZ 128 Vertex 3 WD 1TB black Asus drive Corsair h100i 
OSMonitorKeyboardPower
Windows 8.1 BenQ 24 inch Rosewill rk9000 EVGA 850W GS 
CaseMouseMouse PadAudio
Corsair 540 Silver edition Steel Series Rival SS Qck+ Superlux 681 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
Intel Processor Z97-PRO AMD Radeon R9 290 Series G. Skill 
Hard DriveHard DriveOptical DriveCooling
OCZ 128 Vertex 3 WD 1TB black Asus drive Corsair h100i 
OSMonitorKeyboardPower
Windows 8.1 BenQ 24 inch Rosewill rk9000 EVGA 850W GS 
CaseMouseMouse PadAudio
Corsair 540 Silver edition Steel Series Rival SS Qck+ Superlux 681 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux, Unix
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › Transfering files to Android 4.0 and later devices