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
- The installer looks for the files listed below on your device. If it finds none, it stops with No suitable permission file found!
- It copies each file it finds into the module and deletes the lines containing
cn.google.servicesandservices_updater. - Files on normal partitions go in the module's
systemfolder. Files on/odm,my_bigball,my_productandmy_heytapget a bind mount, which it adds topost-fs-data.sh. - 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.