No Gapps Guide&Tutorial (MicroG) - Huawei Y6 Guides, News, & Discussion

Hi guys, this is an Tutorial of installing MicroG.
MicroG is an alternative to Gapps that includes:
Service Core: Is a library app, providing the functionality required to run apps that use Google Play Services or Google Maps Android API. (GmsCore)
Services Framework Proxy: Is a small helper utility to allow apps developed for Google Cloud to Device Messaging (C2DM) to use the compatible Google Cloud Messaging service included with GmsCore. (GsfProxy)
Unified Network Location Provider: Is a library that provides Wi-Fi- and Cell-tower-based geolocation to applications that use Google’s network location provider. It is included in GmsCore but can also run independently on most Android systems. (UnifiedNlp)
Maps API: Is a system library, providing the same functionality as now deprecated Google Maps API (v1). (mapsv1)
Store: Is a frontend application providing access to the Google Play Store to download and update applications. (Phonesky) [Same functionality and looks as the Gplaystore]
Why you would want to install MicroG instead of Gapps?
1.More privacy
2.Uses very little ram and memory
3.OGYoutube, an youtube app that works only with MicroG and has backround playback and downloads directly from the app
How to install MicroG:
Prerequisites:
In order for MicroG to work, it needs to pretend to be the official implementation of Play Services. To do this, MicroG must be able to spoof Google’s Play Service’s package signature.
Signature spoofing is not available in most custom ROMs, though patches are available for ROM developers to include in their project. For Marshmallow and Nougat ROMs, spoofing is provided as a runtime permission that the user can grant or deny to apps, which is an added bonus.
If your Rom doesen't include Signature spoofing then you can activate Signature spoofing with: Tingle/Haystack/NanoDroid/FakeGapps[Xposed Module]
First option:
Download Services Core, Service Framework Proxy, UnifiedNpl and FakeStore if you want to install other stores than the Official Google play store. (Yald Store, F-Droid etc) [Download link: https://microg.org/download.html]
Install them. After that go to MicroG settings and click on self-check, give MicroG the permissions required and check "System grants signature spoofing permission" if its not checked. To log in to Phonesky you need to enable Google device registration in microG settings, after that make any changes you want to the settings.
For more Advanced things check out: https://shadow53.com/android/no-gapps/setup-guide/3/ and https://shadow53.com/android/no-gapps/setup-guide/4/
Option two:
Flash MicroG from Recovery
Dowloads:
MicroG: https://www.androidfilehost.com/?fid=890129502657595051
PlayStore: https://www.androidfilehost.com/?fid=818070582850504869
Patched-Playstore: https://www.androidfilehost.com/?fid=673956719939831837
UnifiedNLP: https://www.androidfilehost.com/?fid=746010030569965960
Microg&Playstore: https://www.androidfilehost.com/?fid=746010030569965959
Microg&Patched-Playstore: https://www.androidfilehost.com/?fid=962187416754472306
Flash any of theese in recovery.
Option three:
Download from https://downloads.nanolx.org/NanoDroid/Stable/
I recommend NanoDroid-MicroG.....zip
Go to Magisk Manager, Go to Modules and add the NanoDroid zip that you like.
Thats it.
Or is it?
How to install OGYoutube:
Install the modified MicroG apk from https://www.apkmirror.com/apk/ogmods/microg-for-ogyt/microg-for-ogyt-0-2-4-81-gb1e98ea-dirty-release/microg-for-ogyt-0-2-4-81-gb1e98ea-dirty-android-apk-download/ (Its made so OGYoutube could work correctly.
Install OGYoutube apk from https://www.apkmirror.com/apk/ogmods/ogyoutube/ogyoutube-12-10-60-3-5u-release/ogyoutube-12-10-60-3-5u-android-apk-download/
[To make more apps work wihout play services, that MicroG doesen't include you can install "This app will run wihout google play services" Xposed Module]
You are DONE!
Give me a thanks if i helped you
MicroG: https://microg.org/
NanoDroid: https://forum.xda-developers.com/apps/magisk/module-nanomod-5-0-20170405-microg-t3584928

Thanks man

play store error RH-01]
After installing the microG zip in my xperia z3 compact, the same no longer accesses the playstore, has how to reverse this?

micheldarkcore said:
After installing the microG zip in my xperia z3 compact, the same no longer accesses the playstore, has how to reverse this?
Click to expand...
Click to collapse
Did you had Gapps installed?
Also this thread was more for the Y6.
Anyway answer my question so I can help you.

Thespartann said:
Did you had Gapps installed?
Also this thread was more for the Y6.
Anyway answer my question so I can help you.
Click to expand...
Click to collapse
my installation was normal with the sony gapps. to try to login in youtube mod I decided to test only this microG in a zipped way.

micheldarkcore said:
my installation was normal with the sony gapps. to try to login in youtube mod I decided to test only this microG in a zipped way.
Click to expand...
Click to collapse
As i told in the thread.
MicroG is an ALTERNATIVE to Gapps. You don't flash MicroG over Gapps.
So basically uninstall the Gapps and MicroG / Clean flash the Rom.
And after that install NanoDroid-MicroG and NanoDroid-Patcher and enable google device registartion in microG settings.
Good luck. Next time read the thread proprerly

patch
Hi,
I have installed Nanodroid via Magisk on LOS 15.
Signature spoofing is not enabled.
I tried the xposed installer from F-Droid. This did not work. Magisk has a number of xposed modules but I cannot figure out which version to use.
I then flashed nanodroid patcher 17.2. This failed also!
How can I get signature spoofing to work? Thanks!
oneplus 5T

anarchotaoist said:
Hi,
I have installed Nanodroid via Magisk on LOS 15.
Signature spoofing is not enabled.
I tried the xposed installer from F-Droid. This did not work. Magisk has a number of xposed modules but I cannot figure out which version to use.
I then flashed nanodroid patcher 17.2. This failed also!
How can I get signature spoofing to work? Thanks!
oneplus 5T
Click to expand...
Click to collapse
Hi.
So your Rom is probably odexed.
You will need to use FakeGapps Xposed module.
Just install the Module, enable it from the Xposed app and reboot. Now signature spoofing will work.
If you need any futher help just pm me on Xda or telegram, @Thespartann.
Also if you want to log in into Play Store enable google device registration in MicroG settings.
I recommend you Aurora Store instead of Google Play Store
Good luck.
If i helped press the thanks button

Thespartann said:
Hi.
So your Rom is probably odexed.
You will need to use FakeGapps Xposed module.
Just install the Module, enable it from the Xposed app and reboot. Now signature spoofing will work.
If you need any futher help just pm me on Xda or telegram, @Thespartann.
Also if you want to log in into Play Store enable google device registration in MicroG settings.
I recommend you Aurora Store instead of Google Play Store
Good luck.
If i helped press the thanks button
Click to expand...
Click to collapse
Hi Thespartann!
Thanks for the reply!
So, I got xposed installed. Flashed it in TWRP then in the xposed app I installed it via recovery.
I then eventually installed the FakeGapps app.
Microg gives self check now gives 'System spoofs signature' a tick - it did not before.
Another app 'Signature Spoofing Checker' however says 'Disabled' -???
I was trying to get the emergency/rideshare app 'Cell411' working. Previously it booted up and said play service were required. That message is now gone! Yay - except the map will not load!
So..
In microg there is a check box unchecked -'UnifiedNlp do not have location to test Geocoder'
In configure location backends I have 6 things ticked on.
nb The FOSS weather apps now load faster!
How do I get the map to load in Cell411 (and Uber)??
Am I missing some setting?
re: log in into Play Store enable google device registration in MicroG settings.
I have been using F-droid, Yalp and Aptoide. Will enabling device registration give me any functionality for maps?
I have not heard of Aurora! I will have to check that out!
What of google cloud messaging and SafetyNet - do I need those for any reason - map related or otherwise? ps I am trying to avoid all google service, foremost for privacy and secondarily for FLOSS reasons.
Thank you!

anarchotaoist said:
Hi Thespartann!
Thanks for the reply!
So, I got xposed installed. Flashed it in TWRP then in the xposed app I installed it via recovery.
I then eventually installed the FakeGapps app.
Microg gives self check now gives 'System spoofs signature' a tick - it did not before.
Another app 'Signature Spoofing Checker' however says 'Disabled' -???
I was trying to get the emergency/rideshare app 'Cell411' working. Previously it booted up and said play service were required. That message is now gone! Yay - except the map will not load!
So..
In microg there is a check box unchecked -'UnifiedNlp do not have location to test Geocoder'
In configure location backends I have 6 things ticked on.
nb The FOSS weather apps now load faster!
How do I get the map to load in Cell411 (and Uber)??
Am I missing some setting?
re: log in into Play Store enable google device registration in MicroG settings.
I have been using F-droid, Yalp and Aptoide. Will enabling device registration give me any functionality for maps?
I have not heard of Aurora! I will have to check that out!
What of google cloud messaging and SafetyNet - do I need those for any reason - map related or otherwise? ps I am trying to avoid all google service, foremost for privacy and secondarily for FLOSS reasons.
Thank you!
Click to expand...
Click to collapse
Hey again
From what I know google cloud messaging is for receiving notifications from some apps.
SafetyNet is so you can pass safety net
Google device registration is so you can log in to Youtube/Calendar/Play Store etc with your google account.
None of these three is enabled by default so no need to worry
Well, I never dived on how to use Maps, because I never needed to use Maps
Some apps may require you to have FakeStore, that's an app so other apps think you have Google Play installed (You might have to install FakeStore as a system app)
I will do my research these days and also highly update this thread with useful information.
As why Signature Spoofing Checker shows you you don't have signature spoofing, that may be because the framework still doesn't have signature spoofing, and the module FakeGapps just did some tricks, without modifying the Framework.

Still can't post in the NO GAPPS telegram?|
Can somebody help me out hear? I joined about two weeks ago and am still blocked from posting.
I really need help as every time I try and install MicroG (Non-root, P30 Pro) I get the app not installed error.
Can someone lead me in the right direction and if there are any telegram admins in here Go NO GAPPS/NO GAPPS can you please unrestrict my access. My username is nightravels.

Related

Anyone Running PH-1 Minus Google? Using F-Droid Only

I'm seeing more and more people use Android phones Google-free by not installing gapps and getting all their applications through alternative sources like F-Droid. When I look at the custom ROMs for the Essential Phone, I see most have gapps baked in.
Just curious if anyone has experience on the PH-1 without gapps or Google service. What ROM are you using? Any issues?
Sent from my [device_name] using XDA-Developers Legacy app
Yes I'd love to know if anyone has gone microG, Xposed FakeGapps on Oreo with a custom rom?
Also if anyone has used Terminal Debloater on Stock Oreo and doing ok?
Thanks
Does Generic System Image come with Gapps? if not then you can use that.
TheIronLefty said:
Does Generic System Image come with Gapps? if not then you can use that.
Click to expand...
Click to collapse
I was thinking that as well. In fact, perhaps the deodex ROM is without gapps. I'll have to ask in that thread.
Sent from my [device_name] using XDA-Developers Legacy app
TheIronLefty said:
Does Generic System Image come with Gapps? if not then you can use that.
Click to expand...
Click to collapse
If that reply was for me, I'm asking more about Custom Roms.
ooklathemok said:
I'm seeing more and more people use Android phones Google-free by not installing gapps and getting all their applications through alternative sources like F-Droid. When I look at the custom ROMs for the Essential Phone, I see most have gapps baked in.
Just curious if anyone has experience on the PH-1 without gapps or Google service. What ROM are you using? Any issues?
Sent from my [device_name] using XDA-Developers Legacy app
Click to expand...
Click to collapse
It has been a long process, but I am most of the way there. Used deodexed Oreo Stock. Had to use Tingle manually to patch the framework.jar to get microg running. Haven't debloated yet, but most of the stock apps are disabled at this point. Most apps I use are from F-Droid. Using it as DD now.
Took several days to discover the NFC point is very narrow at the bottom center of the back. I had thought I had broken something. :silly:
I think I'm 99.9% there with CarbonROM LOL...
UnifiedNip is registerd in system, but this section I can't checkmark, even after rebooting. I was using the latest Preview GMSCore, I'll flash the rom over and try with the Stable GMSCore and see if it makes any difference and report back.
I have Xposed, FakeGapps, Magisk 16.7, Magisk Module for F-Droid Privilege, and Debloater (Terminal), and F-Droid. Everything working pretty good, Debloater systemlessly removed some Gapps I didn't want, Browser, Calendar, Gallery...
DoR3M3 said:
I think I'm 99.9% there with CarbonROM LOL...
UnifiedNip is registerd in system, but this section I can't checkmark, even after rebooting. I was using the latest Preview GMSCore, I'll flash the rom over and try with the Stable GMSCore and see if it makes any difference and report back.
I have Xposed, FakeGapps, Magisk 16.7, Magisk Module for F-Droid Privilege, and Debloater (Terminal), and F-Droid. Everything working pretty good, Debloater systemlessly removed some Gapps I didn't want, Browser, Calendar, Gallery...
Click to expand...
Click to collapse
I don't have "UnifiedNlp has known location" checked even though Satstat and OSM clearly show the location.
I am using Core -127 from NanoDroid 17.7.
Debloater is up next.
Well I just wiped/formatted, flashed back the Oreo fastboot image, now ready to flash in carbonrom and try this as I said with the stable versions of microg...
BRB...
DoR3M3 said:
I think I'm 99.9% there with CarbonROM LOL...
I have Xposed, FakeGapps, Magisk 16.7, Magisk Module for F-Droid Privilege, and Debloater (Terminal), and F-Droid. Everything working pretty good, Debloater systemlessly removed some Gapps I didn't want, Browser, Calendar, Gallery...
Click to expand...
Click to collapse
How was your experience with FakeGapps? I kept getting Null pointer exceptions. Tried v1.1 and 2.0.
gadgetguy08 said:
How was your experience with FakeGapps? I kept getting Null pointer exceptions. Tried v1.1 and 2.0.
Click to expand...
Click to collapse
Where did you see, get this at?
Ok UnifiedNIp is registered in system - [Checked]
To make everything work correctly, you'll want to push the GmsCore.apk to /system/priv-app/GmsCore/GmsCore.apk and then extract the lib/ folder from the GmsCore.apk to /system/priv-app/GmsCore/lib - otherwise the bundled libraries will not be found by the app and the maps library will crash apps.
If you don't know how to extract from an .apk, just rename to .zip, then copy out the lib directory.
I did have Xposed modules installed for this, so I will go back one more time, wipe it all again, and this time, see if I get it again.
DoR3M3 said:
Where did you see, get this at?
Ok UnifiedNIp is registered in system - [Checked]
To make everything work correctly, you'll want to push the GmsCore.apk to /system/priv-app/GmsCore/GmsCore.apk and then extract the lib/ folder from the GmsCore.apk to /system/priv-app/GmsCore/lib - otherwise the bundled libraries will not be found by the app and the maps library will crash apps.
If you don't know how to extract from an .apk, just rename to .zip, then copy out the lib directory.
I was always able to get
I did have Xposed modules installed for this, so I will go back one more time, wipe it all again, and this time, see if I get it again.
Click to expand...
Click to collapse
I had the FakeGapps errors in the Xposed Log [systemless version 90.2-beta3]. Tried several things. Interesting you didn't experience them.
I was always able to get UnifiedNLP to registered. It just doesn't show that it has a known location in the microg self check, but SatStat, OSM and others show it.
gadgetguy08 said:
I had the FakeGapps errors in the Xposed Log [systemless version 90.2-beta3]. Tried several things. Interesting you didn't experience them.
I was always able to get UnifiedNLP to registered. It just doesn't show that it has a known location in the microg self check, but SatStat, OSM and others show it.
Click to expand...
Click to collapse
Xposed showed a notification, I mean, you just looked in the logs, or how did you first know?
What is SatStat, OSM and others?
How are you installing microg? I just installed the apk is all, these versions and in this order;
Services Core - com.google.android.gms-12221403.apk
Services Framework Proxy - com.google.android.gsf-8.apk
Store (FakeStore release) - com.android.vending-16.apk
DroidGuard Helper - org.microg.gms.droidguard-14.apk
This is how I intalled microg on another phone and rom and it always worked.
So you have UnifiedNIp is registered in system - checked? For some reason I had to do the steps I mentioned to get it registered... hmm
DoR3M3 said:
Xposed showed a notification, I mean, you just looked in the logs, or how did you first know?
What is SatStat, OSM and others?
How are you installing microg? I just installed the apk is all, these versions and in this order;
Services Core - com.google.android.gms-12221403.apk
Services Framework Proxy - com.google.android.gsf-8.apk
Store (FakeStore release) - com.android.vending-16.apk
DroidGuard Helper - org.microg.gms.droidguard-14.apk
This is how I intalled microg on another phone and rom and it always worked.
So you have UnifiedNIp is registered in system - checked? For some reason I had to do the steps I mentioned to get it registered... hmm
Click to expand...
Click to collapse
I noticed I had an issue with FakeGapps because the MicroG self check showed that sig spoofing failed. At some point after that, I found the Xposed logs showing many errors for Null Pointer exception. I searched around but could not find anyone else with the issue. I submitted an issue on github.
SatStat, OSM are open source apps that will show location on a map. They are able to locate me so I know it is working using UnifiedNlp Settings (shows in the Setting > Location settings).
I installed microG using NanoDroid 17.7 using the full package.
How did you install Xposed?
Ok on NanoDroid 17.7...
DoR3M3 said:
How did you install Xposed?
Ok on NanoDroid 17.7...
Click to expand...
Click to collapse
I installed Xposed Framework 90.2-beta3 systemless through Magisk.
I'd use the Xposed Installer - XposedInstaller_3.1.5.apk;
https://forum.xda-developers.com/showthread.php?t=3034811
But I've learned a trick with it, flash rom and magisk, then install Xposed as the first app, and install the framework from within Xposed 'Install/Update' click cloud on right...
P.S. I'm not using Xposed any longer since it will break SafetyNet check....

Google Pay or Tez in custom ROMS

I thought maybe this thread will be helpful to all the folks out there:laugh:
Guide to use banking apps on custom roms.
1. Flash latest Magisk in TWRP and install Magisk manager.
2. Open up Magisk >>Magisk hide >>Choose app(ex: Google pay.. etc).
3. Magisk >> Settings>> Hide Magisk manager
4. Apps>> Google Play services >> Permissions >>Turn off telephone or phone permission.
5. Apps>> Google Play store >> Permissions >>Turn off telephone or phone permission
6. Login to banking app.
7. Viola!! Done and done.
Turn back ON phone permission (Google Play services and Google Play Store) after you're done with the money transfer.
Turn back OFF phone permissions (Google Play services and Google Play Store) while you wanna transfer the money.
Hope this helped:laugh:
koi1843 said:
I thought maybe this thread will be helpful to all the folks out there[emoji23]
Guide to use banking apps on custom roms.
1. Flash latest Magisk in TWRP and install Magisk manager.
2. Open up Magisk >>Magisk hide >>Choose app(ex: Google pay.. etc).
3. Magisk >> Settings>> Hide Magisk manager
4. Apps>> Google Play services >> Permissions >>Turn off telephone or phone permission.
5. Apps>> Google Play store >> Permissions >>Turn off telephone or phone permission
6. Login to banking app.
7. Viola!! Done and done.
Turn back ON phone permission (Google Play services and Google Play Store) after you're done with the money transfer.
Turn back OFF phone permissions (Google Play services and Google Play Store) while you wanna transfer the money.
Hope this helped[emoji23]
Click to expand...
Click to collapse
Don't have to do so much. On latest magisk, use magisk hide....
[emoji23][emoji23][emoji23]
Sent from my ONE E1003 using Tapatalk
gurgao said:
Don't have to do so much. On latest magisk, use magisk hide....
[emoji23][emoji23][emoji23]
Click to expand...
Click to collapse
It doesn't work by only using Magisk hide, I have tried that.:laugh:
Especially in Google pay or Tez ..It doesn't work by only using Magisk hide Due to SafetyNet.
koi1843 said:
Especially in Google pay or Tez ..It doesn't work by only using Magisk hide Due to SafetyNet.
Click to expand...
Click to collapse
Working fyn here...
Sent from my ONE E1003 using Tapatalk
Hello,
Did anyone of you guys succeeded in making work uber by using Magisk Hide ? I'm unable to do so, more because I can't bypass safetynet and can't apply the solution given above( I'm running on microG, my device is GApps free and hope it to stay that way).
Hiempsal said:
Hello,
Did anyone of you guys succeeded in making work uber by using Magisk Hide ? I'm unable to do so, more because I can't bypass safetynet and can't apply the solution given above( I'm running on microG, my device is GApps free and hope it to stay that way).
Click to expand...
Click to collapse
I dunno a solution for Google-free-services
Sorry.
Tnx
Magisk hide lone doesn't been enough for Google pay to work... But your instruction worked damn well... Tnx dude...
worked fine after following ur instructions.
Thx
This stopped working for Google Pay, since it shows a notification when you Open GPay saying that you must allow Google Play Services to access to the phone, so GG.
I use jio and I can't get Google pay to verify my phone number. It's unable to send sms to upi from the jiocall app..... any workarounds?
thandiBear said:
I use jio and I can't get Google pay to verify my phone number. It's unable to send sms to upi from the jiocall app..... any workarounds?
Click to expand...
Click to collapse
I tried to get both phone pe and tez to send SMS with jiocall so, but it always fails. U can try by registering in the app and manually opening jiocall app, go to messages and send the message that was typed by phone pe, but the very act of switching to another app while registering will kill the registration process.
I waited till my phone got volte update and then tried. It seems like u need volte to register with jio.
So only options are to get a volte phone or Port to another operator like Airtel or idea.
Thanx
koi1843 said:
I thought maybe this thread will be helpful to all the folks out there:laugh:
Guide to use banking apps on custom roms.
1. Flash latest Magisk in TWRP and install Magisk manager.
2. Open up Magisk >>Magisk hide >>Choose app(ex: Google pay.. etc).
3. Magisk >> Settings>> Hide Magisk manager
4. Apps>> Google Play services >> Permissions >>Turn off telephone or phone permission.
5. Apps>> Google Play store >> Permissions >>Turn off telephone or phone permission
6. Login to banking app.
7. Viola!! Done and done.
Turn back ON phone permission (Google Play services and Google Play Store) after you're done with the money transfer.
Turn back OFF phone permissions (Google Play services and Google Play Store) while you wanna transfer the money.
Hope this helped:laugh:
Click to expand...
Click to collapse
Thank you so much..Worked like charm..One doubt though:
Once Magisk Manager is hidden ,it is shown an an app with another name.But that app doesn't contain some features such as "SU"..That app asks me to install Magisk manager again..Should I install Magisk Manager everytime??
Device:Sony XPERIA M
Video on how to do it without Magisk and just changing 1 single setting
I have made a video on how to do it without Magisk
Do check it out
https://youtu.be/j5SkMHpGpRY
archis.das said:
I have made a video on how to do it without Magisk
Do check it out
https://youtu.be/j5SkMHpGpRY
Click to expand...
Click to collapse
Maybe another way to get GPay going ... i created a second user account on the phone and ran GPay with the same Google-Account on the second user account ... all went find (the second account has no root!).
Cheers
Kurt

[GUIDE] microG - Deodex - Signature Spoofing - Debloat Gapps!

microG
I am no longer working on this, or updating any information here! This was created back in the day of Oreo.
I've personally moved on and I'm presently using /e/ which you can see the info here and get the ROM for OP5T.
/e/OS documentation - OnePlus 5T
Info about OnePlus 5T - dumpling
As of this post edit on 10/20/22 I'm using 'e-1.4-r-20220922220394-dev-dumpling' and /e/ uses microg. It runs quite nice, so check it out!
microG is Freedom, Security & Privacy from Google, by replacing the Google Services & Framwork, also improving phone and battery performance!
This guide shows you the steps needed to Deodex, Signature Spoofing, Debloat Gapps and install microG.
This is not just a OxygenOS guide, this works on any ROM with Gapps baked in, lack signature spoofing, or doesn't come with microG installed! The only areas specific to OxygenOS is using Xposed and the microG permissions, both which might not be needed on other ROMs, everything else you follow in this guide for any ROM.
The information is here to give you a complete understanding of the process, it's just the Android way is all! Without the information and only steps to follow, there are a lot of areas you could experience problems, and not know how to deal with them.
There is no shorter, or easier way to accomplish this, if there was I would of made a smaller quickie guide, this is the way it works in Android! If you want to do microG you're going to have to read, it looks like a lot but it's not, once you've done it a few times!
Remember, the information is here to help you!
Pie is not supported in Xposed, and at the present moment OxygenOS requires Xposed.
You need to WIPE and install the ROM and start fresh, otherwise it can get complicated, you've been warned! You also need to follow the steps exactly, do not deviate, the process is picky, that is why the steps are to be done this way!
When you go online for the first time do not allow any Google updates! Do not install any Gapps, or anything, other than what is mentioned in this guide!
Keep online time limited to the steps needed in this guide. Connect only to accomplish what is needed and keep an eye out for Google updates and cancel them!
I highly recommend making TWRP backups every step of the way, in case of a mistake, then you don't have to start all over!
Once you get the steps down, the entire process takes around 30-60 minutes to complete!
Each of the RED sections are the STEPS, just read and follow them one by one!
DEODEX OR FAKEGAPPS
For stock or custom roms that don't support signature spoofing, you can either deodex the rom with the VDEXEXTRACTOR steps and use the Nanodroid-patcher to apply signature spoofing, or use the Xposed FakeGapps module which enables signature spoofing support.
If you use an application called "Signature Spoofing Checker" with the Xposed FakeGapps module installed and it shows the support disabled, ignore it. FakeGapps is working, it's a bug in the "Signature Spoofing Checker". 5.1.5 shows Green/Enabled and 5.1.6 shows Red/Disabled.
If you use the Xposed FakeGapps module skip to the [MAGISK] SYSTEMLESS XPOSED section! If you know how to compile for vdexExtractor, there is no reason to use FakeGapps!
VDEXEXTRACTOR
This method shown below is a simple Deodex that NanoDroid uses. SuperR's Kitchen also uses vdexExtractor, but instead does a Full Deodex. The NanoDroid method is simpler, without the need for SuperR's Kitchen. I plan on eventually adding a method of using SuperR's Kitchen to the guide at some point in time.
This NanoDroid Deodex method shown here is good, it's just not a Full Deodex, it hurts nothing, it's not better or worse, just different! So, if you aren't concerned with needing/wanting the full customization capability that a Full Deodex offers, or you have no idea of what is being said here, then don't worry!
ROMs that are either in a state of VDEX or ODEX need to be DEODEX in order to apply Signature Spoofing! So depending on the ROM, check to find out which state it is in, and then you will apply either the VDEX or ODEX methods outlined in this guide; https://gitlab.com/Nanolx/NanoDroid/blob/master/doc/DeodexServices.md
In this guide for OxygenOS you will be following the VDEX method. OxygenOS follows the VDEX method because it has both .odex and .vdex files in the system.
You will have to compile the vdexExtractor source on either Windows, MacOS, or Linux, this guide doesn't cover compiling.
At the end of this section where you download vdexExtractor on GitHub, under the Dependencies section being mentioned there, this is a brief explanation of that information to help get you started.
This is only the basics explained to help get you now moving in the right direction for compiling. If you have any other concerns or questions please search on Google, there is a wealth of information online to help you.
1. macOS users will need to compile by installing Homebrew https://brew.sh/ and adding the dependency zlib-devel as brew install zlib-devel. Then you should be able to use the terminal in macOS to run the command, ./make.sh gcc or sh make.sh gcc to now compile.
2. For Linux users you need to make sure you have libz-dev installed and then at a terminal run either, ./make.sh gcc or sh make.sh gcc to compile.
3. For Windows users you'll need to install cygwin, https://www.cygwin.com/ cygwin helps to give you a Unix/Linux like build environment. Make sure to install zlib-devel from the cygwin installer, it should be listed under the Devel section which you click it so it changes from the word Default to Install, if you don't see zlib-devel listed there, then search for it. There is a lot of information online about installing and using cygwin, hopefully this link below is still working fine for Windows 10 to help you setup the Cygwin Path to the Windows Environment Variable, to make it easier to use the command prompt to compile from. In Windows you'll also run the commands, either ./make.sh gcc or sh make.sh gcc to compile.
Install Cygwin and How to Use Linux Commands in Windows with Cygwin
https://www.howtogeek.com/howto/41382/how-to-use-linux-commands-in-windows-with-cygwin/
If compiling is a problem you can always use the Xposed FakeGapps module, but it's best to DEODEX/PATCH the ROM!
Learn to compile, you'll be better off for it in the long run, switch to Linux it makes the process of compiling a lot easier than any other OS.
Be sure to look at the vdexExtractor Github for basic compile information, where you'll download the source; https://github.com/anestisb/vdexExtractor
NANODROID PATCHER
Download the NanoDroid-patcher; https://forum.xda-developers.com/apps/magisk/module-nanomod-5-0-20170405-microg-t3584928
Download from Stable Download (Nanolx) - As of to date it's version NanoDroid-patcher-20.2.20181122.zip
DEODEX SETUP
Boot to TWRP and mount the /system read-write.
Once you have mounted the /system in TWRP run these commands on your computer to deodex!
DEODEX COMMANDS
Code:
adb pull /system/framework framework
cp framework/services.jar services.jar-backup
vdexExtractor -i framework/oat/arm64/services.vdex --ignore-crc-error
mv framework/oat/arm64/services_classes.dex classes.dex
zip framework/services.jar classes.dex
zip -j framework/services.jar classes.dex
adb push framework/services.jar /system/framework
adb shell
chmod 644 /system/framework/services.jar
chown root:root /system/framework/services.jar
SIGNATURE SPOOFING
Unmount the /system read-write - TWRP > Mount > uncheck System
Install the NanoDroid-patcher in TWRP. (This takes around 10 minutes!)
If you did the deodex correctly, when flashing NanoDroid-patcher it will say Deodex.
When the patch has completed reboot the phone.
[MAGISK] SYSTEMLESS XPOSED
Xposed does not pass SafetyNet!
Download [Magisk] Systemless Xposed - XposedInstaller_3.1.5-Magisk.apk; https://forum.xda-developers.com/xposed/unofficial-systemless-xposed-t3388268
MAGISK ROOT
Boot to TWRP and install Magisk to root your phone.
Reboot the phone and update Magisk.
MAGISK MODULES
Do not reboot until you have installed all three modules!
Install the Xposed Framework (SDK 27) - For Xposed to install, Systemless Xposed and Magisk need to be the only two things first installed in the rom!
Install the Debloater (Terminal Emulator) - Debloats the phone Systemlessly!
Install the F-Droid Privileged Extension - Read about it here; https://f-droid.org/en/packages/org.fdroid.fdroid.privileged/
After installing these three modules reboot your phone!
XPOSED MODULES
Open Xposed while connected online, it should be displaying in Green! If it is Red you might not of followed the steps correctly, especially the part about doing this on a "Fresh Clean ROM", and following the guide step by step.
Install FakeGapps if you did not deodex the rom, and then apply the signature spoofing NanoDroid-patch!
The XposedGmsCoreUnifiedNlP module will be installed later with microG, mentioned in the MICROG section!
If you installed FakeGapps, go to the Modules section and check the module to enable it, then reboot the phone.
F-DROID
You have basically 3 choices for applications; Aurora Store, F-Droid, Yalp Store.
For now I recommend you install F-Droid, download from https://f-droid.org/en/
After installing F-Droid go to Settings, toggle on Expert mode, make sure Privileged Extension is checked, close and reopen F-Droid and then update F-Droid if a new version is available!
You'll need a terminal emulator in Android because Debloater (Terminal Emulator) runs from the command line, it doesn't have a GUI. I recommend using Termux, it's a very powerful terminal emulator with many features.
Search for an install Termux!
DEBLOATING APPS SYSTEMLESSLY
Do not debloat the Google Play Store if you plan on using it!
Do not create/add a Google Account, it will only get removed when you debloat out Google, instead wait to the last section I WANT MY GOOGLE & STAY PRIVATE TOO, and add it after you have installed and setup microG!
If you want to keep some Gapps that's your choice! Be sure to run any Gapps that you want to keep before debloating. This is not always the common situation where you need to run Gapps before debloating, it's typically rare, but some odd applications will have a hard time working with microG if this isn't done. For applications you are not sure of, be sure to run them, especially applications that use Location, such as OnePlus Weather and the Camera, etc., before debloating!
Make sure you are connected online when you run Termux for the first time.
With Termux running, at the command prompt type su for superuser access and grant root access.
Type debloat and you'll remove from 1 - System Apps & 2 - System Priv-Apps.
Type the numbers with spaces in between for the applications you are debloating, as an example; 15 16 17.
When you have the applications typed in and you are ready to debloat, tap enter.
For the best Gapps Free experience debloat all of these;
Android Setup
Calendar
Chrome
Drive
Duo
Gboard
Gmail
Google
Google Backup Transport
Google One Time Init
Google Partner Setup
Google Pay
Google Play Movies
Google Play Music
Google Play Services
Google Play Store - (Do not debloat if you're going to use!)
Google Services Framework
Market Feedback Agent
Maps
Photos
On a note of Privacy, there's information online in regards to OnePlus and Analytics/Data Mining as it relates to the below applications.
I highly recommend that if you're serious about privacy to do your own research and judge for yourself, but if you're asking me I debloated all of them!
BugReportLite
EngSpecialTest
FactoryMode
Insight Provider
LogKitSdService
OnePlusLogKit
Oneplus System Service
RfToolkit
After debloating you are suppose to reboot your phone for the changes to take effect!
If you debloated Chrome, make sure you update the Android System WebView in either the Aurora Store or Yalp Store, after you've completed the installation of microG!
Make sure you debloated Gboard, be sure to install another keyboard before rebooting! I recommend installing AnySoftKeyboard from F-Droid!
If you make any mistakes, you have the option to reinstall applications!
Reboot the phone...
If any updates occurred, after debloating some Gapps might still appear in the system. These now turn into User-Installed applications, so either in the Settings > Apps > Application List, you'll have the option to uninstall, or if the application is in the App Drawer, you can now uninstall it from there!
If the Google Play Services is listed in the phone but no option shown to uninstall, follow the GMS PROBLEMS section! Regardless of what you see or don't see in the Application List be sure to still follow the GMS PROBLEMS section!
GMS PROBLEMS
Before installing microG you need to make sure this GMS directory com.google.android.gms is out of the system!
Run this command;
Code:
adb uninstall com.google.android.gms
If com.google.android.gms exists and you were able to remove it, you'll see this reply; Success
If you see a lot of output with this line, then you have no changes or updates installed, there's nothing to remove;
java.lang.IllegalArgumentException: Unknown package: com.google.android.gms
If com.google.android.gms exists and the Google Play Services is still active, you'll see this reply; Failure [DELETE_FAILED_DEVICE_POLICY_MANAGER]
If the Google Play Services is still active you will have to manually remove com.google.android.gms.
Run these commands;
Code:
adb shell
su
cd /data/data
rm -rf com.google.android.gms
If you run rm -rf com.google.android.gms and get this reply back; rm: databases: Directory not empty, just run the command over!
Even if the command gave you a success response, or unknown package, be sure to visually check for the presence of com.google.android.gms in /data/data!
Exit and reboot your phone!
If you had to manually remove com.google.android.gms, go to the Settings > Apps > Application List > Three Dots (Upper Right) > Show system apps. If you see the Google Play Services uninstall it, the option to uninstall should now be available. Click uninstall and wait a few seconds for a popup to appear and click ok to remove.
microG creates com.google.android.gms, do not remove it after you have microG installed!
DALVIK CACHE & CACHE
Before installing microG, boot into TWRP and Wipe the Dalvik Cache and Cache!
When done wiping reboot the phone back into the system.
NANODROID-MICROG
At the present moment it is better to use the NanoDroid-microG version! Official microG is not getting as much development!
Visit the NanoDroid post on XDA;
https://forum.xda-developers.com/apps/magisk/module-nanomod-5-0-20170405-microg-t3584928
Down from the Stable Download (Nanolx) link!
If you use the NanoDroid-microG version, take the "FakeStore" "GmsCore" "GsfProxy" from the zip, look for them in the folders under /system/priv-app/ use the "GmsCore_NanoDroid" and "GsfProxy_NanoDroid" and be sure to rename them, and follow the MICROG steps below using these versions instead of the Offical microG!
MICROG
microG on stock Android sometimes take a little more effort with Gapps installed compared to custom roms without Gapps, but the process typically only involves dealing with the preinstalled Gapps and Google updates. Most of the time you only need to follow the GMS PROBLEMS steps outlined in the guide when running into problems.
If you debloat the Play Store and then later reinstall it, make sure you do not have FakeStore installed, Play Store will not go back in with FakeStore installed!
microG DroidGuard Helper is only required if you want to use applications that require SafetyNet or to test DroidGuard!
The microG UnifiedNlP package at this point in time is not supported in OxygenOS, for this reason the XposedGmsCoreUnifiedNlP Xposed module needs to be installed!
Open Xposed and install XposedGmsCoreUnifiedNlP, go to the Modules section, check the module to enable it!
Android 7 (or later) needs to have microG installed to the /system.
If you use the Official microG download FakeStore GmsCore GsfProxy! (It's higly recommened to use the Nanodroid-microG version!)
FakeStore - (Only needed if you're not using the Play Store)
https://github.com/microg/android_packages_apps_FakeStore/releases
GmsCore
https://github.com/microg/android_packages_apps_GmsCore/releases
GsfProxy
https://github.com/microg/android_packages_apps_GsfProxy/releases
Rename all the APK!
FakeStore.apk
GmsCore.apk
GsfProxy.apk
Create theses directory names and place the APK in them!
FakeStore
GsfProxy
GmsCore already has a directory in /system/priv-app!
Debloater (Terminal Emulator) places a file .replace in all the /system/priv-app directories that you debloated.
In GmsCore the contents of ".replace" is "Google%Play%Services", so that the Google Play Services apk doesn't populate the directory. If you were to remove or rename ".replace" and rebooted, you would see the actual Google Play Services GmsCore.apk in the directory!
Do not touch these hidden ".replace" files!
Because GmsCore already has a directory in /priv-app, copy the microG GmsCore.apk to your phone with a File Manager that gives you root access to /system/priv-app/GmsCore.
Do not adb push GmsCore.apk in TWRP, it will only get removed when you reboot!
Boot to TWRP and mount the /system read-write.
Use this command to push the directories for FakeStore and GsfProxy. - (FakeStore is only needed if you're not using the Play Store)
Code:
adb push FakeStore /system/priv-app
adb push GsfProxy /system/app
Make sure /system is still mounted in TWRP, then > Advanced > Terminal.
Run these commands to make sure you have the correct permissions! - (FakeStore is only needed if you're not using the Play Store)
Code:
chmod 755 /system/priv-app/FakeStore
chmod 644 /system/priv-app/FakeStore/FakeStore.apk
chown -R root:root /system/priv-app/FakeStore/FakeStore.apk
chmod 755 /system/priv-app/GmsCore
chmod 644 /system/priv-app/GmsCore/GmsCore.apk
chown -R root:root /system/priv-app/GmsCore/GmsCore.apk
chmod 755 /system/app/GsfProxy
chmod 644 /system/app/GsfProxy/GsfProxy.apk
chown -R root:root /system/app/GsfProxy/GsfProxy.apk
Do not update microG through Aurora Store or Yalp Store, only update through F-Droid!
If at any time there are any new updates, you'll need to follow the steps over for adb push, copying GmsCore, and the permissions for FakeStore - GmsCore - GsfProxy! Delete all the old APK first before copying and doing adb push!
If you use the Official microG Open F-Droid, Settings, tap on Repositories and add in the microG repo; https://microg.org/fdroid/repo so you can keep microG updated!
If you use NanoDroid-microG, in F-Droid, Settings, tap on Repositories and add in the NanoDroid-microG repo; https://nanolx.org/fdroid/repo/ so you can keep microG updated!
Unmount the /system read-write and reboot the phone.
MICROG SETUP
Open F-Droid and search for microg. The Network-based Geolocation choices are, Deja VU - MozillaNlPBackend - Local GSM Location. It's good to just install all three, or experiment to see which works best for you, either alone or in combination. For address lookup and to also test Geocoder, install NominatimNlPBackend.
Make sure WiFi, Mobile data, "Location ( Mode - High Accuracy)" are all turned on in the phone before opening microG!
Open microG, you'll notice at the top it says Permission missing, tap on this, tap on the words REQUEST MISSING PERMISSIONS and ALLOW all of them!
If your deodex went successful, or you went with FakeGapps, you should notice at the top System spoofs signature checked.
You should now only see two check marks missing at the bottom for Location backend(s) setup and UnifiedNlP do not have Location to test Geocoder.
Network-based location enabled should be checked if you didn't turn off Location in the Phone Settings.
Make sure Battery optimizations ignored is also checked!
To get Location working properly in microG, under Self-Check tap on Google device registration and toggle it ON.
Google device registration needs to be ON, when signing up or logging into your Account, or the Play Store for the first time, afterwards it can be turned OFF if you don't need Location support! If at any time an application doesn't run, trying turning Google device registration back ON to see if it helps.
Go to the phone Settings > Location and put the Mode on "High Accuracy".
In the "UnifiedNlP Settings" configure the "Network-based Geolocation" backends you just installed!
Under "Address lookup" for the NominatimNlPBackend, tap Choose Nominatim API Server and pick MapQuest! I recommend using MapQuest, you'll need to sign up for a free account at MapQuest to get an API key.
https://developer.mapquest.com/
When you get your key, tap on MapQuest Developer API Key and add it in.
The MapQuest API key only allows 15,000 transactions a month!
MICROG PERMISSIONS
To get UnifiedNlP do not have Location to test Geocoder checked in microG, you need to add these two permissions.
Code:
adb shell
su
pm grant com.google.android.gms android.permission.ACCESS_COARSE_LOCATION
pm grant com.google.android.gms android.permission.ACCESS_FINE_LOCATION
After adding the permissions reboot your phone.
If you go into the microG settings before it's updated the Location, you will still see UnifiedNlP do not have Location to test Geocoder unchecked. Go back out of Self-Check and wait a few seconds then check it again, sometimes you need to scroll up and down a few times too. After a few seconds your Location should be updated and everything should be checked.
This time you'll see it says Geocoder provides address resolution from location checked. Also scroll up and down for a few seconds, and this time under UnifiedNlP status you should have 6 sections now checked.
Over a period of time, depending on what you do, you might see UnifiedNlP do not have Location to test Geocoder become unchecked, if this happens just run the permissions over!
I WANT MY GOOGLE & STAY PRIVATE TOO
All of this just depends on your level of privacy and concerns in regards to Google!
If you debloated Chrome, before you can add a Google Account in the phone settings through microG, you need to update Android System WebView!
These steps below are only if you need paid applications through the Play Store! Free and paid applications can also be downloaded through Aurora Store and Yalp Store, F-Droid can only download free applications.
If you want to stay away from Google, you can use your Google Account on either Aurora Store or Yalp Store. Some paid applications with their License Checks might not work without being downloaded through the Play Store, or if the Play Store isn't installed, you'll have to test this out with various applications to see how they work.
Besides paid applications, system applications will also appear through Aurora Store and Yalp Store, so you can limit the time using the Play Store for privacy, and update everything through either Aurora Store or Yalp Store, possibly even paid applications too.
Aurora Store and Yalp Store violates §3.3 of Google Play Terms of Service, so your account could be disabled, but as it's mentioned on the Yalp Store site, they've never heard of any real cases of accounts being disabled.
https://github.com/yeriomin/YalpStore
https://gitlab.com/AuroraOSS/AuroraStore
To make this step of privacy work, you will need to create a Google account for the first time, because if you did it the normal way on your phone, then you have exposed your device, given up your carrier name, mobile or wifi ip address, geo location etc... If you signed up on a computer, depending on what you did, you might of also exposed yourself!
If you want to create your Google account on a computer, be sure to cover your tracks, like using a VPN!
If you need paid applications from the Play Store, create your Google account after you've done all the steps outlined in this guide for privacy!
Before you follow the steps, make sure Location is off, WiFi is off, Mobile Data is off, and switch the sim card! You do not need an active sim card to use the Play Store! With dual sims, deactivate the good one, and activate the dead/spoofed one! Make sure the spoofed sim card is also the sim card set as the default for the Phone, text, mobile data!
Follow these steps even if you are signing up through a computer, to make sure you are ready to sign into the Play Store on your phone you've prepared!
Every time you sign into the Play Store on your device, if you want privacy with as little attention drawn to the account, then you need to always connect to the Play Store with all of the same phone settings, sim card, etc., otherwise you will get a new device added to the account.
Make sure you never sign into a Google account using your real sim, wifi/mobile network IP, or Location on! Anything that can track you, make sure it's spoofed or off!
For the best Privacy use a VPN that does not log, then sign into the Play Store over wifi using this VPN! As an example you can also use some throw away sim card that you paid for by cash that has no trail to you, but remember the Carrier Network does place you locally! If Geo Locality is a concern, use a VPN!
It's also recommended to maintain the same network(s) and GEO location when signing into the Play Store!
If at anytime you want to update, or get more applications, follow the steps over repeating the process!
Here's a break down in the steps! - (1 - 4)
1. You can sign up for the Google account on your computer, then add it into your phone, but don't forget to follow step #2 when you add the account in the device.
2. When signing up or adding your Gmail/Google account on your device, use another sim card in your phone so the mobile network goes through a different carrier, or a spoofed sim card that doesn't work, or wifi over a VPN, Phone, text, mobile data all set on the spoofed sim card, Location is off! Make sure anything that can track you is off or spoofed!
3. If you are either signing up, or logging into your Account on your device, make sure Google device registration is ON in microG! This also needs to be ON the first time you log into the Play Store!
4. When you are done using the Play Store for the first time you can turn Google device registration OFF in microG, if you don't need phone Location! If at any time applications aren't working properly try turning Google device registration ON!
Be careful with the Account and Play Store on the phone, that you don't access either of them with anything that gives up your identity, as you can see there are a few things you could forget!
NANODROID PHONESKY
If at anytime you have problems with the original Play Store, you can get Phonesky.apk from NanoDroid-microG, it's a patched version to work with microG. Download it from Stable Download (Nanolx), it's located in the /system/priv-app/Phonesky directory.
https://forum.xda-developers.com/apps/magisk/module-nanomod-5-0-20170405-microg-t3584928
Copy Phonesky.apk with a File Manager to the Download directory.
Boot to TWRP and mount the /system read-write.
Rename the original Phonesky.apk in /priv-app to keep a backup, also so it won't run. Rename it like; Phonesky.bak - Phonesky.orig
In TWRP copy the Nanodroid version to /priv-app/Phonesky.
In TWRP > Advanced > Terminal, run this command to make sure you have the correct permissions on the Nanodroid version of Phonesky!
Code:
chmod 644 /system/priv-app/Phonesky/Phonesky.apk
Unmount the /system read-write and reboot the phone.
The Nanodroid version of the Play Store is now located in the App Drawer.
If Privacy is a concern, when you are done using the Play Store you can go to Settings > Apps > Application List > Google Play Store - Tap Disable to stop the Play Store from running, then you can Enable it later when you want to run it again! You do not need to debloat the Play Store! You can also tap Permissions and disable all of them!
Settings > Security & lock screen > Apps with usage access > Google Play Store > Permit usage access - Disable this for better privacy!
That's all there is to accomplishing microG on OxygenOS, Stock Android ROMs, and Custom ROMs!
>
>
>
If this post helped you in any way, please press the THANKS button!
Thank you for your time and effort with this detailed tutorial.
I understand every step except for the VDEX bit. Can I bypass this part? I don't use Playstore but one app (BT sport) after some updates refuses to work without it. Even on Lineage microG.
bluegrass55 said:
Thank you for your time and effort with this detailed tutorial.
I understand every step except for the VDEX bit. Can I bypass this part? I don't use Playstore but one app (BT sport) after some updates refuses to work without it. Even on Lineage microG.
Click to expand...
Click to collapse
BT Sport wants the Play Store in order to work?
For VDEX I mentioned it before, but this time I changed it to make it more noticeable.
Look back up at ---> DEODEX OR FAKEGAPPS
What computer OS you running?
DoR3M3 said:
BT Sport wants the Play Store in order to work?
For VDEX I mentioned it before, but this time I changed it to make it more noticeable.
Look back up at ---> DEODEX OR FAKEGAPPS
What computer OS you running?
Click to expand...
Click to collapse
Windows 8.1 Pro.
Yes BT sport needs to feel the presence of Playstore to work. Even though I'm not logged into Playstore, full restriction using XprivacyLua and blocked internet access via AFWall+. When on dedicated Lineage 15.1 microG it used to work. But not anymore.
Excelent guide, I run microg about 3,5 years, now with oxygen the only thing i miss is signature spoofing but I didn't have any problem except of some messages eg when opening tapatalk. Is there any way to deodex on macos?
Sent from my ONEPLUS 5T
vagkoun83 said:
Excelent guide, I run microg about 3,5 years, now with oxygen the only thing i miss is signature spoofing but I didn't have any problem except of some messages eg when opening tapatalk. Is there any way to deodex on macos?
Sent from my ONEPLUS 5T
Click to expand...
Click to collapse
Everything is mentioned in these steps, please look them over again, you can always use FakeGapps...
DEODEX OR FAKEGAPPS
VDEXEXTRACTOR
I made some changes to make it clearer. But if you went to the vdexExtractor Github, you would of seen mention of MacOS if you want to compile and DEODEX instead of FakeGapps.
bluegrass55 said:
Windows 8.1 Pro.
Yes BT sport needs to feel the presence of Playstore to work. Even though I'm not logged into Playstore, full restriction using XprivacyLua and blocked internet access via AFWall+. When on dedicated Lineage 15.1 microG it used to work. But not anymore.
Click to expand...
Click to collapse
Play Store is mentioned in the Guide, so if you need it, just follow these steps;
I WANT MY GOOGLE & STAY PRIVATE TOO
I would also suggest filing an Issue on the microG Github, maybe the microG DEVs will have some suggestions/ideas on how to do this without the Play Store;
https://github.com/microg/android_packages_apps_GmsCore
bluegrass55 said:
Windows 8.1 Pro.
Yes BT sport needs to feel the presence of Playstore to work. Even though I'm not logged into Playstore, full restriction using XprivacyLua and blocked internet access via AFWall+. When on dedicated Lineage 15.1 microG it used to work. But not anymore.
Click to expand...
Click to collapse
Managed to install this via the Fake Gapps route but it failed the Signature Spoofing check via the app from Fdroid. Flashed the NanoDroid Patcher which fixed it.
https://downloads.nanolx.org/NanoDroid/Stable/NanoDroid-patcher-19.1.1.20181103.zip
For some strange reason I still have Faceunlock function even with all Google stuff uninstalled.MicroG self test has everything ticked and Fdroid is working.
This was a test run on an already debloated stock 5.1.6 ROM. Will try again on a later date with clean fresh ROM as recommended. Looked into the Deodex thing again but still non the wiser on how to achieve it.
bluegrass55 said:
Managed to install this via the Fake Gapps route but it failed the Signature Spoofing check via the app from Fdroid. Flashed the NanoDroid Patcher which fixed it.
https://downloads.nanolx.org/NanoDroid/Stable/NanoDroid-patcher-19.1.1.20181103.zip
For some strange reason I still have Faceunlock function even with all Google stuff uninstalled.MicroG self test has everything ticked and Fdroid is working.
This was a test run on an already debloated stock 5.1.6 ROM. Will try again on a later date with clean fresh ROM as recommended. Looked into the Deodex thing again but still non the wiser on how to achieve it.
Click to expand...
Click to collapse
The 5.1.6 OTA is available for me to download, and I checked it, and it's VDEX!
Do you remember when you were installing the NanoDroid-patcher, at the beginning it said "Deodex"?
See the attached image where it says; services.jar status: VDEX this is on 5.1.5 & 5.1.6 showing that the ROMs have not be DEODEX yet. It needs to say; services.jar status: DEODEX in order for the Nanodroid-patcher to work...
I noticed too that the Signature Spoofing Checker shows "Disabled" in 5.1.6. microG shows the support, so it appears that the "Signature Spoofing Checker" has a bug and I'll remove it from the post until it can be fixed.
BT Sports is complaining about the Google Play Services, which is not the Play Store. So as I mentioned, just follow the last step of the Guide for the Play Store and see if BT Store works, and if not, make the Issue at the microG GitHub for help.
OB19 deodex possible?
deszczuXS said:
OB19 deodex possible?
Click to expand...
Click to collapse
Did you read the guide?
This is a microG guide for Android not just Oxygen...
But there are slight differences between ROMs, all you have to do is avoid all the OxygenOS parts for Android.
FakeGapps isn't supported in PIE, so if you use PIE then you have to DEODEX, otherwise you can use FakeGapps.
DoR3M3 said:
The 5.1.6 OTA is available for me to download, and I checked it, and it's VDEX!
Do you remember when you were installing the NanoDroid-patcher, at the beginning it said "Deodex"?
See the attached image where it says; services.jar status: VDEX this is on 5.1.5 & 5.1.6 showing that the ROMs have not be DEODEX yet. It needs to say; services.jar status: DEODEX in order for the Nanodroid-patcher to work...
I noticed too that the Signature Spoofing Checker shows "Disabled" in 5.1.6. microG shows the support, so it appears that the "Signature Spoofing Checker" has a bug and I'll remove it from the post until it can be fixed.
BT Sports is complaining about the Google Play Services, which is not the Play Store. So as I mentioned, just follow the last step of the Guide for the Play Store and see if BT Store works, and if not, make the Issue at the microG GitHub for help.
Click to expand...
Click to collapse
Thanks for the detailed reply.
Don't remember if it said "Deodex" at the beginning but about to have another ago as the phone is bootlooping. Using the Terminal Debloat I removed all the Google stuff but for some reason Google Services Framework and Google One Time Init were still was showing up in the system. Used Titanium, System Uninstall app and Root Browser to remove but without luck. Changed their permissions but ended up in bootloop.
bluegrass55 said:
Thanks for the detailed reply.
Don't remember if it said "Deodex" at the beginning but about to have another ago as the phone is bootlooping. Using the Terminal Debloat I removed all the Google stuff but for some reason Google Services Framework and Google One Time Init were still was showing up in the system. Used Titanium, System Uninstall app and Root Browser to remove but without luck. Changed their permissions but ended up in bootloop.
Click to expand...
Click to collapse
After a second attempt and reading the guide more carefully with fresh clean stock ROM have managed to do this. The only issue is these remaining Google things which were also present on my previous attempt even though I got rid of them with Terminal Debloat.
Regarding the BT sports app if I want to use it then microG isn't the way to go. It was a free offer but don't use it that much.
bluegrass55 said:
After a second attempt and reading the guide more carefully with fresh clean stock ROM have managed to do this. The only issue is these remaining Google things which were also present on my previous attempt even though I got rid of them with Terminal Debloat.
Regarding the BT sports app if I want to use it then microG isn't the way to go. It was a free offer but don't use it that much.
Click to expand...
Click to collapse
Try not to double post to keep things together...
I went back and edited the post over, with greater details, explaining, that if you Debloat and still see stuff in the system or app drawer, that is because of updates, but now all of these apps can be uninstalled, and that is what you do, manually uninstall them all from the Settings or App Drawer, it's also a reason for trying to do all this on a Clean ROM with no updates, otherwise you deal with this next.
Also for BT Sport, run it and set it all up on Clean Stock Oxygen first, then debloat next. I did mention that if someone wants to keep any Gapps, to run them first before debloating. Hopefullly doing this, it will then run with microG, but if not, I highly recommend making a bug report at the microG Github;
https://github.com/microg/android_packages_apps_GmsCore
As far as the Nanodroid-Patcher, if you did not DEODEX the rom, I have no idea how that managed to work, but I'm assuming it just did a little bandaid on the system is all, which helped a little, but wasn't a real complete patch. So for any concerns questions, problems or help with that, please post and ask Setialpha;
https://forum.xda-developers.com/apps/magisk/module-nanomod-5-0-20170405-microg-t3584928
P.S. As far as the DEODEX goes it's very simple, it only take a few minutes, the biggest issue would be for people who have never compiled before, understanding and getting that setup on their box/computer, but in Linux compiling is really easy. Once vdexExtractor is built, all you have to do is run a few DEODEX commands and install the Nanodroid-patcher...
DoR3M3 said:
Try not to double post to keep things together...
I went back and edited the post over, with greater details, explaining, that if you Debloat and still see stuff in the system or app drawer, that is because of updates, but now all of these apps can be uninstalled, and that is what you do, manually uninstall them all from the Settings or App Drawer, it's also a reason for trying to do all this on a Clean ROM with no updates, otherwise you deal with this next.
Also for BT Sport, run it and set it all up on Clean Stock Oxygen first, then debloat next. I did mention that if someone wants to keep any Gapps, to run them first before debloating. Hopefullly doing this, it will then run with microG, but if not, I highly recommend making a bug report at the microG Github;
https://github.com/microg/android_packages_apps_GmsCore
As far as the Nanodroid-Patcher, if you did not DEODEX the rom, I have no idea how that managed to work, but I'm assuming it just did a little bandaid on the system is all, which helped a little, but wasn't a real complete patch. So for any concerns questions, problems or help with that, please post and ask Setialpha;
https://forum.xda-developers.com/apps/magisk/module-nanomod-5-0-20170405-microg-t3584928
P.S. As far as the DEODEX goes it's very simple, it only take a few minutes, the biggest issue would be for people who have never compiled before, understanding and getting that setup on their box/computer, but in Linux compiling is really easy. Once vdexExtractor is built, all you have to do is run a few DEODEX commands and install the Nanodroid-patcher...
Click to expand...
Click to collapse
I removed the remaining Google stuff using Root Browser but after reboot it resulted in Bootloop.
After any ROM install I never used to allow data access till Xprivacy Lua & AFWall+ were up and running. But for some reason this phone (unlike my Nexus 5) doesn't like Xposed installed directly from TWRP. So I have to allow data and install directly via Xposed Installer. I think the best route is the Deodex way but I have tried looking for guide without success. It's really annoying.
bluegrass55 said:
I removed the remaining Google stuff using Root Browser but after reboot it resulted in Bootloop.
After any ROM install I never used to allow data access till Xprivacy Lua & AFWall+ were up and running. But for some reason this phone (unlike my Nexus 5) doesn't like Xposed installed directly from TWRP. So I have to allow data and install directly via Xposed Installer. I think the best route is the Deodex way but I have tried looking for guide without success. It's really annoying.
Click to expand...
Click to collapse
To begin with, I edited over the "DEODEX OR FAKEGAPPS" section, "Signature Spoofing Checker" is a BUG, so forget it saying disabled, FakeGapps is working, so use FakeGapps and you are good to go!
As far as everything else, if you follow the GUIDE 100% EXACTLY IT WORKS! I've done this for almost a year on 3 devices so far, and I just did it on 5.1.5 and 5.1.6 without any problems!
You must follow the guide, do not divert from it, like how you used Root Browser as example, you don't need to do this, and that means after the OTA with 5.1.6, the OTA update for 5.1.6 should of wiped your phone clean, then you start from there.
Personally, after the 5.1.6 OTA update, I booted into TWRP and made a BACKUP, then if you mess up, you wipe everything, Dalvik, cache, system, vendor, data and then RESTORE the backup...
P.S. I am now going to start out on 5.1.6 and do the entire Guide, then I'll come back and post the images of 5.1.6 so you'll see it was done with success...
DoR3M3 said:
To begin with, I edited over the "DEODEX OR FAKEGAPPS" section, "Signature Spoofing Checker" is a BUG, so forget it saying disabled, FakeGapps is working, so use FakeGapps and you are good to go!
As far as everything else, if you follow the GUIDE 100% EXACTLY IT WORKS! I've done this for almost a year on 3 devices so far, and I just did it on 5.1.5 and 5.1.6 without any problems!
You must follow the guide, do not divert from it, like how you used Root Browser as example, you don't need to do this, and that means after the OTA with 5.1.6, the OTA update for 5.1.6 should of wiped your phone clean, then you start from there.
Personally, after the 5.1.6 OTA update, I booted into TWRP and made a BACKUP, then if you mess up, you wipe everything, Dalvik, cache, system, vendor, data and then RESTORE the backup...
P.S. Look at the time of this post, I am now going to start out on 5.1.6 and do the entire Guide, then I'll come back and post the images of 5.1.6 so you'll see it was done with success... BRB
Click to expand...
Click to collapse
Thank you. Looking forward to it. Will attempt again during weekend. I formatted device and installed stock 5.1.6 so no OTA.Don't want to give up especially as you've gone to some effort.
bluegrass55 said:
Thank you. Looking forward to it. Will attempt again during weekend. I formatted device and installed stock 5.1.6 so no OTA.Don't want to give up especially as you've gone to some effort.
Click to expand...
Click to collapse
By the way, the apps you debloat, that ended up getting updates, now appear to you as user installed apps with the ability to uninstall them in the Settings or the App Drawer is what I meant to say, which I'll add that in. So since they turn into user installed apps, that's why you don't need anything to uninstall them...
P.S. @bluegrass55 Sorry it took longer then expected, got tied up a bit with some things, anyhow it's all done and as I mentioned before FakeGapps works fine in 5.1.6, it's just a bug with the Signature Spoofing Checker, so ignore it. I did a DEODEX on my phone for 5.1.6 and here's the screen shots!
I made some changes to the post, so be sure to read it all over, and follow it step by step exactly! If you deviate just a little, it's enough to screw up the entire process and you'll have to start over, it's that picky!
P.S. I went back looking over your replies and you mentioned Xposed through TWRP, and I never mentioned installing Xposed this way. Please be sure to follow the guide and use the Magisk Module for Xposed. I'd also stick to 5.1.5, 5.1.6 hasn't been Officially released yet, just a partial rollout.
Please ignore my last message. Couldn't resist doing it again ( don't want to be defeated). Have Decrypted phone to see if it makes any difference.
bluegrass55 said:
Please ignore my last message. Couldn't resist doing it again ( don't want to be defeated). Have Decrypted phone to see if it makes any difference.
Click to expand...
Click to collapse
Re did the install for the 4th time and wow. Phone runs so much better.
Just two questions.
1- Using Root Browser I notice that GooglePackageInstaller.apk is still present is system-priv. Since it's not included in the Debloat list am I right to assume it should be in the system?
2- Face Unlock function is still present and works. Since it needs Gapps to work does it mean I've missed something?I have checked several times and all the items in the Debloat list have been removed.

Poco F2 Pro MicroG Signature Spoofing - Run Google Apps without Play Services

I do love the Poco F2 Pro as great value for money, just disappointed there's no custom ROM support. I thought I'd see if I can get MicroG to work. It's not a super simple process, as requires first debloating and removing the Google Play Services before doing so. I had the best success actually using the Systemless Debloater using the terminal and Magisk. It sounds complicated, but is fairly simple. I would gradually remove a few apps at a time and do a TWRP backup and restore if it failed to boot up. I also disabled a majority of the Miui apps and services including Mi Account. When attempting to remove FindDevice the device failed to boot up, so have left it for now.
Debloater can be installed directly from Magisk by going to downloads and searching. Then check this https://forum.xda-developers.com/apps/magisk/module-terminal-debloater-debloat-t3584163
There's other articles on debloating also https://medium.com/@mail.anonymous....devices-via-android-debug-bridge-2e5bcd94dfa0
As obviously the ROM doesn't support signature spoofing natively for MicroG to wok it needs to be patched. I tried the NanoDroid MicroG Patcher, but it failed.
There is a way to do it with an Xposed module. But I was able to do it by using this tool. Seriously one of the best tools I've yet seen, so deserves all the credit.
Using the Smali Patcher 6.9. Download and run it on your computer. It creates a Magisk ZIP that can be flashed by TWRP or Magisk and enables signature spoofing and a range of other hacks.
https://forum.xda-developers.com/apps/magisk/module-smali-patcher-0-7-t3680053
After signature spoofing is enabled. You can flash MicroG. There's multiple ways to do this. I've been able to get all the boxes checked for signature spoofing support with MicroG, but just a few issues still getting the Play Store to sign in. I actually used this package by FriendlyNeighbourhodShane https://github.com/friendlyneighborhoodshane/minmicrog_releases/releases
But also NanoDroid MicroG installer would be fine, which can be downloaded by https://github.com/Nanolx/NanoDroid
This is still a work in progress. To just get Signature Spoofing and MicroG working isn't too hard, it's often a bit trickier to get the Play Store to function correctly, but only required for paid applications, as the Auora Store and F-Droid work well especially with the privileges extension, that allows them to auto update apps. This is included with the friendlyneighborhoodshane version of MicroG standard installer.
I'm curious why there is not even an unofficial Lineage. I mean, source code is out, isn't it?
dustojnikhummer said:
I'm curious why there is not even an unofficial Lineage. I mean, source code is out, isn't it?
Click to expand...
Click to collapse
Maybe devs need more time to port roms to our phone ¯\_(ツ)\_/¯
Ok following up this thread. It seems that most Xiaomi bloatware can be removed. This article seems to go over what can and can't be removed. https://selivan.github.io/2020/02/25/removing-bloatware-from-xiaomi-miui-android.html
Go get the Google Play store working in the end. Was able to by running the NanoDroid_MicroG.zip in TWRP. Modify the nanodroid-setup file and change it so PlayStore=10 to install PlayStore.
Boot up phone and go to MicroG settings. Enable the UnifiedNlp back ends. I enabled Google Device Registration. Then sign into your Google account from MicroG. Don't run the Play Store, but clear data.
Restart phone then try running the Play Store and see if it opens correctly.
I'm somewhat ok with this phone. I think the phone is great, but just wish I could get HavocOS or LineageOS for it. I'm going to test it for a while now and see how it goes.
Hello,
on Android 11 (Xiaomi.eu rom - tried with stable and beta), after installing the Smali Patcher module, i've got a bootloop. Have you tried to enable signature spoofing on Android 11 ?
Would love to have a full guide now when Lineage is out.
Lowxorx said:
Hello,
on Android 11 (Xiaomi.eu rom - tried with stable and beta), after installing the Smali Patcher module, i've got a bootloop. Have you tried to enable signature spoofing on Android 11 ?
Click to expand...
Click to collapse
Haven't tried on any Android 11 ROMs as yet. CrDroid and a few custom ROMs have signature spoofing already. I'll do a bit more testing and might update this thread if I can get MicroG all working on other ROMs.
Hello, it's good to know that this is possible however a full guide would be much more useful. Thank you!

[GUIDE][19.1] microG + SafetyNet

This post is based on u/mvus Reddit post but adopted to my experience. ROM will be able to pass BASIC SafetyNet Attestation: working most(~95% as of now) banking apps, Google Pay; Google Contants Cloud Sync will work as expected; applications that do not support Magisk overlays will still work. For me, this is a 100% working setup. I use LineageOS myself in this form and am completely satisfied.
There are several ways to get LineageOS to your device. First: official, without pre-installed microG and GApps. Second: unofficial, but with a built-in microG out of the box. My instruction is written based on the first type of builds. LineageOS for microG is a wonderful project, but I needed Play Store so that applications would not have problems with license verifications (Repainter, KWGT, for example, do not work if there is no Play Store). And on the second type of builds, it is not possible to install Play Store, since there is a hard-coded FakeStore, which you will not be able to delete or overwrite with Play Store, I tried for a long time in many ways.
Guide:
Root with Magisk, enable Zygisk and DenyList in its options;
Install Zygisk - LSPosed Magisk module. Get latest MinMicroG release here (version from 16 Jan 2023 on my device) (choose edition yourself, Standard edition if you want to have exact my setup). Flash it in TWRP and reboot into system;
Install FakeGApps apk. Install Displax forked SafetyNet Fix Magisk module this version (2.4 version can't pass CTS);
Install microG apk accordingly to version of MinMicroG (0.2.27.223616 accordingly to the MinMicroG version on my device) (update existing apk installed from TWRP, needed because else microG settings would crash because of SafetyNetFix, also you can't grant all permissions to microG);
Grant all permissions to microG in its settings. To grant GPS in background permission, enable GPS once and go into microG settings;
Hide Magisk through its settings, give it whatever name you want. Also in DenyList, check banking applications, GPay.
Thank you! Work perfectly for me.
Xplor3r said:
Thank you! Work perfectly for me.
Click to expand...
Click to collapse
Nice to hear. It wasn't easy to get to this sequence of actions, but it still worked out.
FarLine99 said:
Nice to hear. It wasn't easy to get to this sequence of actions, but it still worked out.
Click to expand...
Click to collapse
Yep. Good job bro.

Categories

Resources