|
|
@ -100,6 +100,7 @@ public final class AppInstrumentation extends BaseInstrumentationDelegate implem |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public Application newApplication(ClassLoader cl, String className, Context context) throws InstantiationException, IllegalAccessException, ClassNotFoundException { |
|
|
|
public Application newApplication(ClassLoader cl, String className, Context context) throws InstantiationException, IllegalAccessException, ClassNotFoundException { |
|
|
|
ContextCompat.fix(context); |
|
|
|
ContextCompat.fix(context); |
|
|
|
|
|
|
|
if (BlackBoxCore.get().isEnableHookDump()) { |
|
|
|
String absolutePath = new File(BlackBoxCore.get().getDexDumpDir(), context.getPackageName()).getAbsolutePath(); |
|
|
|
String absolutePath = new File(BlackBoxCore.get().getDexDumpDir(), context.getPackageName()).getAbsolutePath(); |
|
|
|
FileUtils.mkdirs(absolutePath); |
|
|
|
FileUtils.mkdirs(absolutePath); |
|
|
|
Class<?> aClass = cl.loadClass(VMCore.class.getName()); |
|
|
|
Class<?> aClass = cl.loadClass(VMCore.class.getName()); |
|
|
@ -110,6 +111,7 @@ public final class AppInstrumentation extends BaseInstrumentationDelegate implem |
|
|
|
} catch (Throwable e) { |
|
|
|
} catch (Throwable e) { |
|
|
|
e.printStackTrace(); |
|
|
|
e.printStackTrace(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
return super.newApplication(cl, className, context); |
|
|
|
return super.newApplication(cl, className, context); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|