summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorAlex Light <allight@google.com>2019-08-12 10:58:29 -0700
committerAlex Light <allight@google.com>2019-08-14 21:28:22 +0000
commitc4caca112f4664a50a053ed3e1b26a1ef86ec5b8 (patch)
tree7b9524ee1d1d612d29ab62f453f3afb4077e43fd /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent5f00bf12f4df5e129bfe16fa9e8c620ec5f9d4c2 (diff)
Add agent startup-attach
Add ability to give 'startup-agents' that are automatically loaded when a (debuggable) app starts. These agents are any files in the 'code_cache/startup_agents' directory. The agents are started with the apps data_directory as an argument. Test: Install debuggable apk (here com.antonioleiva.bandhookkotlin) walleye:/ $ run-as com.antonioleiva.bandhookkotlin sh walleye:/data/data/com.antonioleiva.bandhookkotlin $ mkdir code_cache/startup_agents walleye:/data/data/com.antonioleiva.bandhookkotlin $ cp /data/local/tmp/libtifasts32.so code_cache walleye:/data/data/com.antonioleiva.bandhookkotlin $ cp /data/local/tmp/libtifasts64.so code_cache walleye:/data/data/com.antonioleiva.bandhookkotlin $ cp /data/local/tmp/libchainagentss32.so code_cache/startup_agents/ walleye:/data/data/com.antonioleiva.bandhookkotlin $ cp /data/local/tmp/libchainagentss64.so code_cache/startup_agents/ walleye:/data/data/com.antonioleiva.bandhookkotlin $ echo $PWD/code_cache/libtifasts32.so=log,ClassLoad > chain_agents.txt walleye:/data/data/com.antonioleiva.bandhookkotlin $ echo $PWD/code_cache/libtifasts64.so=log,ClassLoad >> chain_agents.txt Start bandhookkotlin Examine logcat Bug: 135627501 Cherry-picked from commit c0fce111c8b due to merge conflict. Change-Id: Ib82b27df90c7964a995288d8b2b3d348a11cdd80 Merged-In: Ib82b27df90c7964a995288d8b2b3d348a11cdd80
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions