protected final void hookLoadHeadersFromResource( LoadPackageParam lpparam, String className, XC_MethodHook hook) throws Throwable { XUtils.findAndHookMethodRecursive( className, lpparam.classLoader, "loadHeadersFromResource", int.class, List.class, hook); }
public static List<ApkVariant> getAllMatching(String packageName) { final ApplicationInfo appInfo = XUtils.getApplicationInfo(packageName); if (appInfo == null) return Collections.emptyList(); return getAllMatching(appInfo, new ClassCheckerWithApk(appInfo.sourceDir)); }