Android Studio debugging keeps displaying "Allow USB debugging?" PopUp - adb

I am using Android Studio version
Android Studio 3.4.1
Build #AI-183.6156.11.34.5522156, built on May 1, 2019
JRE: 1.8.0_152-release-1343-b01 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.14.5
with multiple Android devices including Pixel XL with Android Q (QPP4.190502.019)
All my test devices have started repeatedly displaying the
"Allow USB debugging?" PopUp
And losing ADB connectivity
What recent update has caused this behavior?
UPDATE
I reboot my laptop daily, as do my colleagues.
I and my colleagues have not updated USB drivers.
Ive tried multiple USB leads, as have my colleagues.
I've tried multiple Android devices and versions from 21 to Q
Devices include Pixel, Pixel 2, Pixel 3 & Pixel C, and Samsung S9, as have my colleagues.
I have revoked USB privileges and re granted on all devices, as have my colleagues.
The issue still persists

try to check the changelog for android studio update or have you try to enable the usb debugging in your device.

Haven't you installed/reinstalled Android USB drivers recently, if so try to reboot your system
It can also be caused by your broken USB cable, try to replace it with another one and check

I think you haven't checked never ask again option, that is why it's asking continuously.
So you can try to check that box if you haven't done that.

For others who might run into this problem, this started happening to me after I updated the OS version of my device. Restarting the device solved the issue.

Related

adb command doesn't list my device

On a Macbook Pro with Yosemite -
After getting through the difficulties of getting Android SDK installed, I plug in the device, but it doesn't show. The command adb devices yields "List of devices attached" with nothing following. It's there on the USB, the About This Mac System Report shows it present on the USB.
This question looks similar to Issue setting up the development environment for ProjectTango developemnt Device but is not the same because I'm not using Eclipse.
Please ensure that USB debugging is enabled in order to enter ADB, go to Settings > About tablet > Build number and then press Build number seven times. Then press back and go to Developer options > USB debugging.
Make sure you're using the latest Google USB driver. I was having this problem (but on Win 8) and updating the driver fixed it, I'm now getting the device in adb devices and can push content to it.

ADB says 'Device Not Found' at last stage of sideloading lollipop

I'm trying to sideload Lollipop onto my Nexus 5 from the OTA zip file.
At this point, the adb recognizes the device after I plug in the USB cable, and spits out the serial number.
As I understand the instructions for sideloading, once I get to this point, I just need to reboot into recovery mode, (which works as expected) and then bypass the red exclamation point icon using "volume up and power" simultaneously. That works too.
At the point where the screen on the Nexus 5 says, "Now send the package you want to apply to the device with 'adb sideload &ltfilename&gt' I type "adb sideload + the OTA image file name", which I renamed for convenience". The file is in the platform-tools folder.
At which point the command window reports: error: device not found
So... the device is seen by the adb, but somehow is no longer found after the device reboots in recovery mode.
I've replaced all the usb drivers, enabled usb debugging and developer mode on the Nexus device. I've tried this in windows 7 and also in Linux (both from the android sdk tool kit and from an installation of Eclipse). I'm unable to get the adb to talk to the Nexus 5.
I read the android-windows usb inf file, and there is no section specifically for the Nexus 5, but I added a line under the "generic android" section with USB\VID_18D1&PID_D001 as has been suggested elsewhere for people who couldn't get the OS to see their nexus at all. My issue is not that the OS can't see it... and the adb sees it, too, until I try to sideload the OTA file in Recovery Mode.
Anyone else having this issue, or better yet... any ideas on how to solve it?
Thanks
It turns out that I had not enabled USB debugging before I tried to do this using Linux Ubuntu / Eclipse / Android SDK. So my problem was really a windows USB driver problem, I guess (though I can't be sure, since windows did see the device until I tried to transfer the file. Maybe that message was really conveying a permissions problem, too...)
I rebooted into Ubuntu and tried again and was able to transfer the update file. The only hitch I encountered at that point was to issue the sideload command as root. I didn't do that the first time I tried it, and got a message about lacking permissions.
I suspect the posted reply with a link to a universal USB inf file would have worked, but, though I'm grateful for the tip, I can't testify to that, since I managed to transfer the file without Windows.
Thanks to all who looked at this and especially to Alex P., for posting a possible solution. FW
IW, I'm glad to have finally been able to do this, but for anyone struggling to get Lollipop ahead of the OTA update... well, it's nice, but hardly worth a lot of effort.

Adb not detecting my sony xperia J

I am trying to debug my android application in sony xperia J but the
adb devices
returns no devices
I have enabled USB debugging, Mass storage and installed sony pc companion.
I also allowed to install external applications.
I tried with enabling USB teathering.
Is there any additional setting I am missing?
I guess I have installed drivers for it but I am not very sure.
Can somebody help me on this it is really irritating.
You have to be sure about drivers installed or not.
in my job I see many devices that are not recognised by adb at first.
I have noticed that this is happening due to an auto-mount of the sdcard on the computer.
make sure there are no mounted drives on your computer and that should fix this
You can use PC companion software connect Phone to PC for debugging
Link: http://www.sonymobile.com/in/tools/pc-companion/
and also try it
Settings > Xperia > USB Connectivity > USB Connection Mode and select MASS Storage, not MTP
If your USC pc connection is to Media device try changing it to Camera (PTP) or Vice Versa.
First you have to configure your phone not to install PC companion when connecting to PC by deselecting it from the phone menu. Also enable USB debugging and Mass storage, then connect the phone to the PC. Delete all devices that look like your phone in the Device Manager by uninstallling them. Then right-click and scan for hardware changes. Go to Android, right-click and Update driver. Browse folder until sdk/extras/google/usbdriver. Then Let me pick... Select Android phone, then have disk browse until sdk/extras/usbdriver. Select android_winusb.inf. Open, then select Android Composite ADB Interface. Next install. Wait until it is done and reopen Eclipse. You will find your phone there under devices.
I am running W8.1 x64 Pro and all above solutions had failed because Windows would not recognize a driver inside of sdk/extras/google/usbdriver even with a manual install.
Anyhow, my solution was to use Sony's PC companion tool, which was able to automatically download the drivers for my PC.
Official doc: http://dl-developer.sonymobile.com/documentation/other/Get_drivers_through_PC_Companion.txt
Now the abd interface is installed, and the phone is detected in adb devices.

Eclipse cannot find Android Phone

I recently upgraded my android version from 2.2.3 to 2.3.5 (HTC Desire HD), and now eclipse cannot find it, I had no problems prior. I had no problems before. USB debugging is enabled, and my connection type is on charge only (have tried disk drive too). Restarting the computer did nothing, nor did restarting eclipse. I have also done a factory data reset many times. I am on windows 7.
Any ideas/Know what the problem is?
Thanks.
Answer courtesy of 'Samir Mangroliya':
--> Download and install HTC Sync in your pc.
Downloading HTC Sync installed the necessary drivers to my computer.
Connect your phone to computer before starting Eclipse.

Brew MP handset developer activation

I have a Brew MP which I want to upload my app to. But I understand, it must first be "developer activated" before it will accept my apps. In the Qualcomm tools, I use the Target Manager, but I find no way to activate the phone.
I have a Brewmp.com account, and I read the instructions, but they are not clear to me.
The Target Manager says "Connected Status: Currently not connected", if that means anything. The phone is connected enough for the tool to display it in the list of the physical devices though.
The handset is a Dopod F3188 running Brew MP 1.0.2.481.
I installed the generic gateway USB driver found in the Brew Tools. However, if I enable a developer mode which is more than USB gateway (+ COM) in the phone, the phone is not recognized by Windows and I can not find any drivers for the phone.
The problem disappeared once I started using a real Windows XP machine instead of a virtual machine. (VirtualBox in this case.)

Resources