Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

enabling any module for system framework now results in system errors across the entire OxygenOS on OnePlus 7 Pro after updating LSPosed #2796

Open
1 task done
LoganDark opened this issue Oct 9, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@LoganDark
Copy link

LoganDark commented Oct 9, 2023

Steps to reproduce/复现步骤

enable any module for system framework

Expected behaviour/预期行为

no crash

Actual behaviour/实际行为

system update crashes

FATAL EXCEPTION: Thread-8
Process: com.oneplus.opbackup, PID: 9601
android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error (code 14 SQLITE_CANTOPEN): Could not open database
	at android.database.sqlite.SQLiteConnection.nativeOpen(Native Method)
	at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:215)
	at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:197)
	at android.database.sqlite.SQLiteConnectionPool.openConnectionLocked(SQLiteConnectionPool.java:505)
	at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:206)
	at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:198)
	at android.database.sqlite.SQLiteDatabase.openInner(SQLiteDatabase.java:930)
	at android.database.sqlite.SQLiteDatabase.open(SQLiteDatabase.java:910)
	at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:774)
	at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:763)
	at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:374)
	at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:317)
	at com.oneplus.opbackup.a.c.a(OperatorDao.java:109)
	at com.oneplus.opbackup.receiver.SIMCardStateReceiver.a(SIMCardStateReceiver.java:83)
	at com.oneplus.opbackup.receiver.SIMCardStateReceiver.a(SIMCardStateReceiver.java:28)
	at com.oneplus.opbackup.receiver.SIMCardStateReceiver$1.a(SIMCardStateReceiver.java:42)
	at com.oneplus.opbackup.receiver.a.run(Unknown Source:2)
	at java.lang.Thread.run(Thread.java:919)

opconfig crashes

FATAL EXCEPTION: ConfigDatabaseWorker
Process: com.oneplus.config, PID: 2254
java.lang.NullPointerException: Attempt to invoke virtual method 'void android.database.sqlite.SQLiteDatabase.endTransaction()' on a null object reference
	at com.oneplus.config.ConfigProvider.delete(Unknown Source:36)
	at android.content.ContentProvider$Transport.delete(ContentProvider.java:438)
	at android.content.ContentResolver.delete(ContentResolver.java:1989)
	at com.oneplus.config.server.b.handleMessage(Unknown Source:42)
	at android.os.Handler.dispatchMessage(Handler.java:107)
	at android.os.Looper.loop(Looper.java:214)
	at android.os.HandlerThread.run(HandlerThread.java:67)

dolby atmos crashes

FATAL EXCEPTION: main
Process: com.oneplus.sound.tuner, PID: 11759
android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error (code 14 SQLITE_CANTOPEN): Could not open database
	at android.database.sqlite.SQLiteConnection.nativeOpen(Native Method)
	at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:215)
	at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:197)
	at android.database.sqlite.SQLiteConnectionPool.openConnectionLocked(SQLiteConnectionPool.java:505)
	at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:206)
	at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:198)
	at android.database.sqlite.SQLiteDatabase.openInner(SQLiteDatabase.java:930)
	at android.database.sqlite.SQLiteDatabase.open(SQLiteDatabase.java:910)
	at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:774)
	at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:763)
	at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:384)
	at android.database.sqlite.SQLiteOpenHelper.getReadableDatabase(SQLiteOpenHelper.java:341)
	at com.oneplus.sound.tuner.HeadphoneManager.getOnlineConfigEarphoneInfo(HeadphoneManager.java:311)
	at com.oneplus.sound.tuner.BluetoothDeviceManager.updateDevicesOnlineConfig(BluetoothDeviceManager.java:165)
	at com.oneplus.sound.tuner.BluetoothDeviceManager.<init>(BluetoothDeviceManager.java:44)
	at com.oneplus.sound.tuner.BluetoothDeviceManager.getInstance(BluetoothDeviceManager.java:51)
	at com.oneplus.sound.tuner.SoundTunerService.saveCurrentDeviceInfo(SoundTunerService.java:516)
	at com.oneplus.sound.tuner.SoundTunerService.findMediaOutputDevice(SoundTunerService.java:450)
	at com.oneplus.sound.tuner.SoundTunerService.access$1500(SoundTunerService.java:55)
	at com.oneplus.sound.tuner.SoundTunerService$2.run(SoundTunerService.java:385)
	at android.os.Handler.handleCallback(Handler.java:883)
	at android.os.Handler.dispatchMessage(Handler.java:100)
	at android.os.Looper.loop(Looper.java:214)
	at android.app.ActivityThread.main(ActivityThread.java:7710)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:516)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)

even Bluetooth crashes

FATAL EXCEPTION: BluetoothDatabaseManager
Process: com.android.bluetooth, PID: 9759
android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error (code 14 SQLITE_CANTOPEN): Could not open database
	at android.database.sqlite.SQLiteConnection.nativeOpen(Native Method)
	at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:215)
	at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:197)
	at android.database.sqlite.SQLiteConnectionPool.openConnectionLocked(SQLiteConnectionPool.java:505)
	at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:206)
	at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:198)
	at android.database.sqlite.SQLiteDatabase.openInner(SQLiteDatabase.java:930)
	at android.database.sqlite.SQLiteDatabase.open(SQLiteDatabase.java:910)
	at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:774)
	at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:763)
	at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:374)
	at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:317)
	at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getWritableSupportDatabase(FrameworkSQLiteOpenHelper.java:92)
	at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper.getWritableDatabase(FrameworkSQLiteOpenHelper.java:53)
	at androidx.room.RoomDatabase.inTransaction(RoomDatabase.java:452)
	at androidx.room.RoomDatabase.assertNotSuspendingTransaction(RoomDatabase.java:275)
	at androidx.room.RoomDatabase.query(RoomDatabase.java:304)
	at com.android.bluetooth.btservice.storage.MetadataDao_Impl.load(MetadataDao_Impl.java:244)
	at com.android.bluetooth.btservice.storage.MetadataDatabase.load(MetadataDatabase.java:84)
	at com.android.bluetooth.btservice.storage.DatabaseManager$DatabaseHandler.handleMessage(DatabaseManager.java:102)
	at android.os.Handler.dispatchMessage(Handler.java:107)
	at android.os.Looper.loop(Looper.java:214)
	at android.os.HandlerThread.run(HandlerThread.java:67)

Xposed Module List/Xposed 模块列表

XPrivacyLua 0.35

Magisk Module List/Magisk 模块列表

advanced charging controller ACC
shamiko v0.7.3 174
substratum
lsposed v1.9.1 7012 zygisk debug

LSPosed version/LSPosed 版本

1.9.1 7012

Android version/Android 版本

10

Magisk version/Magisk 版本

26.3 26300

Riru version/Riru 版本

N/A

Version requirement/版本要求

  • I am using latest debug CI version of LSPosed and enable verbose log/我正在使用最新 CI 调试版本且启用详细日志

Logs/日志

the bugreport button did not work. but here is a log file captured using the oem utility.
20231009-080631_oemlog.zip

it includes the entire boot process including the crashes.

here i use xprivacylua module to cause the errors. it used to work fine before. i have not updated Android or xprivacylua in order to cause this, only lsposed

it does not matter which module is enabled, just that something is. here i use scoop module (used for collecting crash reports stack traces) to the same effect.:
20231009-081219_oemlog.zip

@LoganDark LoganDark added the bug Something isn't working label Oct 9, 2023
@qs-lll

This comment was marked as off-topic.

@Karanveer7921
Copy link

I had similar issues, the app was crashing on startup. I am using HMA module, that requires system framework hook. I added that specific app into the deny list in magisk and it worked.

using zygisk lsposed version
using shamiko

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants