Ejemplo n.º 1
0
 protected final void hookLoadHeadersFromResource(
     LoadPackageParam lpparam, String className, XC_MethodHook hook) throws Throwable {
   XUtils.findAndHookMethodRecursive(
       className, lpparam.classLoader, "loadHeadersFromResource", int.class, List.class, hook);
 }
Ejemplo n.º 2
0
  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));
  }