There is an article that is relatively concise, we can refer to the following: Andfix instructions for use
Let's talk about the problems in actual use.
1: How to inherit into the Gradle project
Dependencies { ' com.alipay.euler:andfix:[email protected] '}
As of 2016-5-3, this type of citation is no longer armeabi-v7 the introduction of so library, we want to add it manually
Address: https://github.com/alibaba/AndFix/blob/master/libs/armeabi-v7a/libandfix.so
2: Code obfuscation
Add the following statement to the app's Proguard-rules.pro
#andfix-keep class com.alipay.euler.andfix.** {*;} -keep class * Extends Java.lang.annotation.annotation-keepclasseswithmembernames class * { < Methods>;}
3: Where to call the hot fix method
The sooner the better, I am in the application OnCreate function inside.
4: The same function fixed twice
After the download is successful, clean up the old patch before patching
Mpatchmanager.removeallpatch ();
The other thought of adding
"Android Andfix-based thermal remediation solutions" in combat