Questions tagged [usb-debugging]

USB debugging enables Android developers to remotely control devices.

USB debugging (also called remote debugging) is an Android developer option. It facilitates operating mobile devices using a desktop computer.

It usually suffices to have an USB driver installed suitable for the device being debugged. Google Chrome is then used to inspect connected devices. Naturally, the “USB debugging” setting needs to be activated on the respective device. Another common means of accessing USB debugging options is ADB.

For further reading, see Remote Debugging Android Devices at Google Developers.

231 questions
86
votes
10 answers

Chrome's remote debugging (USB debugging) not working for Samsung Galaxy S3 running android 4.3

Ever since I upgraded my Samsung Galaxy S3 to android 4.3 (from 4.1.2) I am unable to use Chrome's remote debugging for android (more details here). I have the developer options and USB debugging enabled on my phone, and this worked perfectly fine…
65
votes
15 answers

no target device found android studio 2.1.1

i'm using android studio 2.1.1 in ubuntu 14.04.Now my question is,i want to run the program through my phone without emulator. so i chose the target as usb device but whenever i run this,below mentioned error is rasing. Error running app : No target…
Adithya
  • 813
  • 1
  • 7
  • 10
56
votes
3 answers

Xiaomi Redmi Note 4X "Install via usb" throws "Insert your SIM card"

I'm using a Xiaomi Redmi Note 4X for my Android development. Without "Install via USB" option, Android Studio throws: Installation failed with message INSTALL_CANCELED_BY_USER Solution for this is enabling "Install via USB", but when I try to…
softmarshmallow
  • 1,034
  • 2
  • 16
  • 31
52
votes
2 answers

How to make adb shell ps list all processes in Android O?

adb shell ps not working in O android release adb shell ps command in Android O release is listing only ps process information, but it is not listing all the processes information of all the process like it used to do it in earlier android…
be_good_do_good
  • 4,311
  • 3
  • 28
  • 42
43
votes
7 answers

USB Debugging option on my Android keeps turning off

Every time I restart my Android phone after enabling the USB debugging in Developer Options, the USB Debugging option gets disabled. How do I keep it enabled even after restarting my Android phone.
user6617547
  • 487
  • 1
  • 5
  • 6
21
votes
12 answers

Unable to install android app via usb debugging

I know this is an old question but I am trying to install my app the very first time on Redmi note 4. Whenever i try to install it displays a dialog saying.. Installation failed with message Failed to establish session. It is possible that this…
shubhamjuneja
  • 395
  • 1
  • 5
  • 16
19
votes
11 answers

No connection could be made because the target machine actively refused it. (10061)

I have problems trying to do wireless debugging. I followed this instruction: https://developer.android.com/studio/command-line/adb#wireless And it seems that I cannot connect to my phone at step 7 of the article adb connect device_ip_address. It…
off99555
  • 3,797
  • 3
  • 37
  • 49
17
votes
2 answers

Is there any way to debug apps over Wi-Fi or bluetooth? [Please note that the device is not connected via USB]

For some reason (I don't know what), my phone is not getting connected over USB for debugging purposes. I have checked that the device drivers are properly installed and the USB debugging option inside phone settings is checked. Due to this, I am…
Ali_Waris
  • 1,944
  • 2
  • 28
  • 46
15
votes
12 answers

Android Studio doesnt recognize my device - Nexus 6P

I am struggling to figure out the problem with my device not being recognized in Android Studio. However I do see it from file explorer and can browse the device files. OS: Windows 10 Device: Nexus 6P Yes, I did some research before posting this…
SlashJ
  • 687
  • 1
  • 11
  • 31
13
votes
3 answers

How to connect multiple android devices with ADB over wifi

ADB is installed in the computer, and usb debugging is enabled on devices. Also I have connected one device over wifi successfully. How to connect more devices without having to mention the serial number of the device for every additional device…
Abdul Wasae
  • 3,614
  • 4
  • 34
  • 56
13
votes
5 answers

Cannot see Nexus 6P for debugging

I'm using Windows 10, a Dell XPS 13, and v1.4.1 of Android Studio. I have SDK Tools 24.4.1 installed as well as Google USB Driver 11. # On the phone I have USB debugging enabled and can see the device in File Explorer (i.e. documents, pictures,…
Bungles
  • 1,969
  • 2
  • 25
  • 54
12
votes
7 answers

How to take screen shots of mobile debug device running Flutter application in Android Studio?

Using Android Studio for developing flutter replaces the LogCat console with the run tab. This works great, but how do I take a screen shot of my debugging device? Previously I used to expand the LogCat side menu and click on the capture image …
12
votes
1 answer

USB Debugging over Wifi

I am unable to debug over wifi. I have followed below steps. Go to Android Sdk-> Platform-tools and type cmd run adb tcpip 5555 adb connect and MY IP ADDRESS Now i got the result show in below Image. After my device is connected. I removed my USB…
Ram Mansawala
  • 652
  • 7
  • 22
12
votes
2 answers

How to check usb debugging enabled programmatically?

my question is on an Android phone how can I check if the usb debugging flag is enabled or not programmatically? in my application I want to show the status of usb debugging and I want to get it programmatically How can I get if usb debugging is…
Neji
  • 6,591
  • 5
  • 43
  • 66
11
votes
1 answer

Android: Increase adb debug timeout in android studio

Application gets closed when I am debugging the app in Android Studio. Actually, I am facing an issue when I am doing debug to my android app in Android Studio. Application is getting close at some of the breakpoint execution. These app close…
Ready Android
  • 3,529
  • 2
  • 26
  • 40
1
2 3
15 16