Sensor66
Use a safe, secure computer and possibly a thumb-drive, portable OS. (A computer that has been hacked can hack your phone with 'usb debugging' turned on)
On your GOS phone:
- USB enabled
Settings > security & privacy > exploit protection > USB-C Port > ON
- Enable developer options
Settings > About phone > Tap 'Build number' 7 times in a row
- USB debugging
Settings > System > Developer Options > USB debugging > on
Get 'adb' on the computer (linux package is called android-tools or adb i think)
Plug in the phone and accept the connection for usb debugging on the phone.
Repeat your steps to produce the erroneous behavior
After the screen turns on and wakes up run this command:
(linux only? I don't use powershell on windows)
adb shell dumpsys alarm | grep -A 10 'App Alarm history'
or this works too
adb shell dumpsys alarm
Look for an entry that looks similar to this:
(I redacted most of mine. See the bottom line)
Copy and paste the results into a text editor so you can ctrl + F search easily if it is a lot of information.
App Alarm history:
APP, u0: -4
APP, u0: -6
APP, u0: -4
APP, u0: -1
APP, u0: -3
APP, u11: -1
APP, u11: -2
APP, u0: -1
com.android.deskclock, u0: -15s81ms,
u# is the profile.
u0=owner/main profile | u11=private space
I set a clock timer for 3 seconds, turned the screen off, and then did the above check. "com.android.deskclock" confirms this.
-15s81ms = How long ago an alarm event was--15 seconds ago.
Change the settings back:
- USB charge only (my preference for security)
Settings > security & privacy > exploit protection > USB-C Port > charge only
- USB debugging
Settings > System > Developer Options > USB debugging > OFF
- Disable developer options
Settings > System > Developer Options > "use developer options = off" (Very top)
Try to not change any developer settings. Could cause more weird issues.