52

I want to test my Android app for an Xiaomi device.

How can I create an emulator for that?

I have already tried andyroid, genymotion and bluestack, but I have not found any for Xiaomi devices.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
rehan
  • 529
  • 1
  • 4
  • 3
  • You can use the AVD Manager that comes with Android Studio to create a virtual Redmi Note 5 Pro; I did this afternoon and it was very straightforward. The only problem is that Studio won't emulate MIUI, so unless that's important, go for it! – FractalBob Dec 12 '19 at 18:35
  • 2
    Have you find any solution for this after 2 years ? – ugrdursun Aug 26 '21 at 08:02

4 Answers4

3
  1. You can use some online device provider services like : browserstack

  2. I never tried it but check out : Run custom ROM on Android Emulator

  3. You can always borrow / buy an actual device.

kelvin
  • 1,480
  • 1
  • 14
  • 28
1

You can try genymotion but currently it has Xiaomi Redmi Note 7

enter image description here

sultanmyrza
  • 4,551
  • 1
  • 30
  • 24
-5
  1. Menu ToolsAVG Manager

  2. Click on "Create Virtual Device"

  3. Select "Phone" in the left

  4. Click "New Hardware Profile" button below

  5. Use the following information in the next screen:

    Device Name: Redmi Note 5
    Device Type: Phone/ Tablet
    Screen Size: 5.99 Inch
    Resolution: 1080 x 2160 px
    Memory: 4 GB
    Input: <Leave these un-selected>
    Rest of the fields: keep as is.

    Save it and select it.

  6. Click "Next" below to go to the next page "Select a system image". Select the Release you want. E.g., Oreo [Target: Android 8.1]. Click "Next" to "Verify Configuration". Name the AVD - something like "Redmi Note 5 Oreo"

Finish.

Enjoy!!

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Partha Mishra
  • 304
  • 3
  • 10
-24

Here are the steps with Android Studio: enter image description here

enter image description here

enter image description here

FractalBob
  • 3,225
  • 4
  • 29
  • 40
  • 11
    Modern problem requires Modern solution !! – kelvin Sep 24 '20 at 11:29
  • @kelvin: What do you mean? Can you elaborate? – Peter Mortensen May 11 '21 at 22:46
  • 2
    This is a terrible answer. I have faced specific issues with MIUI, FireOS, and EMUI. How did I face them? Because I distributed my Android apps in other stores and there my apps crashed. In EMUI there was a very specific library for handling JSONs that was incompatible. In FireOS I had to change the geo-location methods and in MIUI I'm still struggling to get an answer from the support team because my app works perfectly fine in FireOS, One UI, pure Android, ColorOS, and MIUI but it's crashing in EMUI. – Federico Navarrete Jul 01 '21 at 09:34