[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] kaeelXX:
Titanium backup and whatsapp crash on start

Hi there, I tried to update to last version, but I still have this problem:

08-12 03:04:52.770 6532-6559/? E/MediaProvider: failed to open database external.db
android.database.sqlite.SQLiteException: Can't downgrade database from version 900 to 800
at android.database.sqlite.SQLiteOpenHelper.onDowngrade(SQLiteOpenHelper.java:360)
at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:254)
at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:163)
at com.android.providers.media.MediaProvider$DatabaseHelper.getWritableDatabase(MediaProvider.java:425)
at com.android.providers.media.MediaProvider.delete(MediaProvider.java:4228)
at android.content.ContentProvider$Transport.delete(ContentProvider.java:340)
at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:206)
at android.os.Binder.execTransact(Binder.java:565)
08-12 03:04:52.776 6532-6559/? E/DatabaseUtils: Writing exception to parcel
java.lang.NullPointerException: Attempt to invoke virtual method 'android.database.Cursor android.database.sqlite.SQLiteDatabase.query(java.lang.String, java.lang.String[], java.lang.String, java.lang.String[], java.lang.String, java.lang.String, java.lang.String)' on a null object reference
at com.android.providers.media.MediaProvider.delete(MediaProvider.java:4236)
at android.content.ContentProvider$Transport.delete(ContentProvider.java:340)
at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:206)
at android.os.Binder.execTransact(Binder.java:565)
08-12 03:04:52.778 11028-11151/? E/AndroidRuntime: FATAL EXCEPTION: Thread-11
Process: com.keramidas.TitaniumBackup, PID: 11028
java.lang.NullPointerException: Attempt to invoke virtual method 'android.database.Cursor android.database.sqlite.SQLiteDatabase.query(java.lang.String, java.lang.String[], java.lang.String, java.lang.String[], java.lang.String, java.lang.String, java.lang.String)' on a null object reference
at android.os.Parcel.readException(Parcel.java:1690)
at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:183)
at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:135)
at android.content.ContentProviderProxy.delete(ContentProviderNative.java:544)
at android.content.ContentResolver.delete(ContentResolver.java:1376)
at o.dG.run(Source:169)
08-12 03:04:52.779 6532-11150/? E/MediaScannerService: bad path /storage/emulated/0/TitaniumBackup/com.almalence.opencameditor-20170812-010451.properties in scanFile()
java.lang.NullPointerException: Attempt to invoke interface method 'boolean android.database.Cursor.moveToFirst()' on a null object reference
at android.media.MediaScanner.makeEntryFor(MediaScanner.java:1616)
at android.media.MediaScanner$MyMediaScannerClient.beginFile(MediaScanner.java:534)
at android.media.MediaScanner$MyMediaScannerClient.doScanFile(MediaScanner.java:588)
at android.media.MediaScanner.scanSingleFile(MediaScanner.java:1449)
at com.android.providers.media.MediaScannerService.scanFile(MediaScannerService.java:172)
at com.android.providers.media.MediaScannerService.-wrap0(MediaScannerService.java)
at com.android.providers.media.MediaScannerService$ServiceHandler.handleMessage(MediaScannerService.java:222)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at com.android.providers.media.MediaScannerService.run(MediaScannerService.java:163)
at java.lang.Thread.run(Thread.java:761)
08-12 03:04:52.813 6532-11150/? E/MediaScannerService: bad path /storage/emulated/0/TitaniumBackup/com.almalence.opencameditor-20170812-010451.tar.gz in scanFile()
java.lang.NullPointerException: Attempt to invoke interface method 'boolean android.database.Cursor.moveToFirst()' on a null object reference
at android.media.MediaScanner.makeEntryFor(MediaScanner.java:1616)
at android.media.MediaScanner$MyMediaScannerClient.beginFile(MediaScanner.java:534)
at android.media.MediaScanner$MyMediaScannerClient.doScanFile(MediaScanner.java:588)
at android.media.MediaScanner.scanSingleFile(MediaScanner.java:1449)
at com.android.providers.media.MediaScannerService.scanFile(MediaScannerService.java:172)
at com.android.providers.media.MediaScannerService.-wrap0(MediaScannerService.java)
at com.android.providers.media.MediaScannerService$ServiceHandler.handleMessage(MediaScannerService.java:222)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at com.android.providers.media.MediaScannerService.run(MediaScannerService.java:163)
at java.lang.Thread.run(Thread.java:761)

Steps to reproduce: open titanium backup -> massa actions -> backup all applications and system settings.

when I open whatsapp, I ahve the same problem: the application crashes after a second:

08-12 03:10:17.461 6532-7603/? E/MediaProvider: failed to open database external.db
android.database.sqlite.SQLiteException: Can't downgrade database from version 900 to 800
at android.database.sqlite.SQLiteOpenHelper.onDowngrade(SQLiteOpenHelper.java:360)
at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:254)
at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:163)
at com.android.providers.media.MediaProvider$DatabaseHelper.getWritableDatabase(MediaProvider.java:425)
at com.android.providers.media.MediaProvider.delete(MediaProvider.java:4228)
at android.content.ContentProvider$Transport.delete(ContentProvider.java:340)
at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:206)
at android.os.Binder.execTransact(Binder.java:565)
08-12 03:10:17.463 6532-7603/? E/DatabaseUtils: Writing exception to parcel
java.lang.NullPointerException: Attempt to invoke virtual method 'android.database.Cursor android.database.sqlite.SQLiteDatabase.query(java.lang.String, java.lang.String[], java.lang.String, java.lang.String[], java.lang.String, java.lang.String, java.lang.String)' on a null object reference
at com.android.providers.media.MediaProvider.delete(MediaProvider.java:4236)
at android.content.ContentProvider$Transport.delete(ContentProvider.java:340)
at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:206)
at android.os.Binder.execTransact(Binder.java:565)
08-12 03:10:17.472 10063-10134/? E/AndroidRuntime: FATAL EXCEPTION: WhatsApp Worker #5
Process: com.whatsapp, PID: 10063
java.lang.NullPointerException: Attempt to invoke virtual method 'android.database.Cursor android.database.sqlite.SQLiteDatabase.query(java.lang.String, java.lang.String[], java.lang.String, java.lang.String[], java.lang.String, java.lang.String, java.lang.String)' on a null object reference
at android.os.Parcel.readException(Parcel.java:1690)
at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:183)
at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:135)
at android.content.ContentProviderProxy.delete(ContentProviderNative.java:544)
at android.content.ContentResolver.delete(ContentResolver.java:1376)
at com.whatsapp.data.ai.a(CoreMessageStore.java:538)
at com.whatsapp.data.ai.a(CoreMessageStore.java:824)
at com.whatsapp.data.ec.b(StatusMessageStore.java:164)
at com.whatsapp.aph.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at com.whatsapp.util.cd$2.a(WhatsAppWorkers.java:52)
at com.whatsapp.util.cf.run(Unknown Source)
at java.lang.Thread.run(Thread.java:761)
08-12 03:10:17.534 10063-10063/? E/RecyclerView: No adapter attached; skipping layout
08-12 03:10:17.597 6532-6557/? E/MediaProvider: failed to open database external.db
android.database.sqlite.SQLiteException: Can't downgrade database from version 900 to 800
at android.database.sqlite.SQLiteOpenHelper.onDowngrade(SQLiteOpenHelper.java:360)
at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:254)
at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:163)
at com.android.providers.media.MediaProvider$DatabaseHelper.getWritableDatabase(MediaProvider.java:425)
at com.android.providers.media.MediaProvider.delete(MediaProvider.java:4228)
at android.content.ContentProvider$Transport.delete(ContentProvider.java:340)
at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:206)
at android.os.Binder.execTransact(Binder.java:565)
08-12 03:10:17.600 6532-6557/? E/DatabaseUtils: Writing exception to parcel
java.lang.NullPointerException: Attempt to invoke virtual method 'android.database.Cursor android.database.sqlite.SQLiteDatabase.query(java.lang.String, java.lang.String[], java.lang.String, java.lang.String[], java.lang.String, java.lang.String, java.lang.String)' on a null object reference
at com.android.providers.media.MediaProvider.delete(MediaProvider.java:4236)
at android.content.ContentProvider$Transport.delete(ContentProvider.java:340)
at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:206)
at android.os.Binder.execTransact(Binder.java:565)
08-12 03:10:17.686 5245-5373/? E/InputDispatcher: channel '4f6c45d com.whatsapp/com.whatsapp.HomeActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
08-12 03:10:17.689 5245-5373/? E/InputDispatcher: channel 'a74d188 com.whatsapp/com.whatsapp.Main (server)' ~ Channel is unrecoverably broken and will be disposed!