Hope someone may know the best way to remove deployed projects from the unknown sources. Have tried several of the recommended adb commands but no luck so far.
If you keep updating and deploying a project does it automatically overwrite the previous file.
Good question - I was wondering the same myself (Still seeing old projects after deleting them directly from the phone)
Whenever you package an android project an uninstaller .bat is created.
If you change the title of the project in the .bat (There are 4 instances of it) and run it - it will uninstall the app you specify. (You may need to change ‘YourCompany’ as well)
setlocal
set ANDROIDHOME=%ANDROID_HOME%
if "%ANDROIDHOME%"=="" set ANDROIDHOME=C:\NVPACK\android-sdk-windows
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.YourCompany.**GearVRMCTPInput**
@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/**GearVRMCTPInput**
%ADB% %DEVICE% shell rm -r %STORAGE%/UE4Game/UE4CommandLine.txt
%ADB% %DEVICE% shell rm -r %STORAGE%/obb/com.YourCompany.**GearVRMCTPInput**
%ADB% %DEVICE% shell rm -r %STORAGE%/Android/obb/com.YourCompany.**GearVRMCTPInput**
@eCHo.
@eCHo Uninstall completed
Re-deploying/Re-installing a project will overwrite old versions.
Thanks for your help on this ! Any idea where I access the bat file? Is it within a folder viewable on my laptop once the Oculus is plugged in and recognised?
Whenever you package an android project an uninstaller .bat is created - so you can package your project for android (File -> Package Project -> Android -> Android (ASTC)) and modify the .bat created there.