Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f52b970c authored by Andreas Gampe's avatar Andreas Gampe
Browse files

LockAgent: Add agent parameters to start_lock_agent script

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
parent 8695b407
Loading
Loading
Loading
Loading
+9 −1
Original line number Original line Diff line number Diff line
#!/system/bin/sh
#!/system/bin/sh

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

APP=$1
APP=$1
shift
shift
$APP -Xplugin:libopenjdkjvmti.so -agentpath:liblockagent.so $@


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