enable mtp mode via adb? - Samsung Galaxy Tab A series Questions & Answers

My son dropped his tablet this morning, and since then, the screen is black, also there is no more sound and no vibration but I can still get onto the device via adb. Therefore, to backup the files, I would like to enable mtp mode and then transfer all the files via a file manager. Can anyone tell me, what the command line sequence would be to enable mtp mode in the shell? Spent a while googling, but without result so far...
Thanks so much in advance!

I see that adb pull also works recursively, so I have no need for mtp mode
yahya69 said:
My son dropped his tablet this morning, and since then, the screen is black, also there is no more sound and no vibration but I can still get onto the device via adb. Therefore, to backup the files, I would like to enable mtp mode and then transfer all the files via a file manager. Can anyone tell me, what the command line sequence would be to enable mtp mode in the shell? Spent a while googling, but without result so far...
Thanks so much in advance!
Click to expand...
Click to collapse

Related

After Froyo - Can't get back into ADB

I managed to get my Froyo on and still keep root.
However, when in debug mode, my computer will not recognize/install driver for the X. I've uninstalled and re-installed the drivers a couple of times, and even tried to manually force it to see the Moto Composite ADB interface.
If I turn off debug, the drivers load just fine (but of course no ADB that way).
I'm on Win7 x64.
Any suggestions?
-Z
Zaphod-Beeblebrox said:
I managed to get my Froyo on and still keep root.
However, when in debug mode, my computer will not recognize/install driver for the X. I've uninstalled and re-installed the drivers a couple of times, and even tried to manually force it to see the Moto Composite ADB interface.
If I turn off debug, the drivers load just fine (but of course no ADB that way).
I'm on Win7 x64.
Any suggestions?
-Z
Click to expand...
Click to collapse
Hello,
If you put your phone into mass storage mode without development mode you will get a cdrom with motoconnect setup. Run that and fully install and then unplug out into dev and change to pc mode. Adb is all yours.
-tony
anthonygill13 said:
Hello,
If you put your phone into mass storage mode without development mode you will get a cdrom with motoconnect setup. Run that and fully install and then unplug out into dev and change to pc mode. Adb is all yours.
-tony
Click to expand...
Click to collapse
I honestly didn't expect this to work, but since I didn't have any better ideas, I might as well try it. Man was I wrong.
The reason I did not think this would work is that I had downloaded the Moto Drivers (just the drivers, not the full MotoConnect software) from the Moto website. I did not expect there to be any difference.
Evidently the software on the phone does have more drivers than the downloadable package from Moto.
Thanks for the help.
I've tried doing this...turning off Dev mode, and turning on USB Mass Storage mode, but still no motoconnect setup screen comes up. Any other way to get those drivers installed?
anthonygill13 said:
Hello,
If you put your phone into mass storage mode without development mode you will get a cdrom with motoconnect setup. Run that and fully install and then unplug out into dev and change to pc mode. Adb is all yours.
-tony
Click to expand...
Click to collapse
Like Zaphod, I very much appreciate the help and did not expect this to work lol. Thanks much.
Yesterday at work I couldn't get into adb either because the devices drivers no longer loaded. I had to edit the driver inf file. It seems like the usb diver id changed.I'm on my phoebe right now and works rcd wasn't working anyway. You can get the new id if you open up device manager sand open the properties for the phone.the last tab has device details and the first or second has the new id. Just add that in the inf. Should look like the other entries. Just try adding rfd drivers with that new inf.
media sync mode gets you adb.
might say driver not installed when you click on it but adb will startup and work properly.
least on mine it does. win7 64bit
anthonygill13 said:
Hello,
If you put your phone into mass storage mode without development mode you will get a cdrom with motoconnect setup. Run that and fully install and then unplug out into dev and change to pc mode. Adb is all yours.
-tony
Click to expand...
Click to collapse
while i got adb using the method i described above, this is still a nice find lol
i would of nvr saw this cause im always in debugging mode .
thanx for this
drewlamo1 said:
while i got adb using the method i described above, this is still a nice find lol
i would of nvr saw this cause im always in debugging mode .
thanx for this
Click to expand...
Click to collapse
cant get it to work, ive tried all the above? keep getting error: device not found
Zaphod-Beeblebrox said:
I managed to get my Froyo on and still keep root.
However, when in debug mode, my computer will not recognize/install driver for the X. I've uninstalled and re-installed the drivers a couple of times, and even tried to manually force it to see the Moto Composite ADB interface.
If I turn off debug, the drivers load just fine (but of course no ADB that way).
I'm on Win7 x64.
Any suggestions?
-Z
Click to expand...
Click to collapse
change from pc mode to media sync mode in the notification window
If turning on and off USB Debug mode doesn't work, then do this, it will almost certainly work:
http://alldroid.org/default.aspx?g=posts&m=7662#post7662
teenfaces said:
change from pc mode to media sync mode in the notification window
Click to expand...
Click to collapse
Exactly as this is the fastest and simplest way to fix it. I freaked about about a week ago when my X would not work threw ADB anymore and that is the trick that took care of it. And it is proven to work it has been posted hundreds of times on many other site/forums.

Cannot transfer files with MTP / Device not viewable in Windows Explorer

When I connect my Nexus 7 to my Windows XP (SP3) PC via USB, it's obvious the computer recognizes it and it tries to install ADB drivers. Whether I choose to install those drivers or not, I still can't locate my device in the Windows Explorer Tree. I checked Disk Management for the hell of it and nothing but my PC's harddrives were there. There's an attempt to install drivers for "MTP" but that fails and I'm pretty sure that's the cause; however, I'm unable to replicate it, even as I uninstall/reinstall applicable drivers from the device manager the MTP failure never happens anymore. I did some googling and found a thread with someone who had a similiar experience. In turn, I downloaded https://www.box.com/s/2c25e8bc42ecce400afd to try a different set of drivers. Same problem. Driver install is fine for ADB, but still unable to see my device in Windows Explorer. I'm able to successfully connect the device to the PC with PTP for the camera. I can access DCIM and cache which can serve as a work around, but I'm hoping you can provide any ideas you might have. Thank you!
edit - ***resolution***: Ok, I figured it out...I had to disable USB debugging. I don't know if this helped either, but I installed these drivers as an alternative to the drivers that were originally installed: https://www.box.com/s/2c25e8bc42ecce400afd
While connected to PC, I switched to PTP mode because I was about to give up and just use that
I then disabled usb debugging and switched back to MTP at which point the drivers successfully installed and I could now view my device in Windows Explorer. I also believe downloading the drivers in the link above helped since the first crack I took at this was unsuccessful with existing drivers.
install pdanet on pc and it will install drivers for u so it will be recognized
Ok, I figured it out...I had to disable USB debugging. I don't know if this helped either, but I installed these drivers as an alternative to the drivers that were originally installed: https://www.box.com/s/2c25e8bc42ecce400afd
Been battling with this on my XP machine since yesterday. I couldn't even get debugging to work until I installed NakedDriver. And even still, there seems to be no way to get MTP to work without turning debugging off. On my Win7 machine everything worked perfectly, both ADB and MTP, right out of the box. I have the Galaxy Nexus drivers installed on both machines (which I've read are compatible with the N7). I also have the latest version of Windows Media Player (I've read that some older versions have issues with MTP). Is anyone else able to run ADB and MTP on XP?
*edit*
A: Does PDAnet let you use MTP and ADB simultaneously? Because I really don't want to install it if I don't have to. I got rid of it ages ago (too many things starting up at boot time).
B: I have a Galaxy Nexus also, and I have no issues on the XP box.
I wouldn't bother with MTP, it's not always showing the contents of the internal storage properly when viewed in Windows Explorer.
Earlier today when I was trying to set up a backup profile for it, it didn't copy all the files off. On closer inspection I found folders like TitaniumBackup to be completely empty, which is not true according to ES File Explorer on the tablet.
I tried connecting MTP again, with USB Debugging on and off but this made no difference. Also I'm only seeing the Notifications folder instead of 36 folders on the internal storage now, really random how it's working.
asus site now has a usb driver for N7
try that
Nordendorf said:
asus site now has a usb driver for N7
try that
Click to expand...
Click to collapse
Updated with ASUS drivers, still doesn't view internal storage fully.
Salty Wagyu said:
Updated with ASUS drivers, still doesn't view internal storage fully.
Click to expand...
Click to collapse
Same here. No change with the Asus drivers. Still can't use MTP when ADB is turned on.
poo. how do I transfer my audiobooks to this stupid device without working drivers?
1. Please disconnect Nexus7
2. Remove drivers on PC.
3. Toggle ON : Settings->Wireless&Networkings->More->NFC.
4. Re-connect device
Good luck !
GotLoveForAll said:
poo. how do I transfer my audiobooks to this stupid device without working drivers?
Click to expand...
Click to collapse
1. Uncheck MTP, check the one next to it (Camera)
2. Unplug USB
3. Turn off USB Debugging (Uncheck it)
4. Plug in USB
5. Should say connected as camera, then a new window will pop-up allowing you to see your files.
Tell me if it works!
im having trouble too, is there any way to make the device to be recognised as a flash drive?
Internal memory partly invisible from Windows 7 Explorer
Salty Wagyu said:
I wouldn't bother with MTP, it's not always showing the contents of the internal storage properly when viewed in Windows Explorer.
Earlier today when I was trying to set up a backup profile for it, it didn't copy all the files off. On closer inspection I found folders like TitaniumBackup to be completely empty, which is not true according to ES File Explorer on the tablet.
I tried connecting MTP again, with USB Debugging on and off but this made no difference. Also I'm only seeing the Notifications folder instead of 36 folders on the internal storage now, really random how it's working.
Click to expand...
Click to collapse
Same observation here (a few months later) on stock Android 4.1.1 rooted.
It seems that new files in the internal memory remain invisible for a long time, but so far they have become visible eventually, sometimes a day or two later. I have no clue what could possibly cause this, and I have not found any trick or workaround that makes them visible, not even rebooting. Any hint is welcome.
SE4GT said:
1. Uncheck MTP, check the one next to it (Camera)
2. Unplug USB
3. Turn off USB Debugging (Uncheck it)
4. Plug in USB
5. Should say connected as camera, then a new window will pop-up allowing you to see your files.
Tell me if it works!
Click to expand...
Click to collapse
Didn't work. Just shows up as a camera with the limited folder access one would expect.
Workaround
I now use the following workaround.
Install SDrescan from Google Play.
Run it.
If you already had your phone connected to a computer as a media device (MTP) and are watching the contents of your SD card or internal memory in Windows Explorer, press F5 to refresh your view. If not, connect it now.
I'd be curious whether this works for you as well. If it does, press the THANKS button below.
Same issue with an old ibm x40 udated to windows xp pro SP3.
I've installed mtp driver, without success
I've "tried" to install asus driver, without success
I've tried to do as above with the help of the nexus toolkit, without success.
Everytime, the laptop recognize the device as android ADB interface.
Someone could help me?
Thank you in advance
mistershark said:
Everytime, the laptop recognize the device as android ADB interface.
Click to expand...
Click to collapse
Disable USB debugging in your phone.
Same problem with my moto xoom...files not showing in MTP using windows xp...still have not found any solution
hgmichna said:
Disable USB debugging in your phone.
Click to expand...
Click to collapse
+1 have to toggle USB debugging in winXP
hgmichna said:
I now use the following workaround.
Install SDrescan from Google Play.
Run it.
If you already had your phone connected to a computer as a media device (MTP) and are watching the contents of your SD card or internal memory in Windows Explorer, press F5 to refresh your view. If not, connect it now.
I'd be curious whether this works for you as well. If it does, press the THANKS button below.
Click to expand...
Click to collapse
It works! THANKS A LOT!!!

Need to bypass lockscreen/gain access to adb - Broken screen

So I have a bit of an issue. Somehow last night, after trying to help my parents with our home theater system, with the device laying on a soft surface, the LCD (not the glass) somehow broke. I am really not sure how this happened, the phone itself didn't fall, it was laying on a bed the entire time. When I went to grab the phone and turn it on, I was pretty surprised. You can see what I mean in the attached file.
Now the problem with this is, while I would normally just walk into the Sprint Store, complain and get a new phone. I am not in the US for another 5 months. In the mean time of trying to figure out what to do, I would like to at the very least, grab any files off my phone, or back up my phones' file structure.
I am able to do a minimal amount of tapping on the phone, only on the upper half of the screen, but I can't see anything, nor does the device respond with any touch data from the bottom half.
I obviously can't access the files if the device is locked, which means I have to bypass the lock screen. I found this guide, but unfrotunately, Method 1 didn't work, and I can't get adb to recognize my phone for Method 2.
I also have tried using CWM (the non-touch version) to backup my data, but I let it sit there for 45 minutes and I couldn't tell if it was finished or not. It didn't appear to actually be doing anything.
Could someone help me navigate around this or provide some assistance in allowing me to just get the files off the phone while I search for a new one?
With that being said, does anyone have some recommendations? I was thinking of getting a Motorola X or Nexus 5.
EDIT: Update:
I have access to terminal via Cerberus shell. I was able to use Method 2 to disable the lock screen (or in this case set it to Swipe). It is still pretty difficult to use the phone but I can at least backup whatever data I still do have on the phone to my laptop.
Would anyone be able to give me some advice as to uninstall applications or XDA xposed modules via shell? Or perform a backup or enable ADB debugging?
You've conntected to your PC at least once so that the ADB has permission, correct? If so, you can get http://forum.xda-developers.com/showthread.php?t=2786395 to get Android Control and view/Control your phone via USB. You need to have Java installed, which most have already. Been controlling my cracked LCD for the past week while waiting for my replacement.
Keep in mind this method is a little slow because of ADB. Hopefully you don't have to type too much.
Darnell0216 said:
You've conntected to your PC at least once so that the ADB has permission, correct? If so, you can get http://forum.xda-developers.com/showthread.php?t=2786395 to get Android Control and view/Control your phone via USB. You need to have Java installed, which most have already. Been controlling my cracked LCD for the past week while waiting for my replacement.
Keep in mind this method is a little slow because of ADB. Hopefully you don't have to type too much.
Click to expand...
Click to collapse
I know I have connected it at least once, but when connecting the phone and the pc together, adb cannot find the phone. I am not sure if this is because of a Cerberus setting (that disables debugging) or something else. I will give it another shot when I get home.
If I can't, is there any way for me to somehow accept the adb permissions on the phone via a command versus touching the screen? Say if I have shell access over Cerberus and adb access from my PC?
slixzen said:
I know I have connected it at least once, but when connecting the phone and the pc together, adb cannot find the phone. I am not sure if this is because of a Cerberus setting (that disables debugging) or something else. I will give it another shot when I get home.
If I can't, is there any way for me to somehow accept the adb permissions on the phone via a command versus touching the screen? Say if I have shell access over Cerberus and adb access from my PC?
Click to expand...
Click to collapse
There's a bit of work to push the ADB acceptance key if you have a spare android phone lying around. Other than that, there probably is but might be more of a headache. I took the ADB key for my desktop from another android and pushed it in through TWRP which accepts ADB commands while in Recovery.
Darnell0216 said:
There's a bit of work to push the ADB acceptance key if you have a spare android phone lying around. Other than that, there probably is but might be more of a headache. I took the ADB key for my desktop from another android and pushed it in through TWRP which accepts ADB commands while in Recovery.
Click to expand...
Click to collapse
I have a sony xperia P that I am using right now until the replacement phone I got arrives. Any idea how I could use that? I have had minimal success with the phone so far in trying to get that phone to flash custom recoveries, to root the device (not sure why, but my laptop just doesn't want to seem to do it, even using automated tools).
Is it better to just wait for the replacement phone to arrive and grab what I need from that and push it? Could you link me to any guide or steps that you used with yours?
Thanks for such quick responses by the way!
EDIT:
Flashing TWRP and booting into recovery with command prompt open and running adb devices / fastboot devices does not show any devices available.
Is there a specific menu setting or other option I need to use to be able to run adb?
When you use TWRP, the phone will be recognized by the PC but the driver doesn't install correctly off the bat. Go to Device Manager and look for your phone. You may need to click the View -> Show Hidden Devices option. Update the driver manually by selecting the one provided by your manufacturer. Some have a dedicated ADB driver for specific functions (bootloader, etc).
The adb key is stored in data/misc/adb/adb.keys -You can pull this file from any other android connected to that PC (or just copy it if you have a root explorer) and push it to the broken one if necessary. This will bypass any ADB authorization issues while the phone is fully booted and let you see the screen.

MTP connection with Mac OSX

Hi everyone, I'm trying to mount the ZUK as an hard drive, but I can't find a way to do it. It doesn't appear on the desktop and Android File Transfer says "Could not connect to device". I've tried with SyncMate to use the option "mount as drive", but no result as well.
Is there anyone who's found a way to solve this issue?
Make sure your phone is on mtp mode not charging mode, just drop down the cm icon on the left side of status bar and check.
Of course I knew that, but it just doesn't work. I've also tried several times to switch between mtp and ptp without success.
Pneumatikos said:
Of course I knew that, but it just doesn't work. I've also tried several times to switch between mtp and ptp without success.
Click to expand...
Click to collapse
Even I have the same problem with Marshmallow. It just doesn't work every time. Rebooting to recovery instantly shows my Phone in Android File Transfer, but not always when booted up. I've fallen back to pushing and pulling files/folders using ADB.
Thank you deepakdtg! I'll try the recovery mode to see what happens! I was considering the option to use ADB but it's not handy at all to transfer files... I'm using this Sync Mate app, it doesn't show the phone as a disk, but it's quite easy to transfer folders and files
Unfortunately even in recovery mode I've the same problem. Ok, I'll use ADB and SyncMate :\

Broken /Black display - How to transfer Data to my PC (MTP Mode)

Hello everyone,
i looked up similar but havent found a solution to my problem, so i hope you can help me on this one.
My OP 5 fell down, resulting in a broken screen. It is still fully functionally but completely black and i can access the phone via fingerprint as long as its still on. I need to get in MTP Mode to be able to transfer all the Media (e.g. the last year of my kids growing up in pictures)
Dev Mode is activated, so after i plug in my USB Cable to connect it to my PC i think i emember that i can access the selection (Charging/ MTP etc.) over the dropdown menue.
I just have to find the right spot to click.
Can anyone of you maybe screenshot the scenario?
1. After the USB is connected and the debugging window appears
2. The screen when you can select the connection mode?
I tried to use the Program "apowermirror" as well but i cant see where i have to click on the Screen when it says " allow usb debugging" when it tries to connect via USB. So a screenshot of this could work as well.
Additional Info: the bootloader is unlocked and i have TWRP, so maybe there is also a way ?! im a total noob regarding this...
Thank you very much in advance for any help on this.
Snyder
Maybe in twrp you can with adb command, install adb on your computer and search (google) about the command "adb pull" or maybe just reboot twrp (power off and power with vol down) you can access storage. Have you some security? Pin or pattern?
hi, try the program through MyPhoneExplorer, you can via Wi fi

Categories

Resources