how to make USB Debugging enabled code example
Example: how to enable usb debugging
Open the Settings app.
Select System.
Than click About phone.
click Build number 7 times.
Return to the previous screen to find Developer options near the bottom.
Scroll down and enable USB debugging.