peacemaker Expert Licensed User Longtime User Apr 13, 2016 #1 Just for some security reason - to delete some files, if ADB has got active
Erel B4X founder Staff member Licensed User Longtime User Apr 13, 2016 #2 You can use the NotificationListener library to find out when the ADB notification appears. Another possible solution: http://stackoverflow.com/questions/27884372/detect-if-adb-server-is-running-on-android (use Phone.Shell run those programs). Upvote 0
You can use the NotificationListener library to find out when the ADB notification appears. Another possible solution: http://stackoverflow.com/questions/27884372/detect-if-adb-server-is-running-on-android (use Phone.Shell run those programs).
peacemaker Expert Licensed User Longtime User Apr 13, 2016 #3 Thanks, Erel. But result of "getprop init.svc.adbd" is always "running". It's "stopped" only when the developer debugging is disabled. Is it correct ? I meant to detect USB connection when acces to the file system can be got. Upvote 0
Thanks, Erel. But result of "getprop init.svc.adbd" is always "running". It's "stopped" only when the developer debugging is disabled. Is it correct ? I meant to detect USB connection when acces to the file system can be got.
Erel B4X founder Staff member Licensed User Longtime User Apr 13, 2016 #4 I haven't tried it. Reboot your device with this setting enabled and see whether it starts or not. Upvote 0