[SOLVED] [BUG] MTP is disabled when USB debugging is enabled - Xiaomi Redmi Note 3 Questions & Answers

Here's whats happening:
I plug in my phone and a notification pops up showing "connected as media device".
When I enable USB debugging in developer settings my connection gets terminated. The notification for media device and usb debugging is shown but the phone is not detected by my computer. Also adb is no longer working.
So enabling USB debugging is disabling MTP, and adb doesn't work.
When I disable USB debugging, MTP immediately starts working again.
Has anyone else faced something like this? I was on 7.2.5.0 when this happened. I updated to 7.3.2.0 and this problem is still there.
EDIT: Solved.
The boot.img was not patched properly. I suppose I missed something.
I patched a fresh one and now the issue is fixed.

Bumped.

No, nothing like this. I am right now on xioami.eu rom but even on earlier global rom had no such issues. Suggest doing factory reset once.

mGforCe said:
No, nothing like this. I am right now on xioami.eu rom but even on earlier global rom had no such issues. Suggest doing factory reset once.
Click to expand...
Click to collapse
Nope, didn't work. I did a clean install, but MTP & adb won't work when usb debugging is on.
I flashed Cyanogenmod 13 and it was working. But CM is not stable enough for me yet.
Edit: Okay, I fixed it. There was something wrong with the kernel. I guess I didn't patch it correctly.
I extracted a fresh boot img. Patched it, flashed it, and MTP and adb are working perfectly now.

Related

[Q] Phone not recognized by Windows anymore

It happend after I flashed JK5 (I lost track with so many updates)
The phone is not recognized by windows anymore, cannot access odin or anything.
I have another vibrant and is still working so drivers are installed and everything.
The phone does recognize the connection, lets you choose, can get into download mode, but is just not being seen by the PC,
Since the other vibrant connects fine cable is also right, it is a problem strictly with this phone.
I tried flashing other roms, modems, and so on via CWM but problem is not solved.
Any help or ideas will be appreciated
I had the same problem. Someone said try usb debugging, & it worked like a charm.
Applications/development/usb debugging. I hope this helps.
Thanks, I tried that, and all the options for pairing without success
gagb1967 said:
Thanks, I tried that, and all the options for pairing without success
Click to expand...
Click to collapse
If USB debugging is enabled, it shouldn't give you a choice of usb connection mode. Make sure your USB cable is unplugged when you enable debugging, or else it will just tell you to unplug and try again.
bahnburner said:
If USB debugging is enabled, it shouldn't give you a choice of usb connection mode. Make sure your USB cable is unplugged when you enable debugging, or else it will just tell you to unplug and try again.
Click to expand...
Click to collapse
I meant to say, first i tried with debugging enabled, did not work, after that i disable debugging and tried Kies, Emdia Player and Mass Storage, still not recognized, also is not recognized when in Download mode.......
Any Ideas?

PLS HELP! Cant get ADB Developer mode after flash. SGP312 stock FTF lollipop help

My end goal is stock lolipop rooted.
I botched a flash and now I cant get developer mode / ADB working.
When I started, my tablet was stock ROM, towelroot. I connect tablet in developer mode, flashed dual recovery and everything was great. I copied the pre-rooted lolipop ROM to my SD card and flashed it. HOWEVER instead of turning off the device, I selected reboot from recovery. This resulted in boot loop.
SOOOO, I figured no worries, just flash old ROM and try again. So did this:installed Androxyde Flashtool
opened XperiFirm
downloaded 1276-8392 and 1274-8801 (I've tried the rest using both ROMs btw)
Tools>Bundler>Create>Selected folder>selected SGP312 for device
For branding I entered the above ie 1276-8392
For version I entered the ver ie 10.5.A.230
Flashmode>checked boxes to wipe everything​
The flash goes through without a hitch. Under about tablet, I see
Model : SGP312
Android Ver : 4.4.2
Kernel : 3.4.0-perf-g32ce454, [email protected]#1
Build Number : 10.5.A.0.230​
I activate USB debugging and unknown sources, connect to USB and Flashtool returns: Device connected with USB debugging turned off
I went into device manager and found the MTP driver. Also of note, the device ID is: USB\VID_0FCE&PID_5194&REV_0228
I downloaded Sony's ADB drivers, tried to manually update device driver and windows7x64 kicked back driver is not for your device.
I edited the INF to include the hardware ID exactly as it appears in device manager and tried again. This time windows let me load the driver. It shows up in device manager as 'Sony sa0107 ADB Interface Driver'
HOWEVER, Flashtool is still giving me the same MTP message and if I cmd prompt "adb devices" I get nada.
Is there a way to verify developer mode on the tablet? What else can I try? The tablet gives me a notification when I connect 'usb debugging mode connected, ready to install software'
Thanks!
_sadpanda said:
I went into device manager and found the MTP driver. Also of note, the device ID is: USB\VID_0FCE&PID_5194&REV_0228
HOWEVER, Flashtool is still giving me the same MTP message and if I cmd prompt "adb devices" I get nada.
Thanks!
Click to expand...
Click to collapse
I had a very similar problem in 2014. I do not want to discourage you, but at the end I send it back to sony for a repair. They gave me a new tablet and said that the mainboard was broken.
Nevertheless, there is a thread in Sony cross device general, where people like you end up: http://forum.xda-developers.com/showthread.php?t=1849170
You can try and search for help there, maybe you have more luck then me.
Its odd... ADB was working and stopped after flash. Is this what you had or just no connection from the start?
Sorry, I misread your post. I thought your tablet would not start and you could not get flashmode working. Sorry for that.
What you could try:
1. Be sure you actually activated USB debugging in developer options
2. When you connect the device, you should get a prompt on the tablet to allow usb debugging from that computer
Maybe try "revoke USB debugging authorisations" in developer options and reconnect
3. Install the drivers from flashtool/drivers/ or install sony pc companion. Delete your old driver from device manager.
4. try switching between MTP and MSC mode in usb connectivity menu
Since ADB worked before it was probably no driver problem. Now you cannot be sure. Most probably you tapped away the said prompt of allowing usb debugging when connecting.
If none of this helps I don't know of anything more. Maybe try different usb ports or even computers.... Or try to flash again
bernddi said:
4. try switching between MTP and MSC mode in usb connectivity menu
Click to expand...
Click to collapse
UGH!!! I'm a jacka$$. I totally forgot about that menu/setting. fixed instantly.

OTG and USB Connection Option not working after flashing

After i got bootloop, i flashed aosp-ex, after that otg does not work anymore and usb connection option was not showing. I tried to go back to stock. I flashed miui 10 but the problem still persist. I thought maybe it was just a bug in miui 10 since it still in beta. I then downgraded to miui 9 but my problem is still there. I tried again flashing custom rom using lineage but still otg and usb problem still exist. Someone help me! Otg and usb options works fine before i got bootloop. My phone can still charge. I've also enabled usb debugging and selected mtp in usb configuration in developer options. HELP!
This is the logcat of my device.
Exactly the same happened to me when going from android 7 custom ROM to 8. I had a bootloop, flashed the right recovery and tried again, but after that computer and phone doesn't recognize usb connection (only in flashing mode). Tried different ROMs and PCs and flashing stock, but the problem persists. Any help would be welcome.
R-Line said:
Exactly the same happened to me when going from android 7 custom ROM to 8. I had a bootloop, flashed the right recovery and tried again, but after that computer and phone doesn't recognize usb connection (only in flashing mode). Tried different ROMs and PCs and flashing stock, but the problem persists. Any help would be welcome.
Click to expand...
Click to collapse
Have you fix it now?

adb not working on pie

I've been having issues with adb on pie. It just doesn't recognise my phone. I've tried uninstalling and reinstalling the drivers but it doesnt work for me. Although, the pc can recognise my phone but not in adb. Whenever i run a adb command i don't get a prompt on my phone asking to allow the pc which is weird. I need help here.
Just had the same issue. On Windows. Reinstalled the adb drivers, didn't help. This, I think, is what resolved it for me, YMMV:
While the phone is plugged to PC,
disabled USB Debugging in Developer Options,
observed a toaster notification on Windows about updating/installing drivers for my phone,
enabled USB Debugging again, clicked Allow on the dialog that popped up,
and I was back in business.
nameanyone said:
Just had the same issue. On Windows. Reinstalled the adb drivers, didn't help. This, I think, is what resolved it for me, YMMV:
While the phone is plugged to PC,
disabled USB Debugging in Developer Options,
observed a toaster notification on Windows about updating/installing drivers for my phone,
enabled USB Debugging again, clicked Allow on the dialog that popped up,
and I was back in business.
Click to expand...
Click to collapse
Thanks. I'll try this once i get back home.
Me too
mayankjet said:
Thanks. I'll try this once i get back home.
Click to expand...
Click to collapse
I have the same problem, and it waas not fixed disabling and enabling USB debugging. Did you found the solution? Or someone found? Or God if you are there listening? Or the devil, i am ready to sell my soul for this.
marcebil said:
I have the same problem, and it waas not fixed disabling and enabling USB debugging. Did you found the solution? Or someone found? Or God if you are there listening? Or the devil, i am ready to sell my soul for this.
Click to expand...
Click to collapse
I think i had to update the adb to its latest version.
Sent from my Nokia 7.1 using XDA Labs

installing twrp from custom rom?

Hi,
I was able to install custom rom on my v300s
but found out that twrp wasn't installed.
I used my computer adb to open twrp and installed custom rom
Then i found our something was wrong, any way to install twrp from now on?
i tried to open twrp with adb again,
when i use adb devices I was able to find lge~~~ on there.
but when i try fastboot boot twrp, it shows awaiting for devices then nothing happen
(I set my phone as ptp mode then usb debugging was on.
on my laptop the phone was resister as portable device and using MTP usb driver, wasn't able to change it to adb driver)
then i tried to boot my v30 as bootloader but pressing volume down key didn't work.
any way to install twrp from this state?
sorry for my bad English
I think you need to ensure you have the correct drivers installed. Even when they are, you need to also check in Device Manager that the correct driver is used when the phone is connected. It also sounds like you don't have USB debugging enabled.
ldeveraux said:
I think you need to ensure you have the correct drivers installed. Even when they are, you need to also check in Device Manager that the correct driver is used when the phone is connected. It also sounds like you don't have USB debugging enabled.
Click to expand...
Click to collapse
Ah the usb debugging was enabled.
I found something called qfil from qualcom and was able to reinstall my bootloader img file with it.
then i was able to connect my device as ADB devices
Thanks btw

Categories

Resources