*Lab 5
This commit is contained in:
51
PackageBuild/Android_ASTC/Install_VR_HelloWorld-arm64.bat
Normal file
51
PackageBuild/Android_ASTC/Install_VR_HelloWorld-arm64.bat
Normal file
@@ -0,0 +1,51 @@
|
||||
setlocal
|
||||
if NOT "%UE_SDKS_ROOT%"=="" (call %UE_SDKS_ROOT%\HostWin64\Android\SetupEnvironmentVars.bat)
|
||||
set ANDROIDHOME=%ANDROID_HOME%
|
||||
if "%ANDROIDHOME%"=="" set ANDROIDHOME=C:\Users\helenaso\AppData\Local\Android\Sdk
|
||||
set ADB=%ANDROIDHOME%\platform-tools\adb.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.VR_HelloWorld
|
||||
@echo.
|
||||
@echo Installing existing application. Failures here indicate a problem with the device (connection or storage permissions) and are fatal.
|
||||
%ADB% %DEVICE% install VR_HelloWorld-arm64.apk
|
||||
@if "%ERRORLEVEL%" NEQ "0" goto Error
|
||||
%ADB% %DEVICE% shell rm -r %STORAGE%/UE4Game/VR_HelloWorld
|
||||
%ADB% %DEVICE% shell rm -r %STORAGE%/UE4Game/UE4CommandLine.txt
|
||||
%ADB% %DEVICE% shell rm -r %STORAGE%/obb/com.epicgames.VR_HelloWorld
|
||||
%ADB% %DEVICE% shell rm -r %STORAGE%/Android/obb/com.epicgames.VR_HelloWorld
|
||||
%ADB% %DEVICE% shell rm -r %STORAGE%/Download/obb/com.epicgames.VR_HelloWorld
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@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.VR_HelloWorld android.permission.READ_EXTERNAL_STORAGE
|
||||
%ADB% %DEVICE% shell pm grant com.epicgames.VR_HelloWorld android.permission.WRITE_EXTERNAL_STORAGE
|
||||
|
||||
@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
|
||||
51
PackageBuild/Android_ASTC/Install_VR_HelloWorld-armv7.bat
Normal file
51
PackageBuild/Android_ASTC/Install_VR_HelloWorld-armv7.bat
Normal file
@@ -0,0 +1,51 @@
|
||||
setlocal
|
||||
if NOT "%UE_SDKS_ROOT%"=="" (call %UE_SDKS_ROOT%\HostWin64\Android\SetupEnvironmentVars.bat)
|
||||
set ANDROIDHOME=%ANDROID_HOME%
|
||||
if "%ANDROIDHOME%"=="" set ANDROIDHOME=C:\Users\helenaso\AppData\Local\Android\Sdk
|
||||
set ADB=%ANDROIDHOME%\platform-tools\adb.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.VR_HelloWorld
|
||||
@echo.
|
||||
@echo Installing existing application. Failures here indicate a problem with the device (connection or storage permissions) and are fatal.
|
||||
%ADB% %DEVICE% install VR_HelloWorld-armv7.apk
|
||||
@if "%ERRORLEVEL%" NEQ "0" goto Error
|
||||
%ADB% %DEVICE% shell rm -r %STORAGE%/UE4Game/VR_HelloWorld
|
||||
%ADB% %DEVICE% shell rm -r %STORAGE%/UE4Game/UE4CommandLine.txt
|
||||
%ADB% %DEVICE% shell rm -r %STORAGE%/obb/com.epicgames.VR_HelloWorld
|
||||
%ADB% %DEVICE% shell rm -r %STORAGE%/Android/obb/com.epicgames.VR_HelloWorld
|
||||
%ADB% %DEVICE% shell rm -r %STORAGE%/Download/obb/com.epicgames.VR_HelloWorld
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@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.VR_HelloWorld android.permission.READ_EXTERNAL_STORAGE
|
||||
%ADB% %DEVICE% shell pm grant com.epicgames.VR_HelloWorld android.permission.WRITE_EXTERNAL_STORAGE
|
||||
|
||||
@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
|
||||
19
PackageBuild/Android_ASTC/Uninstall_VR_HelloWorld-arm64.bat
Normal file
19
PackageBuild/Android_ASTC/Uninstall_VR_HelloWorld-arm64.bat
Normal file
@@ -0,0 +1,19 @@
|
||||
setlocal
|
||||
if NOT "%UE_SDKS_ROOT%"=="" (call %UE_SDKS_ROOT%\HostWin64\Android\SetupEnvironmentVars.bat)
|
||||
set ANDROIDHOME=%ANDROID_HOME%
|
||||
if "%ANDROIDHOME%"=="" set ANDROIDHOME=C:\Users\helenaso\AppData\Local\Android\Sdk
|
||||
set ADB=%ANDROIDHOME%\platform-tools\adb.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.VR_HelloWorld
|
||||
@echo.
|
||||
echo Removing old data. Failures here are usually fine - indicating the files were not on the device.
|
||||
%ADB% %DEVICE% shell rm -r %STORAGE%/UE4Game/VR_HelloWorld
|
||||
%ADB% %DEVICE% shell rm -r %STORAGE%/UE4Game/UE4CommandLine.txt
|
||||
%ADB% %DEVICE% shell rm -r %STORAGE%/obb/com.epicgames.VR_HelloWorld
|
||||
%ADB% %DEVICE% shell rm -r %STORAGE%/Android/obb/com.epicgames.VR_HelloWorld
|
||||
@echo.
|
||||
@echo Uninstall completed
|
||||
19
PackageBuild/Android_ASTC/Uninstall_VR_HelloWorld-armv7.bat
Normal file
19
PackageBuild/Android_ASTC/Uninstall_VR_HelloWorld-armv7.bat
Normal file
@@ -0,0 +1,19 @@
|
||||
setlocal
|
||||
if NOT "%UE_SDKS_ROOT%"=="" (call %UE_SDKS_ROOT%\HostWin64\Android\SetupEnvironmentVars.bat)
|
||||
set ANDROIDHOME=%ANDROID_HOME%
|
||||
if "%ANDROIDHOME%"=="" set ANDROIDHOME=C:\Users\helenaso\AppData\Local\Android\Sdk
|
||||
set ADB=%ANDROIDHOME%\platform-tools\adb.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.VR_HelloWorld
|
||||
@echo.
|
||||
echo Removing old data. Failures here are usually fine - indicating the files were not on the device.
|
||||
%ADB% %DEVICE% shell rm -r %STORAGE%/UE4Game/VR_HelloWorld
|
||||
%ADB% %DEVICE% shell rm -r %STORAGE%/UE4Game/UE4CommandLine.txt
|
||||
%ADB% %DEVICE% shell rm -r %STORAGE%/obb/com.epicgames.VR_HelloWorld
|
||||
%ADB% %DEVICE% shell rm -r %STORAGE%/Android/obb/com.epicgames.VR_HelloWorld
|
||||
@echo.
|
||||
@echo Uninstall completed
|
||||
BIN
PackageBuild/Android_ASTC/VR_HelloWorld-arm64.apk
Normal file
BIN
PackageBuild/Android_ASTC/VR_HelloWorld-arm64.apk
Normal file
Binary file not shown.
BIN
PackageBuild/Android_ASTC/VR_HelloWorld-armv7.apk
Normal file
BIN
PackageBuild/Android_ASTC/VR_HelloWorld-armv7.apk
Normal file
Binary file not shown.
Reference in New Issue
Block a user