f52b970c1c
Add parsing of "--agent-options" parameter to configure optional agent features. Sample: adb shell setprop wrap.system_server "start_with_lockagent --agent-options native_crash,java_crash" Test: m Test: manual Change-Id: Ie70d0155096838782cb76f8111a42eba0c20e75d
14 lines
208 B
Bash
Executable File
14 lines
208 B
Bash
Executable File
#!/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" $@
|