diff options
author | Alex Light <allight@google.com> | 2019-03-07 10:37:29 -0800 |
---|---|---|
committer | Treehugger Robot <treehugger-gerrit@google.com> | 2019-03-08 02:28:16 +0000 |
commit | 74ab975b652456ebecc04e3a385df0a2dec1affb (patch) | |
tree | f0fa1134b7334e348cacb702dc677700f405ddd8 /test/ProfileTestMultiDex | |
parent | 175ce3dea89a40e68a685d7f873e8b9f082c45a6 (diff) |
Add simple-force-redefine agent
This adds as an agent 'libforceredefine' that will redefine classes
for us on demand. This can be used to test the behavior of
class-redefinition on apps in various compilation states.
This agent takes an argument a file that contains a new-line separated
list of fully qualified class names (see jni FindClass documentation).
These classes will be redefined to add a NOP before every function.
This transformation will be reapplied if any additional transforms are
performed.
Test: adb shell am attach-agent $(adb shell pidof com.antonioleiva.bandhookkotlin) /data/local/tmp/libforceredefine.so=/data/local/tmp/classlist; \
adb shell am attach-agent $(adb shell pidof com.antonioleiva.bandhookkotlin) /data/local/tmp/libforceredefine.so=/data/local/tmp/classlist; \
adb shell am attach-agent $(adb shell pidof com.antonioleiva.bandhookkotlin) /data/local/tmp/libforceredefine.so=/data/local/tmp/classlist
Bug: 127477438
Change-Id: I0af60ab31970a68abf8e08e6036cc48e2e4438ac
Diffstat (limited to 'test/ProfileTestMultiDex')
0 files changed, 0 insertions, 0 deletions