Hello
I've created a debug build with "Use Shared Runtime" disabled. I want to be able to deploy/debug this build on the device.
Within Visual Studio (2015) I'm trying to deploy/debug this to a Samsung S7 which has both a Knox and Personal Workspace.
The build has already been deployed to the device via a BlackBerry UEM profile.
An excerpt from the Xamarin logs is shown below, with errors highlighted.
Please can anyone help with these questions:
1) Why is the process attempting to install Mono.Android.DebugRuntime-debug.apk even though "Use Shared Runtime" is disabled?
2) How do I overcome the errors?
Many Thanks
Howard
Detecting installed packages...
3>DEBUG RunShellCommand ce0916096c6ea71a01 am broadcast -a "mono.android.intent.action.PACKAGE_VERSIONS" -e "packages" "Mono.Android.DebugRuntime,Mono.Android.Platform.ApiLevel_23,com.nwp.pointapp" -n "Mono.Android.DebugRuntime/com.xamarin.mono.android.PackageVersions"
3>TASK: Broadcast am broadcast -a "mono.android.intent.action.PACKAGE_VERSIONS" -e "packages" "Mono.Android.DebugRuntime,Mono.Android.Platform.ApiLevel_23,com.nwp.pointapp" -n "Mono.Android.DebugRuntime/com.xamarin.mono.android.PackageVersions" completed?:Broadcasting: Intent { act=mono.android.intent.action.PACKAGE_VERSIONS cmp=Mono.Android.DebugRuntime...
3>DEBUG RunShellCommand ce0916096c6ea71a01 cat /data/system/packages.xml
3>TASK: GetPackages cat /data/system/packages.xml completed?:/system/bin/sh: cat: /data/system/packages.xml: Permission denied
3>
3>DEBUG RunShellCommand ce0916096c6ea71a01 cat /dbdata/system/packages.xml
3>TASK: GetPackages cat /dbdata/system/packages.xml completed?:/system/bin/sh: cat: /dbdata/system/packages.xml: No such file or directory
3>
3>Removing old runtime: Mono.Android.DebugRuntime...
3>DEBUG RunShellCommand ce0916096c6ea71a01 pm uninstall "Mono.Android.DebugRuntime"
3>DEBUG RunShellCommand ce0916096c6ea71a01 pm uninstall "Mono.Android.DebugRuntime"
3>TASK: UninstallPackage pm uninstall "Mono.Android.DebugRuntime" completed?:Failure [DELETE_FAILED_INTERNAL_ERROR]
3>
3>TASK: UninstallPackage pm uninstall "Mono.Android.DebugRuntime" completed?:Failure [DELETE_FAILED_INTERNAL_ERROR]
3>
3>Target device is arm64-v8a.
3>Installing the Mono shared runtime (debug - 1489073509)...
3>10% ... 4160kb of 41409kb copied
3>20% ... 8320kb of 41409kb copied
3>30% ... 12480kb of 41409kb copied
3>40% ... 16576kb of 41409kb copied
3>50% ... 20736kb of 41409kb copied
3>60% ... 24896kb of 41409kb copied
3>70% ... 28992kb of 41409kb copied
3>80% ... 33152kb of 41409kb copied
3>90% ... 37312kb of 41409kb copied
3>100% ... 41409kb of 41409kb copied
3>TASK: Push C:\Program Files (x86)\MSBuild\Xamarin\Android\Mono.Android.DebugRuntime-debug.apk : /data/local/tmp/Mono.Android.DebugRuntime-debug.apk completed?:Completed
3>DEBUG RunShellCommand ce0916096c6ea71a01 pm install "/data/local/tmp/Mono.Android.DebugRuntime-debug.apk"
3>TASK: InstallPackage pm install "/data/local/tmp/Mono.Android.DebugRuntime-debug.apk" completed?: pkg: /data/local/tmp/Mono.Android.DebugRuntime-debug.apk
3>Failure [INSTALL_FAILED_INTERNAL_ERROR]
3>
3>DEBUG RunShellCommand ce0916096c6ea71a01 rm "/data/local/tmp/Mono.Android.DebugRuntime-debug.apk"
3>TASK: DeleteFile rm "/data/local/tmp/Mono.Android.DebugRuntime-debug.apk" completed?:
3> Deployment failed