[Honor 5X ROMs, Kernels, Recoveries, & Other Develo] stuart32:
downgrade 20170222 to 20170213 gives Can't downgrade database from version 4 to 3

Hello, just for the record, I downgraded from lineage-14.1-20170222-nightly-kiwi to lineage-14.1-20170213-nightly-kiwi and the Phone, Messages and Contacts apps kept stopping:

--------- beginning of crash
02-27 11:05:06.336 4267 4290 E AndroidRuntime: FATAL EXCEPTION: CallLogProviderWorker
02-27 11:05:06.336 4267 4290 E AndroidRuntime: Process: android.process.acore, PID: 4267
02-27 11:05:06.336 4267 4290 E AndroidRuntime: android.database.sqlite.SQLiteException: Can't downgrade database from version 4 to 3
02-27 11:05:06.336 4267 4290 E AndroidRuntime:	at android.database.sqlite.SQLiteOpenHelper.onDowngrade(SQLiteOpenHelper.java:360)
02-27 11:05:06.336 4267 4290 E AndroidRuntime:	at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:254)
02-27 11:05:06.336 4267 4290 E AndroidRuntime:	at android.database.sqlite.SQLiteOpenHelper.getReadableDatabase(SQLiteOpenHelper.java:187)
02-27 11:05:06.336 4267 4290 E AndroidRuntime:	at com.android.providers.contacts.CallLogDatabaseHelper.getReadableDatabase(CallLogDatabaseHelper.java:216)
02-27 11:05:06.336 4267 4290 E AndroidRuntime:	at com.android.providers.contacts.CallLogDatabaseHelper.getProperty(CallLogDatabaseHelper.java:224)
02-27 11:05:06.336 4267 4290 E AndroidRuntime:	at com.android.providers.contacts.CallLogProvider.getLastSyncTime(CallLogProvider.java:712)
02-27 11:05:06.336 4267 4290 E AndroidRuntime:	at com.android.providers.contacts.CallLogProvider.syncEntriesFrom(CallLogProvider.java:571)
02-27 11:05:06.336 4267 4290 E AndroidRuntime:	at com.android.providers.contacts.CallLogProvider.syncEntries(CallLogProvider.java:555)
02-27 11:05:06.336 4267 4290 E AndroidRuntime:	at com.android.providers.contacts.CallLogProvider.performBackgroundTask(CallLogProvider.java:744)
02-27 11:05:06.336 4267 4290 E AndroidRuntime:	at com.android.providers.contacts.CallLogProvider.-wrap0(CallLogProvider.java)
02-27 11:05:06.336 4267 4290 E AndroidRuntime:	at com.android.providers.contacts.CallLogProvider$1.handleMessage(CallLogProvider.java:202)
02-27 11:05:06.336 4267 4290 E AndroidRuntime:	at android.os.Handler.dispatchMessage(Handler.java:102)
02-27 11:05:06.336 4267 4290 E AndroidRuntime:	at android.os.Looper.loop(Looper.java:154)
02-27 11:05:06.336 4267 4290 E AndroidRuntime:	at android.os.HandlerThread.run(HandlerThread.java:61)
02-27 11:05:06.354 4267 4281 E DatabaseUtils: Writing exception to parcel
02-27 11:05:06.354 4267 4281 E DatabaseUtils: android.database.sqlite.SQLiteException: Can't downgrade database from version 4 to 3
02-27 11:05:06.354 4267 4281 E DatabaseUtils:	at android.database.sqlite.SQLiteOpenHelper.onDowngrade(SQLiteOpenHelper.java:360)
02-27 11:05:06.354 4267 4281 E DatabaseUtils:	at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:254)
02-27 11:05:06.354 4267 4281 E DatabaseUtils:	at android.database.sqlite.SQLiteOpenHelper.getReadableDatabase(SQLiteOpenHelper.java:187)
02-27 11:05:06.354 4267 4281 E DatabaseUtils:	at com.android.providers.contacts.CallLogDatabaseHelper.getReadableDatabase(CallLogDatabaseHelper.java:216)
02-27 11:05:06.354 4267 4281 E DatabaseUtils:	at com.android.providers.contacts.CallLogProvider.query(CallLogProvider.java:282)
02-27 11:05:06.354 4267 4281 E DatabaseUtils:	at android.content.ContentProvider.query(ContentProvider.java:1020)
02-27 11:05:06.354 4267 4281 E DatabaseUtils:	at android.content.ContentProvider$Transport.query(ContentProvider.java:239)
02-27 11:05:06.354 4267 4281 E DatabaseUtils:	at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:112)
02-27 11:05:06.354 4267 4281 E DatabaseUtils:	at android.os.Binder.execTransact(Binder.java:565)
02-27 11:05:06.355 4235 4288 W CallLogNotifHelper: Exception when querying Contacts Provider for calls lookup

Using recovery and "adb shell", I deleted the databases (almost) indicated by [MENTION=5662620]BadDaemon[/MENTION] above:

~ # find /data -type f -name calllog.db -delete
~ # find /data -type f -name calllog_shadow.db -delete

20170213 is running again correctly. Thanks to [MENTION=5662620]BadDaemon[/MENTION]. I guess that I need to wipe if I want to upgrade to 20170222.