Skip to content

Commit

Permalink
[service] add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Tornaco committed Feb 13, 2022
1 parent a9b78fb commit c9b11a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ public static void install(ClassLoader classLoader) {
}

private static void installContextForAccService(ClassLoader classLoader) {
XLog.i("AccessibilityManagerServiceHooks installContextForSyncManager");
XLog.w("AccessibilityManagerServiceHooks installContextForSyncManager");
new LocalServices(classLoader).getService(AccessibilityManagerServiceHelper
.INSTANCE.accessibilityManagerServiceClass(classLoader)).ifPresent(service -> {
XLog.i("AccessibilityManagerServiceHooks service: %s", service);
XLog.w("AccessibilityManagerServiceHooks service: %s", service);
// Update mContext.
Context context = (Context) XposedHelpers.getObjectField(service, "mContext");
XLog.i("AccessibilityManagerServiceHooks service.context: %s", context);
XLog.w("AccessibilityManagerServiceHooks service.context: %s", context);
XposedHelpers.setObjectField(service, "mContext", new ContextProxy(context, "AccessibilityManagerService"));
});

Expand Down
2 changes: 1 addition & 1 deletion android/internal/Thanox-Internal

0 comments on commit c9b11a2

Please sign in to comment.