yashsingh1/xdaforums huggingface dataset:
[Miscellaneous Android Development] marcdw:
[MENTION=5994172]digitman xxx[/MENTION]

I already have Mahdi KitKat with microG set up (from a long time ago) but I'll flash another KK ROM with latest installer from here and give it a test. See if I can reproduce your issue.

EDIT: I may be lost here. Were you trying NanoMod-microG on KitKat? If so, I've never thought of trying that. Wasn't sure if it's compatible.

On Nimax Slim Fit (a debloated G3 stock MM ROM) I used NanoMod-microG (I think). One or two of the geocoder checkboxes will be unchecked. But when I run something like GPS Status & Toolbox or even Snapchat (location-heavy apps I call them) then check back one or more boxes become checked. Like it needed a kick.

However, on my Axon 7 running Dark ROM Nougat with NanoMod-microG I was getting the same geocoder backend unchecked boxes. All boxes were checked in the beginning but later, not. Didn't notice at first until I saw Chronus weather widget constantly refreshing the location.

crDroid N with ale5000's installer all boxes are checked and stay that way. Same for Mahdi and ParanoidAndroid LP.

Might have to do some side by side testing if I can.

LG G3 D851, PAC-MAN LP ROM, MultiROM, Tapatalk 4.9.5
[Miscellaneous Android Development] digitman xxx:
thanks for suggestion, already setup first as user app then try as system app, you know by this different ways got GMS core working properly my only problem always with UnifiedNIp status .

---------- Post added at 17:56 ---------- Previous post was at 17:50 ----------

yup bro, this is a long story since a week trying everything i know to got UnifiedNIp working but nothing success Thanks for help and appreciated
[Miscellaneous Android Development] ale5000:
Probably you have conflicting network location packages.

Can you please run these three commads (separately) and send me the results?

ls /system/prinv-app/

ls /system/app/

ls /system/etc/permissions/
[Miscellaneous Android Development] :
I cannot do it now, I need google contact sync, but google addon install allways failed with signal 4, so I returned to original gp services :( sorry
[Miscellaneous Android Development] ale5000:
The commands that I have wrote doesn't do any change to the system, they just list the content of the folders.

They can work also with GApps.
[Miscellaneous Android Development] :
MIUI has its own network location provider. I am 99 percent sure of this. MIUI allows for High Accuracy, Battery Saving and Device only location options even without any proper Gapps installed. And usually, installing Gapps as a third party app side-by-side causes a little bit of a hiccup during services that utilize location.
[Miscellaneous Android Development] ale5000:
For the ones that have problems with location: Could you please try this?

- Make a backup

- Remove /system/priv-app/com.qualcomm.location

- Remove /system/etc/permissions/com.qualcomm.location.xml

- Install microG unofficial installer

- Restart

- Test and report back
[Miscellaneous Android Development] ale5000:
I have released new versions of microG unofficial installer and Google Sync Add-on.

[MENTION=8388810]akeif[/MENTION] [MENTION=2425856]damned91[/MENTION] [MENTION=5451494]ninjanmizuki[/MENTION] [MENTION=5994172]digitman xxx[/MENTION]

When all of you have time it would be nice if you try the latest alpha versions where I have hopefully fixed all problems and report back.

[MENTION=7585095]hungvip2001[/MENTION]: About your question I prefer to ship unmodified original files but I will add an option to install the latest PlayStore in the future.
[Miscellaneous Android Development] digitman xxx:
Thanks for your Concern, now I am on stock KK with gapps pre-installed. That because I need GPS working in this device right now

Will give it try with custom rr6.0.1 asap. Then report back.

Edit: what about your previous post #387 is this alpha release related to what you mentioned in your post? otherwise are we still should delete things you mentioned above befor or just flash latest alpha.?
[Miscellaneous Android Development] ale5000:
Released new version: microG unofficial installer 1.0.5 beta

Released first version: Google Sync Add-on
[Miscellaneous Android Development] Primokorn:
Tested with Lineage OS on my Nexus 5.

It's easy and fast. Thanks for saving us time!

Now I only miss a Tingle.apk or a way to survive dirty flash :)
[Miscellaneous Android Development] joelh:
With this installation method on crDroid 7.1.1, I am unable to pass SafetyNet. Newest 1.0.5 beta

Edit: are there any steps required to ensure the Google Play Store doesn't auto update itself after flashing this installer?
[Miscellaneous Android Development] ale5000:
Updated: microG unofficial installer 1.0.6 beta

[MENTION=4958579]Primokorn[/MENTION]: I will add a survival script to the microG unofficial installer.

It isn't yet ready but it would be nice if someone offers for testing and reporting back for when it is ready.

[MENTION=7660770]animeme[/MENTION]:

1) SafetyNet include the base test + CTS profile match.

The first usually pass, the second is more complicate.

There are some things to check:

- Does the ROM hide the unlocked bootloader?

- Have you removed the su binary?

- Is the ROM signed?

2) To disable auto-update of Play Store, run from the pc connect to the phone:

adb shell pm disable com.android.vending/com.google.android.finsky.autoupdate.ReschedulerUsingJobScheduler\$CheckPreconditionsAndAutoUpdateJobService
adb shell pm disable com.android.vending/com.google.android.finsky.autoupdate.ReschedulerUsingAlarmManager\$CheckWifiAndAutoUpdate
adb shell pm disable com.android.vending/com.google.android.finsky.autoupdate.ReschedulerUsingBroadcast\$AutoUpdateRecheckForBroadcast

IMPORTANT: I haven't tested properly the code to disable auto-update so I cannot grant it work perfectly.
[Miscellaneous Android Development] joelh:
[MENTION=5627087]ale5000[/MENTION] I'll edit this later with more info, but yeah, system su is definitely gone, and Magisk Hide should handle hiding bootloader state. As far as being signed, I couldn't say. It's the last official CM13 nightly for my device.
[Miscellaneous Android Development] Primokorn:
Actually I was talking about Tingle and I guess it can't be done.

No problem to give a try to the survival script as soon as it's ready (and as soon as I have a working device without Google apps).
[Miscellaneous Android Development] ale5000:
For Tingle it is more complicate because it needs a lot of time for patching inside the phone, but I will try to optimize it in the future.
[Miscellaneous Android Development] joelh:
The play store crashed a bunch of times for me, so I plan to replace it with BlankStore. I'm not sure if the real client is actually worth keeping if it requires a lot of workarounds/maintenance to keep it functional.
[Miscellaneous Android Development] ale5000:
[MENTION=7660770]animeme[/MENTION]: The bundled version works (after blocking auto-update) and even allow buying apps.

BlankStore isn't developed anymore (except maintenance fixes), so until there is a good alternative there isn't any real choice.
[Miscellaneous Android Development] joelh:
Did you experience similar issues before blocking auto update? I was able to download one app, and whenever I searched for another after that, it force closes.
[Miscellaneous Android Development] ale5000:
[MENTION=7660770]animeme[/MENTION]: No, but I suggest to block auto-update, uninstall the update that probably got already installed and clean data of Play Store.

It should fix the issues.
[Miscellaneous Android Development] joelh:
I'm getting an error:

"CANNOT LINK EXECUTABLE "/system/bin/sh": cannot locate symbol "__register_atfork" referenced by "/system/bin/sh"...
Aborted
[Miscellaneous Android Development] ale5000:
[MENTION=7660770]animeme[/MENTION]

Try using this before other commands:

adb root
[Miscellaneous Android Development] joelh:
adbd is already running as root

:(
[Miscellaneous Android Development] ale5000:
Maybe "sh" on your phone isn't working properly.

Try to use terminal directly on the phone and digit "su" then inside "su" the "pm" commands without the "adb shell" part.
[Miscellaneous Android Development] joelh:
Well this is interesting. When I enter "su" in TWRP's terminal, I get the same error I got earlier on PC, except it references /system/xbin/su.
[Miscellaneous Android Development] ale5000:
[MENTION=7660770]animeme[/MENTION]: I don't think it will work from recovery, you should be inside Android.
[Miscellaneous Android Development] joelh:
Yep, I just tried it, and it works from there. Thanks!

---------- Post added at 07:06 PM ---------- Previous post was at 06:07 PM ----------

It looks like there's more to this. I'm running crDroid Android N, 7.1.1. I successfully used each of the three commands to stop the auto-update, but I'm not sure there was an update that caused the FCs. Every time I use the search box, after typing at least two characters, the Play Store closes. I can avoid this by trying to browse recents and categories, eventually narrowing it down to the app I'm looking for, but I can't search for the app directly.
[Miscellaneous Android Development] ale5000:
[MENTION=7660770]animeme[/MENTION]

The phone must be inside Android (not the recovery).

From the pc run:

adb uninstall com.android.vending

It will uninstall the update and leave the original Play Store.
[Miscellaneous Android Development] joelh:
It didn't update. I ran the commands from within system, not recovery, as you said before, and it worked.

Edit: for whatever reason, too, adb on my PC doesn't recognize my phone unless it's in recovery. Adb enabled of course, and MTP.

It seems that only certain letters cause the play store to crash. Just an "s" kills it, for example, but "x" is okay until I follow up with "d". Idk if that's significant in any way, but it definitely makes me curious :confused:
[Miscellaneous Android Development] hungvip2001:
Will install right now and feedback soon.
[Miscellaneous Android Development] :
[MENTION=5627087]ale5000[/MENTION]

ROM - MoKee 7.1.2 20170727 Nightly

Device - Mi3w cancro

Root - SuperSU

Mods - none

Flashed the latest microG alpha without any problems. Contacts and calendar sync works correctly. Location works correctly. Playstore syncs and is able to download/update apps.

I don't need safetynet and hence did not test it.
[Miscellaneous Android Development] ale5000:
Edit: Message deleted.
[Miscellaneous Android Development] ale5000:
[MENTION=7016424]nijihana[/MENTION] [MENTION=6668929]franky14[/MENTION] [MENTION=6637183]seba3651[/MENTION]

I don't remember to what one I have already replied but the latest version should fix almost all problems.

Please test and report back when you have time.

[MENTION=562458]okias[/MENTION]: I have released the sources on GitHub, there isn't "yet" an option to not install PlayStore but you can easily rebuild the installer with minor changes now.
[Miscellaneous Android Development] ale5000:
[MENTION=5114941]dan.man[/MENTION] [MENTION=695583]triad88[/MENTION]

See message above.
[Miscellaneous Android Development] ale5000:
The latest alpha do it automatically.

PS: The backup is always suggested.
[Miscellaneous Android Development] ale5000:
The latest version should hopefully fix all problems.

Please test and report back when you have time.
[Miscellaneous Android Development] ale5000:
I'm not sure about "searching for backup", it has happened also to me.

I have enabled Safety Net in microG settings and then it worked but I'm not sure if it was just a coincidence; still it is worth trying.

What is the exact problem of Google Maps?
[Miscellaneous Android Development] ale5000:
New version of Google Sync Add-on released.
[Miscellaneous Android Development] ale5000:
The NON-AROMA LIVE SETUP is now included in the latest version here.

It doesn't use aroma but still allow to choose options while flashing.

Inside the flashing procedure it can be controlled with the volume +/- keys.

I would like to get feedback and opinions.
[Miscellaneous Android Development] digitman xxx:
TESTED

Rom:Stock KK 4.4.2 Gapps free

Device:SM-G7102 samsung galaxy grand2

Root:SuperSU

sorry to say that i am still face my regular issue with UnifiedNIp a/p 1st&2nd attached also try to search about apk you mentioned before in system/app or priv-app to delete it and it's permission but found nothing so attached my system apps list in both folder app & priv-app may be that helped (attache 3-7)

Note: i thought it's my rom issue as it stock rom and may be something goes wrong when make it Gapps free also i am not successful to set up microG UnifiedNIp on it before.

So, and as i successful to flash Nanomod-microG on my RR 6.0.1 as a Magisk module but failed to flash it as System mod before, i will give your new aroma alpha a try hoped it successful this time
[Miscellaneous Android Development] ale5000:
[MENTION=5994172]digitman xxx[/MENTION]: Could you please also post a copy of /system/framework/framework-res.apk ?
[Miscellaneous Android Development] digitman xxx:
here you are.

Thanks bro, your assistance and patience is highly appreciated.
[Miscellaneous Android Development] ilikenwf:
Anybody else having images not show in hangouts lately? Could be the rom I switched to on my Nexus 5x (mainline Lineage OS weeklies) or it could be microg...or hangouts...
[Miscellaneous Android Development] marcdw:
It's like that on all of my microG setups (KK, LP, N).

I'm just happy that a workaround was found to get it to run. Images not showing up doesn't bother me _too_ much.

Hmm, I just might run a log while using it and see if anything interesting shows up when trying to view an image.

I noticed if I tap on one of the blank thumbnails something does actually pop up though it's completely transparent.

ZTE Axon 7 A2017U, DARK ROM, Tapatalk 4.9.3
[Miscellaneous Android Development] ilikenwf:
I have noted that I can send images - and my recipients do get them. I can't see those either. If I look under chats in gmail (web browser on PC), the images are there in the threads, though.

Voicemail within hangouts appears broken too. Haven't tested it yet in the dialer app, after installing it.

Other interesting caveats in my situation (Nexus 5X, Project Fi, Lineage OS Weekly) include that I had to use aroma to install a select few apps - dialer, maps, hangouts, etc, so they're system apps. After that I just reinstall microg to replace gsf. All this enables the project fi features built into the google dialer. The Fi app itself does work with microg, too.
[Miscellaneous Android Development] ale5000:
[MENTION=5994172]digitman xxx[/MENTION]: All seems fine, it is strange that it doesn't work.

It would be nice if you could take a logcat (full from the start of the phone to the boot complete phase), maybe there are some hints inside it.
[Miscellaneous Android Development] levone1:
Just want to report that I got it working on Stock Sony Nougat, (Xperia XA)... Thanks - https://xdaforums.com/xperia-xa/themes/microg-t3651543 Any thoughts or input appreciated, as far as what I wrote at the end...
[Miscellaneous Android Development] JuniorCaesar:
i am trying to get it working on Xperia M2 5.1, but microg settings force closes.

what patch did you applied on framework.jar(or do i need another setting to get it work)?
[Miscellaneous Android Development] ale5000:
New version of microG unofficial installer released :)

Now you can select the market app.

The full changelog is on the third post as always.
[Miscellaneous Android Development] levone1:
Signature spoof patch. I think it can be done with Xposed, but I used Tingle - https://xdaforums.com/android/development/tingle-fork-needle-t3438764
[Miscellaneous Android Development] hungvip2001:
The new version is very good. Thank you so much. Keep working:good:
[Miscellaneous Android Development] digitman xxx:
thanks bro, will handle this soon and report back. but may try first with another custom mm rom
[Miscellaneous Android Development] JuniorCaesar:
i am using FakeGapps module, anyway i am gonna try your steps, hope it works :)
[Miscellaneous Android Development] hungvip2001:
Tried 1.0.20 and 1.0.21 version, my microG setting reset after some hour, play store error RH-01. Any idea?
[Miscellaneous Android Development] nwlun:
Play store upgraded to new version?
[Miscellaneous Android Development] ale5000:
Have you enabled Google device registration?

It is needed for Play Store.
[Miscellaneous Android Development] hungvip2001:
[MENTION=5627087]ale5000[/MENTION]

Yes, i do. Enable like this screenshot and then microG setting reset after few hours. I need to set it manually again.
[Miscellaneous Android Development] hungvip2001:
Yes
[Miscellaneous Android Development] Chrischn1:
Thank you [MENTION=5627087]ale5000[/MENTION] for you work, it's really great!

Actually, I am using a phone without any Google apps, also replaces the Play Store with the Yalp Store, that you can download on F-Droid.

Can you maybe prove a flashable zip without the Play Store, since many people would not need it?
[Miscellaneous Android Development] ale5000:
It is already possible, if you use the live setup and select FakeStore, then Play Store is removed and FakeStore is installed.
[Miscellaneous Android Development] drbabusaha:
how to update the previous version to current version?

do i have to clean install rom and installer or dirty flash rhe new version over old version?

u can provide uninstaller zip.
[Miscellaneous Android Development] digitman xxx:
flash RR 6.0.1 then flash latest microG unofficial installer 1.0.21 beta and everything working as expected thanks a lot [MENTION=5627087]ale5000[/MENTION] for good work, helping, patience and everything

note: although gps (high accuracy mode) working flawlessly my network location depend on wifi (battery saving mode) give me wrong location error about 200 km any idea about that.? using SatStat apk for defined my location.
[Miscellaneous Android Development] ale5000:
My installer already clean old files automatically every time before installing new ones, you can just flash it how many times you want.
[Miscellaneous Android Development] ale5000:
It usually depend from the location backend.

You can disable the Mozilla one in microG settings and take another from here to check if there is any difference.
[Miscellaneous Android Development] fastguy:
Hi, I'm trying this on a Chinese port tomorrow for Note4 which does not come with gapps.

latest version installed fine except location (guess due to rom including Baidu location services ).

But Google sync add on is refusing to install complaining about unsupported android version. It seems latest version does not support android 6.0.1 , but I can't find older version to download neither. (that support 6.0).

I found archive folder in androidfilehost but no permission to access it

any help is appreciated, I don't want to install gapps :)
[Miscellaneous Android Development] ale5000:
Hi,

I will see what I can do but I need the full list of files and folders inside:

- /system/app

- /system/priv-app

- /system/etc/permissions

(just the names, not the files / folders).

You can obtain them with these commads:

ls /system/app

ls /system/priv-app

ls /system/etc/permissions

And a copy of this file:

/system/framework/framework-res.apk

------------------------------------------------------------------------------------------------------

I have temporarily disabled the support for Android 6 because it weren't working, it will return in the next version.
[Miscellaneous Android Development] super-drone:
Hi, I'm kind of new on this micro G thing, but I heard about that and I came running to install this mod, but I did everything right as said on installation guide and everything appears to be installed (see on attached screenshot) but micro G app isn't showing on launcher, I uninstalled all google play/play store services before flashing this mod, I did something wrong? I'm running latest aosp extended.
[Miscellaneous Android Development] super-drone:
Sorry attached wrong screenshot, here is the one who shows that everything on flashable zip is installed
[Miscellaneous Android Development] fastguy:
Here is a ZIP file with txt files and the framework-res.apk file. let me know if you have trouble downloading.

https://drive.google.com/open?id=0B9eRzQnrWjurYUpBa3o4VEN2UGc

For Google Sync Adapters, Calendar adapter 5.2.x installed & loaded file. Contacts Adapter 7.1.1 didn't work, I tried version 6.0.1 and it works fine as well after giving necessary permissions.
[Miscellaneous Android Development] super-drone:
I just installed latest microG gms core and it's working but when I try to sign in google it keeps logging in forever
[Miscellaneous Android Development] fastguy:
It's working for me. Did you do the signature spoofing patch? (or Xposed module?)

Also, i never really get it to work using normal installation method, so I'm using the "unofficial microg installer" here on XDA. It worked except Google Sync adapters for which I've mentioned the fix above.

Only issue is UnifiedNLP now, which I think is related to Chinese providers embedded into the system (Baidu) as far as I can see from the strings in framework-res.
[Miscellaneous Android Development] super-drone:
Yeah my ROM is prebuilt with signature spoofing and I'm actually on nougat so no xposed... it's strange because every option on "self check" was marked with exception of UnifiedNLP, but thanks anyway, I installed gapps pico again and will see if I can find a solution until then I'll stay using this drain battery service

EDIT: sorry I quoted you last post, I was convinced that you was answering me lol
[Miscellaneous Android Development] :
Are you sure that the prebuilt signature spoofing was actually working? I am asking because I have just experienced a situation where a ROM was marked as supporting signature spoofing too, yet apps like YouTube were still complaining about Google Play Services missing. I have only fixed it by using Tingle to patch the framework. My guess would be that signature spoofing was not implemented correctly in the ROM.
[Miscellaneous Android Development] ale5000:
On ROMs with builtin signature spoofing, it is usually disabled by default.

You should usually enable it in developer settings and sometimes also manually enable the signature spoofing permission on GmsCore.

PS: I'm still looking for the other issues.
[Miscellaneous Android Development] super-drone:
Thank you so much guys, I clean installed everything and now it's working perfectly, except by some apps doesn't appear on play store, I don't know if it's because is an old version, but some apps isnt showing, I normally would live with that installing them from apk mirror but the problem is there's some themes I bought and I'd rather not pirate them. Is there a way to update play store to get these app working? Again thanks for the help
[Miscellaneous Android Development] ale5000:
I will add it in the next version, or to do it now you can just replace the Phonesky.apk inside /system/priv-app/Phonesky/
[Miscellaneous Android Development] ale5000:
Could you please try to remove

/system/priv-app/OfflineNetworkLocation_Baidu

(after a backup) and tell me if there is any improvement?
[Miscellaneous Android Development] fastguy:
just as a quick response, I tried it before but it didn't help . I will test again.

update: confirmed now. UnifiedNLP still not registered in system.
[Miscellaneous Android Development] raptorddd:
tried but kept getting playstore RH-)01 error .. i clean app..download/microg/playstore and same thing... i also would like to note that i have LG G4 and for some reason the only spoofing i can get it working is this. FAKEGAPPS1 i have uploaded file... the other if i use it doesnt work.

ill try doing the tingle tomorrow
[Miscellaneous Android Development] :
In that particular ROM there was no additional setting in the Developer Options. I only had to enable the permission manually in microG. The apps still complained about no Play Services though, until I patched everything with Tingle.

I did not really investigate more into it as this is a very old tablet that I use strictly for watching YouTube, so as long it was working fine after Tingle, I did not bother to touch the settings any more.