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
0
votes
0 answers

How can I disable Android USB debugging through device admin programmatically

when you become Device admin how to disable USB Debuting option through device admin i need to this pragmatically.
0
votes
0 answers

TCP listening on port (tcpip) without root and usb cable on android < 11

On Android 11 and above it's available the option "Wireless debugging", so no problem there. However, on Android 10 and below there is no option for wireless debugging. In order to make the client listen on a specific port, we need to manually…
zaxunobi
  • 51
  • 9
0
votes
1 answer

How can I detect if a user is in debugging mode

Is there any way to detect if a mobile session on my android app is in android USB debugging mode or developer mode, or otherwise running automation via tools such as appium
0
votes
0 answers

how Enabling USB Debugging on an Android Device

I'm trying to make an automation test for my app. I'm using appium but each time android studio virtual devices run option of "Enabling USB Debugging on an Android Device" appear and my code can not work. What should I do I can not to tap allow each…
coco
  • 1
  • 2
0
votes
2 answers

Android not connecting to pc (ADB)

I have been trying to connect my Huawei phone to pc but there is some problem. I turned on USB debugging and also turned on Allow ADB debugging in charge-only mode but still, this problem persists. I plugged the USB cable into a different USB port…
SOF
  • 1
  • 2
0
votes
1 answer

USB debugging doesn´t work with physical device/flutter

Hey guys I created an App and my problem is than i can´t debug via usb cable since the latest Android Studio version Bumblebee 2021.1.1 Patch 2 If I run flutter doctor it shows me this error: [!] Android toolchain - develop for Android devices…
0
votes
0 answers

ADB Devices not showing my device in Windows 7

I have been dealing with this problem for hours, tried everything, re-installed android-studio & ADB, and nothing. I have also turned on USB Debugging, set the phone connection to data transfer. set the ANDROID_HOME user variable to…
Joaquín Varela
  • 329
  • 5
  • 18
0
votes
2 answers

Android - Detect when developer option or USB debugging mode is being turned on

Basically I can get the data from this import android.provider.Settings; Settings.System.getString(getContentResolver(), Settings.Global.ADB_ENABLED) But my application need a toggle listener. Is there any way I could listen when the setting is…
stackunderflow
  • 1,492
  • 1
  • 23
  • 53
0
votes
0 answers

Intune company portal causes usb debugging to automatically switch off

I recently installed Microsoft Intune company portal on my Samsung galaxy note 10+ for work. Unfortunately doing so resulted in the following change to my usb debugging settings: "Block - Prevent devices from using the USB debugging feature". Once I…
cbeaman
  • 1
  • 1
0
votes
1 answer

pc is not asking debugging authorization permission in android

my PC model is dell inspiron n4110 running on windows 8.1 pro and my android is xiaomi redmi 4 running on android 7.0 . as i turned on settings related to debugging like developer options>usb debugging and then connected to my pc , still it doesn't…
kojosi
  • 11
  • 1
0
votes
0 answers

Exception: Gradle task assembleDebug failed with exit code 1 in Flutter

I am running Flutter 2.2.2 in Terminal.app on macOS Big Sur. I have an Android phone, a Moto G5 Plus running Android 8.1.0. Developer options are on as is USB debugging, and I've connected the phone to my computer with a USB data cable. The device…
Peter Nielsen
  • 251
  • 4
  • 17
0
votes
1 answer

Tcpip connection established via ADB gets disconnected as soon as the USB is unplugged

This had been working fine for me all the while, now all of a sudden I find this change in behaviour with no change in android or my wondows(I haven't updated either) This is how I establish wireless connection over tcpip adb -d tcpip 5571 adb…
ishandutta2007
  • 16,676
  • 16
  • 93
  • 129
0
votes
1 answer

Issue with usb deregistration on linux kernel

I am using Linux 4.19.55 armv7l on a omap3 processor. On my target there is a usb modem that gets power from a gpio pin value (defined under /sys/class/gpio). There are occasions when I change the value parameter of this gpio pin to bring down the…
0
votes
0 answers

How to Install and Test Android JavaFX Application with Maven commands

I want to test. my JavaFX application on Mobile. Right now I'm doing a lengthy process of making apk then send someone on WhatsApp and download on my phone and then installing it. so I google to do install and run it as we do in android studio. but…
0
votes
2 answers

Local Server or Domain Chrome Mobile Debugging with Port Forwarding

I'm trying to setup Chrome mobile debugging using an Android phone and a USB connection. I have managed to get the device available in chrome://inspect/#devices and can inspect remote sites e.g. www.google.com, etc. However, I would like to test a…
ObiHill
  • 11,448
  • 20
  • 86
  • 135