From 68fc8d2e40d2d154a9277de2b30c65b845b2fbf3 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 12 Jul 2014 12:24:38 +0200 Subject: [PATCH] Google Map V1 restrictions for Cydia Substrate Refs #1807 --- src/biz/bokhorst/xprivacy/XPrivacy.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/biz/bokhorst/xprivacy/XPrivacy.java b/src/biz/bokhorst/xprivacy/XPrivacy.java index 713f7cbff..dd67127e5 100644 --- a/src/biz/bokhorst/xprivacy/XPrivacy.java +++ b/src/biz/bokhorst/xprivacy/XPrivacy.java @@ -137,7 +137,15 @@ public void classLoaded(Class clazz) { } }); - // Google Map + // Google Map V1 + MS.hookClassLoad("com.google.android.maps.GeoPoint", new MS.ClassLoadHook() { + @Override + public void classLoaded(Class clazz) { + hookAll(XGoogleMapV1.getInstances(), clazz.getClassLoader(), mSecret); + } + }); + + // Google Map V2 MS.hookClassLoad("com.google.android.gms.maps.GoogleMap", new MS.ClassLoadHook() { @Override public void classLoaded(Class clazz) {