0

Install GMS on Huawei's phone without downgrade or wiping data (28/09/2021)

Install GMS for Huawei's phone (28/09/2021) - Tested working for Huawei P40 Lite

What's required:

  1. Huawei HiSuite & Google Service Assistant (GSA) with backup data
  2. MicroG
  3. GMS apk
  4. ADB (Android Debug Bridge)

Above tools can be downloaded from the link below (pass: 31j4)

Before start, it is highly recommended to backup your files though this method should not touch any of your existing data, but to play safe.

Steps:

  1. If you already have GMS installed previously and not working please uninstall all of them from the Settings => APP => Search Google (enable Show System Processes) => Uninstall all GMS related apps;
  2. Download and install Huawei Suite (recommended to use older version such as 10.0.0.510 as this was the one tested)

  3. Adjust your phone's system time to 2019, turn off auto time sync (this is important, if this is not done at this stage, later may encounter issues such as no network, connection failed errors etc)
  4. Restore GSA from HiSuite
    • Open HiSuite => Restore => Load the data from below directory (it was extracted from Huawei Mate 30 but works for P40 Lite too, it should work on other Huawei phones as this is only an GSA application, it's not a firmware)
    •  
    • Click Restore to install GSA on your phone
  5. Copy all downloaded apk files (from #2 & #3 as below) to your phone (via USB file transfer or HiSuite)
    •  

  6. Change the phone's system time back to the current, then install MicroG apk from your phone
    • If failed to install MicroG apk from the phone, we can use the ADB tool to install, please scroll down to the Appendix A for the solution
  7. Open MicroG, check if you can add Google account
  8. After that, please install below #1-7 apk except for #3 (because MicroG has the same pack name as the Google Play Service. FYI - #4 Google Play install may fail, if yes you can leave it and install it later from other sources such as APKPure)

  9. Uninstall MicroG, install the above #3 - Google Play Service;
  10. At this stage, your may have received a number of Play Protect warnings, this happens due to the Google Service Framework (GSF) ID in your phone cannot be certified because it's a Huawei phone. However Google provides a way to register the ID via below website for developers to use their own customised ROM so we can use this way as a workaround. Firstly download app "Device ID" from any source such as APKPure, open it to copy out the GSF ID

  11. After that the GMS need to be cleaned up and stopped a couple of times to avoid the popup notifications/warnings
    • Disconnect your phone's network (change it to fly mode)
    • Cleanup below GMS application data and force them to stop running from Settings => APP
      • Google Service Framework (data/cache/stop)
      • Google Play Store (data/cache/stop)
      • Google Play Service (cache/stop)
    • Restart your phone, and cleanup Google Play Service data, force it to stop then restart the phone again
    • It should not popup notifications again after the second restart

Appendix A

If the MicroG apk install failed from the phone please download adb tool and connect it to your phone, then install MicroG from there directly. Below is just an example for the install that included possible failure messages and the way to resolve it, you can use "adb install -r -d" to install directly.