Android Connect Physical Device as ADB Device, not Portable Device - android

I have a Nexus 7 Tablet I want to use for debugging an Android app I'm developing.
I'm doing the development and testing on a remote server using RDP and sharing my ports, including the USB that the tablet is connected to.
Per the instructions in this article, I have USB debugging enabled, and it is operating over the Camera (PTP) protocol.
So everything seems well set up from that side, but despite all efforts, I cannot get Windows (on the remote server) to recognize this as anything but a Portable Device.
For debugging purposes, it needs to be registered as an ADB Composite Device.
The aforementioned article says that, to overcome this, I need to update the driver software.
I have the Google USB drivers installed, but when I attempt to use the Device Manager to update the driver software to the Google USB driver, Windows simply tells me "The best driver software for your device is already installed. Windows has determined the driver software for your device is up to date. Digital Still Camera."
I've also tried editing the android_winusb.inf file with a listing of the tablet's hardware ID as a Composite Android Device, but to no avail.
How can I tell Windows that I'm using an Android device, not a Portable Device?
How can I tell it to use the proper drivers when it continues to override me?

Related

Chrome remote debugging, the device is not showing up

I'm trying to debug a Website in Chrome on an Android device. For this I'm following the official remote debugging guide.
Things are working up to 6. Make sure that Discover USB devices is enabled., but then in point 7. Connect your Android device directly to your development machine using a USB cable., the device is not showing up. Also on the device, I do not get the the Allow USB Debugging permission prompt as described in point 8.
The device has USB Debugging enabled, and Windows recognises the device.
I'm able to connect to the device using Android Studio, and then use Chrome remote debugging. But it looks like overkill to install several GigaBytes just to be able to clic ont the Allow USB Debugging permission prompt on the device.
What can I do to launch remote debugging without installing Android Studio ?
If you turn on Developer options on your Android device, you should be able to toggle USB Debugging from there. Download the standalone ADB package or install Android Studio. Run adb server in the command line. Connect it and then the prompt to accept the device's RSA key fingerprint should appear and you should be good to go.
The docs do a better job of showing the step-by-step process https://developers.google.com/web/tools/chrome-devtools/remote-debugging/
P.S. if you'd like to test this multiple times on the same two devices you can click Revoke USB debugging authorizations in the Developer options to revoke all previously connected devices' RSA keys.
For those landing here from Google: my problem was a bad cable shipped with the device (Samsung Galaxy A03). It only charged but did not transfer data. I bought a decent third-party cable and it started working.

Run and Debugging Application using hardware device but its showing usb device not recognized

I am trying to run and debug android project using hardware device. I have Huawei P8 Lite and whenever i enable developer mode and usb debugging from my phone, it shows the message that usb device not recognized. It happens just when i enable usb mood on developer options, otherwise its working fine if i want to transfer files between computer and phone.
I followed all these articles
http://developer.android.com/tools/device.html
http://developer.android.com/tools/extras/oem-usb.html
and also tried to update the driver software but computer shows that driver is updated.
IN device manager, under options universal serial bus controller, the usb port have yellow notification mark on it with the label that unknown device.
Please help. Emulator is killing me. Its very slow even after installing HAXM.
Hi those instructions are for the google usb driver. To install the huawei adb driver and lte software, on your device (settings):
Enable Developer Mode.
Enable USB Debugging.
Connect your device via a usb cable.
You have to go to Computer -> double click on HiSuite
Accept terms and click install. This should take about 30 seconds, after which you click start.
Automatically, all drivers are installed as below.
The instructions are available on http://consumer.huawei.com/en/support/faqs/detail/index.htm?id=6630
My breakdown according to my device (and country) and the link above are slightly different but the logic is the same. All the best!

adb device - adb usb cmd shows either no device OR restarting in usb mode

My device is a Vodafone Smart Ultra 6. I have the android SDK on my path and such, I have a sure connection between the PC and the phone, I can use it as a media device and share files between, and I have set the developer options. In addition, I have tried USB tethering, and when I do it changes from no device to 'restarting in USB mode'
I am on lollipop 5.1 and windows 10.
Please advise.
You need a special USB driver for Windows to support adb. This page has more details: http://developer.android.com/tools/extras/oem-usb.html
Vodafone isn't listed as one of the vendors with a driver there, though. You may need to look at the USB VID/PID which is presented and if it matches one of the "known" IDs (such as Google's) then using the Google Windows driver may work for you.

Android: AVD manager won't detect Byond B54 and Micromax phones as Virtual Device

I need to use my phone as emulator/target/virtual device when I run my application. I have enabled the USB Debugging in Settings.
What more do I need to do to make Eclipse AVD Manager to detect my Byond B54 and Micromax devices? How to get in usb drivers for these devices?
You need to install the drivers for windows to detect those devices.
if the drivers for those devices from respective manufactures are not available,
you can download and use moborobo. It works for most devices. I have used it for Byond tablet.
This Link will help you with the list of all the companies and their links which provide USB drivers. Please note that some companies may not be listed in this list. In that case you may have to go to the respective website of the company and search for the particular device driver.
As you are saying that you have enabled the USB debugging mode in those devices. Check whether they are connected properly. open the command prompt and type:
adb devices
The result will give the list of the connected devices. If the device can be seen in the list then you can be sure that its connected properly. And you can install the app directly on the device by typing in:
adb install path_of_the_apk_file/your_apk_file.apk
But note that you can only install the app in this manner not debug it.
install pda.net on your system.this software mostly works with all devices.Search PDA.net on google and install it after downloading .

debugging on usb connected device

I am trying to debug on a USB connection to several different Sony tablets (particularly the P, which is listed as supported). I can debug on a smart phone, but the tablet doesn't show up as a connected device when I try to run my app in Eclipse. I have checked that the settings of the tablet have Applications->Unknown sources, and Applications->Development->USB Debugging
This is a fairly common problem. You basically don't have the drivers you need for USB debugging.
There are a few different ways I've had to obtain drivers for phones. The first way you should attempt is to go into the Android SDK and AVD manager and download the Google USB driver debug package.
This may or may not give you the driver you need. If it doesn't you will have to do one of two things. One, add the device details to the driver file you just downloaded. Generally these will be posted on forums/boards discussing your Tablet/Phone type. Secondly, you can download a different driver from another source like the Tab/Phone manufacturer.
Here a Youtube video how to install Sony Tablet S & P
Or the app you are developing has set the target higher than your tablet supports. Then it also won`t show up in the AVD Manager.
In case you wont get proper drivers for your tablet you can try adb over network.
Connect your device to wifi as well as your computer.
turn on ADB over network in Options for developers (maybe some ROM dont support it). Eventualy you can enable this using specific commands on your tablet.
on your computer run terminal and use: adb connect <ip>:<port> where <ip> refers to IP of your tablet and <port> refers to port on which adb is listening (usually 5555).
run adb devices to verify that device is connected

Categories

Resources