How are AndFix patch methods applied?

I recently learned about the Android AndFix library , which allows real-time updates. Now, as far as I know, Dalvik does not allow manipulation of bytecode or dex at runtime.

Can someone give a good explanation of how AndFix works in real time?

+4
source share
1 answer

Looking at the sources, you can see the fix mechanism for Dalvik here . The function dalvik_replaceMethod()changes the internal state of Dalvik, changing the structure Methodto indicate a replacement method.

DEX , . , Method . Dalvik 2011 , , "art", Android.

+5

Source: https://habr.com/ru/post/1607978/


All Articles