yashsingh1/xdaforums huggingface dataset:
[Magisk] rnadomuc:
Dirty Unicorns just did a huge today, its first complete stable build for Oreo.

If anyone has any advice how to get NanoDroid's microG installed onto it with signature spoofing, I'm all ears. As far as I can tell, smali is not able to handle some of the files in Oreo 8.1 yet (particularly files in /framework) so deodexing doesn't appear to be an option.
[Magisk] d1n0x:
Xposed
[Magisk] rnadomuc:
Is there a non-Xposed option?
[Magisk] d1n0x:
Flash a ROM with signature spoofing support or LineageOS MicroG.
[Magisk] rnadomuc:
I was referring specifically to Dirty Unicorns, which does not.

I'm gonna guess it's not possible to install Magisk Xposed, get signature spoofing enabled with fakegapps, and then uninstall Xspoed so I can pass SafetyNet? I'm guessing the signature spoofing would break.
[Magisk] d1n0x:
Correct. Just a guess as I am not knowlegable in this, but I think you could build DU from source and integrate the necessary patches from MicroG?
[Magisk] rnadomuc:
I don't understand why ROM sources are split into so many components and I don't understand how to assemble those components. Plus last time I tried messing around with the android sdk it was a confusing mess where nothing was working right.
[Magisk] rnadomuc:
After a lot of trial and error I seem to have the play store working correctly. However, for some reason Substratum loops endlessly when I open it, never loading any themes.

Could be a quirk of my ROM (Dirty Unicorns) but I don't know for sure.
[Magisk] demonoidmaster:
Install FakeGapps from xposed jfc (people has said this more than once in this thread), that's what i did to get MicroG Settings app (self-check shows you what's working right or not) to show that it's indeed being spoofed
[Magisk] rnadomuc:
Pretty sure you misread my post. I did that. It's working fine.

I was having issues with Substratum.
[Magisk] demonoidmaster:
I read your other posts and replied to your last one assuming you still didn't install FakeGapps, so that's why
[Magisk] rnadomuc:
Nah I knew about FakeGapps the whole time. The problem is NanoDroid doesn't automatically select 'Use official server' for the Google SafetyNet option. You have to go into Advanced and do it manually. No options are selected by default. Once I did that, my RH-01 problems were over. I'm now typing up a step-by-step guide on how to get this up and running for Dirty Unicorns.
[Magisk] rnadomuc:
Dirty Unicorns + NanoDroid microG Installation Guide performed on a Nexus 5, aka hammerhead

You need some basic knowledge on flashing custom ROMs, and you need to be able to use adb on your phone from your desktop/laptop.

Here are the required files.

Dirty Unicorns ROM

(latest version for your device)

NanoDroid

(all files except patcher & uninstaller)

Systemless Xposed

(XposedInstaller_###-Magisk.apk & xposed-v##-sdk27-*****.zip)

FakeGApps

(the apk file)

In TWRP Recovery, do a full wipe of everything except Internal Storage, and transfer all zip files into Internal Storage

Install Dirty Unicorns (never do Reboot System unless the next step is Reboot System)

Install Magisk

Reboot system (Very important we do this now because if we don't, you will be plagued by apps disappearing)

After Android boots up, it's gonna do some background stuff, so in the meantime, change a few settings.

Settings > Dirty Tweaks > Power menu > Advanced Reboot (Enable)

Settings > Display > Adaptive Brightess (Disable) | Advanced > Background color > Dark

adb install FILENAMEforXposedInstallerMagisk.apk

adb install FILENAMEforFakeGApps.apk

Power button > Advanced > Recovery (this reboots into TWRP)

Install NanoDroid Setup Wizard, configure it with the following options

microG, F-Droid, Overlay, Maps API v1, Zelda Tunes (Optional), Init Scripts, Google Sync, Swipe >

Play Store > No location backends (we'll install them through F-Droid) > No apps > Leave all debloat options selected

Install main NanoDroid file, it installs according to the files the Setup Wizard wrote

Install Systemless Xposed

Reboot System (Ignore any Play Store crashes when it boots up)

Start Xposed Installer, it should detect Systemless Exposed, go to Modules and enable FakeGApps

Power button > Reboot

Setup your Wi-Fi

Start F-Droid, go to its settings

Enable: 'Only on Wi-Fi', 'Automatically install updates', 'Expert mode'

Change the F-Droid Theme to Dark

Search for 'nlp' and install 'MozillaNlpBackend' & 'Deja Vu Location Service'

(Decline the Google Security prompt. I don't think it does anything if you Accept but decline it just in case.)

Start microG settings

UnifiedNlp Settings > Configure location backends > Deja Vu & Mozilla Location Service (Enable both) | Configure address lookup backends > Nominatim (Enable)

Google device registration > ON

Google Cloud Messaging > ON

Google SafetyNet > ON > Top Right 3 Dots > Advanced > Use official server

Start Play Store, login. It should load into the store. (If you get RH-01, try closing and restarting the app.)

Close the Play Store

Start the Dialer, i.e. Phone. Dial this: *#*#CHECKIN#*#* (It should disappear instantly once the input is correct.)

You did it!

Make a backup in TWRP.

A few essentials to flesh out your phone: AdAway (F-Droid), QKSMS (F-Droid), Microsoft Edge (Play Store), Microsoft Launcher (Play Store)

(For some reason the Microsoft apps are REALLY customizeable and perform much better than Google's apps despite having more features, who knew they'd be such good Java programmers?)

I'm still looking for a keyboard app I like so no recommendations there.
[Magisk] FriendlyNeighborhoodShane:
Maybe you don't need to. I just changed the shebang to sh and it works perfectly. I updated playstore, changed overlays and fixed perms, and it seems to work. I'm sorry, I'm not very good at this stuff, but i can't yet find a part in this script that specifically needs bash . Maybe you could put in a test for bash and an abort when bash isn't found in that specific function or something along the lines. Anyway, it's your call. Good luck.
[Magisk] Thaymus:
I faced this problem

Please check the screenshot

Appreciate your help
[Magisk] Setialpha:
All apps that require your google account directly need the phone/contact permissions granted. I suppose microG is otherwise properly setup.
[Magisk] Setialpha:
AdAway and QKSMS are bundled with NanoDroid btw. (F-Droid versions). For Keyboard I recommend Anysoft (traditional) or BeHe (programmer), both bundled with NanoDroid aswell (F-Droid versions).
[Magisk] Setialpha:
That's microG's default behaviour, [MENTION=5627087]ale5000[/MENTION] already file a bug report about that.

In the NanoDroid setup instructions tha's mentioned, though.
[Magisk] Thaymus:
I don't know what to do

Please illustrate

I can't log in to Gmail account using Gmail app also some users report that they can't log in to Evernote or Chrome applications when we try so, we saw the screenshot I attached before
[Magisk] gyeltekin:
im using crdroind

i give all permissions what developers and you said

there is no	contacts-calendar-sync.xml file in the systems etc permission

after i coppy it from the zip file(or file in this topic)

rom deleting it automaticly.

and can not sync google cont.
[Magisk] Lee_Zen1699:
ok i stand tks you very much bro !!!
[Magisk] Setialpha:
Like you do for any other app which you want to control it's granted permissions...

Settings > Apps > All Apps > [Your App of choice] > Permissions > make sure phone/contacts permissions are granted

Yes, others have had exactly the same issue and others have fixed it by granting those permissions.
[Magisk] Setialpha:
Version 16.3 is progressing, a beta will come next week. What's to be expected?

improved A/B partition scheme support for Full, microG and F-Droid packages

initial A/B partition scheme support for Patcher and Uninstaller

nanodroid-overlay does no longer require Bash

some have observed that already, but I haven't updated the SheBang since the bashisms vanished

fixes the issue that people on old systems get a crash upon Bash invocation

F-Droid 1.1-alpha4 fixes the issue some were facing that F-Droid would update apps several times

Beta version included for QKSMS

usual updates

>>>><<<<

modified Play Store 9.1.24 uploaded, use

novl -U

to update.

>>>><<<<

For Version 17.0 I'm investigating how much of use baksmali is from TWRP, in order to de-odex services.jar on-device and then patch, or whether it's possible at all. No ETA, don't get hyped too much.

Irregardless of the on-device patcher, the on-pc patcher will be updated to deodex services.jar (since the hype of the patcher zip I suspect most have forgotten that the on-pc patcher actually exists). Also the on-pc patcher and the force-debloat script do currently not support A/B partition scheme, will be added, too.
[Magisk] Thaymus:
I don't have any problems in contacts as I don't sync contacts with Google

But the problem is when I tried to login to my Google account in Gmail app , Evernote or Chrome app and here I saw the message that says "the account is already exist on your device" as you see in screenshot thus I can't log in into Google using my Gmail account
[Magisk] Setialpha:
Once again: ANY app that uses your Google Account directly needs that permissions, else you'll get exactly what you got!
[Magisk] utg1:
Up!

Anybody?

When I use GPStore, after 1 or 2 minutes it crashes and in MicroG main app settings are reset to default (all disabled)...

Miui 9 - Android 6.0.1; Magisk 16
[Magisk] Setialpha:
No, I've never heard of such issue, but as alwyas, if anything, only a logcat may sched light.
[Magisk] razorfancy:
Can you please tell me in which app do I use the code o mention?

I am using NanoDroid MicroG with Magisk on RR N
[Magisk] RobotPhone:
Termux is a good app to use.
[Magisk] guest4711:
Open a terminal session and type in

su
novl -U

. On some ROMs you may enable the terminal app in settings -- developer options. On others you have to install an app like Terminal Emulator for Android (Access Android's built-in Linux command line shell. Unleash your inner geek!) - https://f-droid.org/app/jackpal.androidterm
[Magisk] razorfancy:
When I use this code on Termux I get this error:

FATAL: kernel too old

Aborted

Can you please help with this error?

I am using NanoDroid MicroG with Magisk on RR N for i9082.
[Magisk] RobotPhone:
[MENTION=4187311]Setialpha[/MENTION] I just used the novl -U to update the store and apps including messaging, gallery, maybe others disappeared. How do I get them back?

Does novl -U account for the nanodroid config files that I setup during install?

Edit: reflashing nanodroid in twrp got the missing apps back. Still wondering, does novl -U account for the config files?
[Magisk] Setialpha:
No. That is, if you used -U, if you used -u you did activate the overlay feature.
[Magisk] inVain_theGenuine:
hi....

I hope you don't mind for me to answer your PM back on the forum, so other with similar issue might benefit from it as well.

first, I found it's quite odd for the rom to delete the manually added "contacts-calendar-sync.xml" you've just manually added.

did you assign the "644" permission, and set the owner to "root" for it?

I got curious and check if mine was deleted as well, but apparently it's not (I'm on slims7, stable 2).

so I've attached mine, as you can see it was created back on 28th, feb with the 644 permission.

something that cannot be seen on the ss is the ownership of this file (root).

I had once encountered the same issues as yours, and this is what I did:

I added a 2nd google account (a genuine one, with a device once registered, and had a few apps installed).

I intended this account as a backup for my contacts number, but ended up rarely use.

anyhow this 2nd google account can sync without issues

this make me think that maybe we can register our device with a backup google account (in my case, my 2nd account) and sync with my primary account... consider this as a privacy bonus :)

now to get single google account on my device (I'm currently use this one).

I need to mind you that I've installed micro G as part of my system (not as magisk module).

(you can do this by installing the nanodroid micro G before you install magisk on the recovery)

to make long story short...

after I've installed my rom (slims 7) + micro G and got all the checklist on the micro G self check, I went back to twrp and perform my own version of factory reset (delete "android" and "lost.dir" folder on my SD card -> format data partition -> delete everything except system, boot & micro SD).

reboot to the system, and voila now I got a single sync-able google account.

I also made backup of my boot and system partition to make life easier for me to apply update on my system apps (including micro G).

I avoid taking backup of my data partition since I'm always having issue with e-mail, whatsapp and anything related with gcm (also when I were still on open Gapps).

the way how I installed the micro G will probably not applicable to an odexed ROM, since I need to odex all the files on the microG which need to be placed on the system/priv-apps partitions.

I really want to play around with "lord voldemort" odexing features, but sadly I lack of time right now and need my device to be fully functional.
[Magisk] Setialpha:
Read the part above the update instructions in my previous post. This exact issue is already mentioned, and that it's solved in 16.3.
[Magisk] rnadomuc:
I wasn't able to figure out how to delete an app installed through NanoDroid and I figured it wasn't worth the trouble learning when I could easily install the same apps through F-Droid. And it seemed appropriate to pass along the same advice to other beginners.
[Magisk] Setialpha:
Then you could use the microG/F-Droid packages instead.
[Magisk] rnadomuc:
That's what I did in the post you're quoting.

---------- Post added at 07:22 AM ---------- Previous post was at 07:17 AM ----------

By the way, would it be possible to update the F-Droid package right now rather than with 16.3? I'm about to reinstall Dirty Unicorns using their RC build since they fixed the camera issues.

I too was having issues with F-Droid doing the repeated updates. Annoying.
[Magisk] Setialpha:
My bad.

You can simply update F-Droid from itself.
[Magisk] RobotPhone:
So -u accounts for config files and -U does not?
[Magisk] Setialpha:
Yes, it's case sensitive -u creates overlays, -U updates apks. See -h (help) for the full list.
[Magisk] utg1:
Sorry, you're right.

Anyway I understand what's the problem: when I delete Playstore cache and data, MicroG settings also loses data.

I have to delete Playstore data because sometimes it doesn't want start: I have an error like "RH 01", if I remember correctly.

Anyway thank to your Playstore's update, I'm trying new version: I'll let you know something.

Many thanks for your efforts

Cheers
[Magisk] Setialpha:
Version 16.3~beta1 is now available for testing. Highlights since 16.2:

improved A/B partition scheme support for Full, microG and F-Droid packages

initial A/B partition scheme support for Patcher and Uninstaller

nanodroid-overlay does no longer require Bash

some have observed that already, but I haven't updated the SheBang since the bashisms vanished

fixes the issue that people on old systems get a crash upon Bash invocation

F-Droid 1.1-alpha4 fixes the issue some were facing that F-Droid would update apps several times

New setup variables: nanodroid_bash, nanodroid_nano, nanodroid_utils

move binaries from /system/xbin to /system/bin (some Stock ROMs no longer have /system/xbin)

Beta version included for QKSMS

Full ChangeLog

* Full, microG, F-Droid packages
* improved A/B partition scheme support
* Full, microG packages
* move binaries from /system/xbin to /system/bin
* some stock ROMs no longer have /system/xbin, which will cause bootloops if Magisk creates it nonetheless
* also see SetupWizard changes for now more flexible Full and microG package setups
* Full package
* switch from stable to beta build for QKSMS
* SetupWizard
* change default location for configuration files from /data to /sdcard
* new setup variables
* nanodroid_bash=[0|1] whether to install GNU Bash, Less pager (Full, microG packages)
* nanodroid_nano=[0|1] whether to install GNU Nano Editor (Full package)
* nanodroid_utils=[0|1] whether to install Shell Utilities (Full package)
* changed setup variables
* nanodroid_overlay=[0|1] (Full, microG packages)
* previously: whether to create overlays (in Magisk Mode)
* now: whether to install nanodroid-overlay script and whether to create overlays
* Patcher, Uninstaller
* initial A/B parition scheme support
* NanoDroid-Overlay Script
* does not (more precisly: no longer) require Bash, default Shell is enough
* Updates (automatic)
* AnySoftKeyboard (1.9.1117)
* Déjà Vu nlpBackend (1.1.3)
* Open KeyChain (4.9.1)
* XDA Labs (1.1.5.4b)
* F-Droid (1.1-alpha4)
* (Simple) Gallery (3.5.3)
* QKSMS (3.0-beta5)
* K-9 Mail (5.502)
* Updates (manual)
* GNU Bash (4.4.19)
* Play Store (9.1.24)

Download links

Download from AFH or Nanolx.

Bug reporting

In case of errors, please provide

/data/adb/.nanodroid_MODID

/data/adb/.recovery_MODID

logcat (if applicable)
[Magisk] kurtn:
[MENTION=4187311]Setialpha[/MENTION] do you have an odex-patcher for testing?
[Magisk] Setialpha:
Not yet, that's incoming for 17.0, 16.3 should bring full A/B support first.
[Magisk] rnadomuc:
Would it be possible to include a 'deluxe' microG package for ROMs that require you to flash GApps? i.e. they don't even have things like Dialer and Dialer Framework on the ROM by default.

Right now I'm trying to work around the issue for a rom called DarkROM, which is one of the few ROMs with signature spoofing for my device.

Edit: Actually, better suggestion. How about a script to remove things that conflict with microG? Apparently this does that automatically unless I was misinformed: https://xdaforums.com/android/development/microg-unofficial-installer-t3432360
[Magisk] Shadow53:
A problem with the first suggestion is that there aren't any real replacements for the dialer app on Android other than the AOSP and Google dialers. If you're wanting a slimmed down ROM, why not remove the system apps you don't want from one of the other ROMs providing signature spoofing?

To illustrate the difficulty in finding replacement apps, I refer you to my "No GApps" packages - containing only apps from F-Droid and meant to be as close to 1:1 in app selection with OpenGApps: https://shadow53.com/android/downloads/no-gapps/ You'll notice no dialer or contacts apps. Simple Contacts exists, however I feel it has room to mature before it gets bundled in my zips.

Regarding the second suggestion, it is incredibly hard to remove Google stuff from Android without breaking things. You end up having to leave things behind that don't seem like they should be necessary, but cause crashes if you remove them. It would be possible to replace only the "main" conflicts (those that share package names) but that still leaves a bunch of Google stuff behind that may or may not break when microG is installed.
[Magisk] rnadomuc:
Because the ROM doesn't offer the options you describe, and it's one of the few ROMs that has signature spoofing support.

Google Play Services comes bundled with stuff like the Dialer Framework - which can sometimes mean no 911 if you don't install it. There's also other core things that are missing like Face Unlock, Text-To-Speech, etc.

---------- Post added at 01:58 AM ---------- Previous post was at 01:44 AM ----------

Ok I seem to have found a workaround thanks to ale5000

Apparently if you just run the unofficial microG uninstall script in recovery, that'll wipe out all the conflicts.

Trying to get Dark ROM set up with this now.
[Magisk] Thaymus:
I gave the permission to the Gmail to access my Google account ( screenshot attached) and the same result when trying to sign in Google account via Gmail app, it said the account already exist in your device

What Did I do wrong?
[Magisk] lil_ith:
Hey guys. I flashed a ROM that baked signature support into the ROM and everything works that I found found besides two things that I have noticed so far. Safetynet passes but google pay says there's no internet connection. And google contacts.. If no contacts are synced it opens fine but soon as they are. Contacts crash whenever its opened. I wasn't able to open the link to check for fixes as it showed an error. If we need logs let me know and I'll get them for you.

Edit. If I wipe MicroGs app contacts will not crash. And google pay says it won't run without google services but soon as I hit spoofing support for microG it goes back to the previous mentioned
[Magisk] rnadomuc:
Edit: Nevermind. I'm trying to figure out why F-Droid is acting weird on this new clean ROM. I said a lot of stuff that's turning out to be incorrect, and I'm frustrated as to why I keep getting different results.
[Magisk] FriendlyNeighborhoodShane:
I have exactly what you need. From Froyo to Nougat.

Was gonna make a flashable zip, but i have exams. just run this through recovery terminal.
[Magisk] FriendlyNeighborhoodShane:
So, I understand there will no more be bash in the microG-only package? Yay, a 10mb reduction.

Also, I found the option that required bash in 16.2, the -s switch (show_overlay). seemed pretty complicated, hope you found a sh replacement.
[Magisk] Setialpha:
There will be more changes until 16.3 to the scripts, eg. there will be a nanodroid-util script with all non-overlay related features, I'll also eliminate the remaining bashisms.
[Magisk] rnadomuc:
It seems like the installation isn't ever obeying the backend options from the setup wizard. It just installs with Deja Vu no matter what you pick.

I'm not sure how much control you have over 'microG options' but it would be more user-friendly if 'Use official server' was selected by default in advanced. Right now if you don't go to advanced, the SafetyNet option does nothing.

Lastly I'm also having a ROM-specific issue with AospExtended, which seems to be the optimal ROM to use right now for this because of its built-in signature spoofing. (Dark Rom is supposed to have it but apparently doesn't right now.) After the initial installation, F-Droid won't install anything until I reboot the phone. I'm not sure why. The upcoming rom update might fix that though.
[Magisk] Shadow53:
Right now we have no control over default settings in microG, only default granted permissions. Once/if this issue gets resolved, we'll be able to select default settings https://github.com/microg/android_packages_apps_GmsCore/issues/401

I've seen an issue with apps not being installed after first boot using my own zips, though it is not particular to F-Droid. I suspect it has something to do with installing the Play Store without including the GooglePackageInstaller, though I haven't looked far enough into it to confirm this. I'm fairly certain I've only seen it on my own devices when installing the Play store.

Again, that is for my own zips, not NanoDroid. It may or may not be the same issue.
[Magisk] Setialpha:
For me the nanodroid_nlpbackend setup varisble works as advertised, tested again, just to be sure. 0 = none, 1 = Déj
[Magisk] Setialpha:
I need a logcat to have a look.
[Magisk] utg1:
Same issue with new playstore update...

Here my log: https://ufile.io/2qof1

I tried to delete my Google account and then re-login but with no luck, same issue...So I don't know what else I can try.

Playstore error: RH01
[Magisk] Thaymus:
Dear [MENTION=4187311]Setialpha[/MENTION]

Can you help me in this issue? I gave the permission as you said and the same result
[Magisk] Setialpha:
Sorry, for late reply, been busy unlocking LTE Band 20 on a chinese OP3T.

What's the logcat from boot to failed login attempt?
[Magisk] Setialpha:
Will have a look soon™