[Moto G Android Development] DoctorStrange96:
I can confirm what [MENTION=4552688]DarkVanguard[/MENTION] said. The only way to get the latest build to work is to dirty flash it atop an older one. Otherwise it'll just bootloop. And i cant get any logs since adb is disabled by default.

---------- Post added at 01:46 ---------- Previous post was at 01:20 ----------

Okay... We have this...

01-17 01:43:18.189 4871 4871 E AndroidRuntime: FATAL EXCEPTION: main
01-17 01:43:18.189 4871 4871 E AndroidRuntime: Process: com.android.systemui, PID: 4871
01-17 01:43:18.189 4871 4871 E AndroidRuntime: java.lang.RuntimeException: Unable to create service com.android.systemui.keyguard.KeyguardService: java.lang.IllegalStateException: Cannot broadcast before boot completed
01-17 01:43:18.189 4871 4871 E AndroidRuntime: at android.app.ActivityThread.handleCreateService(ActivityThread.java:2931)
01-17 01:43:18.189 4871 4871 E AndroidRuntime: at android.app.ActivityThread.-wrap4(ActivityThread.java)
01-17 01:43:18.189 4871 4871 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1446)
01-17 01:43:18.189 4871 4871 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
01-17 01:43:18.189 4871 4871 E AndroidRuntime: at android.os.Looper.loop(Looper.java:148)
01-17 01:43:18.189 4871 4871 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5466)
01-17 01:43:18.189 4871 4871 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
01-17 01:43:18.189 4871 4871 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
01-17 01:43:18.189 4871 4871 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
01-17 01:43:18.189 4871 4871 E AndroidRuntime: at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:114)
01-17 01:43:18.189 4871 4871 E AndroidRuntime: Caused by: java.lang.IllegalStateException: Cannot broadcast before boot completed
01-17 01:43:18.189 4871 4871 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:1628)
01-17 01:43:18.189 4871 4871 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:1573)
01-17 01:43:18.189 4871 4871 E AndroidRuntime: at com.android.internal.appwidget.IAppWidgetService$Stub$Proxy.bindAppWidgetId(IAppWidgetService.java:868)
01-17 01:43:18.189 4871 4871 E AndroidRuntime: at android.appwidget.AppWidgetManager.bindAppWidgetIdIfAllowed(AppWidgetManager.java:1077)
01-17 01:43:18.189 4871 4871 E AndroidRuntime: at android.appwidget.AppWidgetManager.bindAppWidgetIdIfAllowed(AppWidgetManager.java:878)
01-17 01:43:18.189 4871 4871 E AndroidRuntime: at com.android.systemui.recents.misc.SystemServicesProxy.bindSearchAppWidget(SystemServicesProxy.java:615)
01-17 01:43:18.189 4871 4871 E AndroidRuntime: at com.android.systemui.recents.misc.SystemServicesProxy.getOrBindSearchAppWidget(SystemServicesProxy.java:571)
01-17 01:43:18.189 4871 4871 E AndroidRuntime: at com.android.systemui.recents.Recents.reloadHeaderBarLayout(Recents.java:515)
01-17 01:43:18.189 4871 4871 E AndroidRuntime: at com.android.systemui.recents.Recents.start(Recents.java:259)
01-17 01:43:18.189 4871 4871 E AndroidRuntime: at com.android.systemui.SystemUIApplication.startServicesIfNeeded(SystemUIApplication.java:126)
01-17 01:43:18.189 4871 4871 E AndroidRuntime: at com.android.systemui.keyguard.KeyguardService.onCreate(KeyguardService.java:45)
01-17 01:43:18.189 4871 4871 E AndroidRuntime: at android.app.ActivityThread.handleCreateService(ActivityThread.java:2921)
01-17 01:43:18.189 4871 4871 E AndroidRuntime: ... 9 more

And this.

01-17 01:43:18.255 4754 4769 V KeyguardServiceDelegate: *** Keyguard started
01-17 01:43:18.255 4754 4769 E ActivityManager: Attempt to launch receivers of broadcast intent Intent { act=com.android.internal.action.KEYGUARD_SERVICE_STATE_CHANGED (has extras) } before boot completion
01-17 01:43:18.256 4754 4769 E AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM PROCESS: android.ui
01-17 01:43:18.256 4754 4769 E AndroidRuntime: java.lang.IllegalStateException: Cannot broadcast before boot completed
01-17 01:43:18.256 4754 4769 E AndroidRuntime: at com.android.server.am.ActivityManagerService.verifyBroadcastLocked(ActivityManagerService.java:17227)
01-17 01:43:18.256 4754 4769 E AndroidRuntime: at com.android.server.am.ActivityManagerService.broadcastIntent(ActivityManagerService.java:17246)
01-17 01:43:18.256 4754 4769 E AndroidRuntime: at android.app.ContextImpl.sendBroadcastAsUser(ContextImpl.java:961)
01-17 01:43:18.256 4754 4769 E AndroidRuntime: at android.app.ContextImpl.sendBroadcastAsUser(ContextImpl.java:950)
01-17 01:43:18.256 4754 4769 E AndroidRuntime: at com.android.server.policy.keyguard.KeyguardServiceDelegate.sendStateChangeBroadcast(KeyguardServiceDelegate.java:89)
01-17 01:43:18.256 4754 4769 E AndroidRuntime: at com.android.server.policy.keyguard.KeyguardServiceDelegate.onBootCompleted(KeyguardServiceDelegate.java:404)
01-17 01:43:18.256 4754 4769 E AndroidRuntime: at com.android.server.policy.PhoneWindowManager.systemBooted(PhoneWindowManager.java:7238)
01-17 01:43:18.256 4754 4769 E AndroidRuntime: at com.android.server.wm.WindowManagerService.enableScreenAfterBoot(WindowManagerService.java:5789)
01-17 01:43:18.256 4754 4769 E AndroidRuntime: at com.android.server.am.ActivityManagerService.enableScreenAfterBoot(ActivityManagerService.java:6439)
01-17 01:43:18.256 4754 4769 E AndroidRuntime: at com.android.server.am.ActivityManagerService.ensureBootCompleted(ActivityManagerService.java:6644)
01-17 01:43:18.256 4754 4769 E AndroidRuntime: at com.android.server.am.ActivityManagerService$UiHandler.handleMessage(ActivityManagerService.java:1487)
01-17 01:43:18.256 4754 4769 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
01-17 01:43:18.256 4754 4769 E AndroidRuntime: at android.os.Looper.loop(Looper.java:148)
01-17 01:43:18.256 4754 4769 E AndroidRuntime: at android.os.HandlerThread.run(HandlerThread.java:61)
01-17 01:43:18.256 4754 4769 E AndroidRuntime: at com.android.server.ServiceThread.run(ServiceThread.java:46)

Something is causing Keyguard to broadcast an Intent too early, thus bringing SystemUI and consequently the whole system down. But i dont have the foggiest idea about what might be that "something".

Edit: Looks like i found the culprit.

01-17 01:43:18.187 4754 4766 E ActivityManager: Attempt to launch receivers of broadcast intent Intent { act=android.appwidget.action.APPWIDGET_UPDATE cmp=com.google.android.googlequicksearchbox/.SearchWidgetProvider (has extras) } before boot completion

This happens before the systemui crash. And regardless of having xposed installed (as in my case) or not.