As a mobile project, alibaba/AndFix has picked up 7.0k stars on GitHub (C++). AndFix is a library that offer hot-fix for Android App.
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
AndFix is a solution to fix the bugs online instead of redistributing Android App. It is distributed as Android Library.
Andfix is an acronym for "Android hot-fix".
AndFix supports Android version from 2.3 to 7.0, both ARM and X86 architecture, both Dalvik and ART runtime, both 32bit and 64bit.
The compressed file format of AndFix's patch is .apatch. It is dispatched from your own server to client to fix your App's bugs.
Principle
The implementation principle of AndFix is method body's replacing,
Method replacing
AndFix judges the methods should be replaced by java custom annotation and replaces it by hooking it. AndFix has a native method art_replaceMethod in ART or dalvik_replaceMethod in Dalvik.
For more details, here.
Fix Process
Integration
How to get?
Directly add AndFix aar to your project as compile libraries.
Now you get the application savior, the patch file. Then you need to dispatch it to your client in some way, push or pull.
Sometimes, your team members may fix each other's bugs, and generate not only one .apatch. For this situation, you can
merge .apatch files using this tool,
Rename the patch file to out.apatch, and then copy it to sdcard.
Run 1.apk and view log.
Notice
ProGuard
If you enable ProGuard, you must save the mapping.txt, so your new version's build can use it with "-applymapping".
And it is necessary to keep classes as follow,
Native method
com.alipay.euler.andfix.AndFix
Annotation
com.alipay.euler.andfix.annotation.MethodReplace
To ensure that these classes can be found after running an obfuscation and static analysis tool like ProGuard, add the configuration below to your ProGuard configuration file.
-keep class * extends java.lang.annotation.Annotation
-keepclasseswithmembernames class * {
native <methods>;
}
Self-Modifying Code
If you use it, such as Bangcle. To generate patch file, you'd better to use raw apk.
Security
The following is important but out of AndFix's range.
No homepage URL was recorded for alibaba/AndFix in TopGit's last sync. The README tab above frequently contains screenshots and demo links, or check the repository description on GitHub.
How active is development on alibaba/AndFix?
The most recent commit recorded on alibaba/AndFix was 6.0 years ago, based on the GitHub push timestamp. The repository has 1.6k forks — one of the better signals of community interest.
Is alibaba/AndFix open source?
TopGit's metadata for alibaba/AndFix does not record a license. Most public repositories on GitHub ARE open source, but the exact terms vary — verify by opening the LICENSE file directly.
What topics is alibaba/AndFix associated with?
GitHub's repository topics for alibaba/AndFix: "android", "hotfix". TopGit's editorial category is Mobile.
Where do I read more about alibaba/AndFix?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/alibaba/AndFix is the definitive source.
Read full README in the tab above.
Curious whether AndFix is right for you?
Let ChatGPT, Claude, or Perplexity look into it — click below and see what AI actually says about AndFix.