Closed LennyPenny closed 6 years ago
Hey You can try this way .
DexFile dexFile = new DexFile(Environment.getExternalStorageDirectory()+"/classes.dex");
Class clazz = dexFile.loadClass("net.androidwing.hotfix.HotFix",loadPackageParam.classLoader);
clazz.getDeclaredMethod("invoke", Activity.class).invoke(null,(Activity)param.thisObject);
The code will run dynamically.
Finally hook the gradle task transformClassesWithDex for push dex file automatically.
Sorry for my bad English .
Enjoy XD
@LennyPenny this library has updated. see the README
中文说明在哪里啊?
Hey I kinda figured out what this is supposed to do using google translate. I'm really excited for it!
Unfortunately I couldn't really figure out how to use it (the auto translation is really bad)
Maybe someone here is proficient in English and can write up some instructions?:)