Download

Fixed deployment on Android (POSIBLE solution, not definitive)

Hi Epic and others =D

I just wanted to share my experience when deploying games to android, i have a Motorola RAZR xt910 and could not upload ANY unreal engine game.

Launching doesnt work, but i have an idea why:

When deploying (from File -> package proyect -> Android , and then clicking the .bat to install) the command line always said “permision denied” when installing to android, aparently the “push” command was denied.

So i added a “su” comand (super user) before the "rm " and “push” commands.

BEFORE (the .bat file):


(...)
%ADB% %DEVICE% uninstall com.epicgames.SwingNinja
%ADB% %DEVICE% install SwingNinja-Android-Shipping-armv7.apk
@if "%ERRORLEVEL%" NEQ "0" goto Error
%ADB% %DEVICE% shell rm -r /mnt/sdcard/SwingNinja
%ADB% %DEVICE% shell rm -r /mnt/sdcard/UE4Game/UE4CommandLine.txt
%ADB% %DEVICE% shell rm -r /mnt/sdcard/obb/com.epicgames.SwingNinja
%ADB% %DEVICE% push main.00001.com.epicgames.SwingNinja.obb /mnt/sdcard/obb/com.epicgames.SwingNinja/main.00001.com.epicgames.SwingNinja.obb
if "%ERRORLEVEL%" NEQ "0" goto Error
goto:eof
(...)

AFTER


(...)
%ADB% %DEVICE% uninstall com.epicgames.SwingNinja
%ADB% %DEVICE% install SwingNinja-Android-Shipping-armv7.apk
@if "%ERRORLEVEL%" NEQ "0" goto Error
%ADB% %DEVICE% su
%ADB% %DEVICE% shell rm -r /mnt/sdcard/SwingNinja
%ADB% %DEVICE% shell rm -r /mnt/sdcard/UE4Game/UE4CommandLine.txt
%ADB% %DEVICE% shell rm -r /mnt/sdcard/obb/com.epicgames.SwingNinja
%ADB% %DEVICE% push main.00001.com.epicgames.SwingNinja.obb /mnt/sdcard/obb/com.epicgames.SwingNinja/main.00001.com.epicgames.SwingNinja.obb
if "%ERRORLEVEL%" NEQ "0" goto Error
goto:eof
(...)

So it could push it with no problem, BTW, the “rm” commands delete nothing (aparently those folders never get created)

Hope it helps someone and to get feedback from Unreal, probably i missed a step in the instalation, no idea =D

Regards

Also now doing more tests i realized it was necesary for the android to be in “PTP” mode (or camera mode) otherwise it will deny any upload still (even with su), because the pc will have the sdcard mounted.

You saved my life!!!
Thak you very much!!!