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.

198 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…
59
votes
14 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
  • 754
  • 1
  • 6
  • 9
33
votes
2 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
  • 725
  • 2
  • 10
  • 28
31
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
  • 3,615
  • 3
  • 25
  • 37
30
votes
6 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
  • 319
  • 1
  • 4
  • 6
18
votes
11 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
  • 345
  • 1
  • 3
  • 15
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
  • 655
  • 1
  • 9
  • 25
15
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
  • 997
  • 1
  • 16
  • 30
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,555
  • 2
  • 19
  • 41
12
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,430
  • 2
  • 27
  • 54
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
  • 642
  • 7
  • 21
11
votes
6 answers

My Galaxy S6 Edge cannot connect to Android Studio via USB Debugging

When I plug my Galaxy S6 Edge into my computer, Android Studio does not recognize it as an available USB device. I've tried to download a USB Driver update and I have USB Debugging checked on my phone, but nothing is working. What else do I need to…
Snow Patrick
  • 111
  • 1
  • 1
  • 3
9
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,070
  • 1
  • 20
  • 34
9
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,193
  • 3
  • 39
  • 63
9
votes
2 answers

Keep screen on in Activity - does not work with FLAG_KEEP_SCREEN_ON

So, for a long time I thought that I knew how to stop the screen from going into sleep mode, I simply used this code in my Activity: getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); However, I realized that this only worked…
Ted
  • 18,194
  • 33
  • 89
  • 142
1
2 3
13 14