Commit 8865914d authored by Alex Light's avatar Alex Light
Browse files

Make static libtistress version

It turned out to be difficult to actually run the libtistress on
actual apps due to the fact it linked shared to a lot of libraries.
This adds libtistresss and libtistressds targets which build static
versions of libtistress both without and with debug checks.

This also adds a simple Agent_OnAttach entrypoint for the agent. No
special processing is performed. The agent is setup as though it were
running OnLoad.

Test: m -j50 libtistressds
      adb push $OUT/data/nativetest64/art/arm64/libtistressds.so /data/local/tmp
      adb shell setenforce 0
      adb shell am start-activity \
        --attach-agent /data/local/tmp/libtistressds.so=jvmti-stress,trace \
        com.antonioleiva.bandhookkotlin/.ui.screens.main.MainActivity

Change-Id: I75d3a81011864c62cde785fd7351c59dbd269237
parent 04d81ff7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment