Andreas Gampe | 72ede72 | 2019-03-04 14:15:18 -0800 | [diff] [blame] | 1 | #!/system/bin/sh |
Andreas Gampe | f52b970 | 2019-06-20 12:28:49 -0700 | [diff] [blame] | 2 | |
| 3 | AGENT_OPTIONS= |
| 4 | if [[ "$1" == --agent-options ]] ; then |
| 5 | shift |
| 6 | AGENT_OPTIONS="=$1" |
| 7 | shift |
| 8 | fi |
| 9 | |
Andreas Gampe | 72ede72 | 2019-03-04 14:15:18 -0800 | [diff] [blame] | 10 | APP=$1 |
| 11 | shift |
Andreas Gampe | 72ede72 | 2019-03-04 14:15:18 -0800 | [diff] [blame] | 12 | |
Andreas Gampe | f52b970 | 2019-06-20 12:28:49 -0700 | [diff] [blame] | 13 | $APP -Xplugin:libopenjdkjvmti.so "-agentpath:liblockagent.so$AGENT_OPTIONS" $@ |