Requirements:
- old device that can run Android 4.4 - preferably any custom ROM (while it could be possible to overwrite GMS that came with stock rom, I would not rather recommend to do that)
- at least 250 megabytes free on your device's storage.
- any kind of custom recovery, CWM/TWRP - you name it.
Install base microG package
1. Download the package from the link. Extract it with your preferable tool.
2. Power up your phone. Move the unpacked microG folder onto your phone's storage.
3. Boot your phone to the custom recovery (either you can enter it by pressing specific combination of keys or rebooting the phone via ADB).
4. Install:
- Xposed fix (if you use a newer build of CyanogenMod/LineageOS, compiled after 2016, will be required for installing spoofing)
- MinMicroG Minimal
- (optional) MinMicroG Play Store
5. After installing all of the specified packages, reboot to Android.
Spoof GMS signatures
1. Open up any file explorer, and go to the location of microG.
2. Install Xposed and FakeGapps. If you already have Xposed installed, go to step 4.
3. After you install all of the applications, open up Xposed Installer, and press on Framework. Then, click on Install/Update. If the program asks you to grant Superuser permissions, do that. After the framework has been installed, reboot it by pressing OK in the last dialogue.
4. When you boot again to the system, open up again Xposed Installer, go to Modules and enable FakeGapps.
Configure MicroG
1. Leave Xposed and open up microG Settings. Check in Self-Check if signature spoofing works. If it does, continue, if it doesn't, check if Xposed works.
2. Enable Google device registration and Cloud messaging. You can skip enabling either SafetyNet or location services.
3. Add your Google Account. I'd recommend to use a throwaway account for logging on old devices.
4. Enjoy using microG!
► Show Spoiler