6

I'm looking for a CGLIB analog usable for Dalvik bytecode. Is there such library in the Android world?

Maybe, there is a way to translate CGLIB result to Davlik bytecode on-the-fly?

Rafael Winterhalter
  • 42,759
  • 13
  • 108
  • 192
uhbif19
  • 3,139
  • 3
  • 26
  • 48

3 Answers3

5

Just came across this library from the Android team on google code recently: Dexmaker

Seems to have potential. This is related specifcially to an ehancement request to Android: Dalvik Bytecode generation

John Ericksen
  • 10,995
  • 4
  • 45
  • 75
4

You can try incubation ASM-subproject asmdex. Though currently there isn't much documentation available.

Eugene Kuleshov
  • 31,461
  • 5
  • 66
  • 67
1

Have a look at Byte Buddy which in its newest version supports Android.

Rafael Winterhalter
  • 42,759
  • 13
  • 108
  • 192