mirror of https://github.com/M66B/NetGuard.git
Added GPS daemon
This commit is contained in:
parent
d00e51aced
commit
56ca3ceee0
|
@ -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";
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue