At some point, the patch in com.android.server.wm.WindowManagerService.addWindow broke. Causing it to not boot anymore, the addWindow method is being rejected at boot-time.
Here is the paste of the output on logcat: https://ghostbin.com/paste/w5gt3
TLDR; [0x4BD] monitor-exit on non-object (Undefined)
Here is a tree to test with: https://gitlab.com/h4ndshake/flyme_devices_motorola_ghost
TLDR²; (The method is located at 14478-16533) https://gitlab.com/h4ndshake/flyme_devices_motorola_ghost/blob/72969ae206f5c3b7d79229858ad7d0dd574cb4e1/services.jar.out/smali/com/android/server/wm/WindowManagerService.smali