I need to know in my script whether or not the device's screen is off. Is there any simple command to obtain such information using ADB?
dumpsys power | grep mScreenOn
1.4m articles
1.4m replys
5 comments
57.0k users