[Android General] ShaDisNX255:
Weird SQLite Log

Hey guys.

I've been trying to port a ROM, but get some errors on some stuff

01-16 19:52:54.850 1035 1035 E AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM PROCESS: main

01-16 19:52:54.850 1035 1035 E AndroidRuntime: java.lang.RuntimeException: Failed to start service com.android.server.UiModeManagerService: onStart threw an exception

01-16 19:52:54.850 1035 1035 E AndroidRuntime:	at com.android.server.SystemServiceManager.startService(SystemServiceManager.java)

01-16 19:52:54.850 1035 1035 E AndroidRuntime:	at com.android.server.SystemServer.startOtherServices(SystemServer.java)

01-16 19:52:54.850 1035 1035 E AndroidRuntime:	at com.android.server.SystemServer.run(SystemServer.java)

01-16 19:52:54.850 1035 1035 E AndroidRuntime:	at com.android.server.SystemServer.main(SystemServer.java)

01-16 19:52:54.850 1035 1035 E AndroidRuntime:	at java.lang.reflect.Method.invoke(Native Method)

01-16 19:52:54.850 1035 1035 E AndroidRuntime:	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)

01-16 19:52:54.850 1035 1035 E AndroidRuntime:	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java)

01-16 19:52:54.850 1035 1035 E AndroidRuntime: Caused by: java.lang.RuntimeException: Unable to get provider com.android.providers.settings.SettingsProvider: android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error (code 1806): Could not open database

01-16 19:52:54.850 1035 1035 E AndroidRuntime: #################################################################

01-16 19:52:54.850 1035 1035 E AndroidRuntime: Error Code : 1806 (SQLITE_CANTOPEN_EACCES)

01-16 19:52:54.850 1035 1035 E AndroidRuntime: Caused By : Application has no permission to open the specified database file.

01-16 19:52:54.850 1035 1035 E AndroidRuntime:	(unknown error (code 1806): Could not open database)

01-16 19:52:54.850 1035 1035 E AndroidRuntime: #################################################################

01-16 19:52:54.850 1035 1035 E AndroidRuntime:	at android.app.ActivityThread.installProvider(ActivityThread.java)

01-16 19:52:54.850 1035 1035 E AndroidRuntime:	at android.app.ActivityThread.acquireProvider(ActivityThread.java)

01-16 19:52:54.850 1035 1035 E AndroidRuntime:	at android.app.ContextImpl$ApplicationContentResolver.acquireProvider(ContextImpl.java)

01-16 19:52:54.850 1035 1035 E AndroidRuntime:	at android.content.ContentResolver.acquireProvider(ContentResolver.java)

01-16 19:52:54.850 1035 1035 E AndroidRuntime:	at android.provider.Settings$NameValueCache.lazyGetProvider(Settings.java)

01-16 19:52:54.850 1035 1035 E AndroidRuntime:	at android.provider.Settings$NameValueCache.getStringForUser(Settings.java)

01-16 19:52:54.850 1035 1035 E AndroidRuntime:	at android.provider.Settings$Secure.getStringForUser(Settings.java)

01-16 19:52:54.850 1035 1035 E AndroidRuntime:	at android.provider.Settings$Secure.getIntForUser(Settings.java)

01-16 19:52:54.850 1035 1035 E AndroidRuntime:	at android.provider.Settings$Secure.getInt(Settings.java)

01-16 19:52:54.850 1035 1035 E AndroidRuntime:	at com.android.server.UiModeManagerService.onStart(UiModeManagerService.java)

01-16 19:52:54.850 1035 1035 E AndroidRuntime:	... 7 more

01-16 19:52:54.850 1035 1035 E AndroidRuntime: Caused by: android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error (code 1806): Could not open database

01-16 19:52:54.850 1035 1035 E AndroidRuntime: #################################################################

01-16 19:52:54.850 1035 1035 E AndroidRuntime: Error Code : 1806 (SQLITE_CANTOPEN_EACCES)

01-16 19:52:54.850 1035 1035 E AndroidRuntime: Caused By : Application has no permission to open the specified database file.

01-16 19:52:54.850 1035 1035 E AndroidRuntime:	(unknown error (code 1806): Could not open database)

01-16 19:52:54.850 1035 1035 E AndroidRuntime: #################################################################

01-16 19:52:54.850 1035 1035 E AndroidRuntime:	at android.database.sqlite.SQLiteConnection.nativeOpen(Native Method)

01-16 19:52:54.850 1035 1035 E AndroidRuntime:	at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java)

01-16 19:52:54.850 1035 1035 E AndroidRuntime:	at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java)

01-16 19:52:54.850 1035 1035 E AndroidRuntime:	at android.database.sqlite.SQLiteConnectionPool.openConnectionLocked(SQLiteConnectionPool.java)

01-16 19:52:54.850 1035 1035 E AndroidRuntime:	at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java)

01-16 19:52:54.850 1035 1035 E AndroidRuntime:	at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java)

01-16 19:52:54.850 1035 1035 E AndroidRuntime:	at android.database.sqlite.SQLiteDatabase.openInner(SQLiteDatabase.java)

01-16 19:52:54.850 1035 1035 E AndroidRuntime:	at android.database.sqlite.SQLiteDatabase.open(SQLiteDatabase.java)

01-16 19:52:54.850 1035 1035 E AndroidRuntime:	at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java)

01-16 19:52:54.850 1035 1035 E AndroidRuntime:	at android.app.ContextImpl.openOrCreateDatabase(ContextImpl.java)

01-16 19:52:54.850 1035 1035 E AndroidRuntime:	at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java)

01-16 19:52:54.850 1035 1035 E AndroidRuntime:	at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java)

01-16 19:52:54.850 1035 1035 E AndroidRuntime:	at com.android.providers.settings.SettingsProvider$SettingsRegistry.migrateAllLegacySettingsIfNeeded(SettingsProvider.java:1789)

01-16 19:52:54.850 1035 1035 E AndroidRuntime:	at com.android.providers.settings.SettingsProvider$SettingsRegistry.<init>(SettingsProvider.java:1558)

01-16 19:52:54.850 1035 1035 E AndroidRuntime:	at com.android.providers.settings.SettingsProvider.onCreate(SettingsProvider.java:292)

01-16 19:52:54.850 1035 1035 E AndroidRuntime:	at android.content.ContentProvider.attachInfo(ContentProvider.java)

01-16 19:52:54.850 1035 1035 E AndroidRuntime:	at android.content.ContentProvider.attachInfo(ContentProvider.java)

01-16 19:52:54.850 1035 1035 E AndroidRuntime:	... 17 more

01-16 19:52:54.870 1035 1035 E android.os.Debug: THIS IS SYSTEM_SERVER.. store dumpState!!

01-16 19:52:54.910 2028 2028 I dumpstate: begin

01-16 19:52:54.910 2028 2028 I dumpstate: do_add_date(1),use_outfile(/data/log/dumpstate_sys_error),use_socket(0),do_vibrate(1)

01-16 19:52:54.910 2028 2028 I dumpstate: do_fb(0),do_broadcast(0)

01-16 19:52:54.920 2028 2028 I dumpstate: divided dump process start

I've tried to do the following:

-Replace libsqlite.so lib from port ROM

-Replace libsqlite.so lib from stock ROM

-Replace libsqlite_jni.so from port ROM

-Replace libsqlite_jni.so from stock ROM

-Wipe data (happens even after wipe data)

And I've given the following permissions every- time

set_metadata("/system/lib/libsqlite.so", "uid", 0, "gid", 0, "mode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_library_file:s0");
set_metadata("/system/lib/libsqlite_jni.so", "uid", 0, "gid", 0, "mode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_library_file:s0");

I'm attaching the full log as a zip if anyone can help me :)

Thanks!