This bash script was written to easily install an .apk and the matching .obb file (also know as a split binary build) on an Android device. It's basically just a wrapper for some adb commands.
- This script assumes you have adb (Android debug bridge) installed
- This script has only been tested on macOS
- Download this script
- Change the
project_namein the script or specify a project name with-f(See options below) - Place script where the
.apkand.obbare located cdto.apkand.obb location,typeinstall_obb.sh- Huzzah!
- Side-note - If you have multiple
.apkand.obbfiles in the directory with the same name, the script will just take the most recent
install_obb.sh -r- re-install the app and keep its data on the device. Off by defautinstall_obb.sh -f- Overwrite default project name in script
- Put script in
/usr/local/bin, or directory of your choice - Then export path to bash profile
echo ‘export INSTALL_OBB_SCRIPT=/usr/local/bin/install_obb.sh’ >> ~/.bash_profileecho ‘export PATH=${PATH}:$INSTALL_OBB_SCRIPT >> ~/.bash_profile. ~/.bash_profile- Now you can script from anywhere
- Double Huzzah!
- Daniel Jenkyn
Be careful not to leave the speech marks around your project name, or this won't push the obb correctly (or at least it didn't for me)