File: start_with_lockagent.sh

package info (click to toggle)
android-platform-frameworks-base 1%3A14~beta1-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 326,092 kB
  • sloc: java: 2,032,373; xml: 343,016; cpp: 304,181; python: 3,683; ansic: 2,090; sh: 1,871; makefile: 117; sed: 19
file content (13 lines) | stat: -rwxr-xr-x 208 bytes parent folder | download | duplicates (2)
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" $@