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);
|
DatabaseHelper dh = DatabaseHelper.getInstance(context);
|
||||||
for (PackageInfo info : listPI)
|
for (PackageInfo info : listPI)
|
||||||
try {
|
try {
|
||||||
|
// Skip self
|
||||||
|
if (info.applicationInfo.uid == Process.myUid())
|
||||||
|
continue;
|
||||||
|
|
||||||
Rule rule = new Rule(dh, info, context);
|
Rule rule = new Rule(dh, info, context);
|
||||||
|
|
||||||
if (pre_system.containsKey(info.packageName))
|
if (pre_system.containsKey(info.packageName))
|
||||||
|
|
Loading…
Reference in New Issue