From fffc2947253c83a577c085d0d9327bcb4da5dc78 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 12 Mar 2016 08:09:40 +0100 Subject: [PATCH] 2.7 beta --- app/app.iml | 35 ++++------ app/build.gradle | 4 +- .../java/eu/faircode/netguard/Receiver.java | 4 +- .../main/java/eu/faircode/netguard/Rule.java | 3 +- app/src/main/res/values-he/strings.xml | 66 +++++++++---------- 5 files changed, 52 insertions(+), 60 deletions(-) diff --git a/app/app.iml b/app/app.iml index 2d0625b8..7dcb11f9 100644 --- a/app/app.iml +++ b/app/app.iml @@ -41,12 +41,6 @@ - - - - - - @@ -54,6 +48,12 @@ + + + + + + @@ -61,13 +61,6 @@ - - - - - - - @@ -75,6 +68,13 @@ + + + + + + + @@ -112,26 +112,17 @@ - - - - - - - - - diff --git a/app/build.gradle b/app/build.gradle index d82e6847..1f85a097 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -9,8 +9,8 @@ model { applicationId = "eu.faircode.netguard" minSdkVersion.apiLevel = 14 targetSdkVersion.apiLevel = 23 - versionCode = 2016031002 - versionName = "2.6" + versionCode = 2016031203 + versionName = "2.7" archivesBaseName = "NetGuard-v$versionName-$versionCode" buildConfigFields { diff --git a/app/src/main/java/eu/faircode/netguard/Receiver.java b/app/src/main/java/eu/faircode/netguard/Receiver.java index 0841d55f..d30b8041 100644 --- a/app/src/main/java/eu/faircode/netguard/Receiver.java +++ b/app/src/main/java/eu/faircode/netguard/Receiver.java @@ -47,7 +47,7 @@ public class Receiver extends BroadcastReceiver { if (Intent.ACTION_PACKAGE_ADDED.equals(intent.getAction())) { // Application added if (!intent.getBooleanExtra(Intent.EXTRA_REPLACING, false)) { - Rule.updatePackages(context); + Rule.clearCache(context); // Show notification if (IAB.isPurchased(ActivityPro.SKU_NOTIFY, context)) { @@ -59,7 +59,7 @@ public class Receiver extends BroadcastReceiver { } else if (Intent.ACTION_PACKAGE_REMOVED.equals(intent.getAction())) { // Application removed if (!intent.getBooleanExtra(Intent.EXTRA_REPLACING, false)) - Rule.updatePackages(context); + Rule.clearCache(context); if (intent.getBooleanExtra(Intent.EXTRA_DATA_REMOVED, false)) { // Remove settings diff --git a/app/src/main/java/eu/faircode/netguard/Rule.java b/app/src/main/java/eu/faircode/netguard/Rule.java index 0ed70fd9..144d6743 100644 --- a/app/src/main/java/eu/faircode/netguard/Rule.java +++ b/app/src/main/java/eu/faircode/netguard/Rule.java @@ -149,7 +149,8 @@ public class Rule { } } - public static void updatePackages(Context context) { + public static void clearCache(Context context) { + Log.i(TAG, "Clearing cache"); synchronized (context.getApplicationContext()) { cachePackageInfo = null; cacheLabel.clear(); diff --git a/app/src/main/res/values-he/strings.xml b/app/src/main/res/values-he/strings.xml index 8b49f914..1d2845ee 100644 --- a/app/src/main/res/values-he/strings.xml +++ b/app/src/main/res/values-he/strings.xml @@ -15,7 +15,7 @@ however it is impossible to guarantee NetGuard will work correctly on every devi הצג יישומים מנוטרלים מיין יישומים מיון לפי שם - Sort on uid + מיין לפי uid מיון לפי השימוש בנתונים הצג לוג העדפות @@ -52,11 +52,11 @@ however it is impossible to guarantee NetGuard will work correctly on every devi נושא: %1$s השתמש בערכת נושא כהה אפשר אוטומטית לאחר %1$s דקות - Delay screen off %1$s minutes + השהה מסך אחרי %1$s דקות בדוק לעדכון גירסא אפשרויות רשת - Allow tethering - Wi-Fi home networks: %1$s + אפשר מודם סללורי + רשת Wi-Fi ביתית: %1$s Handle metered Wi-Fi networks Consider 2G unmetered Consider 3G unmetered @@ -78,35 +78,35 @@ however it is impossible to guarantee NetGuard will work correctly on every devi חסם גודל קובץ PCAP: %s MB Proxy server: %s Proxy username - Proxy password - Speed notification - Show speed notification - Show top applications - Sample interval: %s ms - Number of samples: %s s - Backup - Export settings - Import settings - Import hosts file - Hosts file download URL - Download hosts file - Technical information - General - Networks - Subscriptions - After disabling using the widget, automatically enable NetGuard again after the selected number of minutes (enter zero to disable this option) - After turning the screen off, keep screen on rules active for the selected number of minutes (enter zero to disable this option) - Check for new releases on GitHub twice daily - Depending on the Android version, tethering may work or may not work. Tethered traffic cannot be filtered. - Apply Wi-Fi network rules for selected network only (apply mobile network rules for other Wi-Fi networks) - Apply mobile network rules to metered (paid, tethered) Wi-Fi networks - Apply Wi-Fi network rules for 2G data connections - Apply Wi-Fi network rules for 3G data connections - Apply Wi-Fi network rules for LTE data connections - Do not apply roaming rules when the SIM and mobile network country are the same - Define rules for system applications (for experts) - Log attempts to access the internet for applications. This might result in extra battery usage. - Show a status bar notification when an application attempts to access a new internet address + סיסמת Proxy + מהירות התראה + הצג מהירות התראה + הצג את היישומים העליונים + מרווח הדגימה: %%s מ\"ש + מספר דוגמאות: %s + גיבוי + הגדרות ייצוא + יבא הגדרות + ייבוא קובץ hosts + כתובת להורדה של קובץ hosts + הורד קובץ hosts + מידע טכני + כללי + רשתות + מנויים + לאחר השבתה דרך הווידגט, אפשר לNetGuard לפעול באופן אוטמטי לאחר מספר הדקות (הזן אפס על מנת לבטל אופציה זאת) + לאחר כיבוי המסך, המשך לחוקים לפעול למשך מספר דקות (הזן 0 כדי לבטל אפשרות זו) + בדוק עבור עדכונים חדשים דרך GitHub באופן יומי + בהתאם גירסת אנדרואיד, ייתכן ומודם סללורי לא יפעל, אין אפשרות לסנן תעבורה דרך מודם סללורי. + החל חוקים עבור רשת Wi-Fi הנבחרת בלבד (החל חוקי רשת סללורית עבור רשתות Wi-Fi אחרות) + החל כללים עבור רשת סללורית (בתשלום, מודם סלולרי) + החל חוקי רשת Wi-Fi עבור חיבור נתונים 2G + החל חוקי רשת Wi-Fi עבור חיבור נתונים 3G + החל חוקי רשת Wi-Fi עבור חיבור נתונים LTE + אל תאפשר להחיל חוקי נדידת נתונים כאשר מדינת הסים והרשת זהים + הגדר חוקים עבור יישומי מערכת (עבור מומחים) + לוג(יומן) מנסה לגשת לאינטרנט עבור יישומים. אפשרות זו עלולה לצרוך סוללה + הצג התראה כאשר יישום מנסה לגשת כתובת אינטרנט חדשה Filter IP packets going out of the VPN tunnel. This might result in extra battery usage. Track the number of bytes sent and received for each application and address. This might result in extra battery usage. Respond with \'name error\' (NXDOMAIN) for blocked domain names. This switch is disabled when no hosts file is available.