How to Install Google Play on Xiaomi Mi5: A Complete Guide to Unlocking the bootloader

The Xiaomi Mi5 is still a popular smartphone among Android enthusiasts, but its owners often face the problem of the lack of Google Play Services and other Google services, the reason lies in the policy of Xiaomi, which on some regional firmware (especially Chinese) does not include pre-installed Google applications. In this article, we will discuss three official ways to install Google Play on the Mi5 – from simply enabling hidden services to completely reflashing with unlocking the bootloader.

It’s important to understand that the procedure differs depending on the MIUI version and the status of the bootloader. For example, on global firmware (Mi5 Global), Google Play is usually already installed, and on Chinese (Mi5 China) it is not. We will look at solutions for both cases, including a unique method of activating Google Play through ADB without losing data, which works even on locked devices.

1. Check the current firmware and version of MIUI

Before you start installing, you need to determine which firmware is installed on your Xiaomi Mi5.

  • πŸ“± Global firmware (Mi5 Global – Google Play is already preinstalled, but can be disabled in settings.

To find out the firmware version:

  1. Open the settings β†’ About the phone β†’ version of MIUI.
  2. Look at MIUI Global or MIUI China.
  3. Write down the full version number (e.g. MIUI 12.5.3 Stable).
πŸ“Š What is the firmware of your Xiaomi Mi5?
Global (Global)
Chinese (China)
The LineageOS/Pixel Experience
I don't know.

If you have Chinese firmware, go to the section about unlocking the bootloader. If global, try turning Google Play on in the settings first (Section 2). For custom firmware, you will need to install GApps (Section 5).

2. enable Google Play on global firmware (without unlocking)

On Mi5 Global, Google services are usually hidden, but not removed.

  1. Go to Settings β†’ Applications β†’ Application Management.
  2. Click on the three dots in the top right corner and select Show All Apps.
  3. Find in the list: Google Play Services Google Play Store Google Services Framework

Turn on

Allow all permits

Reboot the phone.

β˜‘οΈ Preparation for activation of Google Play

Done: 0 / 4

If Google Play doesn’t appear after the reboot, try resetting it:

  1. Open Settings β†’ Applications β†’ Google Play Store.
  2. Click Warehouse β†’ Clear the data and Clear the cache.
  3. Repeat the same for Google Play Services.

⚠️ Note: If Google Play doesn’t start after cleaning up the data, it means that Google services are removed at the firmware level, in which case you will need to install GApps (section 5) or flash it to the global version.

3. Unlock the bootloader on Xiaomi Mi5

To install Google Play on Chinese firmware or custom ROM, you need to unlock the bootloader. This is the official procedure, but it erases all data from the device.

  • πŸ”— Link your Mi Account to your phone (required!).
  • πŸ“± Make a backup of all data (photos, contacts, messages).
  • πŸ’» Install Mi Unlock Tool on PC (download from Xiaomi official website).
  • πŸ”Œ Connect your phone to your PC with the original cable USB.

Step-by-step:

  1. Turn on Developer Mode: Go to Settings β†’ About Phone. Click 7 times on MIUI until the notification "You're a developer" appears.
  2. Activate. OEM-unlocking and debugging USB: Back to Settings β†’ Additionally. β†’ For developers, turn on Unlock. OEM and debugging. USB.
  3. Link your Mi Account to your device: In the same menu, find Mi Unlock Status and click Add Account and Device. Wait 72–168 hours (up to 7 days) is a must for Xiaomi.

Mi Unlock Tool

What if the Mi Unlock Tool can't see the phone?
1.Make sure drivers are installed ADB (Download from Google. 2. Try another one. USB-3. Disable the antivirus on your PC – it can block the connection. 4. Restart your phone and PC. 5. If the error β€œCouldn’t unlock”, wait another 24 hours – sometimes Xiaomi resets the waiting timer.

Mistake.Reason.Decision
Couldn’t unlock, 86006It has not been 7 days since the account was linked.Wait a full time (168 hours)
Current account is different from the account info on the deviceMi Unlock Tool uses a different Mi AccountLog in to the same account as on your phone
Device isn’t supportedThe Mi Unlock Tool is an outdated versionDownload the latest version from the official website
USB debugging not authorizedNot confirmed debugging on USB on the phoneConnect the phone, a request will appear - confirm access

⚠️ Attention: After unlocking the Xiaomi bootloader Mi5 It automatically resets to factory settings, deletes all data (including photos and apps) and if you didn't have a backup, you can't restore it.

4. Install Google Play via TWRP (for unlocked devices)

If the bootloader is unlocked, the most reliable way to install Google Play is through custom recovery TWRP.

  1. Download the right GApps package for your Android version: For MIUI 12/13 (Android 10/11) – Open GApps (select arm64 platform, Android 10/11, pico option or nano). For custom firmware (LineageOS) – use NikGApps or MindTheGapps.

TWRP

Xiaomi Mi5

3.6.2

twrp.me

TWRP

fastboot flash recovery twrp-3.6.2-gemini.img


fastboot boot twrp-3.6.2-gemini.img

TWRP

  1. Click Wipe β†’ Advanced Wipe and mark Dalvik / ART Cache, Cache.
  2. Go back to the main menu and select Install.
  3. Find the downloaded GApps file and confirm the installation.
  4. After completion, press Reboot System.

πŸ’‘

If you have your phone stuck to the MI logo after installing GApps, reset via TWRP (Wipe β†’ Format Data), then reset. This is due to a conflict of versions of Google services.

If you install Google Play on custom firmware (like LineageOS), first run the firmware itself, and then GApps. Order is important!

5. Alternative method: Install Google Play via ADB (without unlocking)

This method only works on Chinese firmware MIUI 10-12 and allows you to install Google Play without unlocking the bootloader, but requires a connection to a PC. It is suitable if you do not want to lose data or wait 7 days to unlock.

You will need to:

  • πŸ’» Computer with installed ADB Fastboot (downloaded as part of Android) SDK Platform Tools).
  • πŸ“± Included debugging by USB phone-on.
  • πŸ“Ž Archive with GApps for manual installation (e.g. Open GApps, pico variant).

Instructions:

  1. Unpack the GApps archive on your PC (e.g., in the C:\GApps folder).
  2. Connect the Mi5 to your PC and confirm access via USB.
  3. Open the command line in the folder with ADB and perform: adb shell su mount -o rw,remount /system cd /sdcard/ mkdir gapps exit adb push C:\GApps\* /sdcard/gapps/ adb shell su cp -r /sdcard/gapps/* /system/priv-app/ chmod 644 /system/priv-app//.apk reboot
  4. After the reboot, check for Google Play Services in the settings.

⚠️ Note: This method can result in a cyclic bootloop if GApps files are incompatible with your version. MIUI. Before you do this, create a backup copy through TWRP (If the bootloader is unlocked or sync data with Mi Cloud.

6. Solving common errors after installation

Even after a successful Google Play installation, problems can arise, and here are the most common ways to solve them:

Problem.Probable causeDecision
Google Play is not openConflict of service versionsClear the data and cache of Google Play Services and Google Play Store, then restart the phone.
Error "No connection" (no connection)Google Services Framework is not availableInstall the missing APK manually (download from APKMirror).
Applications not updatedIncompatible version of GAppsReinstall GApps from another version (e.g., nano to pico).
The phone overheats after installationBackground activity of Google Play ServicesLimit background activity in Settings β†’ Apps β†’ Google Play Services β†’ Battery.

If none of these methods worked, try:

  • πŸ”„ Refuse the phone to the global version MIUI via Mi Flash Tool.
  • πŸ“± Install custom firmware (e.g. Pixel Experience) with pre-integrated GApps.
  • πŸ› οΈ Contact the service center if the problem is related to hardware restrictions (for example, some Chinese models blocked the installation of Google).

πŸ’‘

If Google Play is still not working after all the manipulations, check to see if access to Google services is blocked at the operator level (relevant for some regions, such as China or Iran).

FAQ: Frequent questions about installing Google Play on Xiaomi Mi5

Can I install Google Play on Xiaomi Mi5 without unlocking the bootloader?
Yes, but only on global firmware (activation of hidden services) or through ADB on Chinese firmware (method from section 5). ADB-The method does not guarantee stable operation and may lead to errors.
Why does the phone not turn on after installing GApps?
This is due to the incompatibility of the GApps version with your firmware. Solution: Boot to TWRP (hold Power + Volume Up when turned on). Run Wipe β†’ Advanced Wipe β†’ Dalvik / ART Cache + Cache. Reinstall GApps from another version (e.g. pico instead of nano).
How to check if the bootloader is unlocked on the Mi5?
Turn off the phone, then hold Power + Volume Down to log into Fastboot Mode. If there's an Unlocked sign at the bottom of the screen, the bootloader is unlocked. If Locked is locked.
Can I get my Chinese back after I have a new one?
Yes, but it will require unlocking the bootloader and firmware again via the Mi Flash Tool, and remember that when you return to Chinese firmware, Google Play will be deleted.
Which version of GApps is right for Xiaomi Mi5 on MIUI 12?
For the Mi5 with MIUI 12 (Android 10), Open GApps is a pico option. NikGApps is a Basic option. Avoid stock or full versions, which can cause overheating and lag.