Доброго времени суток!
Телефон Xiaomi Redmi Note 8T, после отката на сток (прошивка MIUI Global 12.5.6, RCXMIXM) перестал включаться Bluetooth. До этого шил на него Pixel Experience (Android 11) с официального сайта через TWRP-рекавери. Ренее на стоке проблем с BT не было.
Покопавшись в логах, обнаружил, что приложение BT-провайдера не может найти файл SQLite-базы данных:
Цитата:
04-18 11:59:29.152 2357 2357 E AndroidRuntime: FATAL EXCEPTION: main
04-18 11:59:29.152 2357 2357 E AndroidRuntime: Process: com.android.bluetooth, PID: 2357
04-18 11:59:29.152 2357 2357 E AndroidRuntime: java.lang.RuntimeException: Unable to get provider com.android.bluetooth.provider.BTDeviceInfoContentProvider: android.database.sqlite.SQLiteCantOpenDatabaseException: Cannot open database '/data/user_de/0/com.android.bluetooth/databases/deviceinfo.db': Directory /data/user_de/0/com.android.bluetooth/databases doesn't exist
04-18 11:59:29.152 2357 2357 E AndroidRuntime: at android.app.ActivityThread.installProvider(ActivityThread.java:7633)
04-18 11:59:29.152 2357 2357 E AndroidRuntime: at android.app.ActivityThread.installContentProviders(ActivityThread.java:7107)
04-18 11:59:29.152 2357 2357 E AndroidRuntime: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6980)
04-18 11:59:29.152 2357 2357 E AndroidRuntime: at android.app.ActivityThread.access$1600(ActivityThread.java:257)
04-18 11:59:29.152 2357 2357 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1993)
04-18 11:59:29.152 2357 2357 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106)
04-18 11:59:29.152 2357 2357 E AndroidRuntime: at android.os.Looper.loop(Looper.java:236)
04-18 11:59:29.152 2357 2357 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:8057)
04-18 11:59:29.152 2357 2357 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
04-18 11:59:29.152 2357 2357 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:656)
04-18 11:59:29.152 2357 2357 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:967)
04-18 11:59:29.152 2357 2357 E AndroidRuntime: Caused by: android.database.sqlite.SQLiteCantOpenDatabaseException: Cannot open database '/data/user_de/0/com.android.bluetooth/databases/deviceinfo.db': Directory /data/user_de/0/com.android.bluetooth/databases doesn't exist
04-18 11:59:29.152 2357 2357 E AndroidRuntime: at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:252)
04-18 11:59:29.152 2357 2357 E AndroidRuntime: at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:205)
04-18 11:59:29.152 2357 2357 E AndroidRuntime: at android.database.sqlite.SQLiteConnectionPool.openConnectionLocked(SQLiteConnectionPool.java:505)
04-18 11:59:29.152 2357 2357 E AndroidRuntime: at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:206)
04-18 11:59:29.152 2357 2357 E AndroidRuntime: at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:198)
04-18 11:59:29.152 2357 2357 E AndroidRuntime: at android.database.sqlite.SQLiteDatabase.openInner(SQLiteDatabase.java:918)
04-18 11:59:29.152 2357 2357 E AndroidRuntime: at android.database.sqlite.SQLiteDatabase.open(SQLiteDatabase.java:898)
04-18 11:59:29.152 2357 2357 E AndroidRuntime: at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:762)
04-18 11:59:29.152 2357 2357 E AndroidRuntime: at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:751)
04-18 11:59:29.152 2357 2357 E AndroidRuntime: at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:373)
04-18 11:59:29.152 2357 2357 E AndroidRuntime: at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:316)
04-18 11:59:29.152 2357 2357 E AndroidRuntime: at com.android.bluetooth.provider.BTDeviceInfoContentProvider.onCreate(BTDeviceInfoContentProvider.java:68)
04-18 11:59:29.152 2357 2357 E AndroidRuntime: at android.content.ContentProvider.attachInfo(ContentProvider.java:2411)
04-18 11:59:29.152 2357 2357 E AndroidRuntime: at android.content.ContentProvider.attachInfo(ContentProvider.java:2381)
04-18 11:59:29.152 2357 2357 E AndroidRuntime: at android.app.ActivityThread.installProvider(ActivityThread.java:7628)
04-18 11:59:29.152 2357 2357 E AndroidRuntime: ... 10 more
04-18 11:59:29.152 2357 2357 E AndroidRuntime: Caused by: android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error (code 14 SQLITE_CANTOPEN): Could not open database
04-18 11:59:29.152 2357 2357 E AndroidRuntime: at android.database.sqlite.SQLiteConnection.nativeOpen(Native Method)
04-18 11:59:29.152 2357 2357 E AndroidRuntime: at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:224)
04-18 11:59:29.152 2357 2357 E AndroidRuntime: ... 24 more
Может кто-то сталкивался с аналогичной проблемой? Связано ли это как-то с установленной последней версией TWRP-рекавери?