/
Dr.RocketVR
/
UPAK
Обзор
Документация
Войти
/
Dr.RocketVR
/
UPAK
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
Development
NewBuild2/Android_ASTC/Install_Learning-arm64.bat
54 строки
2 KB
SM2-17-16 Admin
First Try
21 мар 2025, 17:05
21 мар 2025, 17:05
00b4ad2
Код
Авторство
О чём код?
setlocal if NOT "%UE_SDKS_ROOT%"=="" (call %UE_SDKS_ROOT%\HostWin64\Android\SetupEnvironmentVars.bat) set ANDROIDHOME=%ANDROID_HOME% if "%ANDROIDHOME%"=="" set ANDROIDHOME=C:/Users/Admin/AppData/Local/Android/Sdk set ADB=%ANDROIDHOME%\platform-tools\adb.exe set AFS=.\win-x64\UnrealAndroidFileTool.exe set DEVICE= if not "%1"=="" set DEVICE=-s %1 for /f "delims=" %%A in ('%ADB% %DEVICE% shell "echo $EXTERNAL_STORAGE"') do @set STORAGE=%%A @echo. @echo Uninstalling existing application. Failures here can almost always be ignored. %ADB% %DEVICE% uninstall com.epicgames.AR_RKK3 @echo. @echo Installing existing application. Failures here indicate a problem with the device (connection or storage permissions) and are fatal. %ADB% %DEVICE% install Learning-arm64.apk @if "%ERRORLEVEL%" NEQ "0" goto Error %ADB% %DEVICE% shell pm list packages com.epicgames.AR_RKK3 %ADB% %DEVICE% shell rm -r %STORAGE%/UnrealGame/Learning %ADB% %DEVICE% shell rm -r %STORAGE%/UnrealGame/UECommandLine.txt %ADB% %DEVICE% shell rm -r %STORAGE%/obb/com.epicgames.AR_RKK3 %ADB% %DEVICE% shell rm -r %STORAGE%/Android/obb/com.epicgames.AR_RKK3 %ADB% %DEVICE% shell rm -r %STORAGE%/Download/obb/com.epicgames.AR_RKK3 @echo. @echo Grant READ_EXTERNAL_STORAGE and WRITE_EXTERNAL_STORAGE to the apk for reading OBB file or game file in external storage. %ADB% %DEVICE% shell pm grant com.epicgames.AR_RKK3 android.permission.READ_EXTERNAL_STORAGE >nul 2>&1 %ADB% %DEVICE% shell pm grant com.epicgames.AR_RKK3 android.permission.WRITE_EXTERNAL_STORAGE >nul 2>&1 @echo. @echo Installation successful goto:eof :Error @echo. @echo There was an error installing the game or the obb file. Look above for more info. @echo. @echo Things to try: @echo Check that the device (and only the device) is listed with "%ADB$ devices" from a command prompt. @echo Make sure all Developer options look normal on the device @echo Check that the device has an SD card. @pause