Skip to content
This repository has been archived by the owner on Sep 6, 2019. It is now read-only.

Commit

Permalink
Do no report mContext not being found
Browse files Browse the repository at this point in the history
Refs #2209
  • Loading branch information
M66B committed May 27, 2015
1 parent 5761d2f commit 934e398
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/biz/bokhorst/xprivacy/PrivacyService.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 934e398

Please sign in to comment.