1
0
Fork 0
mirror of https://github.com/M66B/NetGuard.git synced 2025-03-19 10:16:03 +00:00

Notify app added

Refs #182

Test version: http://netguard.me/NetGuard-v0.44-2015112702-release.apk
This commit is contained in:
M66B 2015-11-27 19:55:33 +01:00
parent cdc953f6e7
commit 97c38d1d0a
54 changed files with 87 additions and 10 deletions

View file

@ -9,7 +9,7 @@ model {
applicationId = "eu.faircode.netguard"
minSdkVersion.apiLevel = 21
targetSdkVersion.apiLevel = 23
versionCode = 2015112701
versionCode = 2015112702
versionName = "0.44"
archivesBaseName = "NetGuard-v$versionName-$versionCode"
}

View file

@ -53,7 +53,9 @@
<action android:name="android.intent.action.MY_PACKAGE_REPLACED" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.PACKAGE_ADDED" />
<action android:name="android.intent.action.PACKAGE_REMOVED" />
<data android:scheme="package" />
</intent-filter>
</receiver>

View file

@ -71,6 +71,7 @@ public class ActivityMain extends AppCompatActivity implements SharedPreferences
private static final int REQUEST_INVITE = 3;
private static final int REQUEST_LOGCAT = 4;
public static final String EXTRA_PACKAGE_NAME = "package";
public static final String ACTION_RULES_CHANGED = "eu.faircode.netguard.ACTION_RULES_CHANGED";
@Override

View file

@ -19,12 +19,19 @@ package eu.faircode.netguard;
Copyright 2015 by Marcel Bokhorst (M66B)
*/
import android.app.Notification;
import android.app.PendingIntent;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager;
import android.net.VpnService;
import android.preference.PreferenceManager;
import android.support.v4.app.NotificationCompat;
import android.support.v4.app.NotificationManagerCompat;
import android.support.v4.content.ContextCompat;
import android.util.Log;
import java.util.Map;
@ -37,9 +44,41 @@ public class Receiver extends BroadcastReceiver {
Log.i(TAG, "Received " + intent);
Util.logExtras(intent);
if (Intent.ACTION_PACKAGE_REMOVED.equals(intent.getAction())) {
if (Intent.ACTION_PACKAGE_ADDED.equals(intent.getAction())) {
if (!intent.getBooleanExtra(Intent.EXTRA_REPLACING, false)) {
int uid = intent.getIntExtra(Intent.EXTRA_UID, 0);
String packageName = intent.getData().getSchemeSpecificPart();
Intent main = new Intent(context, ActivityMain.class);
main.putExtra(ActivityMain.EXTRA_PACKAGE_NAME, packageName);
main.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
PendingIntent pi = PendingIntent.getActivity(context, uid, main, PendingIntent.FLAG_UPDATE_CURRENT);
String name;
try {
ApplicationInfo appInfo = context.getPackageManager().getApplicationInfo(packageName, 0);
name = context.getPackageManager().getApplicationLabel(appInfo).toString();
} catch (PackageManager.NameNotFoundException ex) {
name = ex.toString();
}
NotificationCompat.Builder notification = new NotificationCompat.Builder(context)
.setSmallIcon(R.drawable.ic_error_outline_white_24dp)
.setContentTitle(context.getString(R.string.app_name))
.setContentText(context.getString(R.string.msg_installed, name))
.setContentIntent(pi)
.setCategory(Notification.CATEGORY_STATUS)
.setVisibility(Notification.VISIBILITY_SECRET)
.setColor(ContextCompat.getColor(context, R.color.colorPrimary))
.setAutoCancel(true);
NotificationManagerCompat.from(context).notify(uid, notification.build());
}
} else if (Intent.ACTION_PACKAGE_REMOVED.equals(intent.getAction())) {
// Remove settings
if (intent.getBooleanExtra(Intent.EXTRA_DATA_REMOVED, false)) {
int uid = intent.getIntExtra(Intent.EXTRA_UID, 0);
String packageName = intent.getData().getSchemeSpecificPart();
Log.i(TAG, "Deleting settings package=" + packageName);
context.getSharedPreferences("wifi", Context.MODE_PRIVATE).edit().remove(packageName).apply();
@ -47,6 +86,7 @@ public class Receiver extends BroadcastReceiver {
context.getSharedPreferences("screen_wifi", Context.MODE_PRIVATE).edit().remove(packageName).apply();
context.getSharedPreferences("screen_other", Context.MODE_PRIVATE).edit().remove(packageName).apply();
context.getSharedPreferences("roaming", Context.MODE_PRIVATE).edit().remove(packageName).apply();
NotificationManagerCompat.from(context).cancel(uid);
}
} else {

View file

@ -530,7 +530,7 @@ public class SinkholeService extends VpnService {
PendingIntent pi = PendingIntent.getActivity(this, 0, main, PendingIntent.FLAG_UPDATE_CURRENT);
NotificationCompat.Builder notification = new NotificationCompat.Builder(this)
.setSmallIcon(R.drawable.ic_error_white_24dp)
.setSmallIcon(R.drawable.ic_error_outline_white_24dp)
.setContentTitle(getString(R.string.app_name))
.setContentText(getString(R.string.msg_revoked))
.setContentIntent(pi)

Binary file not shown.

After

Width:  |  Height:  |  Size: 492 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 324 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 325 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 232 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 666 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 431 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 979 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 614 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 814 B

View file

@ -31,6 +31,7 @@ These issues are caused by bugs in Android, or in the software provided by the m
<string name="msg_packages">%1$d allowed, %2$d blocked</string>
<string name="msg_disabled">NetGuard is disabled, use the switch above to enable NetGuard</string>
<string name="msg_revoked">NetGuard has been disabled, likely by using another VPN based application</string>
<string name="msg_installed">%1$s installed</string>
<string name="msg_completed">Action completed</string>
<string name="msg_vpn">NetGuard uses a local VPN as a sinkhole to block internet traffic.
For this reason, please allow a VPN connection in the next dialog.

View file

@ -31,6 +31,7 @@ These issues are caused by bugs in Android, or in the software provided by the m
<string name="msg_packages">%1$d allowed, %2$d blocked</string>
<string name="msg_disabled">التطبيق غير مُفعّل, قم بتفعيل التطبيق من الخيار أعلاه.</string>
<string name="msg_revoked">NetGuard has been disabled, likely by using another VPN based application</string>
<string name="msg_installed">%1$s installed</string>
<string name="msg_completed">Action completed</string>
<string name="msg_vpn">NetGuard uses a local VPN as a sinkhole to block internet traffic.
For this reason, please allow a VPN connection in the next dialog.

View file

@ -31,6 +31,7 @@ These issues are caused by bugs in Android, or in the software provided by the m
<string name="msg_packages">%1$d allowed, %2$d blocked</string>
<string name="msg_disabled">NetGuard is disabled, use the switch above to enable NetGuard</string>
<string name="msg_revoked">NetGuard has been disabled, likely by using another VPN based application</string>
<string name="msg_installed">%1$s installed</string>
<string name="msg_completed">Action completed</string>
<string name="msg_vpn">NetGuard uses a local VPN as a sinkhole to block internet traffic.
For this reason, please allow a VPN connection in the next dialog.

View file

@ -31,6 +31,7 @@ These issues are caused by bugs in Android, or in the software provided by the m
<string name="msg_packages">%1$d allowed, %2$d blocked</string>
<string name="msg_disabled">NetGuard is disabled, use the switch above to enable NetGuard</string>
<string name="msg_revoked">NetGuard has been disabled, likely by using another VPN based application</string>
<string name="msg_installed">%1$s installed</string>
<string name="msg_completed">Action completed</string>
<string name="msg_vpn">NetGuard uses a local VPN as a sinkhole to block internet traffic.
For this reason, please allow a VPN connection in the next dialog.

View file

@ -31,6 +31,7 @@ These issues are caused by bugs in Android, or in the software provided by the m
<string name="msg_packages">%1$d allowed, %2$d blocked</string>
<string name="msg_disabled">NetGuard is disabled, use the switch above to enable NetGuard</string>
<string name="msg_revoked">NetGuard has been disabled, likely by using another VPN based application</string>
<string name="msg_installed">%1$s installed</string>
<string name="msg_completed">Action completed</string>
<string name="msg_vpn">NetGuard uses a local VPN as a sinkhole to block internet traffic.
For this reason, please allow a VPN connection in the next dialog.

View file

@ -31,6 +31,7 @@ These issues are caused by bugs in Android, or in the software provided by the m
<string name="msg_packages">%1$d allowed, %2$d blocked</string>
<string name="msg_disabled">NetGuard is disabled, use the switch above to enable NetGuard</string>
<string name="msg_revoked">NetGuard has been disabled, likely by using another VPN based application</string>
<string name="msg_installed">%1$s installed</string>
<string name="msg_completed">Action completed</string>
<string name="msg_vpn">NetGuard uses a local VPN as a sinkhole to block internet traffic.
For this reason, please allow a VPN connection in the next dialog.

View file

@ -30,6 +30,7 @@ Das wird von Fehlern in Android oder in Software vom Hersteller verursacht. Bitt
<string name="msg_packages">%1$d erlaubt, %2$d blockiert</string>
<string name="msg_disabled">NetGuard ist deaktiviert. Verwenden Sie den Schalter, um NetGuard zu aktivieren</string>
<string name="msg_revoked">NetGuard wurde deaktiviert. Wahrscheinlich durch Verwendung einer VPN-Anwendung</string>
<string name="msg_installed">%1$s installed</string>
<string name="msg_completed">Aktion abgeschlossen</string>
<string name="msg_vpn">NetGuard verwendet ein lokales VPN, um einen Internet-Verkehr zu blockieren. Deshalb erlauben Sie eine VPN-Verbindung im nächsten Fenster. Da NetGuard keine Internet-Berechtigung hat, wird der Internet-Verkehr auch nirgendwo weitergeleitet.</string>
<string name="msg_try">NetGuard ausprobieren</string>

View file

@ -31,6 +31,7 @@ These issues are caused by bugs in Android, or in the software provided by the m
<string name="msg_packages">%1$d allowed, %2$d blocked</string>
<string name="msg_disabled">NetGuard is disabled, use the switch above to enable NetGuard</string>
<string name="msg_revoked">NetGuard has been disabled, likely by using another VPN based application</string>
<string name="msg_installed">%1$s installed</string>
<string name="msg_completed">Action completed</string>
<string name="msg_vpn">NetGuard uses a local VPN as a sinkhole to block internet traffic.
For this reason, please allow a VPN connection in the next dialog.

View file

@ -31,6 +31,7 @@ These issues are caused by bugs in Android, or in the software provided by the m
<string name="msg_packages">%1$d allowed, %2$d blocked</string>
<string name="msg_disabled">NetGuard is disabled, use the switch above to enable NetGuard</string>
<string name="msg_revoked">NetGuard has been disabled, likely by using another VPN based application</string>
<string name="msg_installed">%1$s installed</string>
<string name="msg_completed">Action completed</string>
<string name="msg_vpn">NetGuard uses a local VPN as a sinkhole to block internet traffic.
For this reason, please allow a VPN connection in the next dialog.

View file

@ -31,6 +31,7 @@ Estos problemas son causados por errores en Android, o en el software provisto p
<string name="msg_packages">%1$d permitido, %2$d bloqueado</string>
<string name="msg_disabled">NetGuard está deshabilitado, utiliza el interruptor de arriba para habilitar a NetGuard</string>
<string name="msg_revoked">NetGuard ha sido desactivado, probablemente por usar otra aplicación de VPN</string>
<string name="msg_installed">%1$s installed</string>
<string name="msg_completed">Acción completada</string>
<string name="msg_vpn">NetGuard utiliza una VPN local como un pozo ciego para bloquear el tráfico de internet.
Por esta razón, por favor permite la conexión VPN en el próximo diálogo.

View file

@ -31,6 +31,7 @@ These issues are caused by bugs in Android, or in the software provided by the m
<string name="msg_packages">%1$d allowed, %2$d blocked</string>
<string name="msg_disabled">NetGuard is disabled, use the switch above to enable NetGuard</string>
<string name="msg_revoked">NetGuard has been disabled, likely by using another VPN based application</string>
<string name="msg_installed">%1$s installed</string>
<string name="msg_completed">Action completed</string>
<string name="msg_vpn">NetGuard uses a local VPN as a sinkhole to block internet traffic.
For this reason, please allow a VPN connection in the next dialog.

View file

@ -31,6 +31,7 @@ These issues are caused by bugs in Android, or in the software provided by the m
<string name="msg_packages">%1$d allowed, %2$d blocked</string>
<string name="msg_disabled">NetGuard is disabled, use the switch above to enable NetGuard</string>
<string name="msg_revoked">NetGuard has been disabled, likely by using another VPN based application</string>
<string name="msg_installed">%1$s installed</string>
<string name="msg_completed">Action completed</string>
<string name="msg_vpn">NetGuard uses a local VPN as a sinkhole to block internet traffic.
For this reason, please allow a VPN connection in the next dialog.

View file

@ -31,6 +31,7 @@ Ceci est causé par des bugs dans Android, ou dans le logiciel fourni par le con
<string name="msg_packages">%1$d allowed, %2$d blocked</string>
<string name="msg_disabled">NetGuard est désactivé, utilisez le bouton ci-dessus pour activer NetGuard</string>
<string name="msg_revoked">NetGuard has been disabled, likely by using another VPN based application</string>
<string name="msg_installed">%1$s installed</string>
<string name="msg_completed">Action completé</string>
<string name="msg_vpn">NetGuard uses a local VPN as a sinkhole to block internet traffic.
For this reason, please allow a VPN connection in the next dialog.

View file

@ -31,6 +31,7 @@ These issues are caused by bugs in Android, or in the software provided by the m
<string name="msg_packages">%1$d allowed, %2$d blocked</string>
<string name="msg_disabled">NetGuard is disabled, use the switch above to enable NetGuard</string>
<string name="msg_revoked">NetGuard has been disabled, likely by using another VPN based application</string>
<string name="msg_installed">%1$s installed</string>
<string name="msg_completed">Action completed</string>
<string name="msg_vpn">NetGuard uses a local VPN as a sinkhole to block internet traffic.
For this reason, please allow a VPN connection in the next dialog.

View file

@ -31,6 +31,7 @@ These issues are caused by bugs in Android, or in the software provided by the m
<string name="msg_packages">%1$d allowed, %2$d blocked</string>
<string name="msg_disabled">NetGuard is disabled, use the switch above to enable NetGuard</string>
<string name="msg_revoked">NetGuard has been disabled, likely by using another VPN based application</string>
<string name="msg_installed">%1$s installed</string>
<string name="msg_completed">Action completed</string>
<string name="msg_vpn">NetGuard uses a local VPN as a sinkhole to block internet traffic.
For this reason, please allow a VPN connection in the next dialog.

View file

@ -31,6 +31,7 @@ These issues are caused by bugs in Android, or in the software provided by the m
<string name="msg_packages">%1$d allowed, %2$d blocked</string>
<string name="msg_disabled">NetGuard is disabled, use the switch above to enable NetGuard</string>
<string name="msg_revoked">NetGuard has been disabled, likely by using another VPN based application</string>
<string name="msg_installed">%1$s installed</string>
<string name="msg_completed">Action completed</string>
<string name="msg_vpn">NetGuard uses a local VPN as a sinkhole to block internet traffic.
For this reason, please allow a VPN connection in the next dialog.

View file

@ -32,6 +32,7 @@ Ció è causato da alcuni bug contenuti in Android, o in programmi forniti dal p
<string name="msg_packages">%1$d permesse, %2$d bloccate</string>
<string name="msg_disabled">NetGuard è disabilitata, usa lo switch per abilitarla nuovamente</string>
<string name="msg_revoked">NetGuard è stata disabilitata, probabilmente a causa di un\'altra applicazione che usa il servizio VPN</string>
<string name="msg_installed">%1$s installed</string>
<string name="msg_completed">Azione completata</string>
<string name="msg_vpn">Per bloccare il traffico internet, NetGuard utilizza una VPN locale come \"pozzo\".
Per questo motivo, abilita la connessione VPN nella prossima schermata.

View file

@ -31,6 +31,7 @@
<string name="msg_packages">%1$d allowed, %2$d blocked</string>
<string name="msg_disabled">NetGuard は無効です。NetGuard を有効にするには上のスイッチを使用してください</string>
<string name="msg_revoked">NetGuard has been disabled, likely by using another VPN based application</string>
<string name="msg_installed">%1$s installed</string>
<string name="msg_completed">操作を完了しました</string>
<string name="msg_vpn">NetGuard uses a local VPN as a sinkhole to block internet traffic.
For this reason, please allow a VPN connection in the next dialog.

View file

@ -31,6 +31,7 @@ These issues are caused by bugs in Android, or in the software provided by the m
<string name="msg_packages">%1$d allowed, %2$d blocked</string>
<string name="msg_disabled">넷가드가 해제되어 있습니다. 상단 스위치를 사용해 넷가드를 활성화하세요.</string>
<string name="msg_revoked">NetGuard has been disabled, likely by using another VPN based application</string>
<string name="msg_installed">%1$s installed</string>
<string name="msg_completed">Action completed</string>
<string name="msg_vpn">NetGuard uses a local VPN as a sinkhole to block internet traffic.
For this reason, please allow a VPN connection in the next dialog.

View file

@ -31,6 +31,7 @@ These issues are caused by bugs in Android, or in the software provided by the m
<string name="msg_packages">%1$d allowed, %2$d blocked</string>
<string name="msg_disabled">NetGuard is disabled, use the switch above to enable NetGuard</string>
<string name="msg_revoked">NetGuard has been disabled, likely by using another VPN based application</string>
<string name="msg_installed">%1$s installed</string>
<string name="msg_completed">Action completed</string>
<string name="msg_vpn">NetGuard uses a local VPN as a sinkhole to block internet traffic.
For this reason, please allow a VPN connection in the next dialog.

View file

@ -31,6 +31,7 @@ These issues are caused by bugs in Android, or in the software provided by the m
<string name="msg_packages">%1$d allowed, %2$d blocked</string>
<string name="msg_disabled">NetGuard is disabled, use the switch above to enable NetGuard</string>
<string name="msg_revoked">NetGuard has been disabled, likely by using another VPN based application</string>
<string name="msg_installed">%1$s installed</string>
<string name="msg_completed">Action completed</string>
<string name="msg_vpn">NetGuard uses a local VPN as a sinkhole to block internet traffic.
For this reason, please allow a VPN connection in the next dialog.

View file

@ -31,6 +31,7 @@ These issues are caused by bugs in Android, or in the software provided by the m
<string name="msg_packages">%1$d toegestaan, %2$d geblokkeerd</string>
<string name="msg_disabled">NetGuard staat uit, gebruik de schakelaar boven om NetGuard aan te zetten</string>
<string name="msg_revoked">NetGuard is uitgezet, waarschijnlijk door een andere VPN applicatie</string>
<string name="msg_installed">%1$s installed</string>
<string name="msg_completed">Actie uitgevoerd</string>
<string name="msg_vpn">NetGuard uses a local VPN as a sinkhole to block internet traffic.
For this reason, please allow a VPN connection in the next dialog.

View file

@ -31,6 +31,7 @@ These issues are caused by bugs in Android, or in the software provided by the m
<string name="msg_packages">%1$d allowed, %2$d blocked</string>
<string name="msg_disabled">NetGuard is disabled, use the switch above to enable NetGuard</string>
<string name="msg_revoked">NetGuard has been disabled, likely by using another VPN based application</string>
<string name="msg_installed">%1$s installed</string>
<string name="msg_completed">Action completed</string>
<string name="msg_vpn">NetGuard uses a local VPN as a sinkhole to block internet traffic.
For this reason, please allow a VPN connection in the next dialog.

View file

@ -31,6 +31,7 @@ Problemy te są spowodowane błędami w samym Androidzie, lub oprogramowaniu dos
<string name="msg_packages">%1$d allowed, %2$d blocked</string>
<string name="msg_disabled">NetGuard jest wyłączony, użyj przełącznika u góry by go uruchomić</string>
<string name="msg_revoked">NetGuard has been disabled, likely by using another VPN based application</string>
<string name="msg_installed">%1$s installed</string>
<string name="msg_completed">Wykonano</string>
<string name="msg_vpn">NetGuard uses a local VPN as a sinkhole to block internet traffic.
For this reason, please allow a VPN connection in the next dialog.

View file

@ -31,6 +31,7 @@ Esses problemas são causados por bugs/falhas no Android ou no sotfware fornecid
<string name="msg_packages">%1$d permitido, %2$d bloqueado</string>
<string name="msg_disabled">NetGuard desativado, use o interruptor acima para ativar o NetGuard</string>
<string name="msg_revoked">NetGuard foi desativado, provavelmente outro aplicativo baseado em VPN esta sendo usado</string>
<string name="msg_installed">%1$s installed</string>
<string name="msg_completed">Ação concluída</string>
<string name="msg_vpn">NetGuard usa uma VPN local como um sumidouro para bloquear o tráfego de dados.
Por essa razão, por favor, permita a conexão VPN na tela a seguir.

View file

@ -31,6 +31,7 @@ Esses problemas são causados por bugs/falhas no Android ou no sotfware fornecid
<string name="msg_packages">%1$d permitido, %2$d bloqueado</string>
<string name="msg_disabled">NetGuard desativado, use o interruptor acima para ativar o NetGuard</string>
<string name="msg_revoked">NetGuard foi desativado, provavelmente outro aplicativo baseado em VPN esta sendo usado</string>
<string name="msg_installed">%1$s installed</string>
<string name="msg_completed">Ação concluída</string>
<string name="msg_vpn">NetGuard usa uma VPN local como um sumidouro para bloquear o tráfego de dados.
Por essa razão, por favor, permita a conexão VPN na tela a seguir.

View file

@ -31,6 +31,7 @@ Acest lucru este cauzat de bug-uri in Android sau in software-ul pus la dispozit
<string name="msg_packages">%1$d permise, %2$d blocate</string>
<string name="msg_disabled">NetGuard este momentan dezactivat, foloseste comutatorul de mai sus pentru a il activa</string>
<string name="msg_revoked">NetGuard a fost dezactivat, probabil de o alta aplicatie ce foloseste o conexiune VPN</string>
<string name="msg_installed">%1$s installed</string>
<string name="msg_completed">Actiune realizata</string>
<string name="msg_vpn">NetGuard foloseste o conexiune locala VPN ca o \"gaura neagra\" pentru traficul de internet blocat.
Din acest motiv la urmatoarea fereastra de dialog trebuie sa acceptati crearea conexiunii VPN.

View file

@ -28,6 +28,7 @@
<string name="msg_packages">%1$d разрешен, %2$d заблокирован</string>
<string name="msg_disabled">NetGuard отключен, используйте переключатель выше для включения</string>
<string name="msg_revoked">NetGuard был отключен, скорее всего, из-за применения другого VPN-подключения</string>
<string name="msg_installed">%1$s installed</string>
<string name="msg_completed">Действие завершено</string>
<string name="msg_vpn">NetGuard использует локальный VPN, чтобы блокировать интернет трафик.
По этой причине, пожалуйста, разрешите VPN-подключение в следующем диалоговом окне.

View file

@ -31,6 +31,7 @@ Je to spôsobené chybami v Androide alebo v softvéri poskytovanom výrobcom, p
<string name="msg_packages">%1$d allowed, %2$d blocked</string>
<string name="msg_disabled">NetGuard je vypnutý, použite prepínač vyššie na zapnutie NetGuard</string>
<string name="msg_revoked">NetGuard has been disabled, likely by using another VPN based application</string>
<string name="msg_installed">%1$s installed</string>
<string name="msg_completed">Akcia bola dokončená</string>
<string name="msg_vpn">NetGuard používa lokálnu VPN sieť na zablokovanie sieťovej prevádzky,
a preto by ste mali povoliť VPN pripojenie v ďalšom okne.

View file

@ -31,6 +31,7 @@ These issues are caused by bugs in Android, or in the software provided by the m
<string name="msg_packages">%1$d allowed, %2$d blocked</string>
<string name="msg_disabled">NetGuard is disabled, use the switch above to enable NetGuard</string>
<string name="msg_revoked">NetGuard has been disabled, likely by using another VPN based application</string>
<string name="msg_installed">%1$s installed</string>
<string name="msg_completed">Action completed</string>
<string name="msg_vpn">NetGuard uses a local VPN as a sinkhole to block internet traffic.
For this reason, please allow a VPN connection in the next dialog.

View file

@ -31,6 +31,7 @@ These issues are caused by bugs in Android, or in the software provided by the m
<string name="msg_packages">%1$d allowed, %2$d blocked</string>
<string name="msg_disabled">NetGuard is disabled, use the switch above to enable NetGuard</string>
<string name="msg_revoked">NetGuard has been disabled, likely by using another VPN based application</string>
<string name="msg_installed">%1$s installed</string>
<string name="msg_completed">Action completed</string>
<string name="msg_vpn">NetGuard uses a local VPN as a sinkhole to block internet traffic.
For this reason, please allow a VPN connection in the next dialog.

View file

@ -31,6 +31,7 @@ These issues are caused by bugs in Android, or in the software provided by the m
<string name="msg_packages">%1$d allowed, %2$d blocked</string>
<string name="msg_disabled">NetGuard is disabled, use the switch above to enable NetGuard</string>
<string name="msg_revoked">NetGuard has been disabled, likely by using another VPN based application</string>
<string name="msg_installed">%1$s installed</string>
<string name="msg_completed">Action completed</string>
<string name="msg_vpn">NetGuard uses a local VPN as a sinkhole to block internet traffic.
For this reason, please allow a VPN connection in the next dialog.

View file

@ -31,6 +31,7 @@ These issues are caused by bugs in Android, or in the software provided by the m
<string name="msg_packages">%1$d izin verilen, %2$d engellenen</string>
<string name="msg_disabled">NetGuard devre dışı, NetGuard etkinleştirmek için yukarıdaki anahtarını kullanın.</string>
<string name="msg_revoked">NetGuard, büyük olasılıkla başka bir VPN tabanlı uygulama kullanılarak devre dışı bırakıldı</string>
<string name="msg_installed">%1$s installed</string>
<string name="msg_completed">Eylem tamamlandı</string>
<string name="msg_vpn">NetGuard uses a local VPN as a sinkhole to block internet traffic.
For this reason, please allow a VPN connection in the next dialog.

View file

@ -27,6 +27,7 @@
<string name="msg_packages">%1$d дозволено, %2$d заблоковано</string>
<string name="msg_disabled">NetGuard вимкнено, аби увімкнути, використовуй перемикач, що знаходиться вище</string>
<string name="msg_revoked">NetGuard було вимкнено, скоріш за все через використання іншого VPN-підключення</string>
<string name="msg_installed">%1$s installed</string>
<string name="msg_completed">Дію завершено</string>
<string name="msg_vpn">NetGuard використовує локальний VPN, аби заблокувати інтернет трафік.
Через це, будь ласка, дозвольте VPN-підключення в наступному діалоговому вікні.

View file

@ -31,6 +31,7 @@ These issues are caused by bugs in Android, or in the software provided by the m
<string name="msg_packages">%1$d allowed, %2$d blocked</string>
<string name="msg_disabled">NetGuard is disabled, use the switch above to enable NetGuard</string>
<string name="msg_revoked">NetGuard has been disabled, likely by using another VPN based application</string>
<string name="msg_installed">%1$s installed</string>
<string name="msg_completed">Action completed</string>
<string name="msg_vpn">NetGuard uses a local VPN as a sinkhole to block internet traffic.
For this reason, please allow a VPN connection in the next dialog.

View file

@ -31,6 +31,7 @@
<string name="msg_packages">%1$d 已允许, %2$d 已拦截</string>
<string name="msg_disabled">NetGuard已被停用, 请使用上方的开关启用NetGuard</string>
<string name="msg_revoked">NetGuard已被停用, 可能是由于您启动了另一个基于VPN的应用</string>
<string name="msg_installed">%1$s installed</string>
<string name="msg_completed">操作完成</string>
<string name="msg_vpn">NetGuard使用一个本地VPN来重定向被阻止的网络流量.
因此请在下一个对话框中允许建立VPN连接.

View file

@ -31,6 +31,7 @@ These issues are caused by bugs in Android, or in the software provided by the m
<string name="msg_packages">%1$d allowed, %2$d blocked</string>
<string name="msg_disabled">NetGuard is disabled, use the switch above to enable NetGuard</string>
<string name="msg_revoked">NetGuard has been disabled, likely by using another VPN based application</string>
<string name="msg_installed">%1$s installed</string>
<string name="msg_completed">Action completed</string>
<string name="msg_vpn">NetGuard uses a local VPN as a sinkhole to block internet traffic.
For this reason, please allow a VPN connection in the next dialog.

View file

@ -34,6 +34,7 @@ These issues are caused by bugs in Android, or in the software provided by the m
<string name="msg_packages">%1$d allowed, %2$d blocked</string>
<string name="msg_disabled">NetGuard is disabled, use the switch above to enable NetGuard</string>
<string name="msg_revoked">NetGuard has been disabled, likely by using another VPN based application</string>
<string name="msg_installed">%1$s installed</string>
<string name="msg_completed">Action completed</string>
<string name="msg_vpn">NetGuard uses a local VPN as a sinkhole to block internet traffic.
For this reason, please allow a VPN connection in the next dialog.

View file

@ -1,12 +1,8 @@
#!/bin/bash
grep -RIl "\<string name=\"msg_bug" app/src/main/res | xargs sed -i -e '/msg_bug/d'
#grep -RIl "\<string name=\"msg_bug" app/src/main/res | xargs sed -i -e '/msg_bug/d'
#grep -RIl "\<string name=\"setting_unused" app/src/main/res | xargs sed -i -e '/setting_unused/a\
#\ \ \ \ <string name="setting_screen_other">Default allow mobile when screen is on</string>'
#grep -RIl "\<string name=\"setting_unused" app/src/main/res | xargs sed -i -e '/setting_unused/a\
#\ \ \ \ <string name="setting_screen_wifi">Default allow Wi-Fi when screen is on</string>'
#grep -RIl "\<string name=\"setting_unused" app/src/main/res | xargs sed -i -e '/setting_unused/d'
grep -RIl "\<string name=\"msg_revoked" app/src/main/res | xargs sed -i -e '/msg_revoked/a\
\ \ <string name="msg_installed">%1$s installed</string>'
#grep -RIl "\<string name=\"setting_screen_wifi" app/src/main/res | xargs sed -i -e 's/Default allow Wi-Fi when screen is on/Default allow Wi-Fi when screen on/g'
#grep -RIl "\<string name=\"setting_screen_other" app/src/main/res | xargs sed -i -e 's/Default allow mobile when screen is on/Default allow mobile when screen on/g'