[Samsung Galaxy J6 Guides, News, & Discussion] ShaDisNX255:
I'm getting a very interesting crash on SystemUI.

It seems that if I replace the SystemUI, even with an exact copy of the UI I am using right now, I get the following crash upon reboot:

11-06 10:20:55.644 5392 6197 E AndroidRuntime: FATAL EXCEPTION: UEventObserver
11-06 10:20:55.644 5392 6197 E AndroidRuntime: Process: com.android.systemui, PID: 5392
11-06 10:20:55.644 5392 6197 E AndroidRuntime: java.lang.RuntimeException: Unable to open socket for UEventObserver
11-06 10:20:55.644 5392 6197 E AndroidRuntime:	at android.os.UEventObserver.nativeSetup(Native Method)
11-06 10:20:55.644 5392 6197 E AndroidRuntime:	at android.os.UEventObserver.-wrap3(Unknown Source:0)
11-06 10:20:55.644 5392 6197 E AndroidRuntime:	at android.os.UEventObserver$UEventThread.run(Unknown Source:0)
11-06 10:20:55.644 5392 5392 D StorageNotification: onDiskScannedInternal (DiskInfo{disk:179,32}:
11-06 10:20:55.644 5392 5392 D StorageNotification: flags=SD size=63864569856 label= volumeCount=1
11-06 10:20:55.644 5392 5392 D StorageNotification: sysPath=/sys//devices/13560000.dwmmc2/mmc_host/mmc2/mmc2:aaaa/block/mmcblk1
11-06 10:20:55.644 5392 5392 D StorageNotification:
11-06 10:20:55.644 5392 5392 D StorageNotification: )
11-06 10:20:55.644 2652 2652 E audit : type=1300 audit(1541521255.625:347): arch=40000028 syscall=281 per=8 success=no exit=-13 a0=10 a1=2 a2=f a3=eb3da4e0 items=0 ppid=2757 pid=6197 auid=4294967295 uid=10008 gid=10008 euid=10008 suid=10008 fsuid=10008 egid=10008 sgid=10008 fsgid=10008 tty=(none) ses=4294967295 comm="UEventObserver" exe="/system/bin/app_process32" subj=u:r:priv_app:s0:c512,c768 key=(null)
11-06 10:20:55.645 3204 4259 D Notification: allPendingIntents
11-06 10:20:55.645 2837 2837 W keystore: ENTER remove operation from uid 10050
11-06 10:20:55.646 3204 4330 V RescueParty: Disabled because of manual property
11-06 10:20:55.646 3204 4330 D Debug : !@DumpState : SHIP
11-06 10:20:55.646 3204 4330 D Debug : !@DumpState : debug level:0x4f4c
11-06 10:20:55.646 3204 4330 D Debug : !@Dumpstate : Finally, system will skip dumpstate
11-06 10:20:55.646 2652 2652 E audit : type=1327 audit(1541521255.625:347): proctitle="com.android.systemui"
11-06 10:20:55.646 3204 4330 W ActivityManager: crash : com.android.systemui,0
11-06 10:20:55.646 3204 3224 D SecurityLogAgent:SEDenialService: Got Modify Event and sending Denial Intent for audit.log / "com.android.systemui"
11-06 10:20:55.647 3204 3224 W ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:0 com.android.server.SEDenialService$AuditFileObserver.onEvent:126 android.os.FileObserver$ObserverThread.onEvent:40 android.os.FileObserver$ObserverThread.observe:-2 android.os.FileObserver$ObserverThread.run:2
11-06 10:20:55.647 3204 4330 W ActivityManager: Process com.android.systemui has crashed too many times: killing!
11-06 10:20:55.648 5392 5392 D StorageNotification: start() notiListSize is [1]
11-06 10:20:55.648 5661 5661 I SEMS:SamsungAccount: Not Skip Name Validation by accountMCC
11-06 10:20:55.649 5392 5392 D StorageNotification: start() Notification ID (27)
11-06 10:20:55.649 5392 6197 I Process : Sending signal. PID: 5392 SIG: 9

You can find the full log: Here

Interestingly, if I reboot normally without replacing SystemUI, the system boots fine.

If I replace the SystemUI (even with a copy of what I currently have in the folder), it crashes upon reboot but works fine if I don't do a reboot

Can't fix it it with a recovery of the /system partition

I have to do a recovery of the /data partition, so I'm sure something gets messed up there

Can anybody help?