[Moto G Original Android Development] Massedil:
For information, if someone encounters this bootloop problem.

I was trying to update an old cyanogenmod device to latest LineageOS device following this tutorial :

https://wiki.lineageos.org/devices/falcon/install

I was facing a bootloop after rebooting to system. I never succeed to access LineageOS after waiting more than 1 hour.

Looking in the sytem logs via TWRP (/data/system/dropbox/), I found this :

android.util.Log$TerribleFailure: BOOT FAILURE making Network Managment Service ready
at android.util.Log.wtf(Log.java:295)
at android.util.Slog.wtf(Slog.java:116)
at com.android.server.SystemServer.reportWtf(SystemServer.java:389)
at com.android.server.SystemServer.-wrap0(SystemServer.java)
at com.android.server.SystemServer$2.run(SystemServer.java:1507)
at com.android.server.am.ActivityManagerService.systemReady(ActivityManagerService.java:13578)
at com.android.server.SystemServer.startOtherServices(SystemServer.java:1466)
at com.android.server.SystemServer.run(SystemServer.java:368)
at com.android.server.SystemServer.main(SystemServer.java:237)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)
Caused by: java.lang.NullPointerException: Attempt to invoke interface method 'int android.security.IKeystoreService.exist(java.lang.String, int)' on a null object reference
at android.security.KeyStore.contains(KeyStore.java:200)
at android.security.KeyStore.contains(KeyStore.java:208)
at com.android.server.net.LockdownVpnTracker.isEnabled(LockdownVpnTracker.java:90)
at com.android.server.NetworkManagementService.prepareNativeDaemon(NetworkManagementService.java:722)
at com.android.server.NetworkManagementService.systemReady(NetworkManagementService.java:366)
at com.android.server.SystemServer$2.run(SystemServer.java:1505)
... 7 more

java.lang.RuntimeException: Error receiving broadcast Intent { act=android.intent.action.USER_STARTED flg=0x50000010 (has extras) } in com.android.server.ConnectivityService$3@6dea678
at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:1132)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at com.android.server.SystemServer.run(SystemServer.java:383)
at com.android.server.SystemServer.main(SystemServer.java:237)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)
Caused by: java.lang.NullPointerException: Attempt to invoke interface method 'int android.security.IKeystoreService.exist(java.lang.String, int)' on a null object reference
at android.security.KeyStore.contains(KeyStore.java:200)
at android.security.KeyStore.contains(KeyStore.java:208)
at com.android.server.net.LockdownVpnTracker.isEnabled(LockdownVpnTracker.java:90)
at com.android.server.ConnectivityService.onUserStart(ConnectivityService.java:4006)
at com.android.server.ConnectivityService.-wrap28(ConnectivityService.java)
at com.android.server.ConnectivityService$3.onReceive(ConnectivityService.java:4060)
at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:1122)
... 8 more

To solve the problem, I have installed the latest official ROM found here :

https://xdaforums.com/moto-g/development/rom-stock-motorola-lollipop-rom-t3017510

But I needed to know what model of the Moto G I had : XT1028, XT1031, XT1032, XT1033, … ?

To find this, in download mode (fastboot mode), just choose to display the "code" part. This will display some QR Code and one with the model name.

My phone was the Moto G "XT1033".

I have chosen and installed in TWRP the ROM :

XT1033_Retail_Asia_51_Untouched.zip

After that, I followed again the LineageOS tutorial successfully, this time !