Skip to content

Instantly share code, notes, and snippets.

@d12
Created February 2, 2021 01:27
Show Gist options
  • Save d12/d7add71c9e84c46839ef16e265c562d4 to your computer and use it in GitHub Desktop.
Save d12/d7add71c9e84c46839ef16e265c562d4 to your computer and use it in GitHub Desktop.
Installs an APK onto the quest
function vrinstall () {
FILE="filename.apk"
device_id=$(adb devices | head -2 | tail -1 | awk '{print $1}')
if [ -z $device_id ]
then
echo "No device plugged in."
sleep 1
vrinstall
else
echo "Found device $device_id"
adb -s $device_id install -g -r $FILE
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment