So, you want microG on Lineage 18.1. But wait, NanoDroid Patcher doesnt work! So what do you do? well obviously, you search on Google and find nothing except a badly written XDA Post. I am here to help! I am just rewriting that post in a better format.
-
Enable ROOT-ADB-Debugging
- Enable Developer Settings by tapping Build Number 7 times
- Enable USB Debugging and ADB Root
-
Patch services.jar
- Git Clone this Repo.
- Install ADB Drivers.
- Unzip haystack.zip and add dexpatcher.jar inside it.
- Do
adb pull /system/framework/services.jar
. This pulls the services.jar of your phone. - Do
java -jar dexpatcher-1.8.0-beta1.jar -a 11 -M -v -d -o ./ services.jar 11-hook-services.jar.dex 11core-services.jar.dex
. Yes. You need to do it from terminal/commandline. No GUI is availiable. - Do
mkdir repack
or make a folder named repack. - Do
zip -j repack/services.jar classes*.dex
. This creates your services.jar with the patched dex files.
-
Making the zip and flash!
- Now, I would prefer Windows here. See, in Linux you don't have tools (or not that I know of) that can add files in a zip without unzipping and tampering it. WinRAR, however, can. Even I had to use WinRAR. You can use Wine. But Wine is crappy so I booted straight into Windows and replaced
/system/framework/services.jar
with the new services.jar in spoofify.zip. (note: you can use 7z in linux) - Now copy microGMagisk.zip and the patched spoofify.zip into /sdcard of your phone. (Just do
adb push microGMagisk.zip spoofify.zip /sdcard
) - Go to Magisk -> Modules Section -> Install from storage then click on the microGMagisk.zip. Flash and reboot and do the same for spoofify.zip
- Now, I would prefer Windows here. See, in Linux you don't have tools (or not that I know of) that can add files in a zip without unzipping and tampering it. WinRAR, however, can. Even I had to use WinRAR. You can use Wine. But Wine is crappy so I booted straight into Windows and replaced
Follow https://github.com/Robin-Sch/android-signature-spoofing
Done! You have successfully enabled Signature Spoofing.