[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] johndoe118:
Hey folks! The phone has mysterious reboots every night. In most cases I got logcat entries, in some cases not. The phone is charged on power and not used by my.

I don't know the problem, but I found this entry:

[08-30 05:18:07.560 32651:32672 E/ActivityManager]
ANR in com.android.exchange
PID: 5625
Reason: Broadcast of Intent { act=android.accounts.LOGIN_ACCOUNTS_CHANGED flg=0x5000010 cmp=com.android.exchange/.ExchangeBroadcastReceiver }
Load: 0.0 / 0.0 / 0.0
CPU usage from 346561ms to 70ms ago (2019-08-30 05:12:20.922 to 2019-08-30 05:18:07.413):
102% 32651/system_server: 101% user + 0.4% kernel / faults: 8153 minor
10% 1067/com.android.systemui: 7.3% user + 3.5% kernel / faults: 964 minor
4.2% 758/surfaceflinger: 2.1% user + 2.1% kernel / faults: 295 minor
1.5% 1989/com.sociosoft.countdown: 1% user + 0.5% kernel / faults: 10097 minor
0.9% 4468/kworker/u16:0: 0% user + 0.9% kernel
0.8% 5258/kworker/u16:7: 0% user + 0.8% kernel
0.8% 4958/kworker/u16:5: 0% user + 0.8% kernel
...

Before I got this entry, I found a lot of this entries:

...
[08-30 05:18:07.333 32651:32715 W/WindowManager]
Layout repeat skipped after too many iterations

[08-30 05:18:07.395 32651:32715 E/WindowManager]
Performed 6 layouts in a row. Skipping
...

Maybe this is also helpful:

[08-30 05:18:08.280 32651:803 W/Watchdog]
*** WATCHDOG KILLING SYSTEM PROCESS: Blocked in handler on foreground thread (android.fg), Blocked in handler on main thread (main)

[08-30 05:18:08.284 32651:803 W/Watchdog]
android.fg annotated stack trace:

[08-30 05:18:08.284 32651:803 W/Watchdog]
at com.android.server.wm.WindowManagerService.monitor(WindowManagerService.java:6831)

[08-30 05:18:08.285 32651:803 W/Watchdog]
- waiting to lock <0x05ca4ab0> (a com.android.server.wm.WindowHashMap)

[08-30 05:18:08.285 32651:803 W/Watchdog]
at com.android.server.Watchdog$HandlerChecker.run(Watchdog.java:206)

[08-30 05:18:08.285 32651:803 W/Watchdog]
at android.os.Handler.handleCallback(Handler.java:873)

[08-30 05:18:08.285 32651:803 W/Watchdog]
at android.os.Handler.dispatchMessage(Handler.java:99)

[08-30 05:18:08.285 32651:803 W/Watchdog]
at android.os.Looper.loop(Looper.java:193)

[08-30 05:18:08.285 32651:803 W/Watchdog]
at android.os.HandlerThread.run(HandlerThread.java:65)

[08-30 05:18:08.285 32651:803 W/Watchdog]
at com.android.server.ServiceThread.run(ServiceThread.java:44)

[08-30 05:18:08.285 32651:803 W/Watchdog]
main annotated stack trace:

[08-30 05:18:08.286 32651:803 W/Watchdog]
at com.android.server.am.ActivityManagerService.broadcastIntent(ActivityManagerService.java:22168)

[08-30 05:18:08.286 32651:803 W/Watchdog]
- waiting to lock <0x0cfb2b10> (a com.android.server.am.ActivityManagerService)

[08-30 05:18:08.286 32651:803 W/Watchdog]
at android.app.ActivityManager.broadcastStickyIntent(ActivityManager.java:4061)

[08-30 05:18:08.286 32651:803 W/Watchdog]
at android.app.ActivityManager.broadcastStickyIntent(ActivityManager.java:4051)

[08-30 05:18:08.286 32651:803 W/Watchdog]
at com.android.server.BatteryService.lambda$sendBatteryChangedIntentLocked$0(BatteryService.java:724)

[08-30 05:18:08.286 32651:803 W/Watchdog]
at com.android.server.-$$Lambda$BatteryService$2x73lvpB0jctMSVP4qb9sHAqRPw.run(Unknown Source:2)

[08-30 05:18:08.286 32651:803 W/Watchdog]
at android.os.Handler.handleCallback(Handler.java:873)

[08-30 05:18:08.286 32651:803 W/Watchdog]
at android.os.Handler.dispatchMessage(Handler.java:99)

[08-30 05:18:08.286 32651:803 W/Watchdog]
at android.os.Looper.loop(Looper.java:193)

[08-30 05:18:08.286 32651:803 W/Watchdog]
at com.android.server.SystemServer.run(SystemServer.java:487)

[08-30 05:18:08.286 32651:803 W/Watchdog]
at com.android.server.SystemServer.main(SystemServer.java:309)

[08-30 05:18:08.286 32651:803 W/Watchdog]
at java.lang.reflect.Method.invoke(Native Method)

[08-30 05:18:08.287 32651:803 W/Watchdog]
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:495)

[08-30 05:18:08.287 32651:803 W/Watchdog]
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:838)

[08-30 05:18:08.287 32651:803 W/Watchdog]
*** GOODBYE!

How can I get more informations about this process? How can I find the reason for the high CPU usage of 102%?