I want to detect the case status (open/close).
In the case without window I could use detection screen status (on/off) like this:
In the case with the window (eg. LG Circle Case) after closing the case I can't use the detection screen status (case closed but the screen may be ON).
I want to detect only case status (using a magnet sensor in the corner of the case and screen)
In the case without window I could use detection screen status (on/off) like this:
Code:
adb shell dumpsys power | grep mScreenOn
I want to detect only case status (using a magnet sensor in the corner of the case and screen)