diff --git a/app/src/main/java/eu/faircode/netguard/ActivityMain.java b/app/src/main/java/eu/faircode/netguard/ActivityMain.java index ddf7ecee..a842bc56 100644 --- a/app/src/main/java/eu/faircode/netguard/ActivityMain.java +++ b/app/src/main/java/eu/faircode/netguard/ActivityMain.java @@ -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 diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index d8377159..b10a4610 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -10,6 +10,15 @@ I agree I disagree NetGuard needs your help. Tap to purchase pro features to keep the project going. + + 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. + Running services General notifications