[Android]熱修復框架AndFix測試說明
AndFix,全稱是Android hot-fix。是阿里開源的一個熱補丁框架,容許APP在不從新發布版本的狀況下修復線上的bug。支持Android 2.3 到 6.0,而且支持arm 與 X86系統架構的設備。完美支持Dalvik與ART的Runtime,補丁文件是以 .apatch 結尾的文件。
# 測試結果說明: #
1. 測試可否修復Acitivity生命週期的方法
生成補丁
![](http://static.javashuo.com/static/loading.gif)
打補丁後的結果
![](http://static.javashuo.com/static/loading.gif)
成功!!!!!!!!!!android
2.測試可否修復Fragment生命週期的方法
生成補丁
![](http://static.javashuo.com/static/loading.gif)
打補丁後的結果
![](http://static.javashuo.com/static/loading.gif)
成功!!!!!!!!!!架構
3.測試可否修復Service生命週期的方法
生成補丁
![](http://static.javashuo.com/static/loading.gif)
打補丁後的結果
![](http://static.javashuo.com/static/loading.gif)
成功!!!!!!!!!!app
4.測試可否修復Application中的方法
生成補丁
![](http://static.javashuo.com/static/loading.gif)
打補丁後的結果
閃退框架
異常信息
![](http://static.javashuo.com/static/loading.gif)
失敗!!!!!!!!!!測試
5.測試可否修復XML綁定的方法
生成補丁
![](http://static.javashuo.com/static/loading.gif)
打補丁後的結果
![](http://static.javashuo.com/static/loading.gif)
異常信息
![](http://static.javashuo.com/static/loading.gif)
失敗!!!!!!!!!!3d
6.測試可否修復通常的類中的靜態方法
生成補丁
![](http://static.javashuo.com/static/loading.gif)
打補丁後的結果
![](http://static.javashuo.com/static/loading.gif)
成功!!!!!!!!!!xml
7.測試可否修復通常的類中的構造方法
生成補丁
![](http://static.javashuo.com/static/loading.gif)
打補丁後的結果
![](http://static.javashuo.com/static/loading.gif)
失敗!!!!!!!!!!blog
8.測試可否修復通常的類中的通常public方法
生成補丁
![](http://static.javashuo.com/static/loading.gif)
打補丁後的結果
![](http://static.javashuo.com/static/loading.gif)
成功!!!!!!!!!!接口
9.測試可否修復通常的類中的通常private方法
生成補丁
![](http://static.javashuo.com/static/loading.gif)
打補丁後的結果
![](http://static.javashuo.com/static/loading.gif)
成功!!!!!!!!!!生命週期
10.測試可否修復通常的類中的通常protected方法
生成補丁
![](http://static.javashuo.com/static/loading.gif)
打補丁後的結果
![](http://static.javashuo.com/static/loading.gif)
成功!!!!!!!!!!
11.測試可否修復重寫接口方法時出現的錯誤
生成補丁
![](http://static.javashuo.com/static/loading.gif)
打補丁後的結果
![](http://static.javashuo.com/static/loading.gif)
成功!!!!!!!!!!
12.測試可否修復使用dagger2時出現的錯誤 (另加)
生成補丁
![](http://static.javashuo.com/static/loading.gif)
打補丁後的結果
![](http://static.javashuo.com/static/loading.gif)
>成功!!!!!!!!!!
總結
![](http://static.javashuo.com/static/loading.gif)
測試可否修復使用dagger2時出現的錯誤 能夠
歡迎關注本站公眾號,獲取更多信息