How to turn off screen of android with terminal emulator? I am using Android 5.0.
How to turn off screen of android with terminal emulator? I am using Android 5.0.
There are two ways of doing this, depending on if you have root or not on your device.
If you use root
If you have rooted, run:
su
input keyevent 26
In any good terminal emulator.
If you have not rooted
If you haven't rooted, either root, or:
adb shell input keyevent 26
Q & A