alibaba/AndFix hiện có 7.0k sao trên GitHub, viết chủ yếu bằng C++. AndFix is a library that offer hot-fix for Android App.
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
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.
GitHub topics của alibaba/AndFix: "android", "hotfix". TopGit xếp repo vào nhóm Mobile.
alibaba/AndFix có phải mã nguồn mở không?
TopGit chưa ghi nhận license cho alibaba/AndFix. Phần lớn repo public trên GitHub là mã nguồn mở, nhưng điều khoản khác nhau từng repo — mở file LICENSE để xác nhận.
alibaba/AndFix có website riêng không?
TopGit chưa ghi nhận URL trang chủ cho alibaba/AndFix. Phần README ở tab phía trên thường có link demo, hoặc xem mô tả GitHub của repo.
alibaba/AndFix còn đang phát triển không?
Commit gần nhất trên alibaba/AndFix là 6.0 năm trước (theo timestamp GitHub). Repo có 1.6k fork — một chỉ báo về mức độ quan tâm của cộng đồng.
Đọc thêm về alibaba/AndFix ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/alibaba/AndFix là nguồn chính thức.
Đọc đầy đủ README ở tab phía trên.
Vẫn đang phân vân về AndFix?
Một cú bấm sẽ gửi câu hỏi kèm trang này cho AI — xem AI nói gì về AndFix.