Android Question how to detect in the app, if ADB is used

peacemaker

Expert
Licensed User
Longtime User
Just for some security reason - to delete some files, if ADB has got active
 

peacemaker

Expert
Licensed User
Longtime User
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
Top