Is it possible to have an application detect when ADB is listening over USB on an Android phone?
I'm looking for something like this: Is it possible to determine whether an Android device is plugged into a computer or just power? but specifically for when ADB is running.
Thanks!