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

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
M66B committed Aug 15, 2014
1 parent 201dae5 commit ca10814
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/biz/bokhorst/xprivacy/XInputDevice.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import java.util.List;

import android.os.Binder;
import android.util.Log;

public class XInputDevice extends XHook {
private Methods mMethod;
Expand Down Expand Up @@ -40,12 +39,13 @@ public static List<XHook> getInstances() {

@Override
protected void before(XParam param) throws Throwable {
if (mMethod == Methods.getDescriptor || mMethod == Methods.getName) {
switch (mMethod) {
case getDescriptor:
case getName:
if (isRestricted(param))
param.setResult(PrivacyManager.getDefacedProp(Binder.getCallingUid(), "DeviceDescriptor"));

} else
Util.log(this, Log.WARN, "Unknown method=" + param.method.getName());
break;
}
}

@Override
Expand Down

0 comments on commit ca10814

Please sign in to comment.