Stop listing self

This commit is contained in:
M66B 2017-11-09 15:59:09 +01:00
parent e08ce49f63
commit c97958c072
1 changed files with 4 additions and 0 deletions

View File

@ -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))