Created
February 2, 2021 01:27
-
-
Save d12/d7add71c9e84c46839ef16e265c562d4 to your computer and use it in GitHub Desktop.
Installs an APK onto the quest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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