Is it possible to detect the USB-debugging on android devices?
Is it possible? If yes, how?
thanx in advance
2 Solutions collect form web for “Is it possible to detect the USB-debugging on android devices?”
You can use the following to get whether or not the ADB is enabled.
int adb = Settings.Secure.getInt(context.getContentResolver(), Settings.Secure.ADB_ENABLED, 0);
If it is enabled,
adb == 1, otherwise
adb == 0.
On my Android 2.3 device it is possible to detect the usb debugging mode by scanning the complete process list (
ps -s) for the process
If this process is present USB debugging is enabled.