Skip to content

Commit

Permalink
Hook all apps
Browse files Browse the repository at this point in the history
  • Loading branch information
Tornaco committed Jul 25, 2021
1 parent 7bc72fe commit 5afc521
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
Binary file modified .DS_Store
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
package github.tornaco.android.thanox.magisk.bridge;

import static github.tornaco.android.thanos.core.util.AppUtils.currentApplicationInfo;
import static github.tornaco.android.thanox.magisk.bridge.Logging.logging;

import android.content.pm.ApplicationInfo;
import android.os.Binder;
import android.util.Log;

import github.tornaco.android.thanos.BuildProp;
import github.tornaco.android.thanos.core.util.AbstractSafeR;
import util.XposedHelpers;

import static github.tornaco.android.thanos.core.util.AppUtils.currentApplicationInfo;
import static github.tornaco.android.thanox.magisk.bridge.Logging.logging;

public class ClassLoaderPatch {
private static final boolean LOGV = false;

Expand Down Expand Up @@ -112,11 +111,10 @@ public void runSafety() {

ThanoxBridge.nativeInstallAppHook();

if (!pkgName.contains(BuildProp.THANOS_APP_PKG_NAME_PREFIX)) {
SystemServiceHookInstaller.installIServiceManagerHook();
SystemServiceHookInstaller.installServiceManagerCacheHook();
SystemServiceHookInstaller.installActivityManager();
}
// Hook all apps!
SystemServiceHookInstaller.installIServiceManagerHook();
SystemServiceHookInstaller.installServiceManagerCacheHook();
SystemServiceHookInstaller.installActivityManager();
}
}.setName("onAppProcess").run();
}
Expand Down

0 comments on commit 5afc521

Please sign in to comment.