Added QUERY_ALL_PACKAGES notice

This commit is contained in:
M66B 2023-09-29 08:15:59 +02:00
parent a4980cc446
commit 3326013f74
2 changed files with 24 additions and 0 deletions

View File

@ -527,6 +527,21 @@ public class ActivityMain extends AppCompatActivity implements SharedPreferences
tvNotifications.setVisibility(canNotify ? View.GONE : View.VISIBLE);
super.onResume();
if (Build.VERSION.SDK_INT > Build.VERSION_CODES.R && Util.isPlayStoreInstall(this)) {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
if (!prefs.getBoolean("qap", false)) {
new AlertDialog.Builder(this)
.setMessage(R.string.app_qap)
.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
prefs.edit().putBoolean("qap", true).apply();
}
})
.show();
}
}
}
@Override

View File

@ -10,6 +10,15 @@
<string name="app_agree">I agree</string>
<string name="app_disagree">I disagree</string>
<string name="app_support">NetGuard needs your help. Tap to purchase pro features to keep the project going.</string>
<string name="app_qap">
Google was going to remove the app from the Play Store because it requested permission to query all apps.
Five appeals and providing a good justification about why this permission is needed were rejected.
This version of the app does not request this permission anymore,
and despite that, almost all apps will still be listed,
except some (system) apps which cannot be started manually from the Android app list.
The internet traffic of these apps will always be allowed to make sure your device keeps working correctly.
If you think this is a problem, you can update to the GitHub version of the app and manage all (system) apps again.
</string>
<string name="channel_foreground">Running services</string>
<string name="channel_notify">General notifications</string>