yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] AnonVendetta:
What is the general procedure for installing MicroG in Nougat? I just installed LineageOS 7.1.1 on my T-Mobile Note 4. I plan to patch framework.jar with Tingle, since I can't use the Xposed FakeGApps module. ROM is deodexed so I don't see any issues here. But does MicroG need to be in /system/priv-app, or will it work fine as a regular user app? What about MicroG GSF? I've also read about issues with NLP/network location/system location provider not working if it's not a priveleged system app. I plan to use the official Play Store as well, since I have too many paid apps that have license checks. Any other special precautions?

I haven't posted here in this thread for awhile (months) so I'm not up to date.

Thanks!
[Android Apps and Games] stylemessiah:
Literally last page i posted this: https://xdaforums.com/showpost.php?p=71581068&postcount=3069

which would lead you to this: https://xdaforums.com/showpost.php?p=71553308&postcount=3707

which includes a link to this: https://shadow53.com/no-gapps/setup-guide/

which in turn leads you to this: https://shadow53.com/no-gapps/downloads/ (which includes links to Tingle which needs Python, as opposed to Haystack which i used and my guide is about)
[Android Apps and Games] AnonVendetta:
[MENTION=962829]stylemessiah[/MENTION]: Thanks for the links. I was already aware of most of the info on those pages. But I did find some interesting tidbits. Like I said, I've been out of the game for awhile, I havent really bothered with MicroG as of late, I had an LG v10 which ran into numerous issues with it. That device runs stock firmware just fine, but all the CM based ROMs I tried ran into major issues. My ultimate goal with Android devices is to ideally be able to run CM/Lineage/AOSP, I loath stock firmware because of all the bloat that's bundled. Afterwards I bought an LG v20, which was stolen so I couldn't test in-depth. So I've returned to the device that's been most reliable for me, Note 4, got a good deal on EBay for one that was new and still in the factory-sealed box.

MicroG is running great now, right before you posted I had already patched framework.jar with Tingle. However, I did so on device, without a PC, using an app called QPython. Simply copy the contents of tingle-master.zip (not the parent folder) into /sdcard/qpython/scripts. Then run main.py script from the app. Beforehand copy your framework (from a deodexed ROM) into the input folder. Tell the script to patch the file at input, result will be in output folder. This is heavily CPU and RAM dependent, so only do this on a device that has adequate resources. It took about 3 mins for me. But on an older Samsung tablet it took over 30 mins. YMMV.

I manually installed MicroG GMS and GSF into /system/priv-app, along with the proper CPU-dependent libraries, which I also copied into /system/lib and /system/vendor/lib. There may be additional/different lib folders if you have an ARM64/MIPS/etc device. This way MicroG will find the right lib no matter where it looks. As a user app it does run but the UnifiedNLP service doesn't register even after a reboot. This must be Nougat-specific since it didn't happen in Lollipop/Marshmallow.

I also installed and configured some backends, then ran Mozilla Stumbler. MicroG shows all green checkboxes in self check, so everything looks good.

Thanks again!
[Android Apps and Games] stylemessiah:
Cheers, interesting to hear about QPython. Tingle probably wasnt an option for me as our ROM isnt deodexed, and someone else had already used HayStack on it, though they were running Linux, hence me having to fart about with all the pre-requisites on windows to do the job! :)
[Android Apps and Games] AnonVendetta:
[MENTION=962829]stylemessiah[/MENTION]: Well, you could have just deodexed the ROM and patched, whether or not it would boot is another matter. I tried for months to deodex my v10 stock firmware, but always bootlooped, so I could never use the patch. I prefer odexed ROMs anyway, does Haystack work with odex?
[Android Apps and Games] ShapeShifter499:
I'm just letting you know I pass SafetyNet now on LineageOS 14.1 with microG and Magisk Hide. I needed to install DroidGuard to /system to make it work.
[Android Apps and Games] AnonVendetta:
[MENTION=2022267]ShapeShifter499[/MENTION]: Can you provide more detail? I have DroidGuard installed to /system/priv-app on LOS 7.1.1, Note 4. Magisk is installed and MagiskHide is enabled. BusyBox is installed in /system/xbin, but no su binaries are present in /system (I searched). Does SafetyNet detect BusyBox? My bootloader is also unlocked and my kernel auto-sets SELinux to permissive. But in Magisk I just get "CTS profile mismatch". In MicroG SN is enabled and the option " Use official server" is selected.

Thanks!
[Android Apps and Games] joelh:
Use Magisk's busybox, not a different one.

I also now pass SN with DroidGuard systemized by [MENTION=2226076]stangri[/MENTION]'s module in 7.1.1. Thanks [MENTION=5627087]ale5000[/MENTION] as well
[Android Apps and Games] ShapeShifter499:
If you need BusyBox try using the one from Magisk like [MENTION=7660770]animeme[/MENTION] mentioned. Having BusyBox installed like that could be causing issue with SafetyNet.
[Android Apps and Games] joelh:
Oh, I didn't even notice you mention SELinux. My bad. That'll need to be enforcing
[Android Apps and Games] stylemessiah:
Well i was bout to deodex the ROM when another user of the ROM popped up and pointed out he'd used haystack on it and it worked fine....so yep, it works with odex

i just set the patch-file to use 7.0 patch folders under haystack (even though im using 7.1.1), and sdk 25, and it was all good
[Android Apps and Games] adek89:
How to disable push notification?

Wysyłane z Compacta za pomocą Tapatalk 2
[Android Apps and Games] Oswald Boelcke:
Simply disable via the 1st page of the microG-settings (see attached acreenshot). A new window is appearing, and you'll be able to disable in toto or app by app.

Occasionally, it's helpful to look into the settings before posting.
[Android Apps and Games] AnonVendetta:
[MENTION=2022267]ShapeShifter499[/MENTION]: I manually flashed BusyBox with a zip. I've never heard of BB tripping SafetyNet, but you never know with Google. I know that Magisk includes its' own BB, but I like mine more because it has more available applets/symlinks/modules/etc. As for SELinux set to enforcing, like I said, my kernel puts it to permissive by default, just the way I like it. But I can always make a script that sets to enforcing long enough to pass the check, then switch it back. And the unlocked bootloader, well not much I can do about that. I think the T-Mobile version of the Note 4 has an unlocked bootloader by default, right out of the box. As soon as you install a custom recovery and flash a custom ROM, your device status becomes unofficial, and the hardware trigger in the device gets tripped, which only serves to let Samsung know (if they were to check) that you've been messing around. So if I want the bootloader to remain locked, then I would probably have to run pure unmodded stock, and knowing how I am, that simply won't happen.

[MENTION=962829]stylemessiah[/MENTION]: Haystack's GitHub page explicitly says that it requires a deodexed ROM. So it's no different from the other patchers in that regard. But now I'm selling that my v10, so too little too late. I'd say it's the worst phone I've ever owned. It's not slow, I just can't run it the way I want it, and with what ROMs I want.
[Android Apps and Games] d@z984:
Someone has problem whit tripadvisor app > 16 ?
[Android Apps and Games] santi1993:
wiped and reinstalled my ROM, now its working as intended.
[Android Apps and Games] MaurixMystic:
Safety ~ net doesn't work in safety net test app, and also does not work in magisk, any ideas?

Enviado desde mi A0001 mediante Tapatalk
[Android Apps and Games] blakegriplingph:
Is signature spoofing really that essential for Google Play Store to work? I managed to get Cobalt's Play Store mod to work to an extent, but while I am able to browse the store and download apps, they don't install at all.
[Android Apps and Games] Shadow53:
Signature spoofing is necessary to run MicroG, and thus is necessary to use the Play Store with MicroG. On my phone with an unmodded Play Store, I am able to download and install apps just fine.
[Android Apps and Games] ale5000:
You have to set SELinux to enforcing and hide the unlocked bootloader.

For the problem of unlocked bootloader you have to apply this patch: https://github.com/sultanxda/androi...mmit/abc05b16bbd33521c2fffaf491c5657a94bfcfc5
[Android Apps and Games] blakegriplingph:
Well that's a drag. Can't root my device either as it's still under warranty. :/
[Android Apps and Games] teemo:
What is this update notification about ? Is it microg related ?

Latest play store 7.6.08.N-all and latest microg 2.4-81.

It popped up one or two days ago and won't go away.
[Android Apps and Games] hourwatch:
Hi! I have a silly question. The use of signature spoofing is needed for every part of microG, or there is any way I could use FakeStore.apk without signature spoofing and GmsCore.apk?
[Android Apps and Games] Bludwurst:
You need signature spoofing to use FakeStore and GmsCore; even if you only want FakeStore, it still needs it.
[Android Apps and Games] rnd83:
You can use Blankstore without MicrG and without signature spoofing.
[Android Apps and Games] hourwatch:
Oks, thanks for the answers :D
[Android Apps and Games] marcdw:
I used to get that for awhile on one ROM but now I don't think it shows up anymore.

A visual annoyance I guess but nothing to worry about. I think. Maybe. [emoji51]

LG G3 D851, Nimax Slim Fit v7.0 ROM, microG (NoGapps), MultiROM, Tapatalk 4.9.5
[Android Apps and Games] Shadow53:
BlankStore is old and not really receiving updates. One should use Yalp Store instead, as it has more features and is actively developed.
[Android Apps and Games] justmix4:
Please remember about new Google Account for Yalp Store.
[Android Apps and Games] marcdw:
Yalp has an experimental feature to use it without an account. Haven't yet tried that, though.

LG G3 D851, LiquidSmooth v4.1 ROM, MultiROM, Tapatalk 4.9.5
[Android Apps and Games] Bludwurst:
I've tried it. It works fine.
[Android Apps and Games] barturblits:
Why cant you use the same gmail account + id for both blankstore and yalp store? Does it need an entirely new account+id or only a new id?
[Android Apps and Games] marcdw:
It's just that if you use your main Google account with these apps you may be violating terms of service and whatnot. Grabbing apks from Play Store is not how Google wants you to do things. [emoji57]

Better to use a throwaway account for such activities.

LG G3 D851, OctOS Nougat ROM, MultiROM, Tapatalk 4.9.5
[Android Apps and Games] ale5000:
Not really, microG can work also without signature spoofing, it is just that other apps won't use it.

But if you don't want to patch the system you can patch the apps.
[Android Apps and Games] ShapeShifter499:
You need SELinux set to enforcing. As far as I know Magisk should hide the bootloader status.

Also I set the following props because a app known as "RootBeer Sample" was looking for them as a indication of root or a modified device.

/data/magisk/resetprop ro.secure 1

/data/magisk/resetprop ro.debuggable 0

/data/magisk/resetprop --delete ro.build.selinux

A quick Magisk module I made sets those props at boot.
[Android Apps and Games] MaurixMystic:
I tried ... I did not work ... I still have the error :/ (have micro g no gapps)
[Android Apps and Games] redj12:
Hi guys. I moved to N some days ago. I am on crDroid for hammerhead Caf. I tried to install microg but any apps can locate me.

I followed the instructionon github to install location app as system app but it didn't help me.

I used Xposed on M and it was ok.

2 screenshot of the app :

https://db.tt/137MCEjZz0

Any idea ? Thx
[Android Apps and Games] n76:
I had to put a copy of the microG apk into /system/priv-app/ for the location provider to work on crDroid 7.1 on my phone.

You also have to enable signature spoofing in the additional crDroid settings as well as grant the spoofing privilege to microG (and blank/fake store).
[Android Apps and Games] apratul Vasu:
its not working with xda devlopers app i used to login to my account via google when i click on g+ icon in xda. app to login nothing happens
[Android Apps and Games] Shadow53:
That is to be expected, I think. If you check the implementation status on the microg wiki, it says Plus is partially implemented.
[Android Apps and Games] apratul Vasu:
checked you are right :p
[Android Apps and Games] warata:
Thanks for your advice:good:

Earlier versions(10087423) of services core you pointed out solved two problems at the same time.

1.Stuck at signing in "Just a sec..." isue

2.Google Map has freeze in "Maps is not responding"

I was completely surprised. Thank you very much!
[Android Apps and Games] Koloses:
Well to be honest I think it's safe to say that "stable" version is not stable anymore (or at least not as stable as previews) and it's better to use preview builds ;)
[Android Apps and Games] Paz9:
trying to install this on my mate 9, however i cant seem to get it o run...

any help would be much appreciated.
[Android Apps and Games] redj12:
You need to provide more details about your issue. What are the steps you followed to install the app ?
[Android Apps and Games] SirSoviet:
By the way, the version I linked is likely outdated. On this page, click the drop down menu next to microG Services Core. You can find more up-to-date versions there.
[Android Apps and Games] Shadow53:
As said by someone else, we can't help if you don't give us information. For instance...

What version of Android are you on?

Did your ROM previously have GApps installed, or did you clean flash one without GApps?

Does the ROM support signature spoofing? Did you patch it somehow to make it support it? How?

How are you installing MicroG? From the website? From the F-Droid repo? From a zip by me or ale5000?

What is the actual problem? It doesn't install? Can't log in? Ate your hamster?
[Android Apps and Games] Paz9:
stock android

removed gapps via twrp and scripts

dont know how to spoof it. downloaded it from f-droid repo.
[Android Apps and Games] stylemessiah:
You might want to read the opening post on the first page

To help you out quickly, this will not work on a stock ROM, you need either a custom ROM or to patch your current one

Read the first post....
[Android Apps and Games] justmix4:
You should use Tingle just as I did today.
[Android Apps and Games] Shadow53:
Your system need to be patched to allow microg to spoof the signature of Google Play Services, otherwise it won't work. Also, if you're running Nougat, you'll need microg as a system app if you want to use it for network-based location.

To make things simpler, I've put together a general No GApps guide at https://shadow53.com/no-gapps/setup-guide/ and a page specifically for microg at https://shadow53.com/no-gapps/setup-guide/microg/
[Android Apps and Games] Paz9:
i have a stock rom, odex'd (stock'd)

the guide states i need a deodex'd rom? is that a necessity?
[Android Apps and Games] Shadow53:
Yes, if you are patching the ROM using Tingle or Haystack. If you are on Marshmallow and using the FakeGApps Xposed module, you may not need to be deodex the ROM.
[Android Apps and Games] Paz9:
i dont have a deodexd rom, im rooted on stock Nougat

would it still work?

also, are we able to use the Unifiednlp.apk as a standalone? (i.e disable all location from Google Play Services and only allow it for push events an duse Unifiednlp.apk for the location requests?)
[Android Apps and Games] Shadow53:
You can always try to deodex your stock ROM. Otherwise, microg won't be able to spoof signatures.

As for the other question, you cannot have the normal UnifiedNLP installed with Google Play Services, since both have the same package name (com.google.whatever.else). You might try the GApps version on F-Droid, though.
[Android Apps and Games] Paz9:
ah ok thank you, just wanted to know.
[Android Apps and Games] dhnasa:
Does microg connects more often to google or does something else if I am logged in?
[Android Apps and Games] mcdachpappe:
sir, thank you very much for you guide on the mentioned homepage.

ive followed everything as instructed and im all good with mircoG on my oneplus3t with unofficial lineageOS 14.1.

but 1 thing i have to report:

your provided flashable zip which should provide contact- and calendar-syncing doenst work on my device (especially contactsync.apk). my device is an arm64 and you stated that it doenst matter of the arm version - maybe it does in this case.

i pulled my contactsync.apk from my gapps arm64 file and replaced it within your prepared flashable zip for contacts- and calendar-syncing and now im successfully syncing my contacts and my calendar :)

just a litte heads-up for you. if you want i can upload you my created arm64 .zip file

greets
[Android Apps and Games] Shadow53:
Hmm. I pull all of the Google stuff from the OpenGapps GitHub repos, where they are sorted based on architecture. Both the contacts and calendar sync adapters are in the "all" repository, which means that they are architecture independent. If you want to upload the zip, go ahead. I haven't tested the contacts/calendar sync zip since I don't keep those things on Google in the first place.

If you don't mind testing something for me, could you try downloading my latest version of the zip and then check if the calendar sync adapter has permission to access the calendar and the contacts adapter permission for accounts and contacts? For completeness' sake you should check if they have permission with your working modified zip as well.

Thanks for the bug report, BTW.
[Android Apps and Games] toji12:
can we sign in to youtube? i've installed microg but youtube always has error about gg services
[Android Apps and Games] gh0stzk:
What version of gsmcore u installed?
[Android Apps and Games] franky14:
Hello Shadow, I followed your guide and finished the setup it's been 2 days now everything seems to be fine, except for the delay in WhatsApp notifications.

I checked and WhatsApp is registered for GCM as well. Any other solutions which you advise me to follow?

For now I'm reverting to a Gapps package, will try again if you suggest something.

Thanks
[Android Apps and Games] mcdachpappe:
i know i was wondering myself why it wasnt working with your provided zip (calender syncing was working).

the file size of my contactsyncadapter.apk is a bit bigger than yours and your .apk icon wasnt recognized on my los14.1 as well..

maybe it was a bad download but then the whole flash process should fail - i really dont know what went wrong.

for those of you who has the same problem as me there as my zip file attached (flashable)
[Android Apps and Games] Shadow53:
First of all, I don't think I announced here that my flashable zips are now automatically built weekly and have addon.d support. So anyone who used an older zip version will want to re-flash for the addon.d part.

https://shadow53.com/no-gapps/downloads/

If you search this thread, you'll find that other people have had issues with WhatsApp notifications as well. You can go through and see what they tried and if it works for you. It's possible that there's something about the MicroG implementation of GCM that WhatsApp doesn't like... Maybe?

It's possible that I had a bad download when building the zip, too. A bad apk file would still be placed on the file system by a flashable zip. I'll take a look at the zip when I get a chance to get on my laptop later today.
[Android Apps and Games] toji12:
Latest version on github

Update: nvm i know what cause the problem
[Android Apps and Games] Shadow53:
You should share what the problem was in case someone else has the same issue
[Android Apps and Games] Shadow53:
Well, I was partially right: the URL my script uses to download the contacts sync apk file was missing the "?raw=true" string at the end, so it was downloading the GitHub page, not the apk file. I have fixed that and run the build script again, as well as updated the URL for the newer version of the Play Store.

Please try the zip again and let me know if contacts sync works.
[Android Apps and Games] MaurixMystic:
micro g and magisk they are compatible? Always appears CTS profile mismatch on magisk app , safety failed :C
[Android Apps and Games] Dr_DjEnder:
Yep I'm passing right now put the Droid Guard helper as a priv app with 0644 permissions and of course enable magisk hide and you should pass
[Android Apps and Games] mcdachpappe:
i just tried your contact and calendar sync zip file again and it doenst work either.

what i noticed is that my calendar wants to synch (even without sync adapter) after the first log in into my google account. after launching my calendar app (google calendar for example) the calendar sync option in settings - accounts - google disappeares. contacts were never there.

any clue why the first sync with my calendar works but every time after it it doenst work anymore / disappears from settings?
[Android Apps and Games] Shadow53:
I mentioned checking the permissions before. Do the apps have the correct permissions enabled in App Ops/Privacy Guard?

This is, of course, assuming you have MicroG set up correctly, otherwise that'll be the problem.

If you could post a logcat taken while you attempt to sync your calendar/contacts, that might help shed some light on the issue.
[Android Apps and Games] :
This happens to me too but only when trying to use the official Google Calendar app. Everything works correctly with 3rd party calendar apps.

The official Calendar app syncs properly only when ran for the first time. After that it just stops syncing, and also makes Calendar sync disappear from the Google account options.
[Android Apps and Games] MaurixMystic:
I do exactly the same but it does not work for me, and I do not have xposed: s

Can you tell me how you did it and its configuration please
[Android Apps and Games] mcdachpappe:
yes ive set the right permissions like i said before. if i put my own contactsync adapter to system/app and set the right permissions its working. calendar sync is still disappearing after the first time of syncing (see below).

yes this is exactly the case as like mine. only first time syncing with google calendar works and after it its missing in google account options. wasn't able to fix this yet.

[MENTION=7126506]Shadow53[/MENTION]

no sorry i wont be able to get a logcat or anything else because im going now for davdroid (available unbouncing settings) and with business calendar 2 instead of google calendar. i nearly rebooted my device yesterday 100 times to get things working with google sync adapters trying different setups.. im done with it sorry
[Android Apps and Games] Shadow53:
I understand the frustration. Thank you for the initial report. I'll be putting a notice on the downloads page to let people know their mileage may vary.
[Android Apps and Games] Dr_DjEnder:
Oneplus 2

LineageOS basked roms (straight lineage these days)

Remove any sort of root in recovery by mounting system by:

Mount check system

Delete the su file in the following directories if it exists

System/bin/su

System/xbin/su

Flash magisk

Move gms core, micro G framework, and Droid Guard into the system/priv-app folder and set thier permissions to 0644

You should pass but roms vary even with this I still can pass the whole safety net test only passing basic integrity on Seraph08 LineageOS, I could however pass completely on Resurrection Remix (both 7.1.1 based)
[Android Apps and Games] kevinkvothe:
I've been using microG from two weeks or so, but only on crDroid or a deodexed rom using tingle, but, does anybody know a "moderately easy" way to deodex an odexed rom in order to have microG working on it?

Thanks.
[Android Apps and Games] MaurixMystic:
Works fine on Tuga power rom one plus one ..... Beautiful, thank you very much friend, now it works for me, I was missing the permissions and move all app's in system-priv, thank you very much
[Android Apps and Games] toji12:
i flashed your zip but my contacts isnt synced. are there anything i need to do in order to make it sync? pls help