StayOn2 for Android
Keep screen on while debugging your Android.
Especially Samsung Galaxy series.
It doesn't have 'Keep Screen On' option in Settings menu,
but this app works on all Samsung Galaxy devices.
If you set USB power, your phone awaken while usb debugging,
but your phone sleeps while charging with adapter power.
So, I recommend 'USB connected' option.
(Tip. Galaxy series devices are reset this function when after rebooting. just run this app again and set, it works!)
What I found exactly
This is exactly what I have been looking for, to stay off while charging, but to still stay on while adb debugging. I'm going to tell every Android developer I know about this little app. Just one minor note thought, in developer settings, one must keep the "screen on while charging" checkbox unchecked in order to let this little app do its thing. That checkbox is off by default, but if you're like me, you might have turned it on already.
by M####:
Lenovo a3600d can't accepted my sandisk otg