Failure [INSTALL_CANCELED_BY_USER] on Xiaomi device : <p>I bought a Xiaomi Redmi 4x yesterday and I can't debug my apps in this device.</p>

<p>I already enabled the Developer Options in the device, switch on to USB Debugging, install the USB Drivers and accepted the RSA debugging fingerprint pop that appears when I plug it on USB port for the first time.</p>

<p>So, I select the "Xiaomi Redmi 4X (Android 6.0 - API 23)" in devices list of Visual Studio, click in Run (or deploy) and see this error:</p>

<pre><code>&gt;Detecting installed packages...
&gt;Removing old runtime: Mono.Android.DebugRuntime...
&gt;Target device is arm64-v8a.
&gt;Installing the Mono shared runtime (debug - 1505313604)...
&gt;10% ... 3520kb of 35035kb copied
&gt;20% ... 7040kb of 35035kb copied
&gt;30% ... 10560kb of 35035kb copied
&gt;40% ... 14016kb of 35035kb copied
&gt;50% ... 17536kb of 35035kb copied
&gt;60% ... 21056kb of 35035kb copied
&gt;70% ... 24576kb of 35035kb copied
&gt;80% ... 28032kb of 35035kb copied
&gt;90% ... 31552kb of 35035kb copied
&gt;100% ... 35035kb of 35035kb copied
&gt; Deployment failed
&gt;Mono.AndroidTools.InstallFailedException: Unexpected install output:   pkg: /data/local/tmp/Mono.Android.DebugRuntime-debug.apk
&gt;Failure [INSTALL_CANCELED_BY_USER]
&gt;
&gt;   at Mono.AndroidTools.Internal.AdbOutputParsing.CheckInstallSuccess(String output, String packageName)
&gt;   at Mono.AndroidTools.AndroidDevice.&lt;&gt;c__DisplayClass94_0.&lt;InstallPackage&gt;b__0(Task`1 t)
&gt;   at System.Threading.Tasks.ContinuationTaskFromResultTask`1.InnerInvoke()
&gt;   at System.Threading.Tasks.Task.Execute()
&gt;Unexpected install output:     pkg: /data/local/tmp/Mono.Android.DebugRuntime-debug.apk
&gt;Failure [INSTALL_CANCELED_BY_USER]
&gt;
&gt;Creating "obj\Debug\upload.flag" because "AlwaysCreate" was specified.
&gt;Creating directory "obj\.cache\".
&gt;Done building project "MyTestApp.csproj".
&gt;Build succeeded.
&gt;An error occured. See full exception on logs for more details.
&gt;Unexpected install output:     pkg: /data/local/tmp/Mono.Android.DebugRuntime-debug.apk
&gt;Failure [INSTALL_CANCELED_BY_USER]
&gt;
&gt;
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========
</code></pre>

<p>This occurs with all my apps and just in this Xiaomi device. In other brand devices and emulators, the debug works normally.</p>

<p>Just to complement, I have this problem <a href="http://en.miui.com/thread-544718-1-1.html" rel="noreferrer">http://en.miui.com/thread-544718-1-1.html</a> and even following the instructions, I can't make the "Install via USB" works.</p>

<p>There is any solution to debug in this device?</p>
