Added DNS daemon package info

This commit is contained in:
M66B 2019-05-07 21:14:35 +02:00
parent 54a25ecf75
commit 7145e51972
2 changed files with 17 additions and 0 deletions

View File

@ -163,6 +163,12 @@ public class Rule {
this.internet = true; this.internet = true;
this.enabled = true; this.enabled = true;
this.pkg = false; this.pkg = false;
} else if (info.applicationInfo.uid == 1051) {
this.name = context.getString(R.string.title_dnsdaemon);
this.system = true;
this.internet = true;
this.enabled = true;
this.pkg = false;
} else if (info.applicationInfo.uid == 9999) { } else if (info.applicationInfo.uid == 9999) {
this.name = context.getString(R.string.title_nobody); this.name = context.getString(R.string.title_nobody);
this.system = true; this.system = true;
@ -307,6 +313,16 @@ public class Rule {
gps.applicationInfo.icon = 0; gps.applicationInfo.icon = 0;
listPI.add(gps); listPI.add(gps);
// Add DNS daemon
PackageInfo dns = new PackageInfo();
dns.packageName = "android.dns";
dns.versionCode = Build.VERSION.SDK_INT;
dns.versionName = Build.VERSION.RELEASE;
dns.applicationInfo = new ApplicationInfo();
dns.applicationInfo.uid = 1051;
dns.applicationInfo.icon = 0;
listPI.add(dns);
// Add nobody // Add nobody
PackageInfo nobody = new PackageInfo(); PackageInfo nobody = new PackageInfo();
nobody.packageName = "nobody"; nobody.packageName = "nobody";

View File

@ -279,6 +279,7 @@ Your internet traffic is not being sent to a remote VPN server.</string>
<string name="title_root">root</string> <string name="title_root">root</string>
<string name="title_mediaserver">mediaserver</string> <string name="title_mediaserver">mediaserver</string>
<string name="title_gpsdaemon" translatable="false">GPS daemon</string> <string name="title_gpsdaemon" translatable="false">GPS daemon</string>
<string name="title_dnsdaemon" translatable="false">DNS daemon</string>
<string name="title_nobody">nobody</string> <string name="title_nobody">nobody</string>
<string name="title_dontask">Don\'t ask again</string> <string name="title_dontask">Don\'t ask again</string>