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
2.1m questions
2.1m answers
60 comments
57.0k users