[Galaxy S 4 Q&A, Help & Troubleshooting] sudheerg:
HI All,

I have downloaded the latest marshmallow repo for samsung s4 device and successfully built and flashed the ROM image on the samsung device, after reboot the system is stuck @ cynogen mod logo.

I have checked different forums for similar issues, but could not find one.

Here is the logcat capture.

01-04 07:18:23.524 3595 3595 E SQLiteDatabase:	at org.cyanogenmod.cmsettings.CMSettingsProvider.establishDbTracking(CMSettingsProvider.java:734)

01-04 07:18:23.524 3595 3595 E SQLiteDatabase:	at org.cyanogenmod.cmsettings.CMSettingsProvider.onCreate(CMSettingsProvider.

01-04 07:18:23.533 3595 3595 E System : ******************************************

01-04 07:18:23.537 3595 3595 E System : ************ Failure starting core service

01-04 07:18:23.537 3595 3595 E System : java.lang.RuntimeException: Unable to get provider org.cyanogenmod.cmsettings.CMSettingsProvider: java.lang.RuntimeException: Unable to get provider org.cyanogenmod.cmsettings.CMSettingsProvider: android.database.sqlite.SQLiteDatabaseLockedException: database is locked (code 5): , while compiling: PRAGMA journal_mode

01-04 07:18:23.537 3595 3595 E System :	at android.app.ActivityThread.installProvider(ActivityThread.java:5200)

01-04 07:18:23.537 3595 3595 E System :	at android.app.ActivityThread.installContentProviders(ActivityThread.java:4792)

01-04 07:18:23.537 3595 3595 E System :	at android.app.ActivityThread.installSystemProviders(ActivityThread.java:5378)

01-04 07:18:23.537 3595 3595 E System :	at com.android.server.am.ActivityManagerService.installSystemProviders(ActivityManagerService.java:10398)

01-04 07:18:23.537 3595 3595 E System :	at com.android.server.SystemServer.startOtherServices(SystemServer.java:497)

01-04 07:18:23.537 3595 3595 E System :	at com.android.server.SystemServer.run(SystemServer.java:287)

01-04 07:18:23.537 3595 3595 E System :	at com.android.server.SystemServer.main(SystemServer.java:172)

01-04 07:18:23.537 3595 3595 E System :	at java.lang.reflect.Method.invoke(Native Method)

01-04 07:18:23.537 3595 3595 E System :	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)

01-04 07:18:23.537 3595 3595 E System :	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

01-04 07:18:23.537 3595 3595 E System : Caused by: java.lang.RuntimeException: Unable to get provider org.cyanogenmod.cmsettings.CMSettingsProvider: android.database.sqlite.SQLiteDatabaseLockedException: database is locked (code 5): , while compiling: PRAGMA journal_mode

01-04 07:18:23.537 3595 3595 E System :	at android.app.ActivityThread.installProvider(ActivityThread.java:5200)

01-04 07:18:23.537 3595 3595 E System :	at android.app.ActivityThread.acquireProvider(ActivityThread.java:4833)

01-04 07:18:23.537 3595 3595 E System :	at android.app.ContextImpl$ApplicationContentResolver.acquireProvider(ContextImpl.java:2041)

01-04 07:18:23.537 3595 3595 E System :	at android.content.ContentResolver.acquireProvider(ContentResolver.java:1457)

01-04 07:18:23.537 3595 3595 E System :	at cyanogenmod.providers.CMSettings$NameValueCache.lazyGetProvider(CMSettings.java:164)

01-04 07:18:23.537 3595 3595 E System :	at cyanogenmod.providers.CMSettings$NameValueCache.putStringForUser(CMSettings.java:184)

01-04 07:18:23.537 3595 3595 E System :	at cyanogenmod.providers.CMSettings$System.putStringForUser(CMSettings.java:521)

01-04 07:18:23.537 3595 3595 E System :	at com.android.providers.settings.SettingsProvider$SettingsRegistry$UpgradeController.forceMigrateProfilesEnabled(SettingsProvider.java:2232)

01-04 07:18:23.537 3595 3595 E System :	at com.android.providers.settings.SettingsProvider$SettingsRegistry$UpgradeController.upgradeIfNeededLocked(SettingsProvider.java:2026)

01-04 07:18:23.537 3595 3595 E System :	at com.android.providers.settings.SettingsProvider$SettingsRegistry.ensureSettingsForUserLocked(SettingsProvider.java:1554)

01-04 07:18:23.537 3595 3595 E System :	at com.android.providers.settings.SettingsProvider$SettingsRegistry.peekSettingsStateLocked(SettingsProvider.java:1669)

01-04 07:18:23.537 3595 3595 E System :	at com.android.providers.settings.SettingsProvider$SettingsRegistry.getSettingLocked(SettingsProvider.java:1632)

01-04 07:18:23.537 3595 3595 E System :	at com.android.providers.settings.SettingsProvider.getGlobalSetting(SettingsProvider.java:631)

01-04 07:18:23.537 3595 3595 E System :	at com.android.providers.settings.SettingsProvider.call(SettingsProvider.java:236)

01-04 07:18:23.537 3595 3595 E System :	at android.content.ContentProvider$Transport.call(ContentProvider.java:398)

01-04 07:18:23.537 3595 3595 E System :	at android.provider.Settings$NameValueCache.getStringForUser(Settings.java:1385)

01-04 07:18:23.537 3595 3595 E System :	at android.provider.Settings$Global.getStringForUser(Settings.java:8283)

01-04 07:18:23.537 3595 3595 E System :	at android.provider.Settings$Global.getString(Settings.java:8272)

01-04 07:18:23.537 3595 3595 E System :	at org.cyanogenmod.cmsettings.CMDatabaseHelper.onUpgrade(CMDatabaseHelper.java:194)

01-04 07:18:23.537 3595 3595 E System :	at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:256)

01-04 07:18:23.537 3595 3595 E System :	at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:163)

01-04 07:18:23.537 3595 3595 E System :	at org.cyanogenmod.cmsettings.CMSettingsProvider.establishDbTracking(CMSettingsProvider.java:734)

01-04 07:18:23.537 3595 3595 E System :	at org.cyanogenmod.cmsettings.CMSettingsProvider.onCreate(CMSettingsProvider.java:112)

01-04 07:18:23.537 3595 3595 E System :	at android.content.ContentProvider.attachInfo(ContentProvider.java:1748)

01-04 07:18:23.537 3595 3595 E System :	at android.content.ContentProvider.attachInfo(ContentProvider.java:1723)

01-04 07:18:23.537 3595 3595 E System :	at android.app.ActivityThread.installProvider(ActivityThread.java:5197)

01-04 07:18:23.537 3595 3595 E System :	... 9 more

01-04 07:18:23.537 3595 3595 E System : Caused by: android.database.sqlite.SQLiteDatabaseLockedException: database is locked (code 5): , while compiling: PRAGMA journal_mode

01-04 07:18:23.537 3595 3595 E System :	at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)

01-04 07:18:23.537 3595 3595 E System :	at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:889)

01-04 07:18:23.537 3595 3595 E System :	at android.database.sqlit

01-04 07:18:23.537 3595 3595 I SystemServer: Input Method Service

01-04 07:18:23.687 3595 3595 I SystemServer: Accessibility Manager

01-04 07:18:23.693 3595 3595 W SystemServer: ***********************************************

01-04 07:18:23.693 3595 3595 E SystemServer: BOOT FAILURE making display ready

01-04 07:18:23.693 3595 3595 E SystemServer: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.android.server.wm.WindowManagerService.displayReady()' on a null object reference

01-04 07:18:23.693 3595 3595 E SystemServer:	at com.android.server.SystemServer.startOtherServices(SystemServer.java:586)

01-04 07:18:23.693 3595 3595 E SystemServer:	at com.android.server.SystemServer.run(SystemServer.java:287)

01-04 07:18:23.693 3595 3595 E SystemServer:	at com.android.server.SystemServer.main(SystemServer.java:172)

01-04 07:18:23.693 3595 3595 E SystemServer:	at java.lang.reflect.Method.invoke(Native Method)

01-04 07:18:23.693 3595 3595 E SystemServer:	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)

01-04 07:18:23.693 3595 3595 E SystemServer:	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

01-04 07:18:23.695 3595 3595 I SystemServiceManager: Starting com.android.server.MountService$Lifecycle

01-04 07:18:23.707 3595 3947 D MountService: Thinking about reset, mSystemReady=false, mDaemonConnected=true

01-04 07:18:23.707 3595 3947 D MountService: Thinking about reset, mSystemReady=false, mDaemonConnected=true

01-04 07:18:23.707 3595 3595 I SystemServiceManager: Starting com.android.server.UiModeManagerService

01-04 07:18:23.708 3595 3947 D CryptdConnector: SND -> {1 cryptfs getfield SystemLocale}

01-04 07:18:23.711 3595 3595 I ActivityManager: Config changes=200 {1.0 ?mcc?mnc en_US ldltr ?swdp ?wdp ?hdp ?density ?lsize ?long ?orien ?touch ?keyb/?/? ?nav/? s.2 themeResource=null}

01-04 07:18:23.712 2495 2708 I Ext4Crypt: ext4 crypto complete called on /data

01-04 07:18:23.712 2495 2708 I Ext4Crypt: No master key, so not ext4enc

01-04 07:18:23.713 3595 3949 D CryptdConnector: RCV <- {200 1 -1}

01-04 07:18:23.716 3595 3947 W MountService: No primary storage mounted!

01-04 07:18:23.716 3595 3947 D VoldConnector: SND -> {1 asec list}

01-04 07:18:23.717 3595 3595 W PackageManager: No disk maintenance in 260853717; running immediately

01-04 07:18:23.718 3595 3948 D VoldConnector: RCV <- {200 1 asec operation succeeded}

01-04 07:18:23.720 3595 3595 W SystemServer: ***********************************************

01-04 07:18:23.720 3595 3947 I PackageManager: No secure containers found

01-04 07:18:23.720 3595 3947 W PackageManager: Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH in package com.android.providers.calendar

01-04 07:18:23.720 3595 3947 W PackageManager: Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH.cl in package com.android.providers.calendar

01-04 07:18:23.720 3595 3595 E SystemServer: BOOT FAILURE performing boot dexopt

01-04 07:18:23.720 3595 3595 E SystemServer: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.android.server.wm.WindowManagerService.showBootMessage(java.lang.CharSequence, boolean)' on a null object reference

01-04 07:18:23.720 3595 3595 E SystemServer:	at com.android.server.am.ActivityManagerService.showBootMessage(ActivityManagerService.java:6543)

01-04 07:18:23.720 3595 3595 E SystemServer:	at com.android.server.pm.PackageManagerService.performBootDexOpt(PackageManagerService.java:6318)

01-04 07:18:23.720 3595 3595 E SystemServer:	at com.android.server.SystemServer.startOtherServices(SystemServer.java:613)

01-04 07:18:23.720 3595 3595 E SystemServer:	at com.android.server.SystemServer.run(SystemServer.java:287)

01-04 07:18:23.720 3595 3595 E SystemServer:	at com.android.server.SystemServer.main(SystemServer.java:172)

01-04 07:18:23.720 3595 3595 E SystemServer:	at java.lang.reflect.Method.invoke(Native Method)

01-04 07:18:23.720 3595 3595 E SystemServer:	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)

01-04 07:18:23.720 3595 3595 E SystemServer:	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

01-04 07:18:23.720 3595 3947 W PackageManager: Not granting permission android.permission.REAL_GET_TASKS to package org.cyanogenmod.wallpapers.photophase (protectionLevel=18 flags=0x3818be45)

01-04 07:18:23.721 3595 3947 W PackageManager: Unknown permission android.permission.ACCESS_SUPERUSER in package com.ota.updates

01-04 07:18:23.721 3595 3595 E System : ******************************************

01-04 07:18:23.721 3595 3947 W PackageManager: Not granting permission android.permission.ACCESS_DOWNLOAD_MANAGER to package com.android.browser (protectionLevel=18 flags=0x3849be45)

01-04 07:18:23.722 3595 3947 W PackageManager: Not granting permission android.permission.SEND_DOWNLOAD_COMPLETED_INTENTS to package com.android.browser (protectionLevel=2 flags=0x3849be45)

01-04 07:18:23.722 3595 3595 E System : ************ Failure starting system services

01-04 07:18:23.722 3595 3595 E System : java.lang.NullPointerException: Attempt to invoke virtual method 'void com.android.server.wm.WindowManagerService.showBootMessage(java.lang.CharSequence, boolean)' on a null object reference

01-04 07:18:23.722 3595 3595 E System :	at com.android.server.am.ActivityManagerService.showBootMessage(ActivityManagerService.java:6543)

01-04 07:18:23.722 3595 3595 E System :	at com.android.server.SystemServer.startOtherServices(SystemServer.java:619)

01-04 07:18:23.722 3595 3595 E System :	at com.android.server.SystemServer.run(SystemServer.java:287)

01-04 07:18:23.722 3595 3595 E System :	at com.android.server.SystemServer.main(SystemServer.java:172)

01-04 07:18:23.722 3595 3595 E System :	at java.lang.reflect.Method.invoke(Native Method)

01-04 07:18:23.722 3595 3595 E System :	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)

01-04 07:18:23.722 3595 3595 E System :	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

01-04 07:18:23.722 3595 3595 D AndroidRuntime: Shutting down VM

--------- beginning of crash

01-04 07:18:23.722 3595 3595 E AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM PROCESS: main

01-04 07:18:23.722 3595 3595 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.android.server.wm.WindowManagerService.showBootMessage(java.lang.CharSequence, boolean)' on a null object reference

01-04 07:18:23.722 3595 3595 E AndroidRuntime:	at com.android.server.am.ActivityManagerService.showBootMessage(ActivityManagerService.java:6543)

01-04 07:18:23.722 3595 3595 E AndroidRuntime:	at com.android.server.SystemServer.startOtherServices(SystemServer.java:619)

01-04 07:18:23.722 3595 3595 E AndroidRuntime:	at com.android.server.SystemServer.run(SystemServer.java:287)

01-04 07:18:23.722 3595 3595 E AndroidRuntime:	at com.android.server.SystemServer.main(SystemServer.java:172)

01-04 07:18:23.722 3595 3595 E AndroidRuntime:	at java.lang.reflect.Method.invoke(Native Method)

01-04 07:18:23.722 3595 3595 E AndroidRuntime:	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)

01-04 07:18:23.722 3595 3595 E AndroidRuntime:	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

01-04 07:18:23.722 3595 3947 W PackageManager: Unknown permission com.cyngn.stats.SEND_ANALYTICS in package com.cyanogenmod.setupwizard

01-04 07:18:23.722 3595 3947 W PackageManager: Unknown permission com.cyanogen.permission.REQUEST_KILL_SWITCH_OP in package com.cyanogenmod.setupwizard

01-04 07:18:23.723 3595 3947 W PackageManager: Unknown permission com.cyanogen.ambient.permission.BIND_INCALL_SERVICE in package com.android.contacts

01-04 07:18:23.723 3595 3947 W PackageManager: Unknown permission com.cyanogen.ambient.permission.PLUGIN_STATUS_CHANGED in package com.android.contacts

01-04 07:18:23.723 3595 3595 I Process : Sending signal. PID: 3595 SIG: 9

Thanks