Analogue ASM or CGLIB for Dalvik

I am looking for a CGLIB analog that can be used for Dalvik bytecode. Is there such a library in the Android world?

Perhaps there is a way to translate the CGLIB result to Davlik bytecode on the fly?

+6
source share
3 answers

Recently dialed this library from the Android team in google code: Dexmaker

There seems to be potential. This is due to the ehancement request for Android: Bytecode Dalvik generation

+5
source

You can try incubating ASM-subproject asmdex . Although at present, documentation for documentation is not enough.

+4
source

Check out Byte Buddy , which in its latest version supports Android.

+1
source

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


All Articles