[Q] External Card and USB Connection - T-Mobile Samsung Galaxy S 5

Dear all,
I had been using an old HTC Glacier with Android 2.3 until last week and just the I've got a new S5. Android 4.4 is very new to me, so I am sorry for the newbie questions.
It's my understanding that Google changed permissions so that apps cannot access the external card. Can rooted devices and/or custom ROMs allows that? (I plan to install the Project Infiity ROM soon.)
With my old phone (using CM 7) I could connect it via USB and have it recognized as a Mass Storage Device. Do custom ROMs allow that still?
Thanks!
Luis

#1. you can use foldermount app to link internal sd's folders with external card
#2. since 4.3 USB mass storage have been removed in favor of MTP. I have not seen any new custom ROM with usb mass storage. However you can still browse your internal and external sd when you hook your phone to a computer, just know that MTP has piss poor speed.

kawaiichi said:
#1. you can use foldermount app to link internal sd's folders with external card
#2. since 4.3 USB mass storage have been removed in favor of MTP. I have not seen any new custom ROM with usb mass storage. However you can still browse your internal and external sd when you hook your phone to a computer, just know that MTP has piss poor speed.
Click to expand...
Click to collapse
What is MTP?
Sent from my SM-G900T using XDA Free mobile app

[email protected] said:
What is MTP?
Sent from my SM-G900T using XDA Free mobile app
Click to expand...
Click to collapse
MTP is where your device shows up as a "media player" or camera and is not assigned a drive letter. You can still access your files, but is much more restricted to where you can only copy, paste and delete. In order to modify or even rename you must copy them first, then do your modifications and then push them back. They did it this way to better protect the Android filesystem.
Now, with your S5 it is still possible to mount as mass storage. You will need root. If you have root, get terminal emulator and enter in su (to get su privileges) and then type "setprop persist.sys.usb.config mass_storage". DOING THIS DOES THE JOB BUT CAN POTENTIALLY MESS UP YOUR DEVICE. DO NOT USE THIS METHOD WITH MAC DEVICES. ONLY WINDOWS/LINUX. Windows XP recommended. Hope this helps!
Sent from my SCH-I605 using XDA Free mobile app

aarongillion63 said:
MTP is where your device shows up as a "media player" or camera and is not assigned a drive letter. You can still access your files, but is much more restricted to where you can only copy, paste and delete. In order to modify or even rename you must copy them first, then do your modifications and then push them back. They did it this way to better protect the Android filesystem.
Now, with your S5 it is still possible to mount as mass storage. You will need root. If you have root, get terminal emulator and enter in su (to get su privileges) and then type "setprop persist.sys.usb.config mass_storage". DOING THIS DOES THE JOB BUT CAN POTENTIALLY MESS UP YOUR DEVICE. DO NOT USE THIS METHOD WITH MAC DEVICES. ONLY WINDOWS/LINUX. Windows XP recommended. Hope this helps!
Sent from my SCH-I605 using XDA Free mobile app
Click to expand...
Click to collapse
Thanks for the fast response! I was also wondering why MTP has such a lousy speed?
Sent from my SM-G900T using XDA Free mobile app

[email protected] said:
Thanks for the fast response! I was also wondering why MTP has such a lousy speed?
Sent from my SM-G900T using XDA Free mobile app
Click to expand...
Click to collapse
Because MTP hosts a virtual filesystem, where the internal sd is secured and protected from the computer, whereas mass storage is a direct.
--
Say thanks if I was of help!
Sent from my SCH-I605 using XDA Free mobile app

Understood. Also an app called WiFi file transfer has awesome xfer speeds for moving files to and from the PC.
Sent from my SM-G900T using XDA Free mobile app

Firstly, thanks all for the informative responses!
aarongillion63 said:
MTP is where your device shows up as a "media player" or camera and is not assigned a drive letter. You can still access your files, but is much more restricted to where you can only copy, paste and delete. In order to modify or even rename you must copy them first, then do your modifications and then push them back. They did it this way to better protect the Android filesystem.
Now, with your S5 it is still possible to mount as mass storage. You will need root. If you have root, get terminal emulator and enter in su (to get su privileges) and then type "setprop persist.sys.usb.config mass_storage". DOING THIS DOES THE JOB BUT CAN POTENTIALLY MESS UP YOUR DEVICE. DO NOT USE THIS METHOD WITH MAC DEVICES. ONLY WINDOWS/LINUX. Windows XP recommended. Hope this helps!
Sent from my SCH-I605 using XDA Free mobile app
Click to expand...
Click to collapse
Have you tried this last "hack" with the GS5? That sounds great, although your remarks scare me a bit. (I'm virtually always on Linux, though, and own no Mac.)
Thanks again!
Luis

finotti said:
Firstly, thanks all for the informative responses!
Have you tried this last "hack" with the GS5? That sounds great, although your remarks scare me a bit. (I'm virtually always on Linux, though, and own no Mac.)
Thanks again!
Luis
Click to expand...
Click to collapse
I have not tried this with an S5 but I can confirm that this works with some S3's and S4's (doesn't work on Verizon/Sprint versions, got it to work once on at&t, however it would be logical to assume it's processor dependant as these devices come in multiple processor variants; my guess is it doesn't work on ARM and does on Exynos.)
Idk, it's worth a try, you will only mess up your device if you don't "safely remove hardware" during write.

Related

[Q] File Transfers

Ive done a preliminary search on transferring files on the TFP and im not sure if im just blind or if we are really just limited to MTP transferring but i was wondering if any one knows of away to increase file transfer speeds over usb using mtp or if there is an alternate way to transfer files that i am completely missing.
I have rooted but havent decided if i want to unlock my bootloader so please refrain from suggesting flashing certain roms.
Thank you in advance
-Cheers
Up to now we don't have mass storage mode available. Maybe you can use the PTP option for fast transfer.
shreddintyres said:
Ive done a preliminary search on transferring files on the TFP and im not sure if im just blind or if we are really just limited to MTP transferring but i was wondering if any one knows of away to increase file transfer speeds over usb using mtp or if there is an alternate way to transfer files that i am completely missing.
I have rooted but havent decided if i want to unlock my bootloader so please refrain from suggesting flashing certain roms.
Thank you in advance
-Cheers
Click to expand...
Click to collapse
welcome to the world of wifi download file expert... go to networks... then goto I think its windows (prime is powered off right now) if you enter ip address of your machine (192.168.0.XX) your user name on the computer and the password... make sure you have file sharing on the drive / folder you want to access then download away man...
Gage_Hero said:
welcome to the world of wifi download file expert... go to networks... then goto I think its windows (prime is powered off right now) if you enter ip address of your machine (192.168.0.XX) your user name on the computer and the password... make sure you have file sharing on the drive / folder you want to access then download away man...
Click to expand...
Click to collapse
Damn I was hoping for a wired solution, wifi dl can be so slow at times but thank youjust about anything is faster than mtp file transfer
Sent from my Transformer Prime TF201 using xda premium
I've resorted to FTP over WiFi.. slow as molasses..
MTP sucks.
Any idea what it would take to get mass storage working this is a big enough deal for me to flash a rom
Sent from my icy vibrant

Access Filesystem from Java application on PC

So, the MTP transfer on newer Android devices sucks and I hate not having an ETA/Speed display using adb push. Is there anyway to access the Android filesystem (doesn't need to be a root-owned directory; /mnt/sdcard would be fine) over USB? ie. open a FileOutputStream to a file/dir on my device from a java application on my pc?
I'm assuming the easiest answer is to set up a server for ftp/sftp/ssh on my device and connect that way but it would be nice just to access it as if it were mounted on my local PC as a local drive. Any ideas? Thanks!
sanosuke001 said:
So, the MTP transfer on newer Android devices sucks and I hate not having an ETA/Speed display using adb push. Is there anyway to access the Android filesystem (doesn't need to be a root-owned directory; /mnt/sdcard would be fine) over USB? ie. open a FileOutputStream to a file/dir on my device from a java application on my pc?
I'm assuming the easiest answer is to set up a server for ftp/sftp/ssh on my device and connect that way but it would be nice just to access it as if it were mounted on my local PC as a local drive. Any ideas? Thanks!
Click to expand...
Click to collapse
Windows or Ubuntu?
Sent from my Galaxy Nexus using xda premium
windows, preferably (main dekstop pc is windows) but linux might work.
sanosuke001 said:
windows, preferably (main dekstop pc is windows) but linux might work.
Click to expand...
Click to collapse
Ah OK. I have it working fine in Ubuntu after setting up mtp. I'm honestly not sure about windows. I never use it. I will look into it and get back to ya.
Sent from my Galaxy Nexus using xda premium
lithid-cm said:
Ah OK. I have it working fine in Ubuntu after setting up mtp. I'm honestly not sure about windows. I never use it. I will look into it and get back to ya.
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Care to share the trick you used. I'm running Ubuntu 12.04. I had it working once, reinstalled Ubuntu and haven't been able to get it to work since -.-
Sent from my Maguro
hev88 said:
Care to share the trick you used. I'm running Ubuntu 12.04. I had it working once, reinstalled Ubuntu and haven't been able to get it to work since -.-
Sent from my Maguro
Click to expand...
Click to collapse
Replace Id vendor, and id product with yours. My example is with maguro (gnex gsm)
Code:
sudo apt-get install mtp-tools mtpfs
sudo echo "
SUBSYSTEM==\"usb\", ATTR{idVendor}==\"04e8\", ATTR{idProduct}==\"685c\", MODE=\"0666\"
" >> /etc/udev/rules.d/51-android.rules
sudo service udev restart
sudo mkdir /media/GNex
sudo chmod a+rwx /media/GNex
Replace "lithid" with your user
Code:
sudo adduser lithid fuse
Make sure to uncomment or add
Code:
user_allow_other
to /etc/fuser.conf
You could add this to your bashrc profile to help with aliases
Code:
echo “alias go-go-gadget-gnex=\”mtpfs -o allow_other /media/GNex\”" >> ~/.bashrc
echo “alias gadget-gnex-stop=\”fusermount -u /media/GNex\”" >> ~/.bashrc
source ~/.bashrc
sanosuke001 said:
So, the MTP transfer on newer Android devices sucks and I hate not having an ETA/Speed display using adb push. Is there anyway to access the Android filesystem (doesn't need to be a root-owned directory; /mnt/sdcard would be fine) over USB? ie. open a FileOutputStream to a file/dir on my device from a java application on my pc?
I'm assuming the easiest answer is to set up a server for ftp/sftp/ssh on my device and connect that way but it would be nice just to access it as if it were mounted on my local PC as a local drive. Any ideas? Thanks!
Click to expand...
Click to collapse
From reading about mtp in windows, its my understanding that it "just works" is this not the case?
MTP in Windows is bull****. First, it requests that you verify any files that it thinks might not be displayable on your device so you need to verify every transfer with a "Yes" or "No" and then, for large files like video, it tends to time out pretty regularly and won't complete a transfer. It's a pain in the ass and adb push is too god damned slow :/
With my Xoom I used to just pop out the memory card, stick it in a card reader, and copy from there without issue. However, the Galaxy Nexus card is behind my battery and the Nexus 7 doesn't have a sd card at all :/
sanosuke001 said:
MTP in Windows is bull****. First, it requests that you verify any files that it thinks might not be displayable on your device so you need to verify every transfer with a "Yes" or "No" and then, for large files like video, it tends to time out pretty regularly and won't complete a transfer. It's a pain in the ass and adb push is too god damned slow :/
With my Xoom I used to just pop out the memory card, stick it in a card reader, and copy from there without issue. However, the Galaxy Nexus card is behind my battery and the Nexus 7 doesn't have a sd card at all :/
Click to expand...
Click to collapse
:good:
sanosuke001 said:
MTP in Windows is bull****. First, it requests that you verify any files that it thinks might not be displayable on your device so you need to verify every transfer with a "Yes" or "No" and then, for large files like video, it tends to time out pretty regularly and won't complete a transfer. It's a pain in the ass and adb push is too god damned slow :/
With my Xoom I used to just pop out the memory card, stick it in a card reader, and copy from there without issue. However, the Galaxy Nexus card is behind my battery and the Nexus 7 doesn't have a sd card at all :/
Click to expand...
Click to collapse
Only thing I can suggest is using a better operating system. With the new iteration of windows even game developers have started getting opengl gaming to linux. Which to my understanding is a huge reason people still use windows (of course other software like video editing), but if you are not using that type of stuff, get with linux. It works better and hackability is endless when trying to get something to work right.
Cheers
lithid-cm said:
Only thing I can suggest is using a better operating system. With the new iteration of windows even game developers have started getting opengl gaming to linux. Which to my understanding is a huge reason people still use windows (of course other software like video editing), but if you are not using that type of stuff, get with linux. It works better and hackability is endless when trying to get something to work right.
Cheers
Click to expand...
Click to collapse
Yeah, I know. However, I do PC gaming and until Linux games don't require Wine (or work flawlessly in Wine) there's not much I can do about it and I refuse to dual boot; it's a pain in the ass.
sanosuke001 said:
Yeah, I know. However, I do PC gaming and until Linux games don't require Wine (or work flawlessly in Wine) there's not much I can do about it and I refuse to dual boot; it's a pain in the ass.
Click to expand...
Click to collapse
Sounds like either way its a pain in ass?
Sent from my Galaxy Nexus using xda premium

File Transfer

What is the best way to transfer rom files to the phone? I didnt see a way to do it with the sync program. Is there some additional software i could use in windows? I've been using android commander to push files over via adb.
I am using total commander. It can push everything to the phones memory.
Sent from my Vodafone Smart II using xda app-developers app
MTP mode will do it.
Hunt3r.j2 said:
MTP mode will do it.
Click to expand...
Click to collapse
Not familiar with that.

Phone Filesystem DATA is different in windows and android !!!???

To explain it simply,
My extSDCard used to have 2 folders once upon a time. Then I connected the phone to windows. Then unplug it.
Now I have renamed one of the folders from 'Pictures' to 'Pics'. And I add one extra folder with 2 GB of Data in it. This is done using Root Explorer Android App.
Now I connect the phone to windows PC. Windows still shows the original 2 folders [with one of the folders still named Pictures] and does not show the new 3rd folder, but only shows a reduction in available memory space.
What is happening!!!? Running Latest CM10.1 Nightly with Siyah Kernel.
Not sure how this problem started - I reckon its got something to do with Root Explorer. Not sure though.
You should provide a screenshot of the folder in root explorer and again in windows
Sent from my GT-I9300 using Tapatalk 2
I have had that kinda problem, don't know, but I figured out how to fix it, at least temporarily and partially, I think that's something related to MTP.
Try reboot your phone several times should help, or run media scan .
Another way to avoid this is use ADB commands to push and pull files will not not encounter this problem as far as I can tell
Sent from my GT-I9300 using xda premium
Yeah if i restart loads of times and then connect it to the PC, then the filesystem on the PC shows the updated android filesystem. But if I disconnect and make any more changes, then the same problems again...
Mr Faceless said:
Yeah if i restart loads of times and then connect it to the PC, then the filesystem on the PC shows the updated android filesystem. But if I disconnect and make any more changes, then the same problems again...
Click to expand...
Click to collapse
Run media scan or use ADB
Sent from my GT-I9300 using xda premium

[Q] connected my phone to ubuntu, all my files on external SD card are now gone

Hello!
I just updated my ubuntu to the latest version, 13.04, and I wanted to transfer some files to my Galaxy s2 (i9100). I have had problem earlier which included slow transfer speed and I got 4 dialog screens wanting me to connect both the internal and external Sd-card instead of 2.
When I tried to transfer my files to my external Sd card I got an error message,
Code:
Error creating directory: Input/output error
. I thought that it was weird but since I was in a hurry I didn't have time for it. I opened my audio map on the computer but I didn't see any files there. I thought it was just my computer being slow so I disconnected my phone.
When I later tried to listen to music I couldn't find any with Apollo so I opened a file manager and I couldn't see my files there either. I restarted my phone but the music is still not showing. I also found out that also all my pictures are gone from the external Sd-card.
The custom ROM I have is ReVolt 4.3 if that would be to any help.
That's it for using Ubuntu.Use Windows or MAC like a normal man.
GamingDj said:
That's it for using Ubuntu.Use Windows or MAC like a normal man.
Click to expand...
Click to collapse
I'm sorry, that's garbage. That's not a solution.
OP I'm sorry I don't know much about Linux, I haven't used it extensively. In what limited use I have of it, I haven't come across that error I'm sorry.
Sent from a galaxy far, far away
Have all your files gone? If so it must have got wiped during a faulty mounting procedure, I am guessing you tried to mount the device as a USB storage device, faulty cables or improper connection have been known in my experience to do that that's why I say MTP is always safer because android still has control over the memory,unlike UMS it doesn't un mount the memory when connecting to a host device.
And personally I prefer Linux over any other OS, especially ubuntu linux.
But again there could be some bugs with the latest ubuntu.
Edit: also not to alarm you input/output error usually in linux means a hardware issue related to the external memory connected. But as I said before it could be something else like improper connection or a driver error.
Sent from my GT-I9100 using xda app-developers app
king_below_my_lord said:
Have all your files gone? If so it must have got wiped during a faulty mounting procedure, I am guessing you tried to mount the device as a USB storage device, faulty cables or improper connection have been known in my experience to do that that's why I say MTP is always safer because android still has control over the memory,unlike UMS it doesn't un mount the memory when connecting to a host device.
And personally I prefer Linux over any other OS, especially ubuntu linux.
But again there could be some bugs with the latest ubuntu.
Edit: also not to alarm you input/output error usually in linux means a hardware issue related to the external memory connected. But as I said before it could be something else like improper connection or a driver error.
Sent from my GT-I9100 using xda app-developers app
Click to expand...
Click to collapse
Well, my photos have been replaced by some files with around 1 bytes in size and their name is similar to eachother.
I used the same cable and usb-port as before. I didn't know that you could use MTP on ubuntu. It seems like you have to install it yourself which I haven't done yet.
The weird thing is that I successfully conncted my external harddrive and it showed up on the computer and I managed to transfer some files to the computer. I didn't get any error message what so ever with the harddrive.
I have had this computer several years now and maybe it's time for an upgrade...
EzZn0 said:
Well, my photos have been replaced by some files with around 1 bytes in size and their name is similar to eachother.
I used the same cable and usb-port as before. I didn't know that you could use MTP on ubuntu. It seems like you have to install it yourself which I haven't done yet.
The weird thing is that I successfully conncted my external harddrive and it showed up on the computer and I managed to transfer some files to the computer. I didn't get any error message what so ever with the harddrive.
I have had this computer several years now and maybe it's time for an upgrade...
Click to expand...
Click to collapse
Replaced by small files you say? I think the files might have got corrupted, try running a disk error checking tool on your memory cards something like chkdsk(in Windows) for both your device memory, and didn't you say that you upgraded to Ubuntu 13.04? 13.04 supports MTP by default only in the previous versions were MTP a pain in the ass, we had to install the MTP library and had to install gMTP and it WAS a pain in the ass, but I haven't yet started using Raring to check how much efficient the new feature is, it will surely be polished from 13.10 onwards anyhow.
These kind of pain in the ass limitations force's me to dual boot windows with my Linux distribution(I occasionally change it).
Sent from my GT-I9100 using xda app-developers app
king_below_my_lord said:
Replaced by small files you say? I think the files might have got corrupted, try running a disk error checking tool on your memory cards something like chkdsk(in Windows) for both your device memory, and didn't you say that you upgraded to Ubuntu 13.04? 13.04 supports MTP by default only in the previous versions were MTP a pain in the ass, we had to install the MTP library and had to install gMTP and it WAS a pain in the ass, but I haven't yet started using Raring to check how much efficient the new feature is, it will surely be polished from 13.10 onwards anyhow.
These kind of pain in the ass limitations force's me to dual boot windows with my Linux distribution(I occasionally change it).
Sent from my GT-I9100 using xda app-developers app
Click to expand...
Click to collapse
I tried to run the chkdsk from windows 7 but after a while it just stopped. I will try again when I have more time on my hands. Maybe over night and see if it can find anything. Now my Audio map is gone and all the files in DCIM is called Q and have 0 bytes in size.
I did however find 2 albums that I had deleted myself in the .trash1000 map.
king_below_my_lord said:
Replaced by small files you say? I think the files might have got corrupted, try running a disk error checking tool on your memory cards something like chkdsk(in Windows) for both your device memory, and didn't you say that you upgraded to Ubuntu 13.04? 13.04 supports MTP by default only in the previous versions were MTP a pain in the ass, we had to install the MTP library and had to install gMTP and it WAS a pain in the ass, but I haven't yet started using Raring to check how much efficient the new feature is, it will surely be polished from 13.10 onwards anyhow.
These kind of pain in the ass limitations force's me to dual boot windows with my Linux distribution(I occasionally change it).
Sent from my GT-I9100 using xda app-developers app
Click to expand...
Click to collapse
Ok I have now searched my memory with these instructions. https://www.youtube.com/watch?v=KCtbHV2RKWs. It searched the whole memory but it didn't find any errors. I'd guess I'd be best off if I formatted the card again and start over.
I also checked with "chkdsk /f :f" from the command and I got the same results.
EzZn0 said:
Ok I have now searched my memory with these instructions. https://www.youtube.com/watch?v=KCtbHV2RKWs. It searched the whole memory but it didn't find any errors. I'd guess I'd be best off if I formatted the card again and start over.
I also checked with "chkdsk /f :f" from the command and I got the same results.
Click to expand...
Click to collapse
If it went through fine all must be well, formatting is a good idea though as it will probably remove any problematic data block problems.
Sent from my GT-I9100 using xda app-developers app

Categories

Resources