From 934e398b34ec355bc582a02bc127ab883af7bce9 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 27 May 2015 20:46:03 +0200 Subject: [PATCH] Do no report mContext not being found Refs #2209 --- src/biz/bokhorst/xprivacy/PrivacyService.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/biz/bokhorst/xprivacy/PrivacyService.java b/src/biz/bokhorst/xprivacy/PrivacyService.java index d721b5173..ca46ab921 100644 --- a/src/biz/bokhorst/xprivacy/PrivacyService.java +++ b/src/biz/bokhorst/xprivacy/PrivacyService.java @@ -2312,10 +2312,8 @@ private Context getContext() { try { Class cam = Class.forName("com.android.server.am.ActivityManagerService"); Object am = cam.getMethod("self").invoke(null); - if (am == null) { - Util.log(null, Log.ERROR, cam.getName() + ".mContext not found"); + if (am == null) return null; - } Field mContext = cam.getDeclaredField("mContext"); mContext.setAccessible(true); return (Context) mContext.get(am);