Probably you already know that App Quarantine has recently added support for ADB Toggle.
App Quarantine is freezing unwanted apps and therefore it needs USB debug settings enabled. This setting however is rather dangerous and you should not have it enabled all the time.
App Quarantine uses the ADB Toggle Access Library to enable USB debug settings before freezing an app, and disables it when finished.
If you are an Android developer and your app needs USB debug settings as well, then please don’t ask your users to have it enabled all the time! Instead add support for ADB Toggle and you’re all set.
Read more details about the implementation on Github: