Is it possible to inject code in an android application?

后端 未结 5 775
闹比i
闹比i 2020-12-15 13:58

I would like to inject code in an android application at runtime. I have tried to use dx tool to generate a dexfile in the sdcard but when i want to instantiate, it fails. A

5条回答
  •  孤街浪徒
    2020-12-15 14:35

    You can specify your own DEX file with the DexClassLoader class. This is used by a few apps that want "plugin" behavior.

    There's nothing on the device that will generate DEX files, however. There is no mechanism for generating code on the fly and making use of it.

提交回复
热议问题