mirror of
https://github.com/M66B/NetGuard.git
synced 2025-02-25 07:32:46 +00:00
Search on complete uid in traffic log
Only searching on 0 root is still awkward
This commit is contained in:
parent
2c40e71326
commit
60a3babb4e
1 changed files with 2 additions and 2 deletions
|
@ -418,9 +418,9 @@ public class DatabaseHelper extends SQLiteOpenHelper {
|
||||||
SQLiteDatabase db = this.getReadableDatabase();
|
SQLiteDatabase db = this.getReadableDatabase();
|
||||||
String query = "SELECT ID AS _id, *";
|
String query = "SELECT ID AS _id, *";
|
||||||
query += " FROM log";
|
query += " FROM log";
|
||||||
query += " WHERE daddr LIKE ? OR dname LIKE ? OR dport = ? OR uid LIKE ?";
|
query += " WHERE daddr LIKE ? OR dname LIKE ? OR dport = ? OR uid = ?";
|
||||||
query += " ORDER BY time DESC";
|
query += " ORDER BY time DESC";
|
||||||
return db.rawQuery(query, new String[]{"%" + find + "%", "%" + find + "%", find, "%" + find + "%"});
|
return db.rawQuery(query, new String[]{"%" + find + "%", "%" + find + "%", find, find});
|
||||||
} finally {
|
} finally {
|
||||||
mLock.readLock().unlock();
|
mLock.readLock().unlock();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue