Added GPS daemon

This commit is contained in:
M66B 2017-09-28 10:04:06 +02:00
parent d00e51aced
commit 56ca3ceee0
2 changed files with 21 additions and 0 deletions

View File

@ -213,6 +213,16 @@ public class Rule {
this.settings = null;
this.datasaver = null;
this.pkg = false;
} else if (info.applicationInfo.uid == 1021) {
this.name = context.getString(R.string.title_gpsdaemon);
this.description = null;
this.system = true;
this.internet = true;
this.enabled = true;
this.launch = null;
this.settings = null;
this.datasaver = null;
this.pkg = false;
} else if (info.applicationInfo.uid == 9999) {
this.name = context.getString(R.string.title_nobody);
this.description = null;
@ -329,6 +339,16 @@ public class Rule {
media.applicationInfo.icon = 0;
listPI.add(media);
// Add GPS daemon
PackageInfo gps = new PackageInfo();
gps.packageName = "android.gps";
gps.versionCode = Build.VERSION.SDK_INT;
gps.versionName = Build.VERSION.RELEASE;
gps.applicationInfo = new ApplicationInfo();
gps.applicationInfo.uid = 1021;
gps.applicationInfo.icon = 0;
listPI.add(gps);
// Add nobody
PackageInfo nobody = new PackageInfo();
nobody.packageName = "nobody";

View File

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