1
0
Fork 0
mirror of https://github.com/M66B/NetGuard.git synced 2025-01-03 05:44:14 +00:00

Fixed import of special packages

This commit is contained in:
M66B 2019-05-17 21:16:03 +02:00
parent 30958e92a5
commit fc4405f2c4

View file

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