Fix timeout of temporary granted su-rights.
This commit is contained in:
parent
c4377ed6c2
commit
42f29062ca
@ -96,7 +96,7 @@ public class SuDatabaseHelper extends SQLiteOpenHelper {
|
|||||||
SQLiteDatabase db = getWritableDatabase();
|
SQLiteDatabase db = getWritableDatabase();
|
||||||
// Clear outdated policies
|
// Clear outdated policies
|
||||||
db.delete(POLICY_TABLE, "until > 0 AND until < ?",
|
db.delete(POLICY_TABLE, "until > 0 AND until < ?",
|
||||||
new String[] { String.valueOf(System.currentTimeMillis()) });
|
new String[] { String.valueOf(System.currentTimeMillis() / 1000) });
|
||||||
// Clear outdated logs
|
// Clear outdated logs
|
||||||
db.delete(LOG_TABLE, "time < ?", new String[] { String.valueOf(
|
db.delete(LOG_TABLE, "time < ?", new String[] { String.valueOf(
|
||||||
System.currentTimeMillis() / 1000 - magiskManager.suLogTimeout * 86400) });
|
System.currentTimeMillis() / 1000 - magiskManager.suLogTimeout * 86400) });
|
||||||
|
Loading…
Reference in New Issue
Block a user