Is it possible to detect an application when ADB is listening on USB on an Android phone?
I'm looking for something like this: Is it possible to determine if an Android device is connected to a computer or just power? but specifically for when ADB is running.
Thanks!
Settings.Global.getInt(context.getContentResolver(), Settings.Global.ADB_ENABLED, 0);
Should return 1 if adb is active on the phone, and 0 if it is not.
Source: https://habr.com/ru/post/1482624/More articles:What rules does IE use to determine whether to show the body of an object? - httpAutowire field failed when bean implements some interface using Spring - springHow to open a file in a raw folder on Android - androidHow to join two tables and make the default value zero if it is not - sqlThe application does not end with the MySQL pool - node.jsIs it possible to determine whether an Android device is connected to a computer or just power? - androidConvert string to ConnectionStringSettings - c #JGraphX ββtakes a long time to build a graph - graphvideo.js - controls are not displayed in IE8 - flashBattery Notification - androidAll Articles