diff --git a/CHANGELOG.md b/CHANGELOG.md index e36119a2e..2e3d97280 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,10 +15,13 @@ Changelog **Next release** -* Updated Norwegian translation - [Open issues](https://github.com/M66B/XPrivacy/issues?state=open) +**Version 2.0.1 STABLE** + +* Reverted restriction for time zone ([issue](/../../issues/1524)) +* Updated Norwegian translation + **Version 2.0 STABLE** * Replaced XML settings files by a privacy service and a privacy database diff --git a/res/values/functions.xml b/res/values/functions.xml index c3bac3957..0d2d38ad7 100644 --- a/res/values/functions.xml +++ b/res/values/functions.xml @@ -239,7 +239,6 @@ Google documentation]]> Google documentation]]> - Google documentation]]> Google documentation]]> Google documentation]]> diff --git a/src/biz/bokhorst/xprivacy/Meta.java b/src/biz/bokhorst/xprivacy/Meta.java index 67490ca7e..07f5731de 100644 --- a/src/biz/bokhorst/xprivacy/Meta.java +++ b/src/biz/bokhorst/xprivacy/Meta.java @@ -272,8 +272,6 @@ public static List get() { mListHook.add(new Hook("system", "android.intent.action.EXTERNAL_APPLICATIONS_UNAVAILABLE", "", 8, null, null).dangerous()); mListHook.add(new Hook("system", "ApplicationsProvider", "", 1, null, null)); - mListHook.add(new Hook("system", "TZ.getDefault", "", 1, "2.0", null).dangerous()); - mListHook.add(new Hook("view", "loadUrl", "", 1, null, null).whitelist(cTypeUrl)); mListHook.add(new Hook("view", "WebView", "", 1, null, null)); mListHook.add(new Hook("view", "getDefaultUserAgent", "", 17, null, null)); diff --git a/src/biz/bokhorst/xprivacy/XPrivacy.java b/src/biz/bokhorst/xprivacy/XPrivacy.java index 882ad6d10..f08030fe4 100644 --- a/src/biz/bokhorst/xprivacy/XPrivacy.java +++ b/src/biz/bokhorst/xprivacy/XPrivacy.java @@ -143,9 +143,6 @@ protected void beforeHookedMethod(MethodHookParam param) throws Throwable { // System properties hookAll(XSystemProperties.getInstances(), mSecret); - // Time zone - hookAll(XTimeZone.getInstances(), mSecret); - // Web view hookAll(XWebView.getInstances(), mSecret); diff --git a/src/biz/bokhorst/xprivacy/XTimeZone.java b/src/biz/bokhorst/xprivacy/XTimeZone.java deleted file mode 100644 index 9c7c43fa8..000000000 --- a/src/biz/bokhorst/xprivacy/XTimeZone.java +++ /dev/null @@ -1,48 +0,0 @@ -package biz.bokhorst.xprivacy; - -import java.util.ArrayList; -import java.util.List; -import java.util.SimpleTimeZone; - -import android.util.Log; - -public class XTimeZone extends XHook { - private Methods mMethod; - - private XTimeZone(Methods method, String restrictionName) { - super(restrictionName, method.name(), "TZ." + method.name()); - mMethod = method; - } - - public String getClassName() { - return "java.util.TimeZone"; - } - - // public static synchronized TimeZone getDefault() - // http://developer.android.com/reference/android/app/ActivityManager.html - - private enum Methods { - getDefault - }; - - public static List getInstances() { - List listHook = new ArrayList(); - listHook.add(new XTimeZone(Methods.getDefault, PrivacyManager.cSystem)); - return listHook; - } - - @Override - protected void before(XParam param) throws Throwable { - // Do nothing - } - - @Override - protected void after(XParam param) throws Throwable { - if (mMethod == Methods.getDefault) { - if (param.getResult() != null && isRestricted(param)) - param.setResult(new SimpleTimeZone(0, "UTC")); - - } else - Util.log(this, Log.WARN, "Unknown method=" + param.method.getName()); - } -}