INNER CODE UNIT · C

PID

schwabe/ics-openvpn · misc/debug-openvpn.sh:58

PID=$(get_pid_of /data/data/de.blinkt.openvpn/cache/miniopenvpn)


DEBUG_SOCKET=localhost:7788
echo " GDB RUN: adb_cmd shell run-as $PACKAGE_NAME /data/local/tmp/gdbserver +$DEBUG_SOCKET --attach $PID" 
run adb_cmd shell run-as $PACKAGE_NAME /data/local/tmp/gdbserver +$DEBUG_SOCKET --attach $PID &

if [ $? != 0 ] ; then
    echo "ERROR: Could not launch gdbserver on the device?"
    exit 1
fi
log "Launched gdbserver succesfully."

# Setup network redirection
log "Setup network redirection"
run adb_cmd forward tcp:$DEBUG_PORT localhost:7788
if [ $? != 0 ] ; then
    echo "ERROR: Could not setup network redirection to gdbserver?"

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…