Pavlov VR Quest Sideload

December, 2019

Pavlov VR on the Oculus Quest has scripts to sideload from a Windows PC and Mac, but nothing for Linux users.

As a Quest and Linux user, I modified the Windows script to sideload the game from Debian/Ubuntu variants.

Install Android platform tools

This is easy, with modern Debian/Ubuntu, just run:

# apt-get install adb

Quest udev rules

Run the following lines to add the Quest to udev and permit your user account to access the device:

# echo 'SUBSYSTEM=="usb", ATTR{idVendor}=="2833", ATTR{idProduct}=="0186", MODE="0666", GROUP="plugdev"' >> /etc/udev/rules.d/51-android.rules
# udevadm control --reload-rules

Once you've done that, plug in your Quest via USB and test that it works by running:

adb shell

Note that to do this, you need to have already enabled developer mode on your Quest (which requires you registering on the Quest developer website). If this is the first time you have ever connected to your Quest via USB, there will be a dialog on the Quest you have to accept before your PC can connect.

The install script

Download the latest Windows build/zip from the Pavlov VR wiki Page (currently build 22). Unpack the zip file and create a new file in the same folder as the extracted files called install.sh with the following contents:

#!/bin/bash

APK=Pavlov-Android-Shipping-armv7-es2.apk
BUILD=22

echo Uninstalling existing application. Failures here can almost always be ignored.
adb uninstall com.davevillz.pavlov
echo Uninstalling existing application. Failures here can almost always be ignored.
adb uninstall com.vankrupt.pavlov
echo Installing existing application. Failures here indicate a problem with the device connection or storage permissions and are fatal.
adb install $APK

STORAGE=/sdcard

adb shell rm -r $STORAGE/UE4Game/Pavlov
adb shell rm -r $STORAGE/UE4Game/UE4CommandLine.txt
adb shell rm -r $STORAGE/obb/com.vankrupt.pavlov
adb shell rm -r $STORAGE/Android/obb/com.vankrupt.pavlov
adb shell pm grant com.vankrupt.pavlov android.permission.RECORD_AUDIO
adb shell pm grant com.vankrupt.pavlov android.permission.READ_EXTERNAL_STORAGE
adb shell pm grant com.vankrupt.pavlov android.permission.WRITE_EXTERNAL_STORAGE
adb push name.txt $STORAGE/pavlov.name.txt

echo Installing new data. Failures here indicate storage problems missing SD card or bad permissions and are fatal.
adb push main.$BUILD.com.vankrupt.pavlov.obb $STORAGE/Download/obb/com.vankrupt.pavlov/main.$BUILD.com.vankrupt.pavlov.obb
adb shell mv $STORAGE/Download/obb/com.vankrupt.pavlov $STORAGE/Android/obb/com.vankrupt.pavlov

Edit the name.txt file to set your preferred player name and if the APK filename or build number have changed, edit the APK and BUILD variables at the top of the file.

Finally, make sure your Quest is plugged into your computer via USB and run the script to install Pavlov VR.

Back

Me

Articles

Free Software