@echo off
setlocal
cd /d "%~dp0"
set "APK=OK_ITHAKI_V249472_COMPLETE_TRANSLATION_BIL_HOME_FEED_AUDIO_DEBUG.apk"
if not exist "%APK%" if exist "app\build\outputs\apk\debug\app-debug.apk" set "APK=app\build\outputs\apk\debug\app-debug.apk"
set "ADB=%LOCALAPPDATA%\Android\Sdk\platform-tools\adb.exe"
if not exist "%ADB%" set "ADB=adb"
"%ADB%" devices
"%ADB%" install -r "%APK%"
if errorlevel 1 (echo INSTALL_FAILED&pause&exit /b 1)
"%ADB%" shell am force-stop com.okithaki.autoapp
"%ADB%" shell monkey -p com.okithaki.autoapp -c android.intent.category.LAUNCHER 1
pause
