[Q] Problem regarding mounting cm10 phone as a usb storage - Sony Xperia Miro, Tipo (Dual), J, E

Hi ..I have recently flashed CM10 rom from freexperia project and the rom is just perfect and much better then my stock rom but i have a problem when i try to connect it to my tv..you see earlier..in my stock rom it was easy to switch between MTP and MSC mode but here there is no MSC mode so i had to download USB switcher for the CM10 and then i mounted it as USB storage...i got the sign USB Loading.... in my TV but then the process automatically stops.and the tv doesn't detect my device as usb..any help from you guys/gals will be helpful to me...a lot helpful..thanks in advance.

contramaster24 said:
Hi ..I have recently flashed CM10 rom from freexperia project and the rom is just perfect and much better then my stock rom but i have a problem when i try to connect it to my tv..you see earlier..in my stock rom it was easy to switch between MTP and MSC mode but here there is no MSC mode so i had to download USB switcher for the CM10 and then i mounted it as USB storage...i got the sign USB Loading.... in my TV but then the process automatically stops.and the tv doesn't detect my device as usb..any help from you guys/gals will be helpful to me...a lot helpful..thanks in advance.
Click to expand...
Click to collapse
Try using these codes what I posted before, I've heard that they vary depending on devices.
Use this code in the terminal what is installed with CM10;
su
setprop persist.sys.usb.config mass_storage,adb
reboot
That changes it to mass storage mode when you connect it to the PC, slide down the notifcation bar and click on the notification, enable mass storage mode and when you are finished enter this code into the terminal to change it back to MTP;
su
setprop persist.sys.usb.config mtp,adb
reboot

I already tried that dude but it didn't work ...i saw that my tv was recognizing it as a mass storage device but it wasn't loading ..so any other solution

Related

[Q] ICS AOSP - How to mount phone SD in Linux

Hi all, I just installed the ASOP ICS rom on my S 4G. Love it. Beautiful and fast.
I thought I would add some music to the device, but when I connect it to my Ubuntu desktop it doesn't get recognized. The phone sees that it's connected to USB and has the options for MTP and PTP. It basically won't let me switch to PTP.
I run dmesg and it looks like it got connected:
[1121267.152118] usb 2-2: new high speed USB device using ehci_hcd and address 4
I can't seem to get it to mount though, either automatically or through mount /dev/bla /bla/bla . Any ideas?
shelbydz said:
Hi all, I just installed the ASOP ICS rom on my S 4G. Love it. Beautiful and fast.
I thought I would add some music to the device, but when I connect it to my Ubuntu desktop it doesn't get recognized. The phone sees that it's connected to USB and has the options for MTP and PTP. It basically won't let me switch to PTP.
I run dmesg and it looks like it got connected:
[1121267.152118] usb 2-2: new high speed USB device using ehci_hcd and address 4
I can't seem to get it to mount though, either automatically or through mount /dev/bla /bla/bla . Any ideas?
Click to expand...
Click to collapse
download the dual mount sd app from the market. its free and it works. or you can use an usb storage option in your recovery(cwm and twrp).
awesome. that's what I needed to know.
thanks
This fuse solution to get MTP working worked swimmingly for me
Because I'm a new user I can't post a link to a solution that worked for me. Having said this if you google for "[How to] Connect your Android Ice Cream Sandwich Phone to Ubuntu for File Access" - the solution in the first link worked great.
Fwiw.
..

[Q] how to enable USB Mass Storage on CM10

how do I activate usb mass storage UMS on CM10 ?
i just fin MTP and PTP on my setting...
anybody can help me for this problem ?
I was never able to find it anywhere on the ROM, you're meant to be able to press the menu button in storage and change it from there but I couldn't find it. What do you need it for and what phone are you using?
Sent from my ST23i using xda app-developers app
gamer649 said:
I was never able to find it anywhere on the ROM, you're meant to be able to press the menu button in storage and change it from there but I couldn't find it. What do you need it for and what phone are you using?
Sent from my ST23i using xda app-developers app
Click to expand...
Click to collapse
sometimes i want to move my data to other PC, but not all the windows support MTP, like win xp sp2 .. I can not transfer my data
my device ST21i..any solution for this issue ?
sferenzi said:
sometimes i want to move my data to other PC, but not all the windows support MTP, like win xp sp2 .. I can not transfer my data
my device ST21i..any solution for this issue ?
Click to expand...
Click to collapse
Use this code in the terminal what is installed with CM10;
su
setprop persist.sys.usb.config mass_storage,adb
reboot
That changes it to mass storage mode when you connect it to the PC, slide down the notifcation bar and click on the notification, enable mass storage mode and when you are finished enter this code into the terminal to change it back to MTP;
su
setprop persist.sys.usb.config mtp,adb
reboot
software update for st21i
plz any one help me how to update my android system as i recieved the built no is 11.0.A.4.27 . I tried by using pc camanion its showing server could not found .....
gamer649 said:
Use this code in the terminal what is installed with CM10;
su
setprop persist.sys.usb.config mass_storage,adb
reboot
That changes it to mass storage mode when you connect it to the PC, slide down the notifcation bar and click on the notification, enable mass storage mode and when you are finished enter this code into the terminal to change it back to MTP;
su
setprop persist.sys.usb.config mtp,adb
reboot
Click to expand...
Click to collapse
I've tried , but still it doesn't work
nothing UMS option on usb connection and not connected..
jackbgm said:
plz any one help me how to update my android system as i recieved the built no is 11.0.A.4.27 . I tried by using pc camanion its showing server could not found .....
Click to expand...
Click to collapse
11.0.A.4.27 is the most recent for ST21i
sferenzi said:
I've tried , but still it doesn't work
nothing UMS option on usb connection and not connected..
11.0.A.4.27 is the most recent for ST21i
Click to expand...
Click to collapse
I don't know then, the first code should have changed it while you were moving your stuff and the second should have put it back to CM10 mode when you finished.
Sent from my Sony Xperia Miro
sferenzi said:
sometimes i want to move my data to other PC, but not all the windows support MTP, like win xp sp2 .. I can not transfer my data
my device ST21i..any solution for this issue ?
Click to expand...
Click to collapse
Upgrade your Windows Media Player to Windows Media Player 11, it will add the support for MTP devices.

[Completed] SM-T2105 Galaxy Tab Kids - Corrupted USB Connection

Monday, 13 October, 2014 04:44:05 PM - SM-T2105 Galaxy Tab Kids - Corrupted USB Connection
---------------------------------------------------------------------------------------
Hi all.
I've spent almost the full 2 days looking for solution of this but to no avail.
My tablet is using 4.1.2 Jelly Bean.
I owned the SM-T2105 Galaxy Tab Kids rooted. Then suddenly I was thinking to move all my apps to SD card. Trying and trying, finally I realized that I need to make separate partitions on the SD card first.
So I one of the solutions I found on the internet told me to make that partition using the PC. Then I am interested to connect my device as mass storage instead of the default MTP connection. So I found an app called SG USB Mass Storage Enabler in the PlayStore.
Without reading any further, I quickly installed it and turn on the mass storage function. But to no avail. My PC can't recognized the tablet anymore since then. Immediately, I quickly uninstalled that app and looking for another app. But still the same problem.
So finally I am stucked with "connected as an installer" whenever I connect the tablet to my PC. And the worst thing that, I cannot change it back to MTP/Camera transfer mode i.e. my tablet would immediately reboot! I was totally intensed since then. After trying and trying, I still cannot find the solution.
Then I thought a firmware upgrade will do. So i install the latest firmware for SM-T2105 - T2105ZHAND2 from here - sammobile. I also rooted it again then.
But still the problem persist. I also end up using the ADB terminal from my PC to issue the
Code:
su
setprop persist.sys.usb.config mtp,adb
reboot
But still the same problem. My device would restart immediately after issuing the command.
I have also found somewhere this code but the issue is I cannot find that /sys/devices/platform/msm_hsusb/gadget/lun0/ path on the tablet:
Code:
Mass Storage Mode
---------------------------------------------------------------------------------------
setprop persist.sys.usb.config mass_storage,adb
echo /dev/block/vold/179:33 > /sys/devices/platform/msm_hsusb/gadget/lun0/file
Return to MTP
---------------------------------------------------------------------------------------
#!/system/bin/sh
echo "" > /sys/devices/platform/msm_hsusb/gadget/lun0/file vold
setprop persist.sys.usb.config mtp,adb
This /sys/class/android_usb/android0/f_mass_storage but no lun folder inside. Only nluns file is sound
So I am really stressed with this. Can someone here please help me out?
Factory reset would be my last choice.
I was expecting something like system files update or something. Is it possible?
Thank you very much.
mie_shariff said:
Monday, 13 October, 2014 04:44:05 PM - SM-T2105 Galaxy Tab Kids - Corrupted USB Connection
---------------------------------------------------------------------------------------
Hi all.
I've spent almost the full 2 days looking for solution of this but to no avail.
My tablet is using 4.1.2 Jelly Bean.
I owned the SM-T2105 Galaxy Tab Kids rooted. Then suddenly I was thinking to move all my apps to SD card. Trying and trying, finally I realized that I need to make separate partitions on the SD card first.
So I one of the solutions I found on the internet told me to make that partition using the PC. Then I am interested to connect my device as mass storage instead of the default MTP connection. So I found an app called SG USB Mass Storage Enabler in the PlayStore.
Without reading any further, I quickly installed it and turn on the mass storage function. But to no avail. My PC can't recognized the tablet anymore since then. Immediately, I quickly uninstalled that app and looking for another app. But still the same problem.
So finally I am stucked with "connected as an installer" whenever I connect the tablet to my PC. And the worst thing that, I cannot change it back to MTP/Camera transfer mode i.e. my tablet would immediately reboot! I was totally intensed since then. After trying and trying, I still cannot find the solution.
Then I thought a firmware upgrade will do. So i install the latest firmware for SM-T2105 - T2105ZHAND2 from here - sammobile. I also rooted it again then.
But still the problem persist. I also end up using the ADB terminal from my PC to issue the
Code:
su
setprop persist.sys.usb.config mtp,adb
reboot
But still the same problem. My device would restart immediately after issuing the command.
I have also found somewhere this code but the issue is I cannot find that /sys/devices/platform/msm_hsusb/gadget/lun0/ path on the tablet:
Code:
Mass Storage Mode
---------------------------------------------------------------------------------------
setprop persist.sys.usb.config mass_storage,adb
echo /dev/block/vold/179:33 > /sys/devices/platform/msm_hsusb/gadget/lun0/file
Return to MTP
---------------------------------------------------------------------------------------
#!/system/bin/sh
echo "" > /sys/devices/platform/msm_hsusb/gadget/lun0/file vold
setprop persist.sys.usb.config mtp,adb
This /sys/class/android_usb/android0/f_mass_storage but no lun folder inside. Only nluns file is sound
So I am really stressed with this. Can someone here please help me out?
Factory reset would be my last choice.
I was expecting something like system files update or something. Is it possible?
Thank you very much.
Click to expand...
Click to collapse
Hi !
Post your question in these specific forum for your device so experts will help you right .
http://forum.xda-developers.com/galaxy-tab-3/help
Or you can with these
http://forum.xda-developers.com/galaxy-tab-3/
Thank you Hitesh for your suggestion
Thankyou , Thread Close

[Q] CM 12 MTP missing

I updated to cm 12 by OTA a few days ago. Today I want to copy some files between my Oneplus and computer, only to find that I can't turn on MTP. I went to settings -> storage, top-left menu, and the only item in the menu is 'USB computer connection', but press it only seems to refresh the storage panel (all values of space gets re-calculated), but nothing else. Any suggestions?
mrmathematica said:
I updated to cm 12 by OTA a few days ago. Today I want to copy some files between my Oneplus and computer, only to find that I can't turn on MTP. I went to settings -> storage, top-left menu, and the only item in the menu is 'USB computer connection', but press it only seems to refresh the storage panel (all values of space gets re-calculated), but nothing else. Any suggestions?
Click to expand...
Click to collapse
similar to you, but my problem is i can't get adb device to recognize my OPO, also on CM12S
I know what you mean, as I seen it as well
But if you get out, make sure adb debugging is off, and go back to USB computer connection menu, you should see 3 items
MTP
PTP
Charge only
My issue is
MTP with no adb debugging will let me access full /sdcard on windows, but adb device command does not see OPO thru USB
PTP with no adb debugging will let me access only pictures on OPO, and adb device command does not see OPO thru USB
Charge only will block out adb debugging completely
MTP or PTP with adb debugging will not present OPO storage to windows, and at the same time adb device command does not see OPO thru USB
This same computer that have problem with my OPO CM12S was working fine with OPO CM11
Back in CM11, the only way for adb device to see my phone via USB is to NOT select MTP AND PTP
With CM12S, I must select one of the 3 options in USB computer connection menu: MTP, PTP, Charge only
In another word, CM11 the options are not required. In CM12S, one option must be active/selected
To make it more "interesting", fastboot work just fine. Only adb device doesn't work
I installed latest android SDK google USB driver already, both ADB interface and ADB composite interface
EDIT: and Koush's universal adb driver as well
I am really at my wits end now.
For those of you who has CM12S installed (stock kernel if matter), do you have adb device working (ie can see your CM12S OPO thru usb)? If yes, can you let me know which usb driver you installed?
Thanks!
Thanks for the reply. After turn ADB on and off, it seems I get MTP working too. Not sure about your case. Also I should mention previously on CM 11S, usb connection works fine with my Oneplus.
mrmathematica said:
Thanks for the reply. After turn ADB on and off, it seems I get MTP working too. Not sure about your case. Also I should mention previously on CM 11S, usb connection works fine with my Oneplus.
Click to expand...
Click to collapse
I have been meaning to come back and update this thread...
I went on to CM12.1 nightly after I got fed up with COS12S
CM12.1 nightly is very stable, despite the nightly naming, but this specific issue (no adb on PC) still exist
Eventually, I switched to Sultanxda's Omni ROM with his tuned CAF kernel http://forum.xda-developers.com/showpost.php?p=61801883&postcount=850
and I can now run adb on my PC, and connect to OPO
and I did not change anything on my PC
My opinion is that CM 12 made some changes that prevent adb from PC to connect to the phone.
Still, I am surprise that there are not a lot of people who report this issue on CM 12.x based ROM, so I have to make assumption that something is wrong on my end as well
Still, I am now sticking with this custom Omni build
Please be aware that Sultanxda is no longer maintaining is custom Omni build. You use it at whatever state it's on now
Compare to CM12.x based ROM, this custom Omni ROM is pretty bare.
Still, it suits my need
For those of you who is still having problem with adb on PC connecting to OPO, you should try a non CM based custom ROM and see how that might work for you
Hope this help
mrmathematica said:
I updated to cm 12 by OTA a few days ago. Today I want to copy some files between my Oneplus and computer, only to find that I can't turn on MTP. I went to settings -> storage, top-left menu, and the only item in the menu is 'USB computer connection', but press it only seems to refresh the storage panel (all values of space gets re-calculated), but nothing else. Any suggestions?
Click to expand...
Click to collapse
MTP only works when you enable ADB Debugging for 5.X ROMs.
Qrze said:
MTP only works when you enable ADB Debugging for 5.X ROMs.
Click to expand...
Click to collapse
Thats not true. I have adb debugging turned off and yet I can access my phone from my mac using MTP. Using BlissPop 5.1 on my bacon,1+

CM12S and adb device on Windows 7

My setup used to work
Windows 7
CM11S
MTP work just fine. Can browse OPO /sdcard from windows 7
adb device work just fine. I can run all adb commands without problem: devices, shell, push, pull, etc
Now that I have upgraded to CM12S
MTP still work. I can browse OPO /sdcard from windows 7
adb device does not work.
adb devices report nothing. No error, just nothing. As if the phone is not plugged into the computer [see attached screenshot].
But I already installed usb driver, both google's latest and koush's universal adb driver, and tried ADB Interface and ADB Composite Interface
Currently, phone is setup as follow
Setting -> Storage -> USB Computer Connection : MTP
Setting -> Developer Option -> Android Debugging : on
With Android Debugging on, adb device won't show my phone serial when USB Computer Connection is MTP or PTP
When USB Computer Connection is set to charge only, Android Debugging is disabled
With Android Debugging off, I can browse the whole /sdcard when USB Computer Connection is set to MTP
With Android Debugging off, I can browse only DCIM and Pictures from /sdcard when USB Computer Connection is set to PTP
Back in CM11S
When USB Computer Connection is set to MTP, and Android Debugging off, I can browse the whole /sdcard from PC
When USB Computer Connection has NOTHING selected (no MTP, no PTP), and Android Debugging is on, I can use adb.exe on command line: devices, shell, push, pull, etc all work just fine
On CM12S, one of these options MUST be selected in USB Computer Connection: MTP, PTP, Charge Only. This is changed from CM11S
Does anyone have any success with adb.exe on command line on Windows 7 and CM12S (stock kernel)?
If yes, what is your phone setup for adb.exe to work, and which usb driver you installed on your winodws 7?
Thanks!
EDIT: fastboot work just fine
When you're on CM12S you can't have MTP enabled if you want to use adb. Disable MTP temporarily and adb should work.
Transmitted via Bacon
timmaaa said:
When you're on CM12S you can't have MTP enabled if you want to use adb. Disable MTP temporarily and adb should work.
Transmitted via Bacon
Click to expand...
Click to collapse
timmaaa, this is what i could figure out
my only problem is: how do I disable MTP on CM12S?
On CM11S, I can
On CM12S, I must choose one of the options: MTP, PTP, Charge Only
If I am on MTP, and I press it again, the screen just grey out
and then I push back button to go back to main storage screen
and now I choose USB Computer Connection again, and MTP is still selected/enabled
Have you tried to do adb devices on windows on CM12S?
If you can, did you ever enable MTP or PTP?
Thanks
animefans said:
timmaaa, this is what i could figure out
my only problem is: how do I disable MTP on CM12S?
On CM11S, I can
On CM12S, I must choose one of the options: MTP, PTP, Charge Only
If I am on MTP, and I press it again, the screen just grey out
and then I push back button to go back to main storage screen
and now I choose USB Computer Connection again, and MTP is still selected/enabled
Have you tried to do adb devices on windows on CM12S?
If you can, did you ever enable MTP or PTP?
Thanks
Click to expand...
Click to collapse
Instead of pressing MTP again, select PTP.
Transmitted via Bacon
timmaaa said:
Instead of pressing MTP again, select PTP.
Transmitted via Bacon
Click to expand...
Click to collapse
I will try to reconfirm, but I believe I tried that already
regardless of MTP or PTP, adb devices does not find my phone
EDIT: yup, regardless of MTP or PTP, when adb debug is on in developer tools, adb device does not show serial number, so can't connect to phone via adb shell
Same exact problem here, adb worked fine until I turned on MTP now I can't turn it back off and thus adb not working.
No matter what I select or disable I always end up with MTP back on and no ADB working. Someone else who just got their OPO yesterday having same issue and what caused me to mess with MTP setting breaking my ability to ADB :/
Also another new behavior to me is that I cannot access "USB Computer Connection" screen unless I am plugged into PC. When not connected to PC it just rescans internal storage and go's nowhere.
Quick dirty screencast showing how MTP can't be turned off (sorry rushed and kid in background)
https://drive.google.com/file/d/0Bwwwt8cZbp9rYXRGa0Y1dFBfY1k/view?usp=sharing
Good to hear, in a way...
Good is that it's not just me
Bad is that this problem exist
BTW, created this problem in jira
https://jira.cyanogenmod.org/browse/BACON-3358
Hopefully this is a bug in the setting app where USB Computer Connection option is not required. Right now options are required
PS: and yes, I notice the same thing where USB Computer Connection is not even available until you plugged it into PC
PPS: I wonder what is the behavior of USB Computer Connection under OxygenOS and Stock Android (ie Nexus 5/6/etc). Having this data point can narrow down if issue is cyanogenmod OS specific issue, or it's a general Lollipop AOSP issue
is this can be problem why I couldn't install custom recovery?? I try install TWRP, device have unlocked bootloader
if running adb devices on your PC can not see the phone (ie phone serial), then yes you can't install TWRP this way
However, I believe there are other ways to install custom recovery onto your phone without PC
Try TWRP Manager on play store
I used this to update my TWRP recently in order to update to CM12S without going through OTA
Yeah I have the same issue as well and now i don't have Twerp or root . and i can confirm i never had the issue on my nexus 4 with stock LP and Dirty unicorns so it looks like a CM bug to me my phone feels incomplete without root
Solodude said:
Yeah I have the same issue as well and now i don't have Twerp or root . and i can confirm i never had the issue on my nexus 4 with stock LP and Dirty unicorns so it looks like a CM bug to me my phone feels incomplete without root
Click to expand...
Click to collapse
Thank you for the data Solodude!
Quick update on my current situation on this issue
http://forum.xda-developers.com/showpost.php?p=61975450&postcount=4

Categories

Resources