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

Commit

Permalink
Log super class names
Browse files Browse the repository at this point in the history
Refs #1366
  • Loading branch information
M66B committed Feb 19, 2014
1 parent 7bbbe40 commit 904cbc0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/biz/bokhorst/xprivacy/XPrivacy.java
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,13 @@ public static void handleGetSystemService(XHook hook, String name, Object instan

if ("android.telephony.MSimTelephonyManager".equals(instance.getClass().getName())) {
Util.log(hook, Log.WARN, "Telephone service=" + Context.TELEPHONY_SERVICE);
for (Method method : instance.getClass().getDeclaredMethods())
Util.log(hook, Log.WARN, "Declared " + method);
Class<?> clazz = instance.getClass();
while (clazz != null) {
Util.log(hook, Log.WARN, "Class " + clazz);
for (Method method : clazz.getDeclaredMethods())
Util.log(hook, Log.WARN, "Declared " + method);
clazz = clazz.getSuperclass();
}
}

if (name.equals(Context.ACCOUNT_SERVICE)) {
Expand Down

0 comments on commit 904cbc0

Please sign in to comment.