[HTC U12+ Questions & Answers] MihaiTest:
Well, I am sorry to come with bad news, but it happened again. After 2 days. It is also strange that it happened last time, two days ago, around the same hour...

This means that, at least for me, uninstalling Google App and having a lot of free space, do not solve the issue.

I will continue to find a solution and I will keep you posted. Thank you for support!

Edit: I tried to fine something useful in the logs. This is a grep -i systemui (after the issue happened, unfortunately):

03-14 11:06:36.835 1270 1337 W PackageParser: Ignoring duplicate uses-permissions/uses-permissions-sdk-m: android.permission.CONFIGURE_WIFI_DISPLAY in package: com.android.systemui at: Binary XML file line #128
03-14 11:06:36.859 1270 1270 I PackageManager: /system/priv-app/SystemUI changed; collecting certs
03-14 11:06:36.914 1270 1270 E PackageManager: Adding duplicate user id: 10003 name=com.android.systemui
03-14 11:06:37.732 1270 1270 W PackageManager: Failed to migrate com.android.systemui: android.os.ServiceSpecificException: Failed to mark default storage /data/data/com.android.systemui (code 95)
03-14 11:06:39.351 1270 1270 W InputMethodManagerService: null called updateSystemUiLocked(mCurToken=null, vis=0) from com.android.server.InputMethodManagerService.systemRunning(InputMethodManagerService.java:1445) <- com.android.server.InputMethodManagerService$Lifecycle.onBootPhase(InputMethodManagerService.java:1227)
03-14 11:06:39.393 1270 1270 I SystemServer: StartSystemUI
03-14 11:06:39.399 1270 1270 I ActivityManager: Start proc 1637:com.android.systemui/u0a3 for service com.android.systemui/.SystemUIService
...

03-14 11:06:46.427 1270 1296 W PackageManager: Failed to migrate com.android.systemui: android.os.ServiceSpecificException: Failed to mark default storage /data/data/com.android.systemui (code 95)
...

03-14 11:06:58.429 2723 2723 W InputMethodManagerService: null called updateSystemUiLocked(mCurToken=null, vis=0) from com.android.server.InputMethodManagerService.systemRunning(InputMethodManagerService.java:1445) <- com.android.server.InputMethodManagerService$Lifecycle.onBootPhase(InputMethodManagerService.java:1227)
03-14 11:06:58.508 2723 2723 I SystemServer: StartSystemUI
03-14 11:06:58.523 2723 2723 I ActivityManager: Start proc 3012:com.android.systemui/u0a16 for service com.android.systemui/.SystemUIService
03-14 11:06:58.718 2723 2723 V WallpaperManagerService: bindWallpaperComponentLocked: componentName=ComponentInfo{com.android.systemui/com.android.systemui.ImageWallpaper}
...

03-14 11:07:20.358 2723 2752 W BroadcastQueue: Permission Denial: broadcasting Intent { act=com.htc.cover.closed flg=0x1000030 (has extras) } from null (pid=-1, uid=-1) requires com.htc.permission.APP_DEFAULT due to registered receiver BroadcastFilter{9ea0fc2 u0 ReceiverList{178f40d 3012 com.android.systemui/10016/u0 remote:c9cdea4}}
...

03-14 11:07:54.673 2723 2723 V FingerprintService: startAuthentication(com.android.systemui)
03-14 11:07:54.674 2723 2723 V FingerprintService: starting client AuthenticationClient(com.android.systemui), initiatedByClient = true)
03-14 11:07:54.687 2723 2753 D StatusBarManagerService: setSystemUiVisibility(0x408608)
03-14 11:07:54.687 2723 2753 D StatusBarManagerService: setSystemUiVisibility(0x408608)
03-14 11:07:54.687 2723 2753 D StatusBarManagerService: setSystemUiVisibility(0x408608)
03-14 11:07:54.704 2723 2723 W FingerprintService: client com.android.systemui is authenticating...
...

03-14 11:09:33.612 2723 2723 V FingerprintService: onAuthenticated(owner=com.android.systemui, id=-1298556996, gp=0)
03-14 11:09:33.617 2723 2723 V FingerprintService: Done with client: com.android.systemui
...

03-14 11:14:04.812 3012 18215 D MediaPlayer: ANDROID_HTC_INVOKE_GET_CALLING_PROCESS packageName: com.android.systemui
03-14 11:14:04.872 3012 3012 I zygote64: Deoptimizing void com.android.systemui.statusbar.NotificationContentView.selectLayout(boolean, boolean) due to JIT inline cache
03-14 11:14:04.895 3012 3012 I chatty : uid=10016(u0_a16) com.android.systemui identical 380 lines
03-14 11:14:05.393 3012 18215 I chatty : uid=10016(u0_a16) com.android.systemui expire 3 lines
03-14 11:14:06.418 3012 18274 I chatty : uid=10016(u0_a16) com.android.systemui expire 8 lines
...

03-14 11:25:29.780 3012 3012 I zygote64: Deoptimizing float com.android.systemui.statusbar.stack.StackScrollAlgorithm.updateChildZValue(int, float, com.android.systemui.statusbar.stack.StackScrollState, com.android.systemui.statusbar.stack.StackScrollAlgorithm$StackScrollAlgorithmState, com.android.systemui.statusbar.stack.AmbientState) due to JIT inline cache
03-14 11:25:29.780 3012 3012 I zygote64: Deoptimizing void com.android.systemui.statusbar.stack.StackScrollAlgorithm.updateClipping(com.android.systemui.statusbar.stack.StackScrollState, com.android.systemui.statusbar.stack.StackScrollAlgorithm$StackScrollAlgorithmState, com.android.systemui.statusbar.stack.AmbientState) due to JIT inline cache
03-14 11:25:29.782 3012 3012 I zygote64: Deoptimizing void com.android.systemui.statusbar.stack.ExpandableViewState.animateTo(android.view.View, com.android.systemui.statusbar.stack.AnimationProperties) due to JIT inline cache
03-14 11:25:30.020 3012 3012 I chatty : uid=10016(u0_a16) com.android.systemui identical 6 lines
...

03-14 11:26:18.628 2723 3950 D BoostFramework: perfHint : hint: 0x1081 pkg_name(userDataStr): com.android.systemui:tuner duration(userData1): 2000 type(userData2): 1
03-14 11:26:18.630 2723 3950 I ActivityManager: START u0 {act=com.android.settings.action.DEMO_MODE cmp=com.android.systemui/.DemoMode} from uid 1000 pid 13556
03-14 11:26:18.639 2723 3950 D ANDR-PERF-ACT-TRIG: start activity com.android.systemui/com.android.systemui.DemoMode/26
03-14 11:26:18.639 2723 3950 D ActivityTrigger: activityStartTrigger: Activity is Triggerred in full screen ApplicationInfo{67c3891 com.android.systemui}
03-14 11:26:18.639 2723 3950 E ActivityTrigger: activityStartTrigger: not whiteListedcom.android.systemui/com.android.systemui.DemoMode/26
03-14 11:26:18.639 2723 3950 D ActivityTrigger: activityResumeTrigger: The activity in ApplicationInfo{67c3891 com.android.systemui} is now in focus and seems to be in full-screen mode
03-14 11:26:18.640 2723 2753 D StatusBarManagerService: setSystemUiVisibility(0xa618)
03-14 11:26:18.643 2723 3950 D ActivityTrigger: activityResumeTrigger: The activity in ApplicationInfo{67c3891 com.android.systemui} is now in focus and seems to be in full-screen mode
03-14 11:26:18.654 2723 3950 I ActivityManager: Start proc 21509:com.android.systemui:tuner/u0a16 for activity com.android.systemui/.DemoMode
03-14 11:26:18.655 2723 3950 D BoostFramework: perfHint : hint: 0x1081 pkg_name(userDataStr): com.android.systemui:tuner duration(userData1): -1 type(userData2): 3
03-14 11:26:18.657 2723 2753 D StatusBarManagerService: setSystemUiVisibility(0xa618)
03-14 11:26:18.657 7747 7763 I [B+]AppInfoService: [onVisiblePackageChanged] packages:com.android.systemui
03-14 11:26:18.657 7747 7763 I [B+]AppInfoSyncManager: [onAppInfoEvent] app:com.android.systemui
...

03-14 11:26:18.668 7747 7763 I [B+]TopPkgCallbackHelper: sendVisiblePackageChanged-- PackageName: com.android.systemui, TimeStamp: 1552555578657, ExtraPackageName: NULL, Extra2PackageName: NULL
03-14 11:26:18.671 2723 2753 D StatusBarManagerService: setSystemUiVisibility(0xa618)
03-14 11:26:18.673 2723 3950 D InputDispatcher: setFocus: AppWindowToken{3e916da token=Token{23012b8 ActivityRecord{195f11b u0 com.android.systemui/.DemoMode t8600}}}
...

03-14 11:45:20.230 3012 3051 W zygote64: Checksum mismatch for dex SystemUI.apk
03-14 11:45:20.230 3012 3051 W zygote64: Checksum mismatch for dex SystemUI.apk

I think this might be important: 03-14 11:45:20.230 3012 3051 W zygote64: Checksum mismatch for dex SystemUI.apk

Maybe the APK was corrupted somehow?

If you have any ideas, please let me know.