yashsingh1/xdaforums huggingface dataset:
[Magisk] amg314:
Instruction on services.jar patching for signature spoofing using BatchApkTool

Some users do not like Xposed FakeGapps method for signature spoofing (SafetyNet issue, etc)

The following show a way to get pure signature spoofing)))

1. Unpack BatchApkTool373.7z by BurSoft to handy directory. https://bursoft-portable.blogspot.com/p/blog-page_23.html

2. Copy /system/framework from your device to BatchApkTool373 _system directory.

You can use ADB plugin for Total Commander (the easiest way) or adb pull /system/framework in TWRP or USB flash, etc.

3. Run BatchApkTool.exe, choose language, then run 84 command to set your API. After tuning run deodexation command 01

After deodexations process will over, you will find result in the same _system directory.

4. For signature spoofing you need to patch the only file _system\framework\services.jar

Patch this file using SmaliPatcher.exe https://xdaforums.com/apps/magisk/module-smali-patcher-0-7-t3680053

a) Copy SmaliPatcher.exe to handy directory

b) Run the program, click 'Browse' button and point on _system\framework\services.jar

After that click 'Patch Jar' and wait. As a result you will get SmaliPatcherModule-0.0.4.6-fOmey@XDA.zip - ready for Magisk flashing module.

c) Copy SmaliPatcherModule-0.0.4.6-fOmey@XDA.zip to your device (see Paragraph 2) and install it thru Magisk Manager.

Reboot.
[Magisk] Hetzer'93:
Google Account Login & UnifiedNlp Problem

Hi guys,

I've tried to install microG via NanoDroid on the new Official Omnirom for the OP6T but there seems to be an Problem with the Locationprovider, do i have to ask the Maintainer to change the Framework-Res for it to work?

Also i have a problem adding my Google- Account, it wouldn't proceed after accepting the 'user agreement'.

I've tried several versions of microG and got everytime same results.

Could you please take a look at the logs and screens...
[Magisk] Oswald Boelcke:
I'm slightly surprised. What did you make to believe that you can use Google Play Store without a Google account? I'm absolutely with you if you personally decide not to create such an account.:good:But then I guess you've to accept to be unable to use Google PS. If it's just the phone number, fake one. (040) 428 54 - 4040 is the one of the "Hamburgische Beauftragte für Datenschutz und Informationsfreiheit".

Without a Google account, you can easily use Yalp with its "Yalp" credentials but you won't be able to make purchases. SafetyNet never used, never will, never passed the check. But I don't need to: No banking, no what-so-ever...
[Magisk] starbright_:
I guess you mixed something up ;) . All my problems are about push notification. And "push notification tester" will not register ...

Until now I though that should work with fake store/yalp to. On the other hand, most people don't have problems and GPS is default in microG....
[Magisk] marcdw:
The push notification tester has no relationship with whatever app store you have. Oh wait, I see in the Play Store description that v2.7 needs latest Google Play stuff and a Google account. And it tests firebase cloud messaging. Fah!

I use v2.5. I remember 2.6 sometimes didn't work so well. I stay with what works. Locate the older version and see what happens.

Your part about having to constantly redownload the app... Save stuff so you can reinstall at your leisure. Yalp allows you to save a local copy of any(?) installed app. Also, if you set up Yalp to not delete downloads after installation you will have the apk files stored. I now have a majority of apps/tools at the ready. Makes things easier.

LG G3 D851, Mahdi v2.9 ROM (4.4.4), microG (NoGApps), MultiROM, XDA Legacy
[Magisk] 8f86TcLjmt:
Sometimes MicroG seems not to ask if an app wants to register for push notifications (at least on my phone). May be you can try to disable the ask for confirmation setting (gcm-advanced). For me this works with Push Notification Tester.
[Magisk] temporarium:
My results a few messages back were with 2.6. I have Yalp and fake store.

I, too recommend disabling the alert for new apps option.
[Magisk] PoochyX:
When I was on Micro G I also disabled the alert for new apps option also...

[emoji3436]I Willl Scarfice For Those That I Love [emoji3434]
[Magisk] Hetzer'93:
I've tried 20.6 but cell location and Google account are still not working correctly. Location seems to work but in the microG self-check cell based location is not checked. And by disabling com.qualcomm.location you will get no location at all. Google Account still not processing after the user agreement althoug log in works.

Push Notifications are working perfectly and I'm able to pass SafetyNet.
[Magisk] starbright_:
Thanks for feedback and confirmation, that Push works also without any Google account and with fake store. I started to get doubts about it.

The alert for new push apps - I testet both. If I remember right asking (what might cause trouble) is not activated by default.

So I am still helpless. What might happen is, that "push notification tester" has (recently switched to ?) FCM. I couldn't go back in time to see what has been used before. Can someone of you, delete the app and reinstall the current and give feedback?

I am not quit sure whether microG nowadays supports FCM or not. I read about both ... I am sure it was not supported a year ago.
[Magisk] garylawwd:
Try typing this in terminal and then try MicroG self check again

su

pm grant com.google.android.gms android.permission.ACCESS_FINE_LOCATION

pm grant com.google.android.gms android.permission.ACCESS_COARSE_LOCATION
[Magisk] marcdw:
Thanks. I just tested 2.7 and it worked and passed just fine here. Also only Yalp and FakeStore here. I was kind of mislead(?) by the What's New and thought it would only check Firebase Cloud Messaging and needed the Google requirements. Good to know that's not the case.

Essential PH-1, /e/ 0.5-n ROM, microG (NoGapps), XDA Legacy
[Magisk] starbright_:
Indeed that's it. With an older version it works fine - even for me.

So probably all of you said it is working used an older version.

That was really driving me nuts!!!

I read the requirements of PNT, but I think this was valid even before. microG is a replacement for the play stuff. The google account on the other hand is maybe a real hint.

But who knows it: Does current version of microG supports Firebase and if so, is a google account required? I think these are 2 different things and not necessarily connected.

---------- Post added at 06:02 PM ---------- Previous post was at 05:54 PM ----------

Arghhh - should read it til the end. Now I am back to trouble. Why the hell 2.7 will not work here?

Although: After an update the recent version works too. ?!? Crazy.
[Magisk] Bilge656:
On my Pixel 2 XL, do I need to mount system in TWRP before installation? Additionally, is my NanoDroid installation causing a bootloop because Pixel 2 XL has two system folders? It is structured /system/system/. Which contains /app/, /priv-app/, etc
[Magisk] PoochyX:
Bro system mounts itself automatically for zip installations the mount option is only for using the file manager to ulter files before runtime

[emoji3436]I Willl Scarfice For Those That I Love [emoji3434]
[Magisk] Bilge656:
Thanks for letting me know! Do you have any insight to if NanoDroid fails because the Pixel 2 XL has /system/system/ setup? I assume it is an A/B partition thing.
[Magisk] PoochyX:
I dont believe so other pixel users that have been able to obtain root via magisk have been successful in installing micro G nanodroid

[emoji3436]I Willl Scarfice For Those That I Love [emoji3434]
[Magisk] psychem:
commands not working.. same issue here
[Magisk] psychem:
Check the error
[Magisk] Shobit Joura:
Can someone tell if disabling gcm will lead to more battery backup as gcm needs to resync in background and if i disable it , it would eat no battery and hence long battery backup?

Can someone put light on this if its right or not?
[Magisk] starbright_:
I get this check in microG selfcheck by the following trick:

enable location

open microG setup, tap the ... in upper right corner,

select geolocation map,

move/zoom to a known city (Berlin), wait until it shows the city/address (my take a few seconds).

After that selfcheck shows all checks.
[Magisk] psychem:
more info - im using los 16 and latest nanodroid beta.

not able to execute the commands for fine location and coarse location in terminal
[MENTION=4187311]Setialpha[/MENTION]
[Magisk] psychem:
[MENTION=4187311]Setialpha[/MENTION] im integrating latest beta in my custom rom. Where should i place busybox.arm and sqlite3.arm for lineageos
[Magisk] NisseGurra:
I have an strange bug with nanodroid patcher.

Patching an stock rom (s9/10) makes network very slow in loading webpages, 5-10s delay before an webpage starts to load. Restoring services.jar removes the delay.

Any ideas?
[Magisk] Setialpha:
They are only used by the Installer.
[Magisk] Setialpha:
Dunno, I never had those issues, but did you wipe cache after patching? Else maybe a logcat will sched light?
[Magisk] Setialpha:
To everyone who sent in logcats which I haven't replied to yet, rest assured that I'll have a look at them sometime between friday and wednesday (got a few days off).

Also the reason why Discord does work with last official microG build but not with my fork has been tracked down (I already had a suspision, but didn't care enough to actually check, so it's easy to say I knew about the cause beforehand), see this microG bug report.

On a side note: mar-v-in (microG developer) is currently busy working on Maps API and other stuff, also has already merged several things from contributors. I sent in my last pull-requests so if they get merged it's possible that my microG fork will vanish as not being required anymore.
[Magisk] Setialpha:
20.7.92.20190424 (20.8-beta3)

Hi everyone,

the third (and probably last) beta for 20.8 (internal version code 20.7.92) is now available for testing. Compared to beta2 it brings fixes and improvements in the Patcher and Uninstaller, and fixes the bootloops with OmniROM Pie reported, among other changes like switching from AuroraStore 2 to AuroraStore 3. See the ChangeLog for all changes since the last stable version 20.7.

Full ChangeLog

## 20.8 in-dev "Prometheus"

### Bug Fixes

* Full, microG packages
* fix bootloop with OmniROM Pie

* Patcher
* explicitely set permissions on installed files

### General

* Installer
* add support for Magisk 19.0
* Magisk < 19.0 still supported
* improved A/B partition scheme support (from Magisk 19.0 @topjohnwu)
* code improvements

* Full package
* switch to official stable OpenLauncher build (0.6.1)
* drop Yahoo Weather Provider (they closed their APIs)

* Full, microG package
* switch from Aurora Store v2 (com.dragons.aurora) to v3 (com.aurora.store) @Vavun

* Patcher
* support installing patched services.jar into Magisk 19.0+ modules
* install org.spoofing system pseudo-app after patching @Vavun
* this is adds ROM wide *cosmetic* information about Signature Spoofing (so it shows up in the App Permissions)

* Uninstaller
* support uninstalling Magisk 19.0+ modules

* nanodroid-util script
* add `-r`, `--reset-gms-data` param, resets GMS data (including GCM registration) for given app (or all, if none) @ale5000

* nanodroid-perm script
* will now also set required permissions for uNlp backends

* sysconfig
* improved sysconfig for better uNlp Pie support @oF2pks, @Vavun

### Updates

* automatic
* AnySoftKeyboard (1.10.364)
* Tor Browser (60.6.1)
* Simple Calendar (6.4.3)
* Simple Gallery (6.6.4)
* OsmAnd+ (3.3.6)
* NewPipe (0.16.1)
* Oandbackup (0.3.5-universal)
* Bromite System WebView (74.0.3729.106)
* F-Droid (1.6)
* Aurora Store (3.0.3)
* nlpBackend Déjà Vu (1.1.11)
* QKSMS (3.6.4)
* Termux (0.68)
* Substratum (1020)

* manual
* Play Store (14.6.56)
* microG GmsCore (0.2.6.15181-75)

* tools
* GNU Nano (4.0)
* Busybox (1.30.1) [installer only]

Download links

Download from Nanolx.

Bug reporting

In case of errors, please provide

/data/adb/MODID_log_INSTALLDATE

/data/adb/MODID_twrp_INSTALLDATE

SysTest package logfile

logcat (if applicable)
[Magisk] psychem:
[MENTION=4187311]Setialpha[/MENTION]

attached systest log, not able to upload adb logs as they have root permissions on them!

using the latest beta now, the previous error is gone in los16 but the last checkbox "network based location enabled" is still unchecked, even after passing the fine location and coarse location permission commands in terminal.

the test location in microg settings is working but gpstest app cannot get a lock.

using the latest beta in los15 causes the permission denied error when executing the coarse location and fine location commands.

edit: using 20.7.92 uninstaller has an error - Updater process ended with ERROR: 2
[Magisk] psychem:
im getting a location lock now after flashing opengapps , getting a lock and later clean installing the rom + nandroid even with last checkbox "network based location enabled" unchecked. so this issue is resolved somewhat.

edit: couldnt install magisk 18.1 it would show as not installed after a reboot. only 19 works with the latest beta, bonus was the last checkbox "network based location enabled" is checked too now. weird stuff, has a mind of its own.
[Magisk] TiTiB:
Same with beta 20.7.92.20190424

After inputting credentials no connection attempted. Any help much appreciated. I'm getting frustrated enough that I'm considering OpenGaghhh..Gapps.

[EDIT] Confirmed good login via Aurora Store/web login.
[Magisk] castrum_doloris:
If I try to install Aurora Store with the latest beta, flashing ends with 'Error 1, com.dragon.aurora.xml not found'

I would attach the log, but the xda app says no.

But I don't think it's a complex thing :)

Log ends with:

(...)

{Many access denied messages}

libc: Access denied finding property "libc.debug.hooks.enable"

!!

fileq: com.dragons.aurora.xml not found

!!

libc: Access denied finding property "ro.vndk.lite"

libc: Access denied finding property "ro.vndk.version"

libc: Access denied finding property "libc.debug.malloc.options"

libc: Access denied finding property "libc.debug.hooks.enable"

- Unmounting partitions

__bionic_open_tzdata: couldn't find any tzdata when looking for CST6CDT,M3.2.0,M11.1.0!

__bionic_open_tzdata: couldn't find any tzdata when looking for posixrules!
[Magisk] amg314:
Try install Aurora Store from F-Droid repo:

https://f-droid.org/en/packages/com.dragons.aurora/
[Magisk] starbright_:
Just have same behaviour, but was still in latest stable. But I changed my LOS16, so I suspect it doesn't deal with microG.
[Magisk] rayman95:
just clean flashed lnew havoc rom for my device N9005 samy, and used latest beta nano and gotdirectly reboot to recovery with setup wizard flash..

tried 3 times to flash havoc, nano webview, fdroid, microg, kernel, magisk18.1, and thn setup wizard and each time, reboot recovery

then flashed again all the files except setup and boot normally........

doesn't have get log to share

anyway thank's for your good job...
[Magisk] Oswald Boelcke:
As far as I know HavocOS inherently supports signature spoofing, so how about this flashing procedure?

Flash Havov-OS, Magisk, kernel, reboot into system.

Boot into recovery

Flash/run setup wizard, flash NanoDroid Webview, F-Droid and microG sub-modules; reboot into system.
[Magisk] Tomatot-:
Same for me.

Op6 android Pie
[Magisk] amg314:
Try Yalp Store - Aurora is Yalp fork.

https://f-droid.org/en/packages/com.github.yeriomin.yalpstore/

Works OK on my Oreo.
[Magisk] SrJardel:
I am also unable to add a Google account. Same thing as the user TiTiB above, the login process goes fine until I accept the terms, then it keeps connecting forever until the session expires.

Using LOS16 on Titan, Nanodroid_microG+Fdroid+BromiteWebview packages. It was working fine before I had to do a clean wipe after updating my ROM.

Also the SafetyNet check on Magisk is failing, but I really don't remember if it was like that before.
[Magisk] Tomatot-:
I know that and I can install Aurora myself I'm just reporting the issue to help. :)
[Magisk] rayman95:
had no issues with my method on previous nano version, but with your method, no issues...

thank's

but had to flash kernel then magisk and setup wizard at the end because auto reboot...
[Magisk] LovepreetSinghGill:
Aurora was a yalp work but now it is rewritten from scratch
[Magisk] SrJardel:
What would be the best method to backup and restote a patched services.jar?

I am doing extensive tests to get this working on my phone, and to wait for the patcher to finish every time I try a different build/combination is a big slow down for me since I have kids to take care of and other stuff going on, and I really need my phone working G-less like before as fast as I can.

Simply copy/paste would do or do I need to type a chmod command or something?

Thanks in advance.
[Magisk] temporarium:
For anyone who's got problems re-registering for GCM, try clearing the microG services core cache. It may help.
[Magisk] TiTiB:
Yeah, I'm even on a different ROM now (for different reason—RR, btw), and still no connection. My login is fine—able to update purchased apps with Yalp, but not Aurora.

Got money burning a hole in my pocket. Have my eye on five or six new apps! and it's looking more and more like pico Gapps (with freeze/unfreeze as needed) might be the answer. ?
[Magisk] Setialpha:
Google Play requires your device to pass SafetyNet, else it doesn't work. Also see the Issues section of the NanoDroid documentation.

Also bug reports without logs won't help much.
[Magisk] Setialpha:
Fixed in the development version (git), thanks.
[Magisk] PoochyX:
Will Micro G ever work with wearables?

[emoji3436]I Willl Scarfice For Those That I Love [emoji3434]
[Magisk] amg314:
Copy your patched services.jar to any handy directory.

If necessary, copy this file to its place in the /system/framework and set permissions 644.
[Magisk] Oswald Boelcke:
I apologise to reply here as it's µG related and off-topic to NanoDroid: PoochyX. Maybe if you contribute to this bounty?

Regarding implementation status:

https://github.com/microg/android_packages_apps_GmsCore/wiki/Implementation-Status

https://github.com/microg/android_packages_apps_GmsCore/issues/4
[Magisk] Hetzer'93:
I just found out that using Bromite System Webview causes Google login problems(not processing after agreeing to Terms of Service). Maybe you should add that to the known problems. After logging in you can replace the normal Android System Webview.
[Magisk] Setialpha:
Hmm, if so, it must be a rather new bug, as I've not experienced it. Though they've pushed 4 updates since I last logged in. Their ChangeLog indeed mentions a Play Services related issue being fixed, so maybe today's update fixed it?
[Magisk] marcdw:
Hopefully possible. In the Vanced YouTube thread where folks were having login issues, it turned out that Chrome/Chromium webview v74 was the issue.

On my other device where I was trying to redo my microG/NanoDroid setup I found I couldn't recreate my Google account. After uninstalling Bromite webview updates, bringing me down to v72, I was able to complete the login.

Moto G5s Plus XT1806, GZOSP v1.1, microG (NoGapps), MultiROM, XDA Legacy
[Magisk] TiTiB:
&

RR-O-v6.2.1-20181221--Official

NanoDroid-20.7.92.20190424

Not exactly sure why Play Store works now, but here's what happened.

I did all the usual/expected things—un/reinstall or flash, signature spoof verified, all items in microG Settings checked, cleared caches, THEN I realized I had Fake Store (com.android.vending) v0.0.2 installed. I'm not sure why that was installed using below "nanodroid-setup" config, but it was.

nanodroid_microg=1

nanodroid_gmscore=0

nanodroid_fdroid=0

nanodroid_apps=0

nanodroid_override=0

nanodroid_play=10	<<————<<

nanodroid_overlay=1

nanodroid_zelda=0

nanodroid_mapsv1=0

nanodroid_init=1

nanodroid_gsync=0

nanodroid_swipe=0

nanodroid_forcesystem=1

nanodroid_nlpbackend=1000

nanodroid_bash=1

nanodroid_nano=1

nanodroid_utils=1

nanodroid_fonts=0

I obliterated v0.0.2 and installed v14.7.50-all [0] [FP] 244421004, and was then able to login.

This was followed by the "Error retrieving information from server. DF-DFERH-01" problem. Cache/data cleaning followed. Success! got to Play Store, but no apps showed in "My apps & games". So, I waited, having read that it could take up to several hours for this to be "populated". Went bed and next day still no apps showing.

My Account>ORDER HISTORY showed my purchases, but if I went to one of my purchased apps and uninstalled it, Play wanted me to buy it again. Hmmm. So, I then un/reinstalled one my free apps, Voila! Everything was normal again.

Kinda peculiar, if you ask me.

[EDIT] Just noticed that somewhere along the way my Bromite SystemWebview was replaced with the "default" one with the blue icon (not sure of source, but it's the one that is 112.07 MiB (117,514,142 B) in size). I'm not about to install the Bromite one again and test it before I do a system backup. From the Bromite site 'NOTE: installing the APK in the /system partition will break SafetyNet.' Will test it later.

[EDIT2] All seems well with Bromite System WebView_74.0.3729.122 installed.
[Magisk] Bilge656:
Does anyone have NanoDroid working on Pixel 2 XL?
[Magisk] Shobit Joura:
Not working sir , anymore any idea how to troubleshoot?
[Magisk] Kazuhiro Yasei:
So, I began trying to install NanoDroid today on two different phones, and each ends in a different result.

My main phone, a Lenovo P2 (P2c72) installs it normally with the designated settings, yet even though the ROM I'm using does support signature spoofing natively and F-Droid updates Play Store to the latest version avaliable on the Nanolx F-Droid Repo (v14.7.50-all [0] [FP] 244421004). Attempted reinstalling the ROM itself (8.1 Oreo), the app, getting rid of Play Store's data and cache, yet nothing worked to fix the infamous DF-DFERH-01 error.

The second device, a Motorola Moto G 2013 borrowed to my dad, doesn't even flash the package itself. Using latest TWRP on it, the error showed is "!! installing libs for Phonesky failed !!", with no further explanation. Attempted flashing on LineageOS 15.1 and an unofficial LineageOS 14.1 build.

Any hints on what I should do, especially in the first case? Thanks in advance for your help and patience!
[Magisk] garylawwd:
To bypass that error clear data and cache for playstore reboot and open your browser, then search for an app through the browser and open with playstore. That should get playstore working

For the second case I cant help I don't know why it wont install. It is a clean install of rom is it?
[Magisk] Kazuhiro Yasei:
Tried that method on the P2 already as I read in the topic, but it didn't work.

And yes, on the Moto G, I'm trying to perform a clean install. Attempted flashing NanoDroid both with Magisk, before the first boot, and after ensuring it was properly installed.
[Magisk] mongo0:
I have this issue too after updating the rom, magisk(19.0), nanodroid(20190424).

Sadly I haven't android systemwebview available even though I did not flash Bromite webview after updating the rom.

Bromite System WebView (com.android.webview): 74.0.3729.122
Google Play Store (com.android.vending): 14.7.50-all [0][FP]244421004
microG Services Core (com.google.android.gms) 0.2.6.15090-dirty-167
[Magisk] raptorddd:
is the last stable release of nanodroid working ok.? i havent seen an update since months.

never had issues with latest stable.
[Magisk] Estebanium:
Hi maybe a stupid question, but is Busybox shipped with NanoDroid? And if yes is it shipped via the Magisk Module if it is installed systemlessly?
[Magisk] abacate123:
Thanks :)
[Magisk] bilbonotry:
So play store included in nanomod cannot be updated ? Is it the same for the others included apps especially microg ?