mirror of https://github.com/M66B/NetGuard.git
Stop listing self
This commit is contained in:
parent
e08ce49f63
commit
c97958c072
|
@ -393,6 +393,10 @@ public class Rule {
|
|||
DatabaseHelper dh = DatabaseHelper.getInstance(context);
|
||||
for (PackageInfo info : listPI)
|
||||
try {
|
||||
// Skip self
|
||||
if (info.applicationInfo.uid == Process.myUid())
|
||||
continue;
|
||||
|
||||
Rule rule = new Rule(dh, info, context);
|
||||
|
||||
if (pre_system.containsKey(info.packageName))
|
||||
|
|
Loading…
Reference in New Issue