From fc4405f2c406b5a324c003cd23d7b430992fc76f Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 17 May 2019 21:16:03 +0200 Subject: [PATCH] Fixed import of special packages --- .../main/java/eu/faircode/netguard/ActivitySettings.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/netguard/ActivitySettings.java b/app/src/main/java/eu/faircode/netguard/ActivitySettings.java index d6491445..8877778a 100644 --- a/app/src/main/java/eu/faircode/netguard/ActivitySettings.java +++ b/app/src/main/java/eu/faircode/netguard/ActivitySettings.java @@ -1405,8 +1405,14 @@ public class ActivitySettings extends AppCompatActivity implements SharedPrefere private int getUid(String pkg) throws PackageManager.NameNotFoundException { if ("root".equals(pkg)) return 0; - else if ("mediaserver".equals(pkg)) + else if ("android.media".equals(pkg)) return 1013; + else if ("android.dns".equals(pkg)) + return 1020; + else if ("android.gps".equals(pkg)) + return 1021; + else if ("android.dns".equals(pkg)) + return 1051; else if ("nobody".equals(pkg)) return 9999; else