Android熱修復原理及實現

原理: 1、PathClassLoader只能加載系統中已經安裝過的apk 2、DexClassLoader可以加載jar/apk/dex,可以從SD卡中加載未安裝的apk 可以在Activity中打印 this.getClassLoader().toString() 輸出就爲dalvik.system.PathClassLoader。 查看下PathClassLoader源碼,其基本都是調用父類
相關文章
相關標籤/搜索