USB host mode on android using OTG - Android Software Development

i am trying to get host mode working on the droid with little luck.
These are the commands i have tried.
"cat /sys/devices/platform/musb_hdrc/mode"
i get "b_idle" when nothing is connected to the micro-usb port or i
get "b_peripheral" if the device is in factory test (Ethernet mode) or
connected to the PC. i am trying to force the droid into usb host by
using this command
"echo host > /sys/devices/platform/musb_hdrc/mode".
but nothing happens. I don't know if the android OS is blocking the
device from going into this mode or if the android gadget driver is
blocking it.

Seen this? http://www.tombom.co.uk/blog/?p=124

del

Related

Can't connect to phone using ADB

I can't for the life of me connect to my TP2 running XDANDROID via ADB.
Here's what I've tried
-Connect via Linux in a VM(Ubuntu)
-Connect via Linux (for real, also Ubuntu)
-Connect via Windows.
The problem is the connection to the phone. In Linux, the USB0 network connection does show up, but when I try to connect to it, it fails everytime without any specific error message.
On Windows, I managed to install the Android SDK USB driver, but once again ADB can't seem to connect.
The error message is the same on both platforms btw. When I try to run adb shell, it starts the Daemon and then quits saying that there is no device to be found.
The phone itself indicates it's in USB debugging mode and the USB cable is connected.
What could I be doing wrong?
Whoops, wrong subforum. Could a mod please move this to 'Software and Hacking General'?

Help! Can't Get ADB to Recognize Note 7

I cannot get ADB to recognize my Note 7. I've installed the ADB & FastBoot 15-second install from the XDA forum, but when I plug my N7 into the PC it only recognizes it as a USB drive.
Dev options enabled,
USB Debugging enabled
USB configuration (MTP mode)
The only entries under Other in Device Manager are CDC and MTP, no Android Device. The phone is also listed under Portable Devices. No USB mode brings up "Android" in the list of devices under Other.
Does anyone have any suggestions?
Do you have proper Samsung usb drivers installed? Check your device manager, just asking sometimes phones can be finicky when trying to get the PC to recognize devices.
Thanks carelockh! That did the trick. I looked in Device Manager and found that only the Windows USB device driver was installed. I downloaded and installed the Samsung driver and was able to connect over ADB.
No problem, anytime glad I could help.

My 6P not showing up in Device Manager. Not able to access files via USB. Please help

Hi guys,
I'm trying to connected to Nexus 6P (8.1) from my Pc
I connect it and it charges, but there's no ability to see its files. I've tried the following:
Changing USB Configuration in Developer Options to/from MTP.
Switching USB ports on computer (neither USB 2.0 / 3.0 Nothing)
Switching computers ( no luck)
Switching cables (no luck)
Switching Windows 10/7 (no luck)
Looking for the device manager on Windows- doesn't show up
Enabling/disabling USB debugging
Downloading Nexus Root Toolkit to download drivers (says "ADB device was not found." USB debugging has no effect)
Please help!

Transfer files fails

I haven't been able to get data transfer to work when connected to computer since Color OS 6 update. Pop up warning says resetting USB Debugging is required. Actions already taken :
1. Turn usb debugging on/off
2. Turn developer options on/off
3. Revoke usb debugging (adb devices shows device ID)
4. Enable usb tethering
Any suggestions?
After days of no response and some efforts of painful google-searching , I finally find a solution using adb command which is
adb shell svc usb setfunctions mtp
That being said there should not be any issue with usb / adb driver whatsoever, because I can use file transfer on my LG V30+ just fine using the very same laptop. Also system security check showed usb transfer is being blocked (see attached pics)

Issues with Windows picking up STV as a device

Unable to pick up STV with USB-a to USB-a cable on 3 separate windows devices. After putting the STV into dev mode and enabling USB debugging, I put my cable in the furthest USB port and put the other end into my computer. No windows "connected device" noise is made, as well as no device resembling what could be the STV in device manager. I know that both the cable and the ports on the STV and computer work because I get the SMARTLINK device pop-up when disabling USB debugging. I can't even use the Nvdia provided drivers for the STV, because there is no device to apply the driver to. What is the problem here?
Side note: I am able to ADB into the STV via my local network (network debugging) and put it into fastboot, but then had nothing to do since I couldn't get the device to do anything over the network while in fastboot. This is now not working at all and I am not entirely sure why.
All help is very much appreciated and if you need any more information please just let me know.
Thanks!

Categories

Resources