Unlock CN GMS by KOWX712

fei-ke

Magisk KernelSU APatch
v3.8-M
Version
7.59 KB
Size
Apr 12, 2026
Updated

Module Info

  • Contributors fei-ke, KOWX712, chisewaguri, ilazycat, topjohnwu
  • Source Code View Repository
  • Tags
    #Unlock CN GMS #China ROM #Google Mobile Services #Location History #Systemless XML #Magisk #KernelSU

About this module

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 the trusted.overlay.opaque attribute, so the original file simply disappears.
  • Anything older: it falls back to copying the file and deleting the cn.google.services and services_updater lines.

How it mounts at boot

  1. If the mountify module or a metamodule is active, post-fs-data.sh exits and leaves mounting to them.
  2. Otherwise it creates skip_mount and runs the bundled mountify.sh, if your kernel supports overlayfs and tmpfs xattrs. The installer deletes that script when it doesn't.
  3. If that isn't available, it bind-mounts each file directly and records them in mount_list.
  4. On KernelSU, service.sh reads that list and registers each mount with ksud kernel umount add, then tells KernelSU the module has mounted.

Installing

  1. 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.
  2. Reboot.
  3. 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.