56

I'm using a Xiaomi Redmi Note 4X for my Android development.

Without "Install via USB" option, Android Studio throws:

Installation failed with message INSTALL_CANCELED_BY_USER

Solution for this is enabling "Install via USB", but when I try to enable this option, phone throws Toast message "Insert your sim card". Is there any way to simulate SIM card, or just making this work?

Ronan Boiteau
  • 9,608
  • 6
  • 34
  • 56
softmarshmallow
  • 1,034
  • 2
  • 16
  • 31

3 Answers3

99

To enable "install via usb" you have to insert sim card.

After enabling "install via usb" remove sim card then it will work without sim card also.

Krupa Kadecha
  • 1,056
  • 8
  • 8
-1

I had the same problem after updating to latest MIUI 8 and it looks like there is no way to bypass the SIM requirement for now.

But you have options:

  • Install previous version of MIUI. Previous version require only mi-account.
  • Install another OS (ex. LineageOS)
cora32
  • 388
  • 3
  • 15
  • Installing another OS is not an option without a SIM card as Xiaomi requires you to have a Sim card installed before you can unlock the Bootloader. – Nithin Feb 18 '22 at 12:03
-4

Go to Settings > SIM cards & mobile networks.

Then choose a default SIM card for calls(SIM 1 or SIM 2)

And finally try again.