Skip to content

Instantly share code, notes, and snippets.

@bdnelson
bdnelson / set_android_sim_location.sh
Created October 25, 2016 16:17
Set Simulator GPS Location
#!/bin/bash
if [ $# -lt 2 ]; then
echo "$0 <latitude> <longitude> [altitude] [portNum]"
exit
fi
port="5554"
altitude="100"
auth_key=`cat $HOME/.emulator_console_auth_token | awk '{print $1}'`