Βρήκα αυτό στο XDA και νομίζω δουλεύει
Hi boys..
reasonable for this behaviour are the developer mode switches 1.) "Allow ADB debugging in charge only mode" and 2.) "Always prompt when connecting to USB"!!!
If switch 1.) is not set to "on", and switch 2.) is not set to "off", the switch "debugging allowed" would be cancelled every time you leave this menu!
So it does, what it have to do! Cancelling debug mode if phone would be connected to any other device without transferring data (if only charged). Easy, or not?
(see signature 1+2!)