Fix bug in SuDatabaseHelper

This commit is contained in:
Rikka 2017-12-31 22:10:28 +08:00 committed by John Wu
parent c2c151ec4c
commit 4a5227c7bf

View File

@ -131,8 +131,8 @@ public class SuDatabaseHelper extends SQLiteOpenHelper {
} catch(Exception e) { } catch(Exception e) {
// Try to catch runtime exceptions and remove all db for retry // Try to catch runtime exceptions and remove all db for retry
unmntDB(); unmntDB();
Shell.su(Utils.fmt("rm -rf /data/user*/*/magisk.db /data/adb/magisk.db /data/user*/*/%s/databases"), Shell.su(Utils.fmt("rm -rf /data/user*/*/magisk.db /data/adb/magisk.db /data/user*/*/%s/databases",
MagiskManager.get().getPackageName()); MagiskManager.get().getPackageName()));
e.printStackTrace(); e.printStackTrace();
return new SuDatabaseHelper(initDB(false)); return new SuDatabaseHelper(initDB(false));
} }