yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] AnonVendetta:
JSYK, the program you're using is based on Snappy Driver Installer, whose homepage is Snappy Driver Installer. SDI is the "OG" that alot of driver updaters/driver packs are based on. As soon as I saw the screenshots, I knew it looked eerily familiar. I've been using SDI for years to keep my drivers updated, but not exclusively. In order of preference, I will use manufacturer/OEM drivers, then SDI, then Windows Update for anything that's missed.

I've generated profiles for 3 devices. No issues generating the profiles, and again, from Linux. I don't feel that there is a need to duplicate my efforts in Windows.

However, I did notice that the IMEI field comes up empty during profile generation, for 2 of the 3 devices. No error, just an empty value. On the legacy phone running stock Marshmallow, the IMEI is shown correctly. On the newer, already mentioned devices, the value is empty but the profiles generate fine. They are running Android 13, which is much more locked down and restricts access to a lot of things, I think this is why.

I checked all 3 xml files, there are no references to IMEI anywhere, not even on the one where it was detected. So this leads me to believe that the profile itself doesn't need/use it, even though your script tries to check the value. Which makes me ask, what is the purpose of querying it?

The newer devices both have active cellular service plans, and all mobile carriers worldwide check this, so it's not an issue of something being wrong with the IMEIs.

The device serial #s are correctly detected on all 3, and are present in the profile xml files.
[Android Apps and Games] ale5000:
The IMEI retrieval is more restricted on newer versions of Android (it is a thing that I will fix later if possible) but still, as you see, IMEI never appears in the profile.

Only the white text is the real profile, eveything else is just additional info for your information.

I have deciced to add additonal info to the script because it can be useful in general (outside microG).

PS: It is strange that it is displayed empty, it should display "IMEI not found" when it fail.

Could you please take a screenshot of the IMEI line? (I just need to see that line)
[Android Apps and Games] AnonVendetta:
Fine, but I will only do so for 1 of the 3 devices, that should be all you need.

Is the IMEI *SUPPOSED* to be in the profile xml file? Or is it your intention that the generated profile doesn't need it? Just want to make sure it's not a case of "it should be there, but isnt", so I can avoid generating again.

White text *WHERE*? That's a vague statement.

Screenshot in a bit...
[Android Apps and Games] ale5000:
No, the IMEI isn't supposed to be in the profile xml file, in fact when you use "sh ./profile-generator.sh > profile-name.xml" only the white text will go in the file.

The output of the script is:

- White text => what should go in the profile

- Green text => informational messages

- Brown text => warnings

- Red text => errors

@AnonVendetta

@tom.android

PS: My script was previously putting the exact serial number in the xml but now it will put an anonymized one.

The serial in the profile is just a template so there isn't any difference, microG only use the serial number to generate another rendomly but with similar characteristics.

The only reason I have added anonymization is that now people can share the xml without giving the real serial number.
[Android Apps and Games] AnonVendetta:
Bit busy ATM, as soon as I can boot into Manjaro, I'll take that screenshot.

The point I was making earlier, is that since the IMEI isn't needed for the profile (as you've said yourself), then there is no apparent point in having the script query it. Which in turn should mean that this screenshot is unnecessary, but I'll provide it for you regardless.

I will pm it to you instead of posting it in this thread, I'm sure you're trustworthy and won't do anything nefarious with it. Although, I would be more concerned if your script needed it, and also required internet access as a precondition of execution.
[Android Apps and Games] ale5000:
Edit: There was an erroneous parsing that it is now fixed, thanks.
[Android Apps and Games] AnonVendetta:
@ale5000: it would appear that the profile does NOT help pass SN on my Note 20 Ultra. Running Lineage 20 (Android 13) gsi. I added the space, then imported the profile, and selected the custom profile. After rebooting, 2 SN apps give a complete fail, same result as not using any profile or Magisk modules.

At first, I tested without the space, by accident. I just forgot to edit the XML before using it the 1st time, that's all.

I will test on my Tab S7 Plus with the same gsi, but I have a gut feeling that the result will be the same.

Also, YASNAC says "basic" rather than "hardware backed". I'm not sure if the gsi has the appropriate patch, but I'm about to ask.

Anything else I can try/might have missed?

Edit: I just got different results on the same device, and with the custom profile selected, SN passes now. All I did was add microg services core/microg services framework proxy/Play Store to the MagiskHide/Zygisk list. I use Magisk Delta instead of official Magisk, which has both hide and zygisk, whereas hide was removed in official Magisk months ago. However, this solution is dependent on Magisk, and therefore root, by extension.

Also, even if I revert to the "automatic/native" profile in microg, and therefore not using the custom profile, SN still passes, but only if those apps are on the hide list. As soon as I remove them and reboot, back to failing. So I think my results have nothing to do with the profile and may be inaccurate. There are too many possible variables where SN is concerned, to be entirely sure.
[Android Apps and Games] ale5000:
@AnonVendetta

SN is supposed to pass as "basic" and not as "hardware backed", since as "hardware backed" it will always fail with an unlocked bootloader.

Unfortunately there are still other issues:

- The first problem is this: https://github.com/microg/GmsCore/issues/1915 ,

so the first time you import the profile it works but the successive times it may fails.

- The second thing is: once the first connection is done the data may be cached by the server (probably cached using GSF ID) so even if you change the profile the changes are ignored by the server.

The thing that usually work is:

- Disable internet (both mobile and wifi)

- Reset the data of microG GmsCore (not just cache also data) to reset the GSF ID and all its data

- Import the profile (only one time)

- Re-enable internet

- Once you pass inside microG GmsCore, also reset the data or cache (I'm not sure about this) of the apps that check SN and you should be OK.

The final note is:

The ROMs should be able to pass SN; many ROM are ready to pass SN so just the profile is enough but if the ROM has some change that break SN (like a visible su binary or also other changes) it will never pass unless these changes are reverted.

Disabling SELinux is one of the thing that break SN.
[Android Apps and Games] AnonVendetta:
So, I asked in the LOS thread about the patch, but no answer yet. But since YASNAC says it's using "basic" rather than "hardware attestation" then maybe it has the patch already. Instead of trying most of your suggestions, I'm going to factory reset in twrp (wipe data/cache), then try again.
[Android Apps and Games] ale5000:
Ok but remember to do the thing of disabling internet otherwise you will run in the same issue.

If you don't disable internet, then in the moment you load the profile is already late.
[Android Apps and Games] xda1user:
Hi everybody! I was trying to find an answer to this question by search but was not able to do so.

Why MicroG needs to be a privileged app (installed in /system/priv-apps)?What special permissions it requires? Can necessary permissions be granted otherwise? I installed it with "adb install" and all boxes are checked in Self-check but it does not work. Thanks
[Android Apps and Games] ale5000:
These are the permission:

<permission name="android.permission.CHANGE_DEVICE_IDLE_TEMP_WHITELIST" />
<permission name="android.permission.INSTALL_LOCATION_PROVIDER" />
<permission name="android.permission.MANAGE_USB" />
<permission name="android.permission.UPDATE_APP_OPS_STATS" />

You will never get everything working with a simple adb install.

Everyone can do what it want but if you are going that route I suggest to give up instead of having an half-working setup.

To make it working in this way require that you patch the ROM, but if you can patch the ROM than it is easier to install in the priv-app folder.
[Android Apps and Games] kurtn:
What exactly doesn't work? Last time i talked yo marvin, he had microG and it's companion apps as user app. Usually NLP doesn't work that way.
[Android Apps and Games] xda1user:
Thank you for your replies. Apologies I was not clear.

I installed all three MicroG apps - Services Core, Services Framework Proxy, FakeStore. Was able to connect to Google account. But none of apps that I tried start. Gmail, Tandem that I remember, some others. They say "No Google services found" and quit.

About specific permissions - it does not seem manage usb, update app stats needed to run, it should be able to run without it? To clarify, I dont need NLP, just need an app to start.
[Android Apps and Games] ale5000:
It require signature spoofing, not all ROMs include it and the ones that include it may restrict the use to privileged system apps.

In addition without "android.permission.CHANGE_DEVICE_IDLE_TEMP_WHITELIST" the notifications of, for example, Gmail will likely be delayed.
[Android Apps and Games] kurtn:
For Gmail there are other apps like K9 or fairEmail.

Tandem starts even without microG but doesn't react on create account / continue with email - can't you create an account?

Edit: Tandem is strange. With microG as system app it allows account creation (email). MicroG as user app throws a "get Google play services" message.
[Android Apps and Games] ale5000:
Are you sure "signature spoofing" is working when microG is a user app?
[Android Apps and Games] kurtn:
Yes. I checked in self-check. And warnwetter app usually cries without play services.
[Android Apps and Games] xda1user:
Answering my own question. In recent versions they added package visibility filtering so other apps can't see GMS. To run MicroG as a user app install with

pm install --force-queryable gms.apk
[Android Apps and Games] ale5000:
It must be done the same also to FakeStore otherwise it won't work.
[Android Apps and Games] Paolo83:
Hi Friends. A question. As we know, Google pay (wallet) doesnt work on microg. Is there an app or a way to can pay with microg rom? For example, Curve app, Is It working or do It Need Huawei service to pay with NFC? I want to switch to a microg rom but for me NFC payment are Key at the Moment. If anyone has experience and can enlighten me... Thanks
[Android Apps and Games] Master One:
I have been looking for a solution to use NFC payments without Google Pay for a very long time, but only individual (local) banking apps came up. There is a thread on the Revolut forum leading back years without any progress. Most of them just go the easy way with relying on Google Pay, because pretty much every Google user is using it anyway. Just too bad, but still in the hope that something comes up for us Google holdouts.
[Android Apps and Games] kurtn:
Get a flip cover with small pockets. Stick some NFC payment or credit cards into.
[Android Apps and Games] Master One:
Had that before, but got rid of it in favor of the ordinary silicone cover that came with the phone, because it's a lot more convenient to handle this way.

I have my little wallet with card with me at all times, it is manageable, but of course just using the phone would be easier.
[Android Apps and Games] Aroch925:
So i figured out that it was the new update that was causing the FC's. Your xprivacy settings work fine on 3.99 but they don't work on 4.0
[Android Apps and Games] wis3m0nkey:
Ah OK thanks for heads up, not gonna update :p
[Android Apps and Games] Over.ReWrite.SP10:
It's just due to my buggy unofficial KitKat kernel.
[Android Apps and Games] benstyle1:
Hey,

after a full wipe i reinstalled omnirom 5.1 with the latest microg packages from fdroid. the following problem occures since the beginning, when i use push notification tester:

D/GmsGcmMcsSvc( 2515): Connect initiated, reason: Intent { act=org.microg.gms.gcm.mcs.RECONNECT flg=0x14 cmp=com.google.android.gms/org.microg.gms.gcm.TriggerReceiver (has extras) }
W/GmsGcmMcsSvc( 2515):	at org.microg.gms.gcm.McsService.connect(McsService.java:226)
W/GmsGcmMcsSvc( 2515):	at org.microg.gms.gcm.McsService.handleMessage(McsService.java:381)
W/GmsGcmMcsSvc( 2515):	at org.microg.gms.gcm.McsService$HandlerThread.run(McsService.java:131)

Have i done something wrong? MicroG's selftest says everything is okay.

Thanks!

Edit:

I've found some more relevant log entries

W/ActivityManager( 2144): Permission Denial: Accessing service ComponentInfo{com.google.android.gms/org.microg.gms.gcm.PushRegisterService} from pid=3523, uid=10059 requires com.google.android.c2dm.permission.RECEIVE
W/System.err( 3523):	at com.google.android.gms.gcm.GoogleCloudMessaging.d(Unknown Source)
W/System.err( 3523):	at com.google.android.gms.gcm.GoogleCloudMessaging.register(Unknown Source)
[Android Apps and Games] Shadow53:
It looks like you haven't given it the permissions to use Google Cloud Messaging...

Have you enabled device checkin and Google Cloud Messaging? Those two options are outside of the self test settings. I have a screenshot to make it clear, but for some reason I can't upload it. Basically, the main screen has:

Self Check

Enable Device Checkin

Enable Google Cloud Messaging (requires above to be enabled)

Cloud Messaging Heartbeat interval

....

Make sure those are enabled AND that any apps that use GCM are installed *after* installing microG, otherwise they won't have access to that feature.
[Android Apps and Games] masmoe:
The Qibla Locator function in this ( https://play.google.com/store/apps/details?id=com.bitsmedia.android.muslimpro )app not working.

Could someone give me hints to solve the problem?
[Android Apps and Games] MaR-V-iN:
Looks like a connection issue. Firewall? Also note that there is a lot missing in the log that might be relevant

That's because you had an application installed that uses GCM before installing GmsCore.
[Android Apps and Games] Jonas Cardoso:
Why only 4.4+?The most of the cell weak has only to ICS 4.0, support the lower version android
[Android Apps and Games] xiamcm:
Some apps use Google Maps Android API to display a map, how can I make such apps work smoothly without gapps?
[Android Apps and Games] abeloman:
Same here... I use runtastic and location works fine, but I can't see any map even flashing maps API v1
[Android Apps and Games] yoppielee7:
Support google play games?tnx...
[Android Apps and Games] dic1911:
not supported for now.

btw, why not check the wiki which was mentioned in OP?
[Android Apps and Games] BatDroid:
I m using on jb too.

OK for me
[Android Apps and Games] kamil79123:
Can I use this modification and have acces to Google Play Store in same time?
[Android Apps and Games] dic1911:
use the flashable zip from previous reply
[Android Apps and Games] kamil79123:
Is microG avaible to update via for example F-droid app? (No Unified, just microG).

Wysłane z mojego LG-E610 przy użyciu Tapatalka
[Android Apps and Games] Primokorn:
https://f-droid.org/wiki/page/Known_Repositories
[Android Apps and Games] benstyle1:
That did it!

Thank you both and sorry for bothering you.

Greetings
[Android Apps and Games] kamil79123:
I mean in app, becasue F-Droid app does not recognize these repositories.
[Android Apps and Games] Primokorn:
It does.
[Android Apps and Games] Paolo83:
yes.

have you ever tried "CURVE"? in huawei works but i think that it need huawei service, so probably in microG doesnt work. let me know if you try
[Android Apps and Games] Master One:
You mean Curve? I have just taken a look and the app details do not mention any NFC functionality, but it's mentioned that the Curve card can be added to Google and Apply Pay, so that does not help in any way. Why would you think this needs Huawei service? Because Curve has nothing to do with Huawei, unless you mean a difference "CURVE".
[Android Apps and Games] twolitrepinto:
Hi.

I'm pretty sure I already know what the answer is but i'll ask anyway.

Is there any way to pass strong integrity using microg?

I'm currently passing device and basic but it would appear that my bank may require strong.

I'm running Samsung S20 5G (X1S) With BeyondRom 6.1 (A13), MicroG, Magisk 26.1, Lsposed, FakeGapps, Shamiko and Universal Safetynet fix 2.4 displax mod 1.2 (for microg).

Any help appreciated.

Thanks
[Android Apps and Games] ale5000:
Only if you use a custom ROM that ship with microG and can relock the bootloader (you can't have Magisk).
[Android Apps and Games] AnonVendetta:
I found a Magisk module the other day, that is capable of passing the strong integrity check. Can't remember the name of the mod, I'll have to dig up the zip file I downloaded.

However, the description warned of likely Android misbehavior as a result of using it. I didn't notice any obvious adverse effects.
[Android Apps and Games] Psk.It:
may be this one?

but it does not pass safety-net check
[Android Apps and Games] pvdeejay:
Hello,

I am using LineageOS 20 light on Xiaomi Redmi 9 code name Galahad (Android 11 vendor).

I am coming from android 12 AOSP. That rom had MicroG preinstalled. I have dirty flashed LineageOS 20 light GSI and rooted wia magisk 26.1 and installed MicroG by using MicroG Installed revived https://github.com/nift4/microg_installer_revived/ .

Everything seems to be working, within MicroG self-check I do have all the checkboxes checked, device registration is working, GCM is sending push messages.

My aim is root with magisk, install MicroG and get the original play store working so I can stay as much as possible to flos with the only exception that I'll be able to run the Revolut app.

I have tried ripping Phonesky.apk file from NikGapps and followed MicroG Installer instruction to put into /data/adb . When flashing MicroG Installer Revived again, the Phonesky.apk is pushed to the /system/priv-apk on the next boot, however playstore is reporting it's offline and has no internet access.

Can anyone give me a hint what I might be missing in order to get this to work?

Greetings

Peter
[Android Apps and Games] kurtn:
Maybe have a look at minmicrog minaddon playstore
[Android Apps and Games] pvdeejay:
Great, I have used standard variant and now I do have both MicroG and the original play store working.

In Android 12 this was enough to get Revolut to work as well. However now in android 13 it launches, however it shows black screen after logging in and it's not useable at all.

I'm looking into it although I am afraid i won't be able to improve it on my own.

Thanks for the hint, you have helped me.
[Android Apps and Games] AnonVendetta:
I'm looking for a guide to set up MicroG on Samsung stock firmware. I did it long ago, on Marshmallow, but the device I want it on is running Android 11 (13 is available for it, but I don't want to update). I'm aware that there will probably be some GApps debloating involved, but not sure how much is safe to remove, since newer Android versions are more complex. I used to just rip out almost every system app that had "google" anywhere in the package name, prior to pushing the MicroG apks and applying a sig spoofing patch.

I know how to set up MicroG on a gsi rom, that's trivial and low effort, since they are usually already GApps-free and have sig spoofing built in.

Also, is there a known patching method to apply sig spoofing without LSPosed/Magick?
[Android Apps and Games] kurtn:
[Android 12 / LineageOS 19.1] Manual patch to services.jar for signature spoofing

I haven't seen this shared anywhere but it's really quite straightforward if you know what you're doing. Maybe it helps someone to post it here. The next section is only for completeness, feel free to skip past it to get to the gist of it...

xdaforums.com
[Android Apps and Games] Psk.It:
if you have magisk you can try the following:

# flash LPosed (enable also zygisk magisk optional)

# install Fake-Gapps (follow steps to enable it)

# install De-Bloater

from debloater search "Google Services" and "Google Framework", disable both

download microG-Gapps, not flash, just unzip it and copy system/etc and system/framework folders to the "/data/adb/modules/De-bloater/system"

download microG + proxy make 1 folder for each and place them under "/data/adb/modules/De-bloater/system/priv-app"

(if some of options do not become active, install microG, retry, once checked uninstall updates for microG)

this should be all
[Android Apps and Games] Vovan2k:
Lineage v18.1

Installed Magisk 26.1

Enabled Zygote

Installed Xposed (LSPosed v1.8.6)

Installed FakeGApps v4.2

Installed MicroG following this guide

All enabled inside microG and restarted

"Ping mtalk.google.com" from terminal app works.

Push Notification Tester reports problem with step "Device registration and Push notifications" fails.
[Android Apps and Games] ale5000:
The server part of the "Push Notification Tester" was shutdown so the app will NEVER works correctly again.

More info: https://github.com/bbindreiter/PushNotificationTester_App/issues/8
[Android Apps and Games] Vovan2k:
Thx.

Its not just this app any app is same YouTube downloaded from market for instance can't see google services.
[Android Apps and Games] ale5000:
If you haven't installed PlayStore then you have to install FakeStore (this is mandatory).

Also if you have installed the apps before microG GmsCore you have to remove them and reinstall them (clearing app data isn't enough).
[Android Apps and Games] Vovan2k:
I have Fake_Store v0.2.0 installed and installed apps afterwards, still apps not registering in MicroG cloud messaging and apps don't see the google services.
[Android Apps and Games] Psk.It:
download latest microG beta (v0.2.28) and apply changes i suggested from microG-Gapps module (it brings permission and patched maps.jar for localization)

push notifications should work, and location services are embedded now (no etra provider needed)

bit, if you are already on lineage, why don't you check directly for lineage-4-microg, divestOS, iodee or librem?
[Android Apps and Games] Psk.It:
if i am no mistaking, using fake-gapps you should enable it form each app you install

(this is related to how module patching works: per app, not system-wide)
[Android Apps and Games] Vovan2k:
I have noidea what iodee or librem are.

I try to download LineageOS for MicroG v18.1, but they pulled it off original website so i have no idea where to find anymore.

Where i look for option to enable/disable them?
[Android Apps and Games] Psk.It:
about rom:

/e OS is the initial rom, they started de-googling

LOS4microG applied /e OS principles to lineage

DivestOS is a kind of LOS4 that enfoce privacy principles

iodeè is a company that rebrands some phones with a custom version of LOS4

librem more or less the same as iodeè (a custom version of LOS4)

there are also other roms supporting signature spoofing you can easily install microG (crDroid, arrow, syberia, carbon, etc)

about module's settings open it, top-right corner there should be "3dots" with settings menu

(you can also try the steps described here)