Unlock CN GMS

fei-ke

Magisk KernelSU APatch
v3.9
Version
3.65 KB
Size
Nov 16, 2026
Updated

Module Info

  • Contributors fei-ke, chisewaguri, ilazycat, topjohnwu, HMLDXHZ
  • Source Code View Repository
  • Tags
    #Unlock CN GMS #China ROM #Google Mobile Services #Location History #Systemless Module #Android Permissions

About this module

Unlock CN GMS by fei-ke is a tiny module for Chinese-market phones and ROMs that ship with Google services in a restricted state. Those ROMs declare the cn.google.services feature, which stops you turning on Google Location History and using Google Maps Timeline. It can also keep the device from showing up on the Play Store website.

What happens when you install it

  1. The installer looks for the files listed below on your device. If it finds none, it stops with No suitable permission file found!
  2. It copies each file it finds into the module and deletes the lines containing cn.google.services and services_updater.
  3. Files on normal partitions go in the module's system folder. Files on /odm, my_bigball, my_product and my_heytap get a bind mount, which it adds to post-fs-data.sh.
  4. Reboot to apply it.

On some phones, such as the Xiaomi "8e5" models the README mentions, more than one of these files exists. The module handles all of them. Because it edits copies of your ROM's files at install time, reinstall it after a ROM update that changes them.

Files it looks for

Path
/system/etc/permissions/services.cn.google.xml
/system/etc/permissions/com.oppo.features.cn_google.xml
/vendor/etc/permissions/services.cn.google.xml
/product/etc/permissions/services.cn.google.xml
/product/etc/permissions/cn.google.services.xml
/product/etc/sysconfig/cn_feature.xml
/odm/etc/permissions/com.gnss.bds_preference.xml
/my_bigball/etc/permissions/oplus_google_cn_gms_features.xml
/my_product/etc/permissions/oplus_google_cn_gms_features.xml
/my_heytap/etc/permissions/my_heytap_cn_gms_features.xml

If Location History still won't turn on

The README says you may need another module as well, and suggests the Xposed module LocationReportEnabler. It crosses out the Riru version of that module. To undo everything, remove Unlock CN GMS in your root manager and reboot.