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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With