• topjohnwu's avatar
    Prevent Magisk database race condition · ab5fedda
    topjohnwu authored
    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.
    ab5fedda
daemon.h 1.65 KB