#install retroarch wget -c "https://buildbot.libretro.com/stable/1.16.0/android/RetroArch.apk" -O /tmp/RetroArch.apk adb install -g /tmp/RetroArch.apk #load retroarch and install cores [example: mame-current] adb shell am start -n com.retroarch/.browser.retroactivity.RetroActivityFuture #!!!go to "Online Updater" and install all updates at bottom of list!!!! echo 'Go to "Online Updater" and install all updates at bottom of list.' echo "Once Complete Press Enter To Continue." read q #Download and push roms to Android device mkdir /tmp/roms cd /tmp/roms wget -c "https://archive.org/download/mame-merged/mame-merged/qsound_hle.zip" wget -c "https://archive.org/download/mame-merged/mame-merged/mvsc.zip" #adb shell mkdir -p /sdcard/RetroArch/downloads adb push mvsc.zip qsound_hle.zip /sdcard/RetroArch/downloads #make sure retroarch is closed adb shell am force-stop com.retroarch #cores can be found in /data/data/com.retroarch/cores/ #although you will need root to list them through the shell #another option it find core commands is here: #https://pegasus-frontend.org/tools/metagen-android/ #load game with core adb shell am start -n com.retroarch/.browser.retroactivity.RetroActivityFuture -e ROM /sdcard/RetroArch/downloads/mvsc.zip -e LIBRETRO /data/data/com.retroarch/cores/mamearcade_libretro_android.so -e CONFIGFILE /storage/emulated/0/Android/data/com.retroarch/files/retroarch.cfg -e QUITFOCUS --activity-clear-task --activity-clear-top --activity-no-history