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

Commit

Permalink
Attempt to fix #50
Browse files Browse the repository at this point in the history
@vipere could you please try this
(since I cannot reproduce this problem)
  • Loading branch information
Marcel Bokhorst committed Jun 22, 2013
1 parent ac56ab9 commit 2be29b0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/biz/bokhorst/xprivacy/XRuntime.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ protected void before(MethodHookParam param) throws Throwable {
if (isRestricted(param, mCommand == null ? getMethodName() : mCommand))
param.setThrowable(new IOException(XRestriction.getDefacedString()));
}
} else if (param.getResult() != null)
if (isRestricted(param))
param.setResult(null);
}
}

@Override
protected void after(MethodHookParam param) throws Throwable {
// Do nothing
if (!param.method.getName().equals("exec"))
if (isRestricted(param))
param.setResult(new UnsatisfiedLinkError(XRestriction.getDefacedString()));
}
}

0 comments on commit 2be29b0

Please sign in to comment.