mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-06-12 05:07:45 +02:00
Prevent Magisk database race condition
The database should only be accessed by a single process, which is magiskd. This means 'magisk --sqlite [SQL]' has to be updated to pass the SQL command to the daemon. In addition, open the database connection with SQLITE_OPEN_FULLMUTEX to support multithread in magiskd.
This commit is contained in:
@ -20,7 +20,8 @@ enum {
|
||||
BOOT_COMPLETE,
|
||||
MAGISKHIDE,
|
||||
HIDE_CONNECT,
|
||||
HANDSHAKE
|
||||
HANDSHAKE,
|
||||
SQLITE_CMD,
|
||||
};
|
||||
|
||||
// Return codes for daemon
|
||||
|
Reference in New Issue
Block a user