yashsingh1/xdaforums huggingface dataset:
[Magisk] Keule-Tm:
Yes you can.

The order of installation doesn't mean anything, it's the precision (or the certainty of it) which counts.
[Magisk] xcode22:
Hello, how did you manage to patch the Android 10 ROM please ?
[Magisk] d1n0x:
Seems like development on MicroG is being picked up again, according to the activity from the last 2 days on GitHub
[Magisk] SHA_NDY:
Manual deodexing

I have a question about manual deodexing. I have an Android 9 ROM. The system/framework/oat/arm64 folder contains both .vdex and .odex files. The deodex instructions from the first page here also cover both scenarios, vdex and odex. Which one should I use as I have both?

Thanks
[Magisk] Retseem:
I used SmaliPatcher to create a Magisk module for signature spoofing.

---------- Post added at 06:05 PM ---------- Previous post was at 05:59 PM ----------

I tried al sorts of scripts and manuals and also had both the vdex and the odex file. I ended up using SmaliPatcher, it patches your services.jar file and creates a Magisk module to make it work. In fact, that's the easy way and the only way that worked for me.
[Magisk] SHA_NDY:
Can you tell me how to to do in detail? Or is there an existing tutorial for this?

I have Magisk installed an can handle modules. Just the steps for SmaliPatcher
[Magisk] Oswald Boelcke:
I assume here is all you need: https://xdaforums.com/apps/magisk/module-smali-patcher-0-7-t3680053
[Magisk] SHA_NDY:
Thanks a lot.

Worked perfectly easy!
[Magisk] alecxs:
wow, so many mistakes in one single command, tiny coding skills ..

- find could operate on multiple paths directly, no need for a loop over ${logpath}

- no multiple paths needed at all when one directory is just subfolder of other

- name will not match upper case *.APK

- print 2>/dev/null is useless, just don't print

- exec rm -f {} + would be much better than \; because rm can take multiple arguments (but not needed at all)

- because find has -delete flag

- find does not follow symlinks by default (i can remember the times where i used to have it linked to /data/sdext2/local/tmp because of low storage)

- maxdepth will stop recursing into deep folders so it will not harm other apks like migrate_cache

find -L /data/local -maxdepth 2 -type f -mtime +8 -iname '*.apk' -delete
[Magisk] Keule-Tm:
Wow, so much encouragement...

But nevertheless, good points.
[Magisk] alecxs:
sorry for being rude, these are just cosmetical mistakes - it's not a bug (only coding style - which is free to developers choice)!

of course i can't really speak for coding skills... apologize to that
[Magisk] nodeofollie:
Does anyone know best practices for dirty flashing updated ROM over Nanodroid install?
[Magisk] papari999:
Hello,

Congrats on the amazing work, can this work with a deodex / signature spoofed stock rom for samsung galaxy note 10?

Thank you for the help
[Magisk] xdadevnube:
Wow, NanoDroid is amazing but I'm having a little trouble setting this up.

I'm trying to get the Play Store and Aurora Store working simultaneously. I would like to access my paid apps with the Play Store.

I edit the .nanodroid-setup file in both packages ("NanoDroid-microG-22.6.20200208.zip", as well as "NanoDroid-22.6.20200208.zip") and have the same issues after flashing.

nanodroid_play=21 is changed to nanodroid_play=30

Upon flashing the zip and rebooting the phone, neither store is installed. In the Self-Check page, the only item unchecked is "Play Store (Phonesky) installed". Sorry if I'm being noob, but I thought that the edit to the .nanodroid-setup file would install Aurora Store and a patched Play Store. Is it not that easy?
[Magisk] xdadevnube:
Okay, so I made a little progress.

I placed the ".nanodroid-setup" file in the root of the internal storage. Then I install either the "NanoDroid-microG-22.6.20200208.zip", or the "NanoDroid-22.6.20200208.zip" package.

What happens is that the ".nanodroid-setup" file gets modified when flashing either installer. Instead the value of nanodroid_play=30, it reads nanodroid_play=20 (it puts at at the end of the file).

nanodroid_microg=1
nanodroid_fdroid=1
nanodroid_apps=1
nanodroid_overlay=1
nanodroid_mapsv1=1
nanodroid_init=1
nanodroid_gsync=0
nanodroid_swipe=0
nanodroid_forcesystem=0
nanodroid_nlpbackend=1000
nanodroid_bash=1
nanodroid_utils=1
nanodroid_play=20

Anybody have any idea why the installer modifies the ".nanodroid-setup" file? Aurora is installed, but there is no FakeStore and and no Play Store. I think I'm getting close, but it's weird something seems to be preventing the installer from using the altered installation configuration file. I would just use the Aroma zip, but I don't think there is a way I can use Aroma on the Oneplus 7 Pro.

I mainly want the license checking to work on some of my paid apps, so I'm really hoping I can get the Play Store to work.

**UPDATE**

I was able to install the Play Store using nanodroid_play=10

After signing in, I'm getting the error message "Error retrieving information from server. DF-DFERH-01"

Does anybody know if the Play Store is working on Android 10? I wonder if the lack of Unified NLP on Android 10 with Microg prevents it from working.
[Magisk] zkoz:
Yes, works on my Oneplus 6, android 10. But it didn't work the first time.
[Magisk] tek3195:
I was having similar issue, bit of a hack job but edited install script to install nothing but patched play store. Then ran the full installer dirty a second time to install everything else. That way it left play store without uninstalling it. It may work for you, won't hurt anything to try. Then make sure it has signature spoofing support , that's where I was getting same error. Had to grant it manually with adb.
[Magisk] cailloud:
So far so good, however when I try to flash the Nano-droid patcher (lineage os 17, redmi note 7) i get "Android versions beyond pie are not yet supported", even though on the gitlab page it says it is? What's the status?Any workarounds?

Edit: I tried to flash the latest beta patcher, but it won't install either.
[Magisk] xdadevnube:
Right on, I'll give it a shot. Currently, I do have the Play Store installed (without Aurora Store or Aurora Services) with the parameter 'nanodroid_play=10'.

I have enabled the signature spoofing permission for both microG and the Play Store. Everything is checked in the Self-Check page of microG (except the Unified NLP). I'm getting the error "Error retrieving information from server. DF-DFERH-01" in the Play Store after signing in. I've tried clearing the app cache and data and have restarted.

My understanding that the only way license checking for some apps can occur is with the Play Store (otherwise I'd be happy to ditch the Play Store altogether).

Thanks for the feedback! Did you by chance get the "Error retrieving information from server. DF-DFERH-01"? If so, how did you resolve it? Did you reflash the ROM and start from scratch?
[Magisk] THERAJ12:
Mind sharing how you got it to work?

---------- Post added at 05:34 PM ---------- Previous post was at 05:33 PM ----------

Would you mind detailing out your steps please?
[Magisk] Oswald Boelcke:
The Gitlab Wiki/Readme contains a conditional sentence:

I'm not aware about the details of LOS 17 (I'm using LOS 16 and will never ever upgrade) but does your LOS 17 serveices.jar contains classes.dex?

Did you already try this workaround/fix as mentioned in the Wiki?
[Magisk] THERAJ12:
so the fix worked BUT I can' download apps I already purchased, it says I have to pay when I to go to pay it says error I already own but unable to download...
[Magisk] zkoz:
Like always, force close playstore, clear app data, grand signature again, sometime delete google account and add again.
[Magisk] THERAJ12:
yea I've tried various combos of that seems to be hit or miss wish there was a more formal working process. when I finally did get it work I can't download my purchased apps...smh
[Magisk] cailloud:
Services.jar does contain a classes.dex

edit:ATM i solved the issue by using a script that uses the dexpatcher-tool and haystack
[Magisk] zkoz:
i always used microg on old phone but android 9 was there. My new oneplus 6 has android 10, and decided to try microg installation (despite the fact that the permission manager and spoof package signature does not work on android 10). After one day playstore started working (after I did things about which I wrote).
[Magisk] xdadevnube:
It must have been the microG setting "Google device registration", I am now signed in and working and app license checking now works!

Here are the steps to get the Play Store working:

Flash ROM

Flash Magisk

Reboot

place a modified ".nanodroid-setup" file in the root of the internal storage (make sure the line "nanodroid_play=10" is present)

Reboot to Recovery

Flash NanoDroid

Reboot

Set up microG and grant the needed permissions

Reboot

Sign into Play Store (by opening Play Store first and following prompts)

Reboot

Make sure Play Store works

After this, I went ahead and installed Aurora Store with F-Droid. So now F-Droid, Play Store, and Aurora Store can all download and install apps.

I don't know how to get Aurora Services to install, however, I think that may only really provide a way for the Aurora Store to install apps in the background. If you have Aurora Store open, it doesn't have an issue installing apps.

The main drawback I have found is that the Play Store is not recognizing app purchases. I side-loaded the paid version of the apps I have purchased. The licensing so far has worked fine. I have no idea if I can make new purchases. I think that for the most part, this suits my needs.

Does anybody know of a way to get the Play Store to see purchases? I have already tried clearing the app data and restarting.

******EDIT******

The Play Store now sees all my paid apps! I checked in the morning, and all the purchases were there.
[Magisk] Oswald Boelcke:
Very good to hear. :good::highfive: We all know that the team of official LOS refuses to support/implement signature spoofing respectively µG. For this reason unoffical LOS for microG is available for quite a few devices. However, it'd be OT to discuss the stance of the LOS team here.

In my case i.e. on Samsung SM-G955F, I patched LOS 16.0 signature spoofing with Smali. Just went perfectly and easily but I don't know if it's available for non-Windows PC's. I also only used the signature spoofing patch and have no experiences with the other ones.

And as mentioned before, no idea if Smali works with Android 10/Q/LOS 17. At least the Smali OP states:

I've absolutely no issues to access my already purchased apps or to download them again, no issues with license validations or to make in-app purchases. Actually, I've made one just minutes ago just to try again and to take screenshots of the process; however, already for months I've intended to support the respective developer by a purchase. Here's a link to the gallery with the respective screenshots:

https://pic.infini.fr/gallery#5XEyYN2v/zLzqislP.png,Ww2VlGAd/ZtEkqd4X.png,KVNZ6Lh2/kuSDem1v.png,jj5AJ5Rc/w2sYJabW.png,v4hn9Zvy/OTgBP1fS.png,Hq3Coi5Y/hGEzp3Sx.png,rwC2eLBr/m70FDxaj.png,gEOt6Iuh/0fkWGmMO.png,4PV0cPlb/hs8cESse.png,owCQ47gG/2jcVtMKf.png,bIta0dBZ/O1nhydHi.png,C6a5dNzl/GROMhUD1.png,QlK07jXQ/WvEwPPjL.png,bdwDMTgL/JJtPZGBH.png,zGQzjzEv/RGYggVgt.png,vFsdjsJE/PunW5OVF.png,lIVccX9r/BEJrGceE.png

And in case of trouble, as far as I know it occasionally helps to delete data and cache of Google Play Store and microG as well as to delete the Google account and to re-create it.

I believe I've also read that it might work to go to one of the purchased apps on Play Store but via browser. To click in browser on purchase, and when a pop-up appears if to use Google Play Store then to confirm this.
[Magisk] cailloud:
Yeah, I have a mi-a1 with LOS16 and the patcher works flawlessly, but the phone of my companion is more "modern" and only has LOS17 so it is a bit more tricky...

A well, I hope the situation will improve, /e/os has announced to help full-time on the development on micro-g :good:
[Magisk] THERAJ12:
Is that a patched version of playstore via microg? Never seen a menu like that for it
[Magisk] Oswald Boelcke:
Affirmative, that's the Play Store version patched by Setialpha. In the screenshots 4 & 5, you see it's available via F-droid; however, you need to use Setialpha's repo: http://nanolx.org/fdroid/repo/ (link also available in the OP). Quote from OP:
[Magisk] THERAJ12:
I had to download the latest playstore apk move to system priv apps and give it permission 777 now I can access paid apps
[Magisk] xdadevnube:
This is funny, but when I checked the phone in the morning, all my purchases show up properly! I'm running Havoc 3.5 (Android 10) on the Oneplus 7 Pro. Thanks for all the feedback! Plus it is cool to have Aurora Store and F-Droid available since I'm not much of a Google Play Store fan, haha.

I might jump back down to Android 9 Pie in order to get Unified NLP working, but I must say I'm quite impressed with microG in general and recommend that people give it a try (I was a little intimidated at first but glad I stuck with it).

---------- Post added at 12:59 PM ---------- Previous post was at 12:52 PM ----------

Perhaps I wasn't patient enough, but I noticed paid apps were available when I checked this morning!

Was that APK from F-Droid? Did you have to patch the APK? Also, did you originally install the Play Store with the NanoDroid installer, or did you use the NanoDroid installer to install Aurora Store with Aurora Services and then add the Google Play Store later?

Just curious, since I've only had luck with paid purchases by using the NanoDroid installer to install the Google Play Store without Aurora Store and Aurora Services.
[Magisk] tek3195:
You may want to look at micro-g installer reborn in magisk as an option. Aurora svcs also helps out with installing certain apps as root. I had a tethering app that wouldn't run because wasn't from google play store. Rahul Patel told me to install with aurora services as root and it took care of play store checks force closing the app. So it does a little more than just background installations, or it can do more I should say. It may be a key piece in paid apps for you. I have got credit for my paid apps ie. able to use them but have never been able to purchase. Gmail is another one that is hit and miss for me. Of course no play games ever.

Something else worth looking into. A few weeks ago after install I went into web browser and signed in to google account. That can be done from anything, with no google services. I then tried reclaiming an old gmail account. It set some some things right as far as permissions and authorizations. I guess something to do with google server assigning things to that tablet as I was doing it. Had everything working better than ever and repeat logcats were half the size as before. They were full of errors that didn't seem to be there anymore. Check it out. I have a better explanation in my head I just can't find it right now.
[Magisk] xdadevnube:
I might try it that Magisk module. It seems like it's pretty bare-bones, so I'm thinking that installing the Play Store, location backends, and other stuff could require extra learning and tinkering. Plus I'm guessing it probably doesn't have Unified NLP on Android 10 (neither does NanoDroid to my knowledge). It seems to me like NanoDroid brings microG to the masses with extra cool stuff, whereas the Magisk Module is for more experienced users.

Thanks for the insights with Aurora Services. That is definitely something to consider if an app is misbehaving. So do you just install Aurora Store with F-Droid after the Magisk module? What about Aurora Services?

I'm curious if pushing an app installation from the Google Play website to the device can help. In general though, I'm thinking it's a good idea to have Gapps installed on a secondary phone just in case there is any trouble with purchases.
[Magisk] tek3195:
I use nightly builds of aurora and install aurora services from within aurora store settings. You can get nightlies on telegram here (Mod Edit: TG link removed) that is just software the chat for q&a should be linked from there. When you have questions, if someone truly knowing their **** don't answer you Rahul will help you out most times. He's the aurora Dev and pretty damn sharp when it comes to most any app. Check it out, it's pretty cool stuff.

Oh, and I didn't mean an app was pushed to the device on google web site. I was simply tying the account in with the rest of the tablet. There are a ton of things we don't see going on all the time. Some of them are with account security and can be hard to get around. When I went on with my tablet and signed in to legitimate account like three times it appearantly believed I was me and device was cool. When I get tab back from samsung I'll try to do it again and take notes and logs. Tried a little bit ago on diff device, signing in to regular acct but didn't work like before. It had to do with recovering closed account and signing in 3 or 4 times to recover account on micro-g device. Pretty sure it shouldn't work that way maybe a loop-hole or bug. ??? Try again next week hopefully.

Okay then, use this one to get to the nightlies.

https://xdaforums.com/android/apps-games/galaxy-playstore-alternative-t3739733
[Magisk] xdadevnube:
Wow, awesome info! Thanks! So do you even mess with the Google Play Store at all?
[Magisk] tek3195:
I keep it on an un-rooted stock Luna Pro that hasn't had service in 2 years. Wifi here at home gives all access needed to maintain acct., download, install and use apk extractor. Sometimes it's dead when forget to charge it for a couple weeks. Other than that, no. I do not use google services.
[Magisk] Oswald Boelcke:
I've never given "777" to any apk in priv-app so far and I don't know why I should. My folders in priv-app get "755" and the respective apk "644"; this also applies to Google Play Store (aka phonesky.apk). I believe I've psoted about that in one of my own threads before; if interested just have a look.
[Magisk] THERAJ12:
yea that's fine my main point being I needed to make it a system app in order to get access to paid apps ( atleast for me anyways). I amended the permission back to 644 and all seems well. thanks!
[Magisk] riquemonteiro:
Just to make sure i got this: is it impossible to install it on Stock Roms? I tried and it doesn't install the microg properly nor does remove the system. Is there another way

I have a Moto G6 Play and i can't use a custom rom on a daily use so i (unfortunately) have to use the stock rom and i wanted to, at least, de-google it and use microg instead.
[Magisk] Oswald Boelcke:
Sorry, I obviously misunderstood. Affirmative, it must be a system app in priv-app. I wrote about that requirement here about three years ago.
[Magisk] birleytweet:
Hi I'm running Android 10 and noticed the Patcher doesn't work on Android 10. Is there any other way to get MicroG working with Android 10.
[Magisk] flieswithhawks:
What ROM/device are you using?
[Magisk] birleytweet:
Hi unfortunately it's a Miui Xiaomi ROM for the Poco F2 Pro, which there isn't any custom roms for yet. So not sure if it is possible to get it to work or not
[Magisk] xdadevnube:
Just wanted to share my experience in successfully setting up the Google Play Store with microG. I posted some of this here before, but added some info. Hopefully this helps some folks.

Here are the steps to get the Google Play Store working:

Flash ROM (I'm on Havoc 3.5 (Android 10 Q) without Gapps on the OnePlus 7 Pro)

Flash Magisk

Reboot

place a modified ".nanodroid-setup" file in the root of the internal storage (make sure the line "nanodroid_play=10" is present)

Reboot to Recovery

Flash NanoDroid

Reboot

Set up microG and grant the needed permissions (signature spoofing support is required to grant the permissions)

Reboot

Sign into Play Store (by opening Play Store first and following prompts)

Reboot

Make sure Play Store works (it took several hours for my paid apps to show up, so don't panic!)

OPTIONAL:

Update the Google Play Store from Nanolx F-Droid Repo (clearing app data for F-Droid may be required for the updated Google Play Store to show up as available)

Aurora Store can be downloaded from F-Droid

Aurora Services can be installed a couple of different ways (I used the Magisk module) - links are found in Aurora Store settings

I have tested the following with success:

Google Play Store downloads work (including paid apps)

Google Play Store purchases work (I haven't tested in-app-purchases yet, but I expect it works)

License checking for paid apps work (If restricting network usage for the Google Play Store, then the license check will time out)

Noteworthy additions:

If trying to push an app install to the phone from the Google Play Store website, the following message occurs: "Error Something went wrong on our end. Please try again."
[Magisk] birleytweet:
I've been having issues with same thing. I've found there's no description anywhere for what the NanoDroid components do. I couldn't get the NanoDroid patcher to work, but was able to get the Smali Patcher to enable signature spoofing from https://xdaforums.com/apps/magisk/module-smali-patcher-0-7-t3680053

Having the same issue with Google Play now though.

Can you just run the NanoDroid MicroG and Google installers? I've never been sure exactly how to do it.

I tried running the MicroG installer from https://github.com/friendlyneighborhoodshane/minmicrog_releases/releases and that actually installed MicroG, Aurora Store and Play Store, but stuck with that error.

I'm thinking of trying your method, as have everything going except signing into the Play Store. Can you elaborate at all on what NanoDroid files are required? Do I need all the NanoDroid files on the root of the SD Card then place a modified ".nanodroid-setup" file in the root of the internal storage (make sure the line "nanodroid_play=10" is present)?
[Magisk] xdadevnube:
You can run either the microG installer zip, or the full installer zip. The apps can be installed later from Aurora. Or you can run an altered install to pick which apps per the instructions on the GitHub link in the OP.

The files that need to be installed are located in the installer zip. Pull them out and open them with a program like Notepad++. There is only one file for the microG zip. If you are using the full installer zip, you can also edit the apps file in order to pick your apps.

You can flash the installer zip from anywhere. The trick is to place the altered install files in the root of internal storage. So the installer zip itself is never altered. To make it easy, after booting up the fresh ROM with Magisk, just transfer the altered config files from the computer (after you're done editing them) to internal storage over USB.

I had no luck with installing both the Aurora Store and the Google Play Store from the installer. The only way I could get signed in was to use my instructions above which installs microG and the Google Play Store without Aurora.

Pro tip: make a TWRP backup of your ROM after you have Magisk and signature spoofing working. This way, you'll save time if something is messed up with the microG install.
[Magisk] pmcmm:
I'm waiting to switch my phone to install microg and get rid entirely of google from my phone. In the meantime i follow up this thread hoping to learn how microg works, and i am very curious about something: why would you want to install microg and then go all the way to install the official google play store? Why not just use aurora? Doesn't that go against the purpose of having microg installed?
[Magisk] zkoz:
as far as I know playstore will allow you to use paid applications, aurora too but not every app.

I have playstore installed with microg.