Unlock CN GMS by KOWX712 is a fork of fei-ke's Unlock CN GMS. It removes the cn.google.services restriction from Chinese-market ROMs by hiding the files that declare it, and adds mounting support for KernelSU, APatch and metamodules. The -M in the version name stands for metamodule support.
How it removes the restriction
The installer checks ten known paths under /system, /vendor, /product, /odm, my_bigball, my_product and my_heytap. If none exist, it stops. What it does next depends on your setup:
- Magisk 28102 or newer, KernelSU, APatch, or a device with mountify or a metamodule: it creates a whiteout node (
mknod c 0 0) with thetrusted.overlay.opaqueattribute, so the original file simply disappears. - Anything older: it falls back to copying the file and deleting the
cn.google.servicesandservices_updaterlines.
How it mounts at boot
- If the mountify module or a metamodule is active,
post-fs-data.shexits and leaves mounting to them. - Otherwise it creates
skip_mountand runs the bundledmountify.sh, if your kernel supports overlayfs and tmpfs xattrs. The installer deletes that script when it doesn't. - If that isn't available, it bind-mounts each file directly and records them in
mount_list. - On KernelSU,
service.shreads that list and registers each mount withksud kernel umount add, then tells KernelSU the module has mounted.
Installing
- Install the zip in your root manager. It uses the same module ID as the original,
com.fei_ke.unlockcngms, so it replaces that module rather than sitting next to it. - Reboot.
- Check Google Location History or Maps Timeline. The README says some devices also need another module, such as the Xposed module LocationReportEnabler.
Version numbers changed at v3.8-M. Earlier releases used numbers like v4.6, and from this version it follows the upstream number plus -M. That makes v3.8-M newer than v4.6, even though the number looks lower. This release also handles phones with more than one feature file, such as some Xiaomi models.