summaryrefslogtreecommitdiff
path: root/tools/lock_agent/start_with_lockagent.sh
blob: 70ed5c5e1dd70a23165a8184be5f90e55a3ad427 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/system/bin/sh

AGENT_OPTIONS=
if [[ "$1" == --agent-options ]] ; then
  shift
  AGENT_OPTIONS="=$1"
  shift
fi

APP=$1
shift

$APP -Xplugin:libopenjdkjvmti.so "-agentpath:liblockagent.so$AGENT_OPTIONS" $@