No Gapps Guide&Tutorial (MicroG) - Android General

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)
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...-apk-download/ (Its made so OGYoutube could work correctly)
Install OGYoutube apk from https://www.apkmirror.com/apk/ogmods...-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/app...icrog-t3584928

Thespartann said:
Hi guys
Click to expand...
Click to collapse
:good:
Edit:- @Thespartann
These are my suggestions:-
Tingle/Haystack/NanoDroid/FakeGapps[Xposed Module]
Click to expand...
Click to collapse
Add Needle and this link also https://github.com/microg/android_packages_apps_GmsCore/tree/master/patches and also For above tools give embedded links...
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)
Click to expand...
Click to collapse
Why you said to install UnifiedNlp if GmsCore also said to install?
Also Yald Store = Yalp Store
Install the modified MicroG apk from https://www.apkmirror.com/apk/ogmods...-apk-download/ (Its made so OGYoutube could work correctly)
Install OGYoutube apk from https://www.apkmirror.com/apk/ogmods...-apk-download/
Click to expand...
Click to collapse
The first link for modified microG is not working..
I think the link should be https://www.apkmirror.com/apk/ogmods/microg-for-ogyt/

HemanthJabalpuri said:
:good:
Edit:- @Thespartann
These are my suggestions:-
Add Needle and this link also https://github.com/microg/android_packages_apps_GmsCore/tree/master/patches and also For above tools give embedded links...
Why you said to install UnifiedNlp if GmsCore also said to install?
Also Yald Store = Yalp Store
The first link for modified microG is not working..
I think the link should be https://www.apkmirror.com/apk/ogmods/microg-for-ogyt/
Click to expand...
Click to collapse
Hey. Thanks for this. This was an old guide in my nooby times and i didn't have time to update it. I will update it when i can with useful informations.

Hi,
Informations are quite clear but i still need information regarding my specific case.
I have a OnePlus 6 (OxygenOS 9).
I'd love to get ride of all Google stuff and have MicroG as I have on another mobile phone (LineageOSMicroG).
If i flash from recovery NanoDroid on my existing rom (i don't have Magisk).
What will happen exactly ?
Will i loose something from my device ?
Will i get MicroG AND still all the Google apps ?
Will i get just MicroG and the Google apps will have been removed ?
Sorry if it looks stupid questions.
I now how to flash a rom starting from scratch but not on existing installation ....
Thx for any help.
Regards

Thespartann said:
Hey. Thanks for this. This was an old guide in my nooby times and i didn't have time to update it. I will update it when i can with useful informations.
Click to expand...
Click to collapse
If interested, here I posted the whole story how I went GApps-free from the very beginning until nowadays using mainly NanoDroid modules.

I did install MicroG on a ArrowOS 9.0 ROM. Signature spoofing seems to work, the self check looks good.
Still Apps complain they need Google Play. What's wrong?

howdy folks.
just catching up on this thread and this wonderful substitute for gapps is something that I had already fascinated me just that I became where it does exist. before I install it after removing my gas on a custom rom that I have ... I am sure it has progressed through a bunch of correction cycles so I'd want to know where it stands as of now for the following functionality .
-Google voice dictation voice to text is it working with this substitute
-Gmail
-Google maps live directions. should be able to turn on GPS Google maps and get live directions while driving
-Hangouts
-Google documents specifically only looking for Google PDF reader Google docs and spreadsheets
-syncing contacts and dictionary
-Google drive and photos
the last one having the least priority for me
would someone please Care to reply to my bullets...a bulleted reply as to what works and to what extent, and specifically in what hardware environment if it is available.
thank you so much for all your hard work and efforts.
also when you reply please leave a link where people like me can donate to your good work
-

I had this last year and we now enter a new year still no shine on this thread...... could someone pitch in.... with a few valuable cents
Sent from my Moto G4 Plus using Tapatalk

hi
i did not make Option three because i had bootloop when i did it first time, and now every thing is working good by doind just the first and secend option , so what is your comment guys
thanks

Related

microG on Wiko Fever & clones

This guide can actually apply to any device and ROM
What is microG?
microG is a free reimplementation of GApps, which allows for more privacy and better battery life.
How to get microG on my ROM?
There are three steps:
Get rid of any GApps you already have installed (I don't mean Google Play Music etc, I mean Google Play Services, Google Play Store etc)
Enable signature spoofing
Install microG components & enable them
How to enable signature spoofing
The main component that microG aims at replacing is Google Play Services. In order to do this, it must be able to fake that it's Google Play Services, and it needs signature spoofing to do this.
There are three main ways to enable signature spoofing:
Some custom ROMs already have this as an option, such as crDroid. For a list of such ROMs and how to enable the feature, go here.
There is also an xposed module available here that enables signature spoofing
You can patch the ROM to allow signature spoofing. Either by installing someone else's patch, such as my patch for Asfand's RR 5.8.5, which you can download from here and enable at the bottom of the developer settings, or patch the files yourself using Haystack. You will need a Linux system to patch it yourself. The procedure itself is not complex, it involves downloading a set of scripts, taking 5 or so files out of your ROM, running 3 scripts on them them putting them back into the ROM. By the way: you do not need to operate like in the tutorial here, you can just take the files out of the ROM installation script, patch them, them put them in place of the files in the patch zip I created that I linked above.
How to install microG components
After having enabled signature spoofing, you want to install the various microG components. The classical way is to download the various files and manually place them into the ROM, but you can also use ale5000's unofficial installer and simply flash the zips he provides from your recovery. If you want Google Sync to also work you can flash the Google Sync Add-on he provides, or otherwise use something like DAVDroid for calendar and contact synchronisation.
Once you have installed microG, boot up your phone and open the microG settings app. Open the self-check section. Our goal is to have everything in this section ticked. If all went well, you should have signature spoofing and almost everything checked.
You will need to disable battery optimisations for GSF by tapping on the relevant section, so that it may maintain a stable connection (this is the same as with Google Play Services, just that it uses much less battery as it is not tracking your every move).
You will also need to enable UnifiedNLP in the UnifiedNLP settings (one menu back), configuring both a location and address lookup backend.
If you used the unofficial zip installer you should have Mozilla Location Service and Nominatim available. More information on the available backends can be found here.
Once you have enabled the backends you will also want to enable your phone's location services on High Accuracy or Battery Saving modes, and reboot.
You can now check if everything is ticked in the self-check section of microG settings (you might need to enable your WiFi or data connection and find your current location using some app in order for it to have your last known location checked).
You can the proceed to enable Google device registration to get the Play Store to work correctly and Google Cloud Messaging to get notifications to work correctly. Some apps may also force you to enable Google SafetyNet or they refuse to work.
You will need to reboot now to get everything we enabled to work properly
Extra information:
Currently Google Play Games is not compatible with microG.
Google Hangouts is only compatible through the use of a patched apk
To get Gmail working correctly you need to give it permission to access contacts
For extra privacy you might want to disable all permissions for Google Play Store except for storage
And that's it! You and your battery are now a little bit freer from Google's shackles :highfive:
Thanks bro we need it badly
Awesome thread, thanks bro !
I've added some extra information about apps' compatibility with microG and fixed some bits of the explanation
For Google Hangouts you can also use the official apk and simply disable a service in the app as explained here.
For signature spoofing there is also Tingle that work on all OS.
ale5000 said:
For Google Hangouts you can also use the official apk and simply disable a service in the app as explained here.
For signature spoofing there is also Tingle that work on all OS.
Click to expand...
Click to collapse
If I understood correctly the difference is that Tingle patches directly the OS you're running instead of patching the files and then placing them in the ROM/the system you're running.
gvlfm78 said:
If I understood correctly the difference is that Tingle patches directly the OS you're running instead of patching the files and then placing them in the ROM/the system you're running.
Click to expand...
Click to collapse
It is similar to Haystack, but it use a different patching method.
Both patch a file in the ROM.
Tingle do:
- Get file to patch
- Diassemble jar file (this create smali files)
- Patch smali file
- Reassemble jar file
- Put back the modified file in the Android ROM

[GUIDE] MicroG on OnePlus 6 (open source and ligthway alternative to Google services)

Updated and tested for Android 10 (with Omnirom)
Why MicroG?
Here is a great explanation from the official wiki itself: https://github.com/microg/android_packages_apps_GmsCore/wiki
There are different and good reasons to move away from Google services and get microG services:
1) More privacy: all Marvin's work is open source and focused on privacy. The "Google Play Services" app is probably the worst app you can have on Android when it comes to telemetry, spying, etc. It's always running tons of services to know all your comings and goings. As a side note, it's also good to not rely on Google too much.
2) More RAM available: Google Play Services use a lot of RAM when GMScore uses almost nothing.
3) More battery life, especially while idling: you'll avoid all the wakelocks related to Play Services (whether they are intentional or not)
CREDITS / Thank you:
@MaR-V-iN, for his wonderful and amazing work to free us from Google. One of the most underrated dev in the Android world.
@Setialpha , for his nanodroid module and his availability to help.
@topjohnwu for Magisk
How will your Android experience change?
Actually, not so much. If you're only interested in MicroG for the reasons 2) and 3), you can still use all Google apps, including the Play store (you need a patched version). Be aware, some apps don't work or are not working properly. Implementation status of different Android/Google services can be found here: https://github.com/microg/android_packages_apps_GmsCore/wiki/Implementation-Status
If you wonder if an app works or if you've tried and it doesn't work, just check on the issues tracker on Github or on your favorite search engine.
Now, if you want to change your habits, F-Droid will become your new best friend. It's an app store, like the Play Store, but which only delivers controlled, quality and open source apps. Both stores share many apps in common but F-Droid also has apps that the Play Store doesn't, because they're against Google policy for example. It should become your main app store as it's always good to use open source apps, for many reasons. Let's not start a debate here.
However, at least, at the beginning, it's tough to not use ANY app from the play store. For that, you should use Aurora store (whick is a fork of Yalp Store FYI). You get access all apps from Play Store. You can either use an anonymous account or use your own Google account. In the second case, you'll be able to download your paid apps. However, these won't work if they include a license check (most of them nowadays). You can nicely ask the dev if there's a workaround. Some accept, like the team behind Titanium Backup for example. Or SmartPack Kernel Manager's developer.
If you're looking for open source alternatives to the apps you usually use, I could list a few of them but this list is just great: https://github.com/offa/android-foss .
If you don't know how to replace Google services, this list is great as well: https://shadow53.com/android/no-gapps/alternatives/
You can also check on reddit like on this subreddit: https://www.reddit.com/r/fossdroid/
What ROM to use?
Any custom AOSP ROM should work, as long as :
1° it supports signature spoofing
2° it's deodexed
3° it supports alternative location backends, it's
-I wouldn't recommend any ROM that comes with gapps included. It just makes things more complicated.
On Android 10, I would highly recommend OmniROM, which offers an archive with microg prebundled, and also because it perfectly supports microG (signature spoofing, alternative location backends, etc.)
USEFUL LINKS
-MicroG thread: https://forum.xda-developers.com/android/apps-games/app-microg-gmscore-floss-play-services-t3217616
-MicroG wiki: https://github.com/microg/android_packages_apps_GmsCore/wiki
-UnifiedNlp thread (location): https://forum.xda-developers.com/android/apps-games/app-g-unifiednlp-floss-wi-fi-cell-tower-t2991544
-Nanodroid (provides packages related to open source / microG stuff): https://forum.xda-developers.com/apps/magisk/module-nanomod-5-0-20170405-microg-t3584928/ (you need to download the microG edition) + here to understand how to edit the .nanodroid-setup file: https://gitlab.com/Nanolx/NanoDroid/blob/master/doc/AlterInstallation.md#detailed-description
-microG unofficial installer (doesn't work on our device yet): https://forum.xda-developers.com/android/development/microg-unofficial-installer-t3432360
-Useful website about installing, getting packages, etc. : https://shadow53.com/android/no-gapps/setup-guide/microg/
-Great list of FOSS (open source software) apps for Android: https://github.com/offa/android-foss
-Alternative to Google apps: https://shadow53.com/android/no-gapps/alternatives/
-Personnal experience feedback: https://forum.xda-developers.com/android/general/gapps-free-samsung-galaxy-s3-lte-gt-t3553620
If you read all these threads you'll start to have a good understanding of what is microG and how to live without Google.
Prerequisites:
-OnePlus 6
-Unlocked bootloader
-TWRP installed
-A ROM supporting microG
-All files downloaded, on your device
DOWNLOAD LINKS
-OOS: https://forum.xda-developers.com/oneplus-6/how-to/official-oxygenos-5-1-5-ota-oneplus-6-t3794232
-TWRP: https://forum.xda-developers.com/on...overy-unofficial-twrp-touch-recovery-t3860815
-Magisk: https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445
-Nanodroid: https://downloads.nanolx.org/NanoDroid/Stable/ (you need to download the microG file)
-Push Notification Tester: https://play.google.com/store/apps/details?id=com.firstrowria.pushnotificationtester
-Working Google Maps app: https://www.apkmirror.com/apk/google-inc/maps/maps-9-82-1-release/
-F-Droid: https://f-droid.org/FDroid.apk
INSTALLATION TUTORIAL
Italic = recommended, but not mandatory. Do it if something doesn't work properly
0) DON'T RESTORE your apps until everything is set up, otherwise you'll have issues with GCM (getting instant notifications from messaging apps for example)
1) Flash the custom ROM of your choice ( these instructions should work: https://privatebin.net/?42d550f9ae5df09f#imAFxWjM0gW+V9+ex+8nRyYSoSQzLPjhNXsbKIUjzqA= )
2) Flash magisk, reboot to system
3) Reboot to recovery
4) Flash Nanodroid (you need to download the microG edition, and make sure you have made the .nanodroid-setup file at the root of your internal storage, see instructions here https://github.com/Nanolx/NanoDroid/blob/master/doc/AlterInstallation.md) or you can also try MinMicroG (https://github.com/FriendlyNeighborhoodShane/MinMicroG_releases/releases).
If you choose nanodroid, update microG thhis way: https://www.reddit.com/r/MicroG/comments/fd7udr/fork_of_microg_gmscore_with_unifiednlp_working_in/
5) Reboot to system
6) Open MicroG, give it permissions if that's not already the case
7) Click on self-check. Give signature spoofing to all the empty boxed so they get ticked.
For Omni/Arrow/Aex, you can make sure it's allowed in settings/apps & notifications/apps permissions/spoof package signature. for playstore/fakestore make sure you click on the 3 dots and check system apps (if it exists).
8) Give permission to ignore batter optimizations.
9) Enable Google device registration and Google Cloud Messaging.
10) Enable Safetynet if you want
11) Click on UnifiedNlp and active the 3 backends: location backends: Mozilla+ Déjà Vu; adress lookup backends: Nominatim.
12) REBOOT
13) Open your phone app, and type this:
Now try this instead in order to manually enable device registration and connect to Google Cloud Messaging:
Code:
*#*#2432546#*#*
Code:
(old) *#*#42678278#*#*
. Nothing will appear on your screen but it can help. It's probably necessary but I prefer to make all the steps to make everything work. Sometimes logging in on your Google account through settings help. You can then log out if you don't want to use any Google account.
14) Install Push Notification Tester from Yalp Store.
15) Test the app, see if everything works. If it doesn't, ask for advice here as it should at this point. You can try to reboot one more time. Make sure that in the GCM settings you're connected since X time, otherwise something is wrong. Step 23 is the most important step to check if it doesn't work.
16) Go back to the self-check menu, now you can check the self check status and almost all boxes should be ticked. Some are not for me but GPS still works, even on Google Maps. Here is a screenshot of how it looks like for me: https://i.imgur.com/WsPX5RC.png
17) Now you can try to install the apps you want! Don't install apps that need push notifications before all these steps otherwise they might never be registered. Clean installing apps is recommended. You can try to restore them from a backup as well, but it often doesn't work. The middle ground solution is to install the app with the Yalp Store / F-droid and then restore its data with Titanium Backup for example.
18) Now you should see apps being registered in microG.
19) You can make sure your gps work with either OSM (https://f-droid.org/en/packages/net.osmand.plus/) or Google Maps (see apk mirror link earlier, the last version won't work). You should get your location without any isuses at this point.
20) Enjoy your almost Google free phone.
EXTRAS:
α) If you have issues with location, you can try this (on some custom ROMs, Google Maps finds my location but then it doesn't update and so if I move around it won't update my location. Also sometimes I need to reload the app to update my location which is quite inconvenient. It seems that doing the steps following help)
Install a terminal emulator (I recommend Termux)
Make sure your phone has root rights and type :
Code:
su
Authorize the app
Type next:
Code:
pm grant com.google.android.gms android.permission.ACCESS_FINE_LOCATION
Then
Code:
pm grant com.google.android.gms android.permission.ACCESS_COARSE_LOCATION
iii) Reboot
β) If you have issues in general, try to update Nanodroid (if you used Nanodroid, ofc) apps from F-Droid. Add this repo to F-Droid: https://www.nanolx.org/fdroid/repo/
And then make sure all your apps are updated (including microG GmsCore)
A) DroidGuard uses non-open source stuff. It's in order to pass safety net.
B) GCM is not open source either.
C) If you want google maps to work, you need to install an "old" version and not update it. You can find it here: https://www.apkmirror.com/apk/google-inc/maps/maps-9-82-1-release/. Sometimes, your location might never appear. In this case, restart a few times Maps until your position shows up.
D) You can also try to install MicroG and its dependencies as user apps. I've tried it and wasn't very happy with the results as they don't work as well being user apps. From what I've heard, everything works fince except location. So you can give it a try as well this way.
E) My personal .nanodroid-setup is this one (to understand what it does, check here: https://gitlab.com/Nanolx/NanoDroid/blob/master/doc/AlterInstallation.md#detailed-description ):
Code:
nanodroid_gmscore=0
nanodroid_play=21
nanodroid_overlay=0
nanodroid_mapsv1=1
nanodroid_gsync=0
nanodroid_swipe=1
nanodroid_forcesystem=0
nanodroid_fdroid=1
nanodroid_nlpbackend=1100
Reserved.
Very nice,
too bad that it doesn't support OOS but it's understandable.
nimrodsv said:
Very nice,
too bad that it doesn't support OOS but it's understandable.
Click to expand...
Click to collapse
Maybe it could work with nanodroid patcher for signature spoofing and then manually deodexing the ROM. It would also be necessary to remove all the Google apps. So yes I guess it's just easier to use a custom ROM as a saner base.
nimrodsv said:
Very nice,
too bad that it doesn't support OOS but it's understandable.
Click to expand...
Click to collapse
Like above, it could work. By installing xXx module and choose total gapps removal then try what he said above for spoofing. Tempted to try, but can't atm.
OOS has normally odexed system and do not support signature spoofing.
An option would be to deodex services.jar and the use the nanodroid patcher to enable signature spoofing.
I have done that for some 8.1 OOS roms but not on the latest releases.
whizeguy said:
Like above, it could work. By installing xXx module and choose total gapps removal then try what he said above for spoofing. Tempted to try, but can't atm.
Click to expand...
Click to collapse
NisseGurra said:
OOS has normally odexed system and do not support signature spoofing.
An option would be to deodex services.jar and the use the nanodroid patcher to enable signature spoofing.
I have done that for some 8.1 OOS roms but not on the latest releases.
Click to expand...
Click to collapse
Maybe I'll give a try it seems possible.
@Tomatot- I see that you've tried to working with MicroG on Omni but getting bootloops and that you will try working with it again soon.
Anything I should know before I try this on Omni? Thanks!
nimrodsv said:
@Tomatot- I see that you've tried to working with MicroG on Omni but getting bootloops and that you will try working with it again soon.
Anything I should know before I try this on Omni? Thanks!
Click to expand...
Click to collapse
I had a weird experience on Omni. At first it was working all fine with nanodroid-microG, but then I tried to change the .nanodroid-setup and it broke all my system, I was never able to make it work again on Omni. I also tried once the Nisse .zip and it didn't work either. So I can't really tell what's the pattern to make things work or not work... I really liked Omni so I'm going to try again within the next few days, with a nice clean flash and Nisse zip. I will let you know. If you're impatient and want to try, try to follow the steps from this tutorial and let me know how it goes.
Omni is a bit tricky with permissions, use the latest Nanodroid-microG from https://downloads.nanolx.org/NanoDroid/Stable/ to install on omni, it adds bit more (calendar and contacts sync etc) that i dont want tho
NisseGurra said:
Omni is a bit tricky with permissions, use the latest Nanodroid-microG from https://downloads.nanolx.org/NanoDroid/Stable/ to install on omni, it adds bit more (calendar and contacts sync etc) that i dont want tho
Click to expand...
Click to collapse
Did you manage to make your script work on Omni? I'm not interested in these extras either.
Tomatot- said:
Did you manage to make your script work on Omni? I'm not interested in these extras either.
Click to expand...
Click to collapse
Yes, but some extra work is needed: Open the zip with 7-zip and extract all item from priv-app and delete the priv-app folder from the zip.
Install rom, the modified zip and boot into system.
Install the extracted apps normally.
Use https://forum.xda-developers.com/apps/magisk/module-terminal-app-systemizer-ui-t3585851 to convert the 4 installed apps (gms, gsf, phonesky and yalp) to system apps (to priv-app).
Thats bit much but its functional on omni.
NisseGurra said:
Yes, but some extra work is needed: Open the zip with 7-zip and extract all item from priv-app and delete the priv-app folder from the zip.
Install rom, the modified zip and boot into system.
Install the extracted apps normally.
Use https://forum.xda-developers.com/apps/magisk/module-terminal-app-systemizer-ui-t3585851 to convert the 4 installed apps (gms, gsf, phonesky and yalp) to system apps (to priv-app).
Thats bit much but its functional on omni.
Click to expand...
Click to collapse
Awesome, thanks, I'll try this asap.
I will update OP but I can tell Arrow OS seems to support perfectly MicroG. And your script works directly @NisseGurra . I've noticed the location apps are a bit oudated, could you update them please? Cheers.
Thread updated with my experiences with the different custom ROMs available on our device. i've also improved instructions a little and make some steps not mandatory but recommended.
Thanks very much for this great tutorial although I've never had an OnePlus. Quite a long time ago, I tried to capture my personal way to become GApps-free from the very beginning by installing µG un to today where I always use NanoDroid. Maybe my thread contains some information useful to you?
Oswald Boelcke said:
Thanks very much for this great tutorial although I've never had an OnePlus. Quite a long time ago, I tried to capture my personal way to become GApps-free from the very beginning by installing µG un to today where I always use NanoDroid. Maybe my thread contains some information useful to you?
Click to expand...
Click to collapse
Yes I read it and it was very useful. Your thread was already included in "useful links" btw.
Updated backends microg installer (attached)
NisseGurra said:
OOS has normally odexed system and do not support signature spoofing.
An option would be to deodex services.jar and the use the nanodroid patcher to enable signature spoofing.
I have done that for some 8.1 OOS roms but not on the latest releases.
Click to expand...
Click to collapse
whizeguy said:
Like above, it could work. By installing xXx module and choose total gapps removal then try what he said above for spoofing. Tempted to try, but can't atm.
Click to expand...
Click to collapse
Bumping you again to give you some news.
So I really don't feel like going back to use Google Play services but I miss OOS for battery life and performance reasons.
However, I feel like deodexing OOS is really not optimal, see these links:
https://i.imgur.com/FRJgqVm.png
https://github.com/anestisb/vdexExtractor/issues/33
https://i.imgur.com/9Y6JBGD.png
So yeah, it's a tough choice...
Tomatot- said:
Bumping you again to give you some news.
So I really don't feel like going back to use Google Play services but I miss OOS for battery life and performance reasons.
However, I feel like deodexing OOS is really not optimal, see these links:
https://i.imgur.com/FRJgqVm.png
https://github.com/anestisb/vdexExtractor/issues/33
https://i.imgur.com/9Y6JBGD.png
So yeah, it's a tough choice...
Click to expand...
Click to collapse
Aw man.. That's just too bad :/ thanks for the update mate.

[ROM][9.0.0][beryllium] LineageOS 16.0 with MicroG

Hi folks,
LOS with MicroG has finally been released.
For people who don't know what the heck is this, it's besically LineageOS unofficial fork with built-in microG gapps implementation. That's right! It's the same LOS without Google spyware.
Some cool features of LOS with MicroG
1. Full Play Services compatibility:
This ROM has built-in microG free-as-in-freedom re-implementation of Google's proprietary Android user space apps and libraries.
This enables you to use every Google service you need without keeping another closed-source binary blob in your Android system.
2. Native F-Droid support:
LineageOS for microG comes with F-Droid already installed. You can use it to access plenty of FOSS applications
3. OTA updates like official LOS:
The ROM has OTA updates from upstream LineageOS weekly. In this way you always receive new features and security updates just few days after they are released mainline.
Installation instructions
This ROM and official LineageOS use different signing keys, so you can't flash this ROM on top of the official LineageOS. Clean installation is strongly suggested.
1. Download the ROM zip and vendor+firmware zip
2. Boot into TWRP
3. Wipe System, Data, Cache and Dalvik
4. Flash the Vendor+Firmware zip and the ROM zip
5. Flash Magisk (optional)
6. Reboot
Post-installation
First, open the "microG Settings" app and check if everything is OK in the "Self-Check" section; you will probably have to give microG some permissions, like location and file access.
1. UnifiedNlp
UnifiedNlp is the microG Network Location Provider, which provides the current location of the device without the use of the GPS. While Google's NLP can only use Google's servers for positioning, UnifiedNlp obtains the geolocation through different plugins, which interface to different services.
By default there are two plugins installed:
MozillaNlpBackend, which uses the Mozilla Location Service (online)
NominatimNlpBackend, which uses MapQuest's Nominatim service (based on OpenStreetMap) for geocoding (online)
If you want to use these plugins, go to microG Settings -> UnifiedNlp Settings, configure and enable both.
If you instead want different plugins (like the LocalGsmNlpBackend, which uses a local offline database of the GSM towers to obtain the location) you can download them in F-Droid and enable them in the same way.
Reboot and check whether UnifiedNlp is correctly set up in the "Self-Check" section of the "microG Settings" app.
2. F-Droid
You have the F-Droid Privileged Extension installed by default, why not use it? To make a good use of it go to the F-Droid Settings and enable auto updates.
3. Google Cloud Messaging
Many apps rely on the Google Cloud Messaging, a Google proprietary system to push notifications to your device. This feature is implemented in microG but, as not every user requires it, is disabled by default. If you need it, enable the "Google Device registration" and the "Google Cloud Messaging" features in the "microG Settings" app.
4. Weather service
If you want the weather features of LineageOS (like in the lock screen or in the cLock widget) you have to download a weather provider from here. Choose your favorite one, install it and configure it in cLock (or in Settings → Apps → Gear icon → Weather).
Downloads
ROM Link: https://download.lineage.microg.org/beryllium/
Vendor+Firmware: https://mirror.akhilnarang.me/MIUI/beryllium/
Twrp build: https://forum.xda-developers.com/poc...ption-t3853004
Magisk: https://github.com/topjohnwu/Magisk/releases/download/v18.1/Magisk-v18.1.zip
Find more about the project here https://lineage.microg.org/
Credits
MicroG Team
Lineage OS team
@akhilnarang for Vendor+Firmware
@vasishath for TWRP
@topjohnwu for Magisk
Disclaimer:
I'm not the developer of the ROM, neither I'm associated with the team who is behind this amazing piece of work. I am just sharing the work for everyone on XDA.
Shout out to Team MicroG for their wonderful work!!!
Sweet! Good to see official LOS microg.
Thanks for sharing brother.
how is the battery and performance someone who tried it ? and is it safe to wipe system ?
niteone said:
how is the battery and performance someone who tried it ? and is it safe to wipe system ?
Click to expand...
Click to collapse
Battery life is amazing since the notorious Google Play Services is not present on this ROM. Performance is more or less the same. The main reason people use MicroG over other GApps is because of privacy and battery.
And talking about your last question, I guess you wipe System partition everytime you do a clean flash. So yeah, it's completely safe to wipe System partition.
Rowdyy Ronnie said:
Battery life is amazing since the notorious Google Play Services is not present on this ROM. Performance is more or less the same. The main reason people use MicroG over other GApps is because of privacy and battery.
And talking about your last question, I guess you wipe System partition everytime you do a clean flash. At least that's what a vl an flash mean (wiping System, Data, Cache & Dalvik). So yeah, it's completely safe to wipe System partition.
Click to expand...
Click to collapse
Yes i tried it but cant sync my contacts because they are stored in google and other things but from my little expirience its great.i moved to the normal lineage now
niteone said:
Yes i tried it but cant sync my contacts because they are stored in google and other things but from my little expirience its great.i moved to the normal lineage now
Click to expand...
Click to collapse
You can easily get contacts.vcf file from google and just import it in your normal contacts app. Takes a minute only.
---------- Post added at 06:59 PM ---------- Previous post was at 06:57 PM ----------
OP, I will suggest to add 'Flashing DFE' also in the first post instructions, for people who don't want to get encrypted.
Interesting project, good job!
Thread cleaned!
Personal attacks will NOT be tolerated on this private development site!
Found work can be posted in NEWS sections with proper credits
If the original developer does not wish it posted they can request it be taken down
No one else has that right!
Thank you all for your cooperation
Friendly Neighborhood Moderator
Works as expected. No issues. Running it on tissot, bacon and now testing on poco! Thanks for reminding!
Sent from my Poco F1 using XDA-Developers Legacy app
Great Image verry fast Thanks MR
the ROM is awesome, but I can not get contacts and Gmail to work. The rest of apps, perfect!.
piernodoyuna said:
the ROM is awesome, but I can not get contacts and Gmail to work. The rest of apps, perfect!.
Click to expand...
Click to collapse
Because it is microg ROM. Gmail will not work.
surely, the answer could have been more elaborate. and yes, Gmail can work with microg, but in my case, I have not succeeded.
piernodoyuna said:
surely, the answer could have been more elaborate. and yes, Gmail can work with microg, but in my case, I have not succeeded.
Click to expand...
Click to collapse
Personally I don't use gmail (using K9), but maybe you will find an answer here:
https://github.com/microg/android_packages_apps_GmsCore/labels/👥 Accounts
Sent from my Poco F1 using XDA-Developers Legacy app
ydd0ras said:
Personally I don't use gmail (using K9), but maybe you will find an answer here:
https://github.com/microg/android_packages_apps_GmsCore/labels/👥 Accounts
Click to expand...
Click to collapse
Thank you very much for the reply! I think my problem is not in the mail client, but in the authentication of credentials that access my contacts, calendar events and emails. I think that this issue is not yet solved
Does 0805 build have included vendor? I can see only 5.62MB vendor.new.dat.br which is usually 280MB on official one.
For some reason i won't get the UnifiedNLP working on my Poco F1.
I did a clean install, coming from the latest MIUI global ROM and followed the post install guide on https://lineage.microg.org/. The only additional Tool i installed was the latest Version of Magisk.
**EDIT**
I reinstalled microg LineageOS without Magisk, but it still does not work.
Any suggestions?
Most probably you've hit version with support for something called Qualcomm Location. It was fixed in build on 27th November because thingy was not working well (also because it is closed source soft).
AFAIK there are two ways to fix it:
- install LOS >=2711.
- patch framework-res.apk to force use UnifirdNlp. There should be some info about procedure in a LOS thread though I'm not 100% sure.
crow6 said:
Most probably you've hit version with support for something called Qualcomm Location. It was fixed in build on 27th November because thingy was not working well (also because it is closed source soft).
AFAIK there are two ways to fix it:
- install LOS >=2711.
- patch framework-res.apk to force use UnifirdNlp. There should be some info about procedure in a LOS thread though I'm not 100% sure.
Click to expand...
Click to collapse
I will try that. Thank You!
Are ports of Lineage 17 planned? The Websites last nightly is from 2020-09-30 (los 16)

[GUIDE] DeGoogle any device and install MicroG

This guide explains how to deGoogle any android by removing most of google invasive crap. (yes, GPlay services is also removed).​Play store, Google app and other crap is also removed from system, so if you want to use them, install them as user app. The installation for play store is different, and it is explained below.
Check my Post on reddit for more up to date info and clear instructions HERE
When we remove Gplay services, many apps and services stop working . Many apps will give error but still work (like maps and telegram and whatsapp). Play store will definitely not work and many apps that use push notification through Gplay services (most of them) will not be able to do so. In my case Uber, ola or any other ride app was also not working and was crashing constantly. Paytm will also not work without play services. And on top of that many apps that use location might not behave properly.
Whoosh! those are a lot of problems for uninstalling play services. So, why would anyone want to do that?
Simply put it, Google is an Advertising company. No it is not a company that sells product, i mean yes it sells products and earns from them BUT more than 60% of their revenue comes from Ads that they serve you. And yes, google is the biggest Ad company in the world with more than 80% of ad share (i may be wrong about the %, feel free to search yourself). So obviously they want ta make money out of your data (by selling it) and to do that what better way than to install spyware on world's largest mobile OS.
Google play services record your every action, tracking every app that you opened and everything you do. That data remains with google and they sell it to 3rd parties (and you agreed to it when you made Google account and setup your android device. Remember Clicking on "I AGREE"?).
Here i will not discuss how invasive it is. A simple Web search with "google play services tracking" will give you much more information. (and please do search it, i beg you) (Pro Tip: reddit has best answers, so explore reddit links from search)
Here is a good one explaining things
And Gplay services Eat a LOT of battery by constantly Running in background. So if you want better battery, remove it
So you have decided to degoogle your phone (and debloat it). What to do about all those errors after removing play services?
Here Comes MicroG. microG is an Open Source replacement for Google Play Services.
"MicroG is a free-as-in-freedom re-implementation of Google’s proprietary Android user space apps and libraries.
The linux-based open-source mobile operating system Android is not only the most popular mobile operating system in the world, it’s also on the way to becoming a proprietary operating system. How is that?
While the core operating system is still released as part of the Android Open Source Project, the majority of core apps are not. It gets worse: More and more libraries and APIs are only available on phones that run various Google apps pre-installed, effectively locking third-party apps to the Google ecosystem. For these reasons Android is described as being a “look but don’t touch” kind of open.
At this point, several popular open-source applications already require some of Google’s proprietary libraries to be installed. Increasing demand in the free software community in addition to severe problems in Google’s proprietary software discovered by the Android modding community, have led to the development of a free software clone of Google’s proprietary core libraries and applications - the microG Project was born.
Although most microG components are far from complete, users are amazed by the results. Free software users got extended application support, privacy-caring users can reduce or monitor data that is sent to Google and especially older phones can expect some battery life improvements."
(So it basically removes all those errors. Great!)
So, Lets start Degoogling!
Warning: bootloader needs to be unlocked, magisk should be there and twrp should be installed.
NOTE: MAKE FULL NANDROID BACKUP OF YOUR DEVICE BEFORE PROCEEDING BY GOING TO TWRP -> BACKUP -> SELECT ALL . store it in PC or somewhere safe​
Removing google crap
Flash TWRP and install magisk.
We need Signature spoofing in the ROM. Download SmaliPatcher from here and tick all patches, (We are interested in the "signature spoofing" one but all of them are useful) and follow the instructions on its page to install that module. Now your system supports signature spoofing. (I recommend SmaliPatcher even if your rom supports Signature Spoofing so that no issue arises)
Other ways for signature spoofing are given in MicroG wiki here
(IF YOU ARE ON STOCK ROM)
In case you had the Google Play Services previously installed (which Users having stock ROM have), remove all updates and the packages in /system/priv-app of the Google Services (you can use TWRP file manager or any root explorer to delete below packages, just delete the apk files in respective folders):
GmsCore (PrebuiltGmsCore, PrebuiltGmsCorePi, PrebuiltGmsCorePix)
GoogleBackupTransport
GoogleFeedback
GoogleLoginService
GoogleOneTimeInitializer
GooglePartnerSetup
GoogleServicesFramework
Phonesky
SetupWizard
Velvet.
In case you forgot to remove the GmsCore updates, you can manually remove these using adb uninstall com.google.android.gms.
After that, reboot your android device - all privileged GAPPS should be removed. (a bootloop may be caused, but dont worry, just boot into TWRP and follow below steps.)
IF YOU ARE ON CUSTOM ROM-> after flashing rom zip, do not reboot and follow below (DONT FLASH ANY GAPPS)SIZE]
Make full backup of your device if not made till now​
Installing MicroG
Download Latest "MinMicroG-Standard-XXX.zip" from here
Add "system-" to start of package name (thus making it like "system-MinMicroG-Standard-XXX.zip" ) and copy it in sdcard or internal storage of phone. Now boot into TWRP
flash "system-MinMicroG-Standard-XXX.zip".
OLD METHOD, USE THIS IF ABOVE WONT WORK
Download the following from here
full NanoDroid-xx.xx.xx.xxxxxxx.zip
NanoDroid-setupwizard.zip
NanoDroid-uninstaller.zip (if it causes brick)
Copy below in sdcard or internal storage of phone. Now boot into TWRP
NanoDroid-setupwizard.zip
NanoDroid-uninstaller.zip (if it causes brick)
flash NanoDroid-setupwizard.zip, now an aroma installer is opened. click on next , agree to terms and click next, chose save location "/data/media/0" (you can change this as per your needs but remember this location since here the installer will save 3 files) and click next
now from here onwards you can select yourself according to your needs or follow my tutorial till the end of aroma installer.
you should be on generic settings page, tick 'apps', 'maps apiv1', 'init scrips', 'gnu bash', and 'shell utils'. click next.
in microG page, select "full", next, on f-droid page select "official", next, select all 4 nlpBackends, next, now here select "play store(patrched)" if you want to use Play store (your choice, if you want to degoogle select "Aurora + fake store"), next
now select apps of your choice here, next, on Debloat setup page click next (yeah just skip it), and finally click on create config, next and finish.
Aroma installer Ends now.
Now while in twrp, connect your phone to PC and browse to internal storage (or the location you selected during aroma installer to save files)
the 3 files will be ".nanodroid-overlay", ".nanodroid-setup", ".nanodroid-apps". Copy these to PC and keep them in some place safe. Now open "nanodroid.zip" (that you downloaded earlier) with winRAR or 7zip and drag and drop these 3 files in it. (they should be in root of the zip where "meta-inf" folder is)
now copy NanoDroid-xx.xx.xx.xxxxxxx.zip to your phone and flash it.
now boot into system. if flashing nanodroid causes bootloop, restore from twrp backup that you made (i told you so!).
Configuring MicroG
You need to setup microG , go into microG settings (in app drawer or in settings) and set up everything like:
check results in Self-Check, grant all the missing permissions (by tapping on them)
especially the Battery Optimization item
if Phonesky (= Fake Store or Play Store) lacks signature spoofing permissions head to Settings / Apps / Permissions / Signature Spoofing and grant it
enable Google device registration
enable Google Cloud Messaging (only if you want to receive push messages from your applications)
enable Google SafetyNet, required for applications that utilize SafetyNet, for example Pokémon GO (Currently Broken)
in UnifiedNlp Settings choose all (whichever you've choosen to be installed)
Déjà Vu, Mozilla, Apple, and others (like GSM and WiFi Location Service)
Nominatim as Address lockup backend
after everything is done, reboot
if you installed Play Store open it, setup account and install your apps
Make sure you have all options ticked in self-check of microG settings (except maybe for last one). if not web search it or post it here.
Congratulations, you have successfully removed Gplay services.
ONLY IF YOU HAVE USED OLD METHOD (USING NANODROID)
Updates of nanodroid
Make full backup of your device before update. In case anything happens after update, you can rollback easily​So the nanodroid is updated quite frequently with the apps that come with it. So when you see an updated version of nanodroid on official download page (yeah there are no automatic updates, you have to manually check by going to the download page and download it) download below zips from here
full NanoDroid-xx.xx.xx.xxxxxxx.zip (the updated version)
NanoDroid-uninstaller.zip (the updated version)
* Now open "NanoDroid-xx.xx.xx.xxxxxxx.zip " (updated version) with winRAR or 7zip and drag and drop those 3 files [ ".nanodroid-overlay", ".nanodroid-setup", ".nanodroid-apps".] in it. (just like you did before)
* Now copy NanoDroid-xx.xx.xx.xxxxxxx.zip to your phone and flash it through twrp.
You may need to re-configure microG, so just do it again.
Huge thanks to the below members for the tools.
@FriendlyNeighborhoodShane for MinMicroG
@MaR-V-iN for microG (thank you sir!)
@Setialpha for nanodroid
and other ones whom i forgot to add
reserved
reserved 2
reserved just in case
Damn near best tutorial i've ever seen, thank you good sir!! :good::good::good:
i'm not sure i made it work completelly tho..
Coming from stock marshmallow on Galaxy Note 4. I uninstalled google crap first using Titanium backup even tho the phone seemed to get stuck when i was uninstalling the Google Play services, took it almost 1½ hour..). Then manually cleaned some leftovers using file manager in TWRP.
Then just for the heck of it tried to run the Nanodroid patch file but i got an error message that it couldnt deodex one x.jar file (can't remember it's name just now). Tried instead to patch with Smalipatcher but the damn thing couldn't see i have admin privileges no matter what i did and just refused to run alltogether.
Then i tried this way you described. Did everything as the tutorial says, got no error message, everything seemed to run smooth and the apps i chose were installed. (altho TWRP did freeze a couple of times during aroma setup so i had to reset by taking out the battery). Now i know i should set upp the microG settings, but the microG icon and the app is nowhere to be found. The modul named NanoDroid exists and is activ in Magisk, but it's not possible to open it.
Not sure what is happening and how to proceed from here.. Could you give a pointer or two? Would be much appreciated.
What about GoogleLocationHistory???
Is this one needed or does it have to be removed as well?
prkfsz said:
Damn near best tutorial i've ever seen, thank you good sir!! :good::good::good:
i'm not sure i made it work completelly tho..
Coming from stock marshmallow on Galaxy Note 4. I uninstalled google crap first using Titanium backup even tho the phone seemed to get stuck when i was uninstalling the Google Play services, took it almost 1½ hour..). Then manually cleaned some leftovers using file manager in TWRP.
Then just for the heck of it tried to run the Nanodroid patch file but i got an error message that it couldnt deodex one x.jar file (can't remember it's name just now). Tried instead to patch with Smalipatcher but the damn thing couldn't see i have admin privileges no matter what i did and just refused to run alltogether.
Then i tried this way you described. Did everything as the tutorial says, got no error message, everything seemed to run smooth and the apps i chose were installed. (altho TWRP did freeze a couple of times during aroma setup so i had to reset by taking out the battery). Now i know i should set upp the microG settings, but the microG icon and the app is nowhere to be found. The modul named NanoDroid exists and is activ in Magisk, but it's not possible to open it.
Not sure what is happening and how to proceed from here.. Could you give a pointer or two? Would be much appreciated.
Click to expand...
Click to collapse
updated the guide, see new instructions
Retseem said:
What about GoogleLocationHistory???
Is this one needed or does it have to be removed as well?
Click to expand...
Click to collapse
just search in internet what that does and if its useful to you, dont remove it.
Looks good! Almost there?
Thank you for your good work.! All seems well after I follow your steps using a AICP rom. All the checks in microG are green except the play store phonesky, that I can not fix but does not seem to be a problem
Problem:
One test case for me however is the app flightradar24. This app can be installed just fine from the Aurora store. When I start it however it prompts me immediately to install the google play services as they appear not to be installed or up to date. I can also install these from aurora, but haven't done that as it would defy the purpose of of all the previous work.
So my question is:
- Should I expect Flightradar24 to work on a minmicrog system on android 10?
- If so, where is it going wrong?
- Yes I have the microG location services enabled.
PS. Also I tested Gmail. It also complains about absent play services.
Addition: Actually I find that no application the requires Google is working at all. Did I miss something perhaps?
Samsung-frisbee said:
Thank you for your good work.! All seems well after I follow your steps using a AICP rom. All the checks in microG are green except the play store phonesky, that I can not fix but does not seem to be a problem
Problem:
One test case for me however is the app flightradar24. This app can be installed just fine from the Aurora store. When I start it however it prompts me immediately to install the google play services as they appear not to be installed or up to date. I can also install these from aurora, but haven't done that as it would defy the purpose of of all the previous work.
So my question is:
- Should I expect Flightradar24 to work on a minmicrog system on android 10?
- If so, where is it going wrong?
- Yes I have the microG location services enabled.
PS. Also I tested Gmail. It also complains about absent play services.
Click to expand...
Click to collapse
After further investigation I have not been able to run any apps that depend on Google play services. They all fail on not recognizing GPS.
All checks in microG are OK. I am puzzled
^- signature spoofing must be failing.
thanks for making this.
There's LineageOS with microG baked in: https://lineage.microg.org/
Hritwik said:
This guide explains how to deGoogle any android by removing most of google invasive crap. (yes, GPlay services is also removed). ​Play store, Google app and other crap is also removed from system, so if you want to use them, install them as user app. The installation for play store is different, and it is explained below.
Check my Post on reddit for more up to date info and clear instructions HERE
When we remove Gplay services, many apps and services stop working . Many apps will give error but still work (like maps and telegram and whatsapp). Play store will definitely not work and many apps that use push notification through Gplay services (most of them) will not be able to do so. In my case Uber, ola or any other ride app was also not working and was crashing constantly. Paytm will also not work without play services. And on top of that many apps that use location might not behave properly.
Whoosh! those are a lot of problems for uninstalling play services. So, why would anyone want to do that?
Simply put it, Google is an Advertising company. No it is not a company that sells product, i mean yes it sells products and earns from them BUT more than 60% of their revenue comes from Ads that they serve you. And yes, google is the biggest Ad company in the world with more than 80% of ad share (i may be wrong about the %, feel free to search yourself). So obviously they want ta make money out of your data (by selling it) and to do that what better way than to install spyware on world's largest mobile OS.
Google play services record your every action, tracking every app that you opened and everything you do. That data remains with google and they sell it to 3rd parties (and you agreed to it when you made Google account and setup your android device. Remember Clicking on "I AGREE"?).
Here i will not discuss how invasive it is. A simple Web search with "google play services tracking" will give you much more information. (and please do search it, i beg you) (Pro Tip: reddit has best answers, so explore reddit links from search)
Here is a good one explaining things
And Gplay services Eat a LOT of battery by constantly Running in background. So if you want better battery, remove it
So you have decided to degoogle your phone (and debloat it). What to do about all those errors after removing play services?
Here Comes MicroG. microG is an Open Source replacement for Google Play Services.
"MicroG is a free-as-in-freedom re-implementation of Google’s proprietary Android user space apps and libraries.
The linux-based open-source mobile operating system Android is not only the most popular mobile operating system in the world, it’s also on the way to becoming a proprietary operating system. How is that?
While the core operating system is still released as part of the Android Open Source Project, the majority of core apps are not. It gets worse: More and more libraries and APIs are only available on phones that run various Google apps pre-installed, effectively locking third-party apps to the Google ecosystem. For these reasons Android is described as being a “look but don’t touch” kind of open.
At this point, several popular open-source applications already require some of Google’s proprietary libraries to be installed. Increasing demand in the free software community in addition to severe problems in Google’s proprietary software discovered by the Android modding community, have led to the development of a free software clone of Google’s proprietary core libraries and applications - the microG Project was born.
Although most microG components are far from complete, users are amazed by the results. Free software users got extended application support, privacy-caring users can reduce or monitor data that is sent to Google and especially older phones can expect some battery life improvements."
(So it basically removes all those errors. Great!)
So, Lets start Degoogling!
Warning: bootloader needs to be unlocked, magisk should be there and twrp should be installed.
NOTE: MAKE FULL NANDROID BACKUP OF YOUR DEVICE BEFORE PROCEEDING BY GOING TO TWRP -> BACKUP -> SELECT ALL . store it in PC or somewhere safe​
Removing google crap
Flash TWRP and install magisk.
We need Signature spoofing in the ROM. Download SmaliPatcher from here and tick all patches, (We are interested in the "signature spoofing" one but all of them are useful) and follow the instructions on its page to install that module. Now your system supports signature spoofing. (I recommend SmaliPatcher even if your rom supports Signature Spoofing so that no issue arises)
Other ways for signature spoofing are given in MicroG wiki here
(IF YOU ARE ON STOCK ROM)
In case you had the Google Play Services previously installed (which Users having stock ROM have), remove all updates and the packages in /system/priv-app of the Google Services (you can use TWRP file manager or any root explorer to delete below packages, just delete the apk files in respective folders):
GmsCore (PrebuiltGmsCore, PrebuiltGmsCorePi, PrebuiltGmsCorePix)
GoogleBackupTransport
GoogleFeedback
GoogleLoginService
GoogleOneTimeInitializer
GooglePartnerSetup
GoogleServicesFramework
Phonesky
SetupWizard
Velvet.
In case you forgot to remove the GmsCore updates, you can manually remove these using adb uninstall com.google.android.gms.
After that, reboot your android device - all privileged GAPPS should be removed. (a bootloop may be caused, but dont worry, just boot into TWRP and follow below steps.)
IF YOU ARE ON CUSTOM ROM-> after flashing rom zip, do not reboot and follow below (DONT FLASH ANY GAPPS)SIZE]
Make full backup of your device if not made till now​
Installing MicroG
Download Latest "MinMicroG-Standard-XXX.zip" from here
Add "system-" to start of package name (thus making it like "system-MinMicroG-Standard-XXX.zip" ) and copy it in sdcard or internal storage of phone. Now boot into TWRP
flash "system-MinMicroG-Standard-XXX.zip".
OLD METHOD, USE THIS IF ABOVE WONT WORK
Download the following from here
full NanoDroid-xx.xx.xx.xxxxxxx.zip
NanoDroid-setupwizard.zip
NanoDroid-uninstaller.zip (if it causes brick)
Copy below in sdcard or internal storage of phone. Now boot into TWRP
NanoDroid-setupwizard.zip
NanoDroid-uninstaller.zip (if it causes brick)
flash NanoDroid-setupwizard.zip, now an aroma installer is opened. click on next , agree to terms and click next, chose save location "/data/media/0" (you can change this as per your needs but remember this location since here the installer will save 3 files) and click next
now from here onwards you can select yourself according to your needs or follow my tutorial till the end of aroma installer.
you should be on generic settings page, tick 'apps', 'maps apiv1', 'init scrips', 'gnu bash', and 'shell utils'. click next.
in microG page, select "full", next, on f-droid page select "official", next, select all 4 nlpBackends, next, now here select "play store(patrched)" if you want to use Play store (your choice, if you want to degoogle select "Aurora + fake store"), next
now select apps of your choice here, next, on Debloat setup page click next (yeah just skip it), and finally click on create config, next and finish.
Aroma installer Ends now.
Now while in twrp, connect your phone to PC and browse to internal storage (or the location you selected during aroma installer to save files)
the 3 files will be ".nanodroid-overlay", ".nanodroid-setup", ".nanodroid-apps". Copy these to PC and keep them in some place safe. Now open "nanodroid.zip" (that you downloaded earlier) with winRAR or 7zip and drag and drop these 3 files in it. (they should be in root of the zip where "meta-inf" folder is)
now copy NanoDroid-xx.xx.xx.xxxxxxx.zip to your phone and flash it.
now boot into system. if flashing nanodroid causes bootloop, restore from twrp backup that you made (i told you so!).
Configuring MicroG
You need to setup microG , go into microG settings (in app drawer or in settings) and set up everything like:
check results in Self-Check, grant all the missing permissions (by tapping on them)
especially the Battery Optimization item
if Phonesky (= Fake Store or Play Store) lacks signature spoofing permissions head to Settings / Apps / Permissions / Signature Spoofing and grant it
enable Google device registration
enable Google Cloud Messaging (only if you want to receive push messages from your applications)
enable Google SafetyNet, required for applications that utilize SafetyNet, for example Pokémon GO (Currently Broken)
in UnifiedNlp Settings choose all (whichever you've choosen to be installed)
Déjà Vu, Mozilla, Apple, and others (like GSM and WiFi Location Service)
Nominatim as Address lockup backend
after everything is done, reboot
if you installed Play Store open it, setup account and install your apps
Make sure you have all options ticked in self-check of microG settings (except maybe for last one). if not web search it or post it here.
Congratulations, you have successfully removed Gplay services.
ONLY IF YOU HAVE USED OLD METHOD (USING NANODROID)
Updates of nanodroid
Make full backup of your device before update. In case anything happens after update, you can rollback easily​So the nanodroid is updated quite frequently with the apps that come with it. So when you see an updated version of nanodroid on official download page (yeah there are no automatic updates, you have to manually check by going to the download page and download it) download below zips from here
full NanoDroid-xx.xx.xx.xxxxxxx.zip (the updated version)
NanoDroid-uninstaller.zip (the updated version)
* Now open "NanoDroid-xx.xx.xx.xxxxxxx.zip " (updated version) with winRAR or 7zip and drag and drop those 3 files [ ".nanodroid-overlay", ".nanodroid-setup", ".nanodroid-apps".] in it. (just like you did before)
* Now copy NanoDroid-xx.xx.xx.xxxxxxx.zip to your phone and flash it through twrp.
You may need to re-configure microG, so just do it again.
Huge thanks to the below members for the tools.
@FriendlyNeighborhoodShane for MinMicroG
@MaR-V-iN for microG (thank you sir!)
@Setialpha for nanodroid
and other ones whom i forgot to add
Click to expand...
Click to collapse
This is gold. Haven't tried yet but will be donating to the MicroG project if this works.
Hritwik said:
This guide explains how to deGoogle any android by removing most of google invasive crap. (yes, GPlay services is also removed). ​Play store, Google app and other crap is also removed from system, so if you want to use them, install them as user app. The installation for play store is different, and it is explained below.
Check my Post on reddit for more up to date info and clear instructions HERE
When we remove Gplay services, many apps and services stop working . Many apps will give error but still work (like maps and telegram and whatsapp). Play store will definitely not work and many apps that use push notification through Gplay services (most of them) will not be able to do so. In my case Uber, ola or any other ride app was also not working and was crashing constantly. Paytm will also not work without play services. And on top of that many apps that use location might not behave properly.
Whoosh! those are a lot of problems for uninstalling play services. So, why would anyone want to do that?
Simply put it, Google is an Advertising company. No it is not a company that sells product, i mean yes it sells products and earns from them BUT more than 60% of their revenue comes from Ads that they serve you. And yes, google is the biggest Ad company in the world with more than 80% of ad share (i may be wrong about the %, feel free to search yourself). So obviously they want ta make money out of your data (by selling it) and to do that what better way than to install spyware on world's largest mobile OS.
Google play services record your every action, tracking every app that you opened and everything you do. That data remains with google and they sell it to 3rd parties (and you agreed to it when you made Google account and setup your android device. Remember Clicking on "I AGREE"?).
Here i will not discuss how invasive it is. A simple Web search with "google play services tracking" will give you much more information. (and please do search it, i beg you) (Pro Tip: reddit has best answers, so explore reddit links from search)
Here is a good one explaining things
And Gplay services Eat a LOT of battery by constantly Running in background. So if you want better battery, remove it
So you have decided to degoogle your phone (and debloat it). What to do about all those errors after removing play services?
Here Comes MicroG. microG is an Open Source replacement for Google Play Services.
"MicroG is a free-as-in-freedom re-implementation of Google’s proprietary Android user space apps and libraries.
The linux-based open-source mobile operating system Android is not only the most popular mobile operating system in the world, it’s also on the way to becoming a proprietary operating system. How is that?
While the core operating system is still released as part of the Android Open Source Project, the majority of core apps are not. It gets worse: More and more libraries and APIs are only available on phones that run various Google apps pre-installed, effectively locking third-party apps to the Google ecosystem. For these reasons Android is described as being a “look but don’t touch” kind of open.
At this point, several popular open-source applications already require some of Google’s proprietary libraries to be installed. Increasing demand in the free software community in addition to severe problems in Google’s proprietary software discovered by the Android modding community, have led to the development of a free software clone of Google’s proprietary core libraries and applications - the microG Project was born.
Although most microG components are far from complete, users are amazed by the results. Free software users got extended application support, privacy-caring users can reduce or monitor data that is sent to Google and especially older phones can expect some battery life improvements."
(So it basically removes all those errors. Great!)
So, Lets start Degoogling!
Warning: bootloader needs to be unlocked, magisk should be there and twrp should be installed.
NOTE: MAKE FULL NANDROID BACKUP OF YOUR DEVICE BEFORE PROCEEDING BY GOING TO TWRP -> BACKUP -> SELECT ALL . store it in PC or somewhere safe​
Removing google crap
Flash TWRP and install magisk.
We need Signature spoofing in the ROM. Download SmaliPatcher from here and tick all patches, (We are interested in the "signature spoofing" one but all of them are useful) and follow the instructions on its page to install that module. Now your system supports signature spoofing. (I recommend SmaliPatcher even if your rom supports Signature Spoofing so that no issue arises)
Other ways for signature spoofing are given in MicroG wiki here
(IF YOU ARE ON STOCK ROM)
In case you had the Google Play Services previously installed (which Users having stock ROM have), remove all updates and the packages in /system/priv-app of the Google Services (you can use TWRP file manager or any root explorer to delete below packages, just delete the apk files in respective folders):
GmsCore (PrebuiltGmsCore, PrebuiltGmsCorePi, PrebuiltGmsCorePix)
GoogleBackupTransport
GoogleFeedback
GoogleLoginService
GoogleOneTimeInitializer
GooglePartnerSetup
GoogleServicesFramework
Phonesky
SetupWizard
Velvet.
In case you forgot to remove the GmsCore updates, you can manually remove these using adb uninstall com.google.android.gms.
After that, reboot your android device - all privileged GAPPS should be removed. (a bootloop may be caused, but dont worry, just boot into TWRP and follow below steps.)
IF YOU ARE ON CUSTOM ROM-> after flashing rom zip, do not reboot and follow below (DONT FLASH ANY GAPPS)SIZE]
Make full backup of your device if not made till now​
Installing MicroG
Download Latest "MinMicroG-Standard-XXX.zip" from here
Add "system-" to start of package name (thus making it like "system-MinMicroG-Standard-XXX.zip" ) and copy it in sdcard or internal storage of phone. Now boot into TWRP
flash "system-MinMicroG-Standard-XXX.zip".
OLD METHOD, USE THIS IF ABOVE WONT WORK
Download the following from here
full NanoDroid-xx.xx.xx.xxxxxxx.zip
NanoDroid-setupwizard.zip
NanoDroid-uninstaller.zip (if it causes brick)
Copy below in sdcard or internal storage of phone. Now boot into TWRP
NanoDroid-setupwizard.zip
NanoDroid-uninstaller.zip (if it causes brick)
flash NanoDroid-setupwizard.zip, now an aroma installer is opened. click on next , agree to terms and click next, chose save location "/data/media/0" (you can change this as per your needs but remember this location since here the installer will save 3 files) and click next
now from here onwards you can select yourself according to your needs or follow my tutorial till the end of aroma installer.
you should be on generic settings page, tick 'apps', 'maps apiv1', 'init scrips', 'gnu bash', and 'shell utils'. click next.
in microG page, select "full", next, on f-droid page select "official", next, select all 4 nlpBackends, next, now here select "play store(patrched)" if you want to use Play store (your choice, if you want to degoogle select "Aurora + fake store"), next
now select apps of your choice here, next, on Debloat setup page click next (yeah just skip it), and finally click on create config, next and finish.
Aroma installer Ends now.
Now while in twrp, connect your phone to PC and browse to internal storage (or the location you selected during aroma installer to save files)
the 3 files will be ".nanodroid-overlay", ".nanodroid-setup", ".nanodroid-apps". Copy these to PC and keep them in some place safe. Now open "nanodroid.zip" (that you downloaded earlier) with winRAR or 7zip and drag and drop these 3 files in it. (they should be in root of the zip where "meta-inf" folder is)
now copy NanoDroid-xx.xx.xx.xxxxxxx.zip to your phone and flash it.
now boot into system. if flashing nanodroid causes bootloop, restore from twrp backup that you made (i told you so!).
Configuring MicroG
You need to setup microG , go into microG settings (in app drawer or in settings) and set up everything like:
check results in Self-Check, grant all the missing permissions (by tapping on them)
especially the Battery Optimization item
if Phonesky (= Fake Store or Play Store) lacks signature spoofing permissions head to Settings / Apps / Permissions / Signature Spoofing and grant it
enable Google device registration
enable Google Cloud Messaging (only if you want to receive push messages from your applications)
enable Google SafetyNet, required for applications that utilize SafetyNet, for example Pokémon GO (Currently Broken)
in UnifiedNlp Settings choose all (whichever you've choosen to be installed)
Déjà Vu, Mozilla, Apple, and others (like GSM and WiFi Location Service)
Nominatim as Address lockup backend
after everything is done, reboot
if you installed Play Store open it, setup account and install your apps
Make sure you have all options ticked in self-check of microG settings (except maybe for last one). if not web search it or post it here.
Congratulations, you have successfully removed Gplay services.
ONLY IF YOU HAVE USED OLD METHOD (USING NANODROID)
Updates of nanodroid
Make full backup of your device before update. In case anything happens after update, you can rollback easily​So the nanodroid is updated quite frequently with the apps that come with it. So when you see an updated version of nanodroid on official download page (yeah there are no automatic updates, you have to manually check by going to the download page and download it) download below zips from here
full NanoDroid-xx.xx.xx.xxxxxxx.zip (the updated version)
NanoDroid-uninstaller.zip (the updated version)
* Now open "NanoDroid-xx.xx.xx.xxxxxxx.zip " (updated version) with winRAR or 7zip and drag and drop those 3 files [ ".nanodroid-overlay", ".nanodroid-setup", ".nanodroid-apps".] in it. (just like you did before)
* Now copy NanoDroid-xx.xx.xx.xxxxxxx.zip to your phone and flash it through twrp.
You may need to re-configure microG, so just do it again.
Huge thanks to the below members for the tools.
@FriendlyNeighborhoodShane for MinMicroG
@MaR-V-iN for microG (thank you sir!)
@Setialpha for nanodroid
and other ones whom i forgot to add
Click to expand...
Click to collapse
This is gold. Thank you. Will be donating to the MicroG project if they accept donations, worth every penny.
Edited on Dec.10,2021
It works like a charm with Havoc OS (Samsung S8)
Hi,
I just installed MicroG on a Samsung S8 running Android 7 and although the installation went perfect, without any errors, I don't have any icon, thus I cannot get access to settings. I do see the microG Services Framework application installed in Application Manager but I cannot launch it.
I followed the new instructions to the letter.
Please advise!
Thanks!
SafetyNet fails?
will this guide work on the Stock MIUI 12.0.9 for Mi 9T?
I could use some assistance finding some files. I've tried several methods but can't seem to locate the files below. I'm using a rooted and unlocked S20 5G (986U1) Can you help me with a method or app to find these. I'm using Cx for file manager but the search seems limited, or I'm doing it wrong.
• In case you had the Google Play Services previously installed (which Users having stock ROM have), remove all updates and the packages in /system/priv-app of the Google Services (you can use TWRP file manager or any root explorer to delete below packages, just delete the apk files in respective folders):
o GoogleBackupTransport
o GoogleLoginService
o GooglePartnerSetup
o Phonesky
o Velvet.
goobener said:
I could use some assistance finding some files. I've tried several methods but can't seem to locate the files below. I'm using a rooted and unlocked S20 5G (986U1) Can you help me with a method or app to find these. I'm using Cx for file manager but the search seems limited, or I'm doing it wrong.
• In case you had the Google Play Services previously installed (which Users having stock ROM have), remove all updates and the packages in /system/priv-app of the Google Services (you can use TWRP file manager or any root explorer to delete below packages, just delete the apk files in respective folders):
o GoogleBackupTransport
o GoogleLoginService
o GooglePartnerSetup
o Phonesky
o Velvet.
Click to expand...
Click to collapse
Download an all called App Manager from F-Droid
Thank you for this guide!
I have two new devices that I'm not using.
LG K50s and Tablet Lenovo M10
Would like to get them in shape before any use.
There's no Lineage for those or found a linux distro.
Is this the best way yo get rid of all the crap, bloatware, spyware, tracking?
Does it get clean of trackers?
Thank you!

Question How to use Google Play wallet with rooted One Plus Nord 2T 5G ?

Hello everyone,
A few months ago, I used this awesome guide to get my device rooted. Now I would like to use Google Wallet but it detects root even after adding every google service to my denylist.
I found this guide : https://forum.xda-developers.com/t/magisk-google-wallet-pay-with-magisk.4471279/ that tells me to change my device fingerprint but One Plus Nord 2T is not in the device list I was wondering if you think it's unsafe to use the fingerprint of One Plus Nord 2 device instead ? Will this break my device for some reason ?
Thanks for you help
Try using Universal Saftey net fix by kdrag0n.
PattasuBalu said:
Try using Universal Saftey net fix by kdrag0n.
Click to expand...
Click to collapse
Doesn't work. He needs the modded version by Displax which can be found on his GitHub Here
In magisk you need to go to magisk settings and enable zygisk and enforce deny list.
Then add play services, play store and wallet/gpay to deny list.
Then delete app data for play store, play services and wallet/gpay. Everything should work perfectly then
garylawwd said:
Doesn't work. He needs the modded version by Displax which can be found on his GitHub Here
In magisk you need to go to magisk settings and enable zygisk and enforce deny list.
Then add play services, play store and wallet/gpay to deny list.
Then delete app data for play store, play services and wallet/gpay. Everything should work perfectly then
Click to expand...
Click to collapse
Thank you for your quick reply ! Unfortunately, it didn't work either…
r-ichard said:
Thank you for your quick reply ! Unfortunately, it didn't work either…
Click to expand...
Click to collapse
It doesn't? That's strange because this is the method I use personally and it works no problems
I managed to make it work. Here is what worked for me :
1. Install this release : https://github.com/Displax/safetynet-fix/releases/tag/v2.3.1-MOD_2.0 (be careful the link in the README.md is not correctly updated)
2. Add to deny list : Google Play Services, Google Wallet/Pay, Google Play Store
3. Remove data and cache for : Google Play Services, Google Wallet/Pay, Google Play Store
4. Reboot
5. (Again) Remove data and cache for : Google Play Services, Google Wallet/Pay, Google Play Store
Then when opening Google Wallet should work fine.
Thank you again for your help @garylawwd !!

Categories

Resources