yashsingh1/xdaforums huggingface dataset:
[Magisk] mewujocapi:
Hello,

I just want signature spoofing so I built NanoDroid patcher today to patch a LOS16 installation. I guess this is the way to do so, there's no other NanoDroid stuff to be installed first, the patcher works standalone, right? However, patching is not successful, here's the log:

********************************
NanoDroid
Framework Patcher
Powered by DexPatcher
22.4.20190817
********************************

mount: losetup failed 1
mount: '/system' not in /proc/mounts
rootfs on /
tmpfs on /dev
devpts on /dev/pts
proc on /proc
sysfs on /sys
selinuxfs on /sys/fs/selinux
tmpfs on /mnt
none on /acct
tmpfs on /tmp
none on /sys/kernel/config
adb on /dev/usb-ffs/adb
pstore on /sys/fs/pstore
/dev/block/sda28 on /cache
/dev/block/sda31 on /data
/dev/block/sda31 on /sdcard
/dev/block/sda25 on /system_root
/dev/block/sda26 on /vendor
> preparing environment
> Android 7.0 - 9.0 (SDK 28) detected
__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!
> device architecture: arm64

++
++ services.jar status: DEODEX
++

> patching signature spoofing support

>> patching services.jar
libc: Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 4933 (main), pid 4933 (main)
Aborted

!! failed to apply patches

Updater process ended with ERROR: 1
I:Install took 1 second(s).
Error installing zip file '/sdcard/NanoDroid-patcher-22.4.20190817.zip'
Updating partition details...
I:Data backup size is 3404MB, free: 104495MB.
I:Unable to mount '/external_sd'
I:Actual block device: '', current file system: 'vfat'
I:Unable to mount '/usb-otg'
I:Actual block device: '', current file system: 'vfat'
...done
I:Set page: 'flash_done'
I:operation_end - status=1
I:Set overlay: 'slideout'
I:Set overlay: ''
I:TWFunc::Set_Brightness: Setting brightness control to 5
I:TWFunc::Set_Brightness: Setting brightness control to 0
I:TWFunc::Set_Brightness: Setting brightness control to 15300
I:TWFunc::Set_Brightness: Setting brightness control to 5
I:TWFunc::Set_Brightness: Setting brightness control to 0

Setup:

LOS16

TWRP 3.3.1

NanoDroid 22.4.20190817

Edit: In a previous post there has been a solution posted by running manually:

This however gives me:

However, I can totally fine cd to /system/framework, I have write and read access there etc. So any help is appreciated.
[Magisk] garylawwd:
Los has built in signature spoofing doesn't it?
[Magisk] amg314:
If you need only signature spoofing use SmaliPatcher. In a result you will got *.zip with patched framework.jar. You can flash this *.zip thru Magisk or TWRP.

https://xdaforums.com/apps/magisk/module-smali-patcher-0-7-t3680053
[Magisk] d1n0x:
No
[Magisk] garylawwd:
No I just thought it did as the few devices I have all have in built sig spoofing in los.

Just a coincidence in my devices
[Magisk] d1n0x:
Must be the maintainer adding it in or an unofficial version, official LOS doesn't and never will include signature spoofing (except the MicroG fork of course)
[Magisk] anvesh583:
[MENTION=4187311]Setialpha[/MENTION] Sir can u update the patcher to work with android q as well?It terminates as error stating API29 not supported . Microg zip flashes successfully in q beta but no signature spoofing and incorrect phonesky and store signatures .
[Magisk] mewujocapi:
Thanks for the tip [MENTION=8056188]amg314[/MENTION]. As far as I can see this works with Magisk only, right? I don't want Magisk, too much effort for just spoofing.

[MENTION=4187311]Setialpha[/MENTION], do you see a solution to that problem posted in #7026
[Magisk] amg314:
You do not need Magisk to install patched with SmaliPatcher framework.jar.

You can flash *.zip in TWRP. BTW, it was said in my previous post))

I will say more - you can extract patched framework.jar from the *.zip and replace existing framework.jar manually in the root file manager like Total Commander.

At your own risk!
[Magisk] ydd0ras:
Cool, have you already tested?
[Magisk] mewujocapi:
Yes, you did. Thanks for pointing out SmaliPatcher. I also had a look at Haystack - which patches in an UI where you can choose to activate or deactivate Spoofing. However, SmaliPatcher and Haystack need to be used with a PC. I was looking for a solution like NanoDroid which I just have to flash once and then it re-applies itself after LOS got updated. I guess I need to wait for a fix from its maintainer.
[Magisk] amg314:
Yes, my framework.jar was patched using SmaliPatcher.

Make Nandroid backup before any experiments with framework.jar, microG, other system files!
[Magisk] ydd0ras:
Nice to know. I am using microG for a long time. When ROM is not deodexed, then I do deodex the services.jar manually and flash the NanoDroid patcher. But now I have 2 problems:

1 Mi 9T: it said, not supported A/B device.....

2. Poco F1: testing Android Q, DP6. And the patcher will not work on Q.

That's why i will try this!

Do you had any issues? You had to restore anything?

Many thanks!
[Magisk] amg314:
First, SmaliPatcher deodexes framework.jar, then implements signature spoofing to it and compiles the zip archive for flashing in Magisk or in TWRP.

My tablet is an A only device, working under Oreo 8.0.

I had no issues with SmaliPatcher.

IMO, it is a good tool for signature spoofing support.
[Magisk] ydd0ras:
Many thx
[Magisk] ydd0ras:
Just tried to make a patch for sig spoofing, but stuck here...
[Magisk] PoochyX:
Yeah it's a frustrating process

([emoji3590]09-09-18[emoji813])
[Magisk] temporarium:
Yeah it's a useless post... again.

So is mine, come to think of it, but at least it had a motive.
[Magisk] amg314:
It looks like SmaliPatcher can't copy /system/framework to your PC.

Copy /system/framework from your Android to your PC manually, using Total Commander plugin by Jakub Klos https://wincmd.ru/user/9924329.html .

After copying point SmaliPatcher to framework.jar on your PC and run it.
[Magisk] ydd0ras:
Many thanks will try
[Magisk] ydd0ras:
Wow, that worked great. Didn't used the Commander, but pulled files with adb pull from cmd. Perfectly deodexed! Flashed from Magisk and now the signature is spoofed (for Nanodroid microG).

Many thanks mate for awesome tip!

Greetz!
[Magisk] ristein:
any idea why that location icon is always in statusbar?
[Magisk] smnthermes:
What are the advantages of mpv over VLC?
[Magisk] Roman_RO:
If anyone's not busy and feels like helping out with getting this to work, I would be grateful!

---------- Post added at 11:08 PM ---------- Previous post was at 10:31 PM ----------

What do you mean "create the same account in a common way"? I flashed my rom only I did not flash gapps. After I flashed my rom i flashed magisks, then rebooted went to settings and ticked spoof support. Then rebooted back to recovery and flashed only this zip, nanodroid 2019811 zip then rebooted. If I want to use the apps I bought on Google then do I got to sign into Google? Also I cant sign in to Google. I opened microG to add account and it won't add my Google. All check boxes are check in self check.
[Magisk] marcdw:
Might be a ROM thing. I've got a couple, like OmniROM Oreo, where it seems stuck there. Haven't yet figured out why it's there or how to remove it.

LG G3 D851, Clean ROM v3.2, NanoDroid (microG), MultiROM, XDA Legacy
[Magisk] Brenneke:
Aurora tells me I have a microG update. (screenshot 1) When I select it to see more information it shows as Google Play Services. (screenshot 2)

Is this legit? Should I update this?
[Magisk] PoochyX:
No it updates Google play services not micro G remember you spoofed the signature.... Micro G updates are threw F Droid

([emoji3590]09-09-18[emoji813])
[Magisk] amg314:
Just added another account (from my reserve accounts) to my tablet. No problem!

Settings --> Add new account --> Google --> microG --> my_email@gmail.com --> pass --> OK!

Wait!

You said that "went to settings and ticked spoof support."

Does it mean that your ROM natively support signature spoofing?

In this case you do not need framerwork.jar patching. If gapps are not installed too (as you stated in your post), you need simply install main microG apps thru https://microg.org/download.html without NanoDroid.
[Magisk] pokipokipxorn:
Hi, what's the status regarding MicroG and WhatsApp now, after one year I didn't try microG.

What do I need to do to get WhatsApp working with timely auto notifications? Thank you
[Magisk] ristein:
thanks for the reply!

i used the rom before and didn't experience this, so i wouldn't believe that.

even if i turn location off and restart, that icon is still there.

i installed all 5 unified nlp backends.

most recent location request is always microg services core.

any help is appreciated
[Magisk] marcdw:
[MENTION=7733178]ristein[/MENTION], ah, I didn't think about that. Maybe one of the backends causes the location icon to show. Time for some experimentation.

I have four backends on OmniROM. Unchecked all and rebooted. No location icon.

Enabling one by one...

Nominatum: No icon.

DejaVu: No icon.

RadioCells: No icon.

Mozilla: No icon.

Hmm, so i have no location icon showing with all backends enabled. Open OsmAnd and location icon shows. Close OsmAnd and icon disappears. Okay, it's no longer sticking at the moment. Hmm (again). So maybe in my case there might be an app or something that was constantly using location. Given that the icon was always there i assumed it was a ROM issue. Now I just have to wait for it to appear out of the blue and check running processes to see what triggers it.

I have the same backends on this Clean ROM (LG G3 debloated stock MM) with no sticky location icon.

What's that fifth backend you're using? I'll try that one, too.

EDIT: After being idle for a bit, the location icon in OmniROM showed up. Any number of items that use location may be triggering it. Launcher, clock, a social media app, microG, etc. I would have to deny location permission to everything to narrow it down. Technically the icon doesn't/didn't bother me but now I'm curious.

LG G3 D851, Clean ROM v3.2, NanoDroid (microG), MultiROM, XDA Legacy
[Magisk] temporarium:
Works flawlessly here. Always has. Just make sure it's registered properly.
[Magisk] githyanki:
Of you have app ops in your rom, it will tell you which app is using permission and allow you to block it if you like.
[Magisk] Brenneke:
OK, am new to microG but it does make sense, thank you. Nice that there is blacklist feature in Aurota.
[Magisk] ristein:
[MENTION=6046143]marcdw[/MENTION]

the problem is gone suddenly. don't know why, but that loc. icon disapeared and working normal now.

i restricted "phone" from using location yesterday, but after allowing that again its still working.

but gonna install app ops anyways, liked it a lot when i had it some year ago on some custom rom i dont remember, any recommends for that?
[Magisk] Coolgoly:
Can't install nanodroid on Mi 9 after formatting data to remove encryption.Process ends with error 1.

What I have to do?

edit: I don't know well how but after have tried everything finally the zip is installed
[Magisk] SysAdmNj:
n/a
[Magisk] Roman_RO:
I don't wanna have to add a new account because I have some apps I bought I'd like to use. In the rom settings it shows that my gmail is added, but in MicroG it doesn't show its added. I also installed Aurora store apk and every damn time I try to sign in with my Google it says check your password lol. This is soooooo frustrating...
[Magisk] githyanki:
Do you use 2 factor authentication on your gmail account? Aurora does not support that, you'll have to setup an app password to use it.
[Magisk] marcdw:
Somewhat related. One of my microG ROMs, crDroid, had gone unused for awhile. Play Store kept coming up blank. Wiping cache and data didn't help. So I removed and re-added Google account and all was good. This time though the sign in included a captcha. Never seen that before.

ZTE Axon 7 A2017U, AospExtended v4.6 ROM, Radioactive v2.4 Kernel, microG (NoGapps), Multiboot, XDA Legacy
[Magisk] Roman_RO:
Ok, how do I setup a app password.
[Magisk] githyanki:
https://www.google.com/search?q=how+do+I+setup+a+app+password
[Magisk] Roman_RO:
I was assuming from this link that I am supposed to make a Microsoft account,but I did not. Instead I figured out how to use google security for app password. Also I can not access my contacts, I don't know why because I saved them to my sim card. There is a problem with TI backup its still checking the pro key license, I bought the app years ago. Also root explorer pro is working perfect, there is no waiting for a license check....
[Magisk] PoochyX:
These all limitations of micro G

([emoji3590]09-09-18[emoji813])
[Magisk] Roman_RO:
Keychain keeps asking access to contacts, even after I sync contacts. I swipe the notification away but it keeps coming back...

Sent from my motherboard
[Magisk] marcdw:
Not quite. If that were the case I'd have the same limitations, which I do not.

[MENTION=9736821]Roman_RO[/MENTION], if you have a working Play Store then Titanium Backup's pro key should work fine. Any app that does license checking will need the Play Store. As you see with Root Explorer there is no license checking so it will always work. I've got quite a few Pro apps that are good to go.

Not sure about the contacts thing. Never put them in SIM before. As far as syncing, I take it you have the Google sync adapters installed? Is calendar syncing working?

ZTE Axon 7 A2017U, AospExtended v4.6 ROM, Radioactive v2.4 Kernel, microG (NoGapps), Multiboot, XDA Legacy
[Magisk] pokipokipxorn:
After dabbling with microG and nanodroid a year ago, I recently try to use them again. Realized both made great strides, with vastly improved features.

Nanodroid Patcher can work on Pie roms, including latest MIUI Beta China, EURom and customs roms.

microG gmscore v0.2.8.17785 works with WhatsApp FCM, although WhatsApp chat backup function to Google Drive does not list any Google account.

This can be circumvented by first installing WhatsApp to a normal opengapps/vendor Rom, then configure a working WhatsApp chat backup. The Google drive account should be clearly listed. On this normal Rom, the system backup should also point to a working Google drive account.

Then install oandbackup, and perform a backup of data on WhatsApp.

Proceed to copy the following folders from internal storage to a safe location

Android/data/com.whatsapp

oandbackups

WhatsApp

When using on microG roms, first install Whatsapp, then copy the above three folders back to Internal Storage. Finally restore the oandbackup WhatsApp data. Launch WhatsApp and see the chat backup option pointing to Google Drive account.

Remember, when using microG, there is no implementation of Google Backup Transport. Although Google Drive app works, it cannot sync (use FX file Manager to copy to Google drive web folders instead).

To backup WhatsApp chats, use

Internal WhatsApp chat backup (online)

oandbackup (local)

Restore using the above mentioned methods (locally manually)

To get other Google features to sync, they must be systemized (magisk module):

Google Contacts Sync adapter

Google Calendar Sync adapter

To display synced data, they must be systemized:

Google Calendar

Contacts

Playstore

If above fails to sync, fails to register FCM/GCM push:

remove your Google account, flush all data (sync adapters, all Google apps, microG GMS core etc)

Reboot and add new account

All required permissions should be granted automatically since the apps are systemized.

Also try to toggle FCM/GCM Advanced "Confirm new Apps"

Test FCM/GCM delivery using Push tester app

Hopefully, the next microG breakthrough will be functional implementation of Google Backup Transport
[Magisk] temporarium:
Thank you for a detailed writeup.

But, I need to point out: microG exists to keep data out of Google's hands. You're going out of your way to send it to them. ?
[Magisk] guest4711:
For you and me I agree. But there are a lot of people who use it to have access to all google services without the overhead of plain g-apps. So they can use them even with smaller devices like S II.

Edit: To keep the data out of google's hand you don't need microG. Unified NLP (location services) is all you need...
[Magisk] marcdw:
Yeahhhh, I'm not sure about that. microG is more like a subset of Play Services. It has Google login, device registration, and GCM so it's hardly keeping data out of Google's hands. Some yes, but not all. As [MENTION=8010004]guest4711[/MENTION] alluded to, no microG would get you Google-free.

One of my setups, Candy7 on my G3, only uses UnifiedNlp. I'd say it's 99% Google-free as I use my Google account in Yalp to update some Pro apps like Root Explorer. It's actually one of my better setups. Snappier and less overhead.

We've already covered in this thread that people use microG for various reasons. Not always to keep things away from Google, just a little less maybe, be it data or general overhead.

Essential PH-1, /e/OS 0.7-n ROM, microG (NoGapps), XDA Legacy
[Magisk] Brenneke:
I can say with certainty that Play Store is not required to run Titanium Pro - the people at Titanium emailed my license file and instructed me to place on phone storage - works 100% with Play frozen in TiB. (and never glitches on opening anymore as it sometimes did even with Play Store)

---------- Post added at 05:25 PM ---------- Previous post was at 05:09 PM ----------

Still a big difference in my view between logging in to Play (through Aurura or Yalp) to get apps and having Google spyware actively running on phone in background sending information back to mothership even when they have no permission to do so, eg location when Location turned off. This (obviously) impacts battery as well as privacy.

I see microG as a stepping stone to allow one to migrate away from the use of Google and personally would drop it if I saw it was moving toward syncing with Google etc.
[Magisk] marcdw:
Yep. I did the same awhile back after wanting to setup some Google-free environments. Similar with a couple of others like GravityBox. [emoji106]

Moto G5s Plus XT1806, OmniROM 8.1.0, NanoDroid, MultiROM, XDA Legacy
[Magisk] Roman_RO:
Thank you, I was having issues with the pro key. I'll send TI an email and see if they will email me my license key. Were exactly in phone storage do you put the key?

---------- Post added at 01:29 AM ---------- Previous post was at 01:19 AM ----------

I don't have play store, I'm using micro g and Aurora store. I now am having trouble logging into Aurora for some reason. I was logged into Aurora but I had to log out for some reason, and now I gotta go through the whole app password thing again, which is a pain in my but. I need to contact TI to get my pro key so I can access pro features of TI. So as soon as I figure out what there email is I'll be set...
[Magisk] githyanki:
I got my key by backing it up (using TiBu) when I was using gapps. Don't even need to restore it, as long as TiBu can find it.

I also store my app passwords, aurora seems to get logged out way too often.

On the WhatsApp issue, it backs up to local storage nightly so no need to do all of that work. If your worried about losing phone or internal storage, copy it to PC occasionally.
[Magisk] mongo0:
Why do some apps work with mapbox while others don't and/or even crash:

27936 27936 E zzbz : Failed to load maps module, use legacy
27936 27936 E zzbz : com.google.android.gms.dynamite.DynamiteModule$LoadingException: No acceptable module found. Local version is 0 and remote version is 0.
[....]
27936 27936 E AndroidRuntime:AndroidRuntime: FATAL EXCEPTION: main
[...]
27936 27936 E AndroidRuntime: java.lang.ClassCastException: android.support.v7.widget.AppCompatImageView cannot be cast to android.support.v7.widget.AppCompatImageView
[Magisk] flieswithhawks:
[MENTION=6046143]marcdw[/MENTION]

I see you are running a device with /e/ ROM. Are you aware of the controversy surrounding that OS? I had read a rather negative write up about it...

*PSA TO ALL - If you are using Aurora Store, please remember that by logging in with your actual Google account, you take the risk of being "blacklisted" as it were by them.

- On a side note, Aurora Droid has been working great from a front-end UI perspective.
[Magisk] forjustin:
Controversy!? Please tell, or point me in the right direction.
[Magisk] marcdw:
[MENTION=7303493]flieswithhawks[/MENTION], yeah, I'm aware of that negative write up. That was quite awhile back and the e.foundation has addressed most of the concerns. There's no controversy really.

There was also a second write up from the same people I believe. When you claim to be Google-free there are those who want to make sure that is indeed the case. A good thing.

When it comes to various articles sometimes you gotta check the tone. Criticising or critiquing, informing or hating. Even NanoDroid has had some detractors. Well, at least one.

Anyway, I have /e/OS on two devices (this Axon being one of them) and is no more controversial than the dozen other microG-based ROMs I run (multiboot addict that I am).

ZTE Axon 7 A2017U, AospExtended v4.6 ROM, Radioactive v2.4 Kernel, microG (NoGapps), Multiboot, XDA Legacy
[Magisk] Brenneke:
Directly on internal storage, not in a folder.
[Magisk] flieswithhawks:
[MENTION=6046143]marcdw[/MENTION]

I believe it had more to do with donations and them being fraudulent than anything else, but enough OT talk from me...
[Magisk] kaos_king:
I'm trying to install microg on a stock rooted Note 10+ 5G, I've used Smali Patcher for signature spoofing which was successful however when I install NanoDroid I do not get microg in the app drawer, looking in /system/priv-app/GmsCore it appears to be the correct one and has a libs folder in there. If I manually install GmsCore there its the same issue.

I've not had this before, does anyone have any ideas? Thanks

*Edit* - Seems I double posted
[Magisk] amg314:
If you decided install microG using 'half automatic' method, you do not need NanoDroid.

After succesful signature spoofing in SmaliPatcher you need manually delete gapps (I reccomend do it using SDMaid Pro) and install main microG apps https://microg.org/download.html
[Magisk] kaos_king:
I used SmaliPatcher because NanoDroid Patcher is giving me an error (same as THIS). I have just clean installed stock, rooted and so now I will try SmaliPatcher and manually deleting gapps
[Magisk] amg314:
NanoDroid is a great universal tool. BUT, each ROM (primarily made in China) has “local bugs” like non standart system applications names, etc.

Thus, NanoDroid cannot "do its job" and throws errors.

IMO, manual microG installing is slowest but rightest method. You can control the result on every step.
[Magisk] kaos_king:
I'd agree, I prefer to know whats going on rather than some of the extra things that NanoDroid gives you but I am getting short on time these days to mess around so went for an "easier" solution. I think you're on the right lines though with the "local bugs" as I think its to do with how 'system' is mounted on this note 10.

I've just copied microg to priv-app after a clean install of the rom but its still not in the app drawer? I'm at a loss
[Magisk] amg314:
1. Patch framework via SmaliPatcher

2. Flash patched_framework_SmaliPatcher.zip via Magisk or TWRP

3. Remove gapps using SDMaid Pro: (Delete any apps including system and clean garbage professionally)

/system/priv-app/PrebuiltGmsCore

(AKA */GmsCore, */PrebuiltGmsCorePi , */PrebuiltGmsCorePix)

+ /data/app/com.google.android.gms-1

/system/priv-app/GmsCoreSetupPrebuilt

/system/priv-app/GoogleFeedback

/system/priv-app/GoogleLoginService

/system/priv-app/GoogleOneTimeInitializer

/system/priv-app/GooglePartnerSetup

/system/priv-app/GoogleServicesFramework

/system/priv-app/Phonesky

wipe dalvik-cash

4. Download and install main microG apps

microg.org/download.html

5. Reboot
[Magisk] Oswald Boelcke:
Do the folder "GmsCore" have permission "755" and the apk "GmsCore" persission "644" granted? Did you reboot after you moved microG to priv-app?
[Magisk] cnat:
So when I flash an update for my ROM (running Lineage rn), I'll need to re-flash the patcher, then NanoDroid, correct? Then I'll have to reconfigure MicroG, correct? Will I run into any issues?