Handle magisk.db completely natively

Prevent database corruption due to different Android application sqlite default settings
This commit is contained in:
topjohnwu
2018-10-27 17:54:48 -04:00
parent 2a65c3dc8f
commit dbb8b8a439
10 changed files with 357 additions and 87 deletions

View File

@@ -75,7 +75,7 @@ static void database_check(struct su_info *info) {
if (uid > 0)
get_uid_policy(db, uid, &info->access);
sqlite3_close(db);
sqlite3_close_v2(db);
}
// We need to check our manager