yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] Kaalba:
yes but then no privacy.

i already downloaded calyx os on another phone. i wanted to get lineage on the other phone :( i want to stay with stock rom but i want to delete google services and apps (all of them) without bricking my device cuz idk which is which. :( :( :( :( :( :( :( :( :(
[Android Software/Hacking General [Developers Only]] kurtn:
How is calyx OS running for you? Do you run apos that need safetynet? What apps need GApps?
[Android Software/Hacking General [Developers Only]] Kaalba:
calyx is good. i love it. i have banking apps, and they work just fine. but i did disable or i never enabled the safety net in microg. so idk why they still work. but they do. if i ever encounter app that says something or doesn't work without it. i will enable it. but so far so good. all apps work fine.
[Android Software/Hacking General [Developers Only]] Kaalba:
if you have aurora store, it will tell you if the app requires google play services.

you can check this site to know which apps work or dont (but they are not complete) but simply if you have microg, all apps work

Crowdsourced de-Googled Android apps status ratings

Remove the fear of Android app compatibility on de-Googled devices.

plexus.techlore.tech
[Android Software/Hacking General [Developers Only]] ChaosNicro:
Sorry for the dumb question, but this still makes magisk a hard dependency for patching signature spoofing on R, right?
[Android Software/Hacking General [Developers Only]] HyperCriSiS:
deleted.
[Android Software/Hacking General [Developers Only]] electricfield:
My situation is a little different. I'm trying to install signature spoofing on something that isn't a phone.... heck it isn't even an android device..... a Raspberry Pi.

I'm using Konstakang's Android 11 rom linked here: https://konstakang.com/devices/rpi4/

Since the Raspberry Pi isn't really an android device, a lot of the processes typically used to do android things don't make sense (there's no fastboot, no dialer, etc.). I have no way to install Magisk, so I'm trying to understand each of the components and steps in order to adapt the procedure.

It seems like the goal here is to:

1) patch your device's services.jar with dex files that the original author pre-generated using haystack

2) install this services.jar over your existing one, and

3) tell the system that signature spoofing should be activated

First, the components:

1) The spoofAVDapi30 zip file contains an app that claims to be "Signature Spoofing Support (NanoDroid-Patcher) plus a dummy services.jar

2) The microG AVD Magisk Marvin zipfile appears to contain copies of microG and related apps that are intended for installation in priv-app (I don't want to use these... I want to use mciroG from the f-droid store so that it gets updates).

3) The haystack-11-attempt zipfile contains dex files that have been pre-patched with signature spoofing (along with a lot of other stuff that is not used)

4) dexpatcher is a java program that is used to extract the contents of services.jar and patch them with the dex files from (3)

5) adb is used to push and pull files to/from the device

My initial procedure is pretty straighforward. I can take the system disk out of my device and mount it on a linux system, so I do.

I copy framework.jar from the relevant place to a directory with the haystack dex files and dexpatcher and use the patch command (starts with "jar") in the first post. Everything works fine.

I repack framework.jar and copy it to the system disk using "cat >" instead of "cp" in order to retain any permissions that have been set.

I put the system disk back in the device, boot up, and install microG from f-droid. I also install fakeGapps from f-droid.

microG says that my rom does not support signature spoofing (zero checkmarks).

I tried instaliing the apk that was inside the spoofAVDapi30 zip, but it doesn't seem to do anything.

Here are my questions.

Is there somewhere that I need to tell the system that signature spoofing should be activated?

Do microG and its friends need to be installed in priv-app instead of as regular apps?

Does magisk do anything other than copy the services.jar to the correct place? I'd like to understand how this procedure works instead of waving my magic app-wand around and hoping for the best.
[Android Software/Hacking General [Developers Only]] kurtn:
No idea about your procedure.

The thing with system app is: some features of microG will not work if you install it as user app.

What do you want microG to do for you?

Magisk does nothing magical. Its just used for changing system partition content without actually writing to system partition. MicroG runs fine without Magisk.

Why don't you try to build or use a OS with baked in signature spoofing?
[Android Software/Hacking General [Developers Only]] electricfield:
I am not aware of a rom for Raspberry Pi that has signature spoofing.

I am aware of docker-lineage-cicd, but I don't have the knowledge required to combine it with the Pi sources in order to compile a rom.
[Android Software/Hacking General [Developers Only]] kurtn:
What do you want microG to do for you?
[Android Software/Hacking General [Developers Only]] electricfield:
Location service is the main requirement.
[Android Software/Hacking General [Developers Only]] kurtn:
Location service works without signature spoofing. Just make com.google.android.gms a system app
[Android Software/Hacking General [Developers Only]] electricfield:
Thanks for the comment, but I'm still going to need microG working. I have a couple of apps that attempt to detect play services. If they don't find it, they won't run. They run fine with microG on another device.
[Android Software/Hacking General [Developers Only]] mineshaftgap:
Thanks @Kingslayer9988 this worked like a charm on the Uniherz Jelly 2 with LOS 18.1 as installed from this thread as described by @Meetoul

Your very first post here was basically enough, but it was an amazingly detailed thing to carry out, pleased I had a few hours to focus single mindedly on it and do it until it was done. Will write the more specific aspects of it in the other thread.
[Android Software/Hacking General [Developers Only]] mineshaftgap:
Basically, everything is working. I needed this for mobility apps, and have found so far after trying 4 of them that 3 out of 4 have worked. I started a thread about the one which was complaining here:

https://xdaforums.com/t/unable-to-process-request-due-to-missing-initial-state.4340237/

...but basically I'm happy as it seems I can use these things around the town despite lineageos + microg. Actually one app has a very unusual quirk, basically some of the cars are available and some aren't "because the phone is rooted". I may PM someone about that. Still, will be content as it is very good outcome for open source remake of all this play services stuff.

This was the first time I ever used or installed from magisk :

Where did that file come from? Did someone ask marvin to create is specially for this thread? Most of his microg files are either .apk or .zip but I think it is a .zip of the whole repo. This is some other kind of .zip, presumably a .zip made for magisk. It would be nice to know if there is a way to add newer versions of microg through magisk as they become available.

There are two small issues in this one for me:

google cloud messaging will not switch on

„im Hintergrund auf den Standort zugreifen“ cannot be ticked, background update of positioning.

So not a big deal, but they may be the cause of the quirks I've observed with some of the app.
[Android Software/Hacking General [Developers Only]] masset12:
Hi all,

Many thanks to Kingslayer9988 for his OP, everything works fine for sigspoof enabled :-)

Unfortunately, I can't manage to have microg properly installed ..

I tried microG\_AVDx86api30\_magiskMaRViN.zip, MinmicroG, nanodroid and even Microg Revived from the magisk repo without any success ..

I either got a bootloop or either MicroG is installed but randomly disappear after reboot and I have numerous notifications telling playstore is not working ..

I already installed microG on my S8+ (MinmicroG) without any issue but I used to debloat this files from /system/priv-apps before flashing microG :

- GmsCore (PrebuiltGmsCore, PrebuiltGmsCorePi, PrebuiltGmsCorePix)

- GoogleBackupTransport

- GoogleFeedback

- GoogleLoginService

- GoogleOneTimeInitializer

- GooglePartnerSetup

- GoogleServicesFramework

- Phonesky

- SetupWizard

- Velvet

Should I also debloat the same before ?

I can't figure what I'm doing wrong

I am on SM-G986B/DS, Android 11, Beyond Rom 3.7

Thank you for your help
[Android Software/Hacking General [Developers Only]] oF2pks:
@Kingslayer9988, (before some will ask,) I checked aosp 12 release and there is no way this @Lanchon based 'kickstarter' could work due to heavy changes in targeted PackageManagerService.java. We'll have to wait first for @MaR-V-iN or @maxwen (OmniRom) to finalize new aosp java patches.

(Any help welcomed on https://gerrit.omnirom.org/q/microG...)
[Android Software/Hacking General [Developers Only]] kurtn:
I've seen reports of LSPosed fakegapps working on android 12
[Android Software/Hacking General [Developers Only]] masset12:
Hello,

Just in case it would be helpful to any noob like me

I managed to have MicroG working doing this :

1) I debloat this one

pm uninstall --user 0 com.google.android.gms

pm uninstall --user 0 com.android.vending

pm uninstall --user 0 com.google.android.gsf

2) I removed this with a root explorer

/product/priv-app/GmsCore

/product/priv-app/GooglePartnerSetup

/product/priv-app/Phonesky

/system_ext/priv-app/GoogleFeedback

/system_ext/priv-app/GoogleOneTimeInitializer

/system_ext/priv-app/GoogleServicesFramework

/system_ext/priv-app/SetupWizard

3) I follow the OP procedure to enable sigspoof

(flash spoof-AVDapi30.zip via magisk)

4) flash Microg Revived 2.2.1-0 (22100) via magisk repo

(either copy a patched playstore (like the one patched by nanolx in /data/adb to use paid apps or copy nothing to use fakestore instead)

5) I installed this from Fdroid for location

Local GSM Location

Wifi Location Service

Déjà Vu

MozillaNlpBackend

NominatimNlpBackend

UnifiedNlp

Works for me
[Android Software/Hacking General [Developers Only]] maxwen:
Almost the same as in 11 :)

https://gerrit.omnirom.org/c/android_frameworks_base/+/40298
[Android Software/Hacking General [Developers Only]] theking37:
would this survive through dirty flash updates/ota updates?

regards
[Android Software/Hacking General [Developers Only]] Im1Random:
Thx for the fix, everything worked really well for me :D (Tested on Samsung Galaxy Tab S6 Lite and Samsung Galaxy S9)
[Android Software/Hacking General [Developers Only]] Im1Random:
Yes just like any other Magisk module. (Only Magisk itself has to be reinstalled after most updates)
[Android Software/Hacking General [Developers Only]] AKmatiAK:
What's the difference between standard gms core revived and avd_api marvin version?
[Android Software/Hacking General [Developers Only]] vanbinsbergen:
Love you man!

Maybe you may add to the instructions to mannualy check the spoofing box in microg selfcheck
[Android Software/Hacking General [Developers Only]] mrw0lfe:
Hi,

I followed your steps and I still have the following options unchecked :/

"System spoofs signature"

"Play Services (GmsCore) has correct signature"

"Play Store (PhoneSky) has correct signature"

Any ideas?

Regards
[Android Software/Hacking General [Developers Only]] kurtn:
What android version? Device? ROM?
[Android Software/Hacking General [Developers Only]] mrw0lfe:
Oh Sorry.

Samsung Galaxy S20 European Exynos, Unoficial LineageOS 18 from here, android version 11.

Regards
[Android Software/Hacking General [Developers Only]] kurtn:
There is crDroid for your phone. It has built in signature spoofing. Or you patch services.jar or you use LSPosed
[Android Software/Hacking General [Developers Only]] JedidroidX:
Hello, it seems I'm having problems with the last command.

zip -j repack/services.jar classes*.dex replies "bash: cd: too many arguments.

Am I doing something wrong? Is there any way to revise the command? I'm not s linux user, please help!
[Android Software/Hacking General [Developers Only]] Aqq123:
I think you might need quote marks around the wildcard so that it doesn't get expanded by bash. Try:

zip -j repack/services.jar "classes*.dex"
[Android Software/Hacking General [Developers Only]] JedidroidX:
It seems I had got it done with windows termimal. I changed the -j switch to a cvf one which is used in java and windows terminal. And instead of the zip command it was Java. A services jar was created in the repack folder, so I flashed both zips accordingly and my phone boot looped. Not too sure if windows terminal created the jar correctly but it did something and failed to boot my phone!

oneplus 6t
[Android Software/Hacking General [Developers Only]] mazzystoop:
hi! i'm having a problem on deleting the services.jar from my /system/framework folder. i've tried deleting it from Amaze but it stll won't get deleted
[Android Software/Hacking General [Developers Only]] kurtn:
In android 10 and higher system partition is read only
[Android Software/Hacking General [Developers Only]] mazzystoop:
so how do i replace my old services.jar with the new services.jar file from the repack folder?
[Android Software/Hacking General [Developers Only]] kurtn:
OP says "After that put your spoof-AVDapi30.zip and your microG\_AVDx86api30\_magiskMaRViN.zip on your Phone and Flash via Magisk."

Magis can mount folders from data partition to a path in system partition.
[Android Software/Hacking General [Developers Only]] JedidroidX:
Has anyone got this to work on OOS Android 11? That would be awesome!
[Android Software/Hacking General [Developers Only]] ralrra:
Thanks a lot! For me it worked like a charm in the first attempt and already under Windows - so it's also easily possible under Windows if you have 7z or winrar, Java and ADB installed (even if you not necessarily ADB if you can get the files otherwise from your phone).

My phone is a GalaxyS9 (starlte) with an unofficial Lineage OS 18.1 from XDA.

There is one thing i missed in the guideline. Maybe it's obvious for the most people but AFTER the patching process and reboot you need to give the necessary rights at least to the fake store and probably also to the "signature spoofing checker" if you want to try it.

This has to be done under LineageOS 18.1 by:

-go into the settings >> App

-Show all apps

-hit the 3-Dot-Menu >> show system apps

-search for the "Fake Store" and grant the right for signature spoofing (same for the other apps you want e.g. the checker)

After that everything worked pefect! Thanks again!
[Android Software/Hacking General [Developers Only]] JedidroidX:
the zip ended with a bad call message, although the jar was created. Not sure if its corrupted yet
[Android Software/Hacking General [Developers Only]] drnightshadow:
Hi!

Just one question...did someone tried fakegapps xposed /LSPosed module?

From microg page...

If you have the Xposed Framework installed, the following module will enable signature spoofing: FakeGApps by thermatk

Xposed solution for android 11 and 12 consists of the magisk modules "Riru" and "Riru - LSPosed" and FakeGApps fork by whew-inc
[Android Software/Hacking General [Developers Only]] kurtn:
Yes. And i've written that text.
[Android Software/Hacking General [Developers Only]] rdsmart:
Hi..I have Real me C15 mobile. I have installed Custom Recovery(TWRP) and trying to disable signature verification by using service.jar. but i have got error while copying service.jar..Please provide any solution ..
[Android Software/Hacking General [Developers Only]] JedidroidX:
Seriously? So why such a guide to enable spoofing? And will this Lsposed module work on OxygenOS 11?
[Android Software/Hacking General [Developers Only]] kurtn:
Heard about freedom of choice?

I think LSPosed can work well on oxygen OS. Take the zygisk route.
[Android Software/Hacking General [Developers Only]] JedidroidX:
Yes, I favor choice! There are benefits experimenting with java, agreed! I appreciate your swift reply and thanks for the info!

However, I remember seeing in this particular module that there was a requirement regarding to "choose" a spoofing method. So, I remain to be skeptical if this would enable signature spoofing. I will look into this module again and thanks again!
[Android Software/Hacking General [Developers Only]] JedidroidX:
Yes as I concluded! With further research it seems that OxygenOS 11 is not a deodexed rom which makes it difficult; at least for me, to enable signature spoofing.

I have tried several methods listed in github and it seems my best bet is to stick with LineageOS 18.1 (forked microG) for my Oneplus 6T.

Please any info that would help me spoof OxygenOS 11 let me know, also

I attached my services.jar below, perhaps I was doing it wrong (that's what she said..haha). After I repacked the new jar it was much smaller than the original, about half the size in MB!

Thanks again!
[Android Software/Hacking General [Developers Only]] tonytrijullo:
Did anything changed about your recipe on Android 12? I would like to update, but don't want to loose microg
[Android Software/Hacking General [Developers Only]] kurtn:
Someone reported, this receipe worked for him/her on android 12.
[Android Software/Hacking General [Developers Only]] masset12:
I had the op recipe fully working on Android 11 but no luck on Android 12 ..

Even if I grant permission when microg (or signature spoofing checker) ask for it, it doesn't seem to do anything and Signature Spoofing Checker still say 'Disable' ..

Some help from those who succeeded on Android 12 would be much appreciated

Thx
[Android Software/Hacking General [Developers Only]] Kusznier:
Same here, experimented with different options and it did not work in any of them. I reverted back to 11
[Android Software/Hacking General [Developers Only]] oF2pks:
(@masset12 ) There is no way that android 11 _patch works on android 12 ... except to some fake rom(s) that could use android 11 /framework and falsely labeled android 12.

(I'll look at android 12 working _patch soon.)

Nonetheless, if you have android 12, you should be able to boot Treble Generic system images.

If you have a/b seamless or recent systemless android11 phone, you can try my all-in-one android 12 microg GSi : https://xdaforums.com/t/aosp-11-0_r...-2021-arm32-64-vndklite.4281231/post-86627465

, otherwise #phhusson all gsi flavor foss do include microG native framework android 12 patch. (I'll release all GSi flavors for April cve.)

Be aware that most oem proprietary roms have Camera and Keyboard bloated with analytics: instead, Treble GSi bring you a complete clean /system image, on top of your unmodified oem /kernel & /vendor.
[Android Software/Hacking General [Developers Only]] CARLiCiOUS:
That's awesome, thanks for keeping up the great work!

I just checked your hooking code here in an attempt to fix android 12 compatibility myself, but the prototype of PackageManagerService.generatePackageInfo() hasn't changed in the latest revision. So I don't really see how android 12 breaks compatibility. Clearly, I'm overlooking something. Why is there no way that the patch works on android 12?

Cheers
[Android Software/Hacking General [Developers Only]] Kusznier:
Hi, thanks but what i'm looking for is to enable this on any A12 rom. It worked for me for couple of years already, and i believe there is a bunch of people looking for this.

I'm basically using vendor rom, debloating, degoogling and adding MicroG - that gives me opportunity not to loose all vendor funcionality and also be pretty much safe from privacy side.

Do You think it's possible to add A12 spofing, or you don't do that anymore? It will be much appreciated!
[Android Software/Hacking General [Developers Only]] oF2pks:
(sorry for delay) all previous patches were targeting public class PackageManagerService@generatePackageInfo(..., with few minor corrections due to java/import differences in header of PackageManagerService.java; now, with android 12, the patch has to be rebranded to vectorize public class PackageManagerService@protected static class ComputerEngine@generatePackageInfo(...

@CARLiCiOUS you can use google inline Android code search:

https://cs.android.com/android/platform/superproject/+/master:frameworks/base/services/core/java/com/android/server/pm/PackageManagerService.java;l=2041?q=generatePackageInfo&sq=
[Android Software/Hacking General [Developers Only]] dk22:
I can confirm this method still works in Android 12 with a minor tweak to the patch source. Just got it working this morning. You just need to move the generatePackageInfo method to the ComputerEngine nested class in PackageManagerService. Then generate a new sigspoof-hook and patch as in the OP. (You can even reuse the same sigspoof-core since that stays untouched.)
[Android Software/Hacking General [Developers Only]] twolitrepinto:
I am not so clued up with coding any chance of a little help?

I have just upgraded from LineageOS 18.1 which was working with spoofing using the above haystack patch.

I wiped my phone, put LineageOS 19.1 [unofficial] on it and tried the haystack method as somebody said it was working on that rom.

After flashing the patch in magisk, it rebooted and looked like it had worked. microG self check said system supports spoofing but the spoofing was disabled still. after 2nd reboot it then bootlooped.

i've got around the bootloop by removing the magisk module via adb.

I'm on a Samsung Galaxy S20 (X1S) using Magisk 24.3 and microG through their F-Droid repo (as the previous microg magisk module i was using also seemed to cause me a bootloop?)

I know how to do all this part but have no clue with coding or what you mean but "generate a new sigspoof hook"

Could you please help me with this as this phone is my daily and i really don't want to have to go backwards now.

Thanks!
[Android Software/Hacking General [Developers Only]] Kusznier:
+1 to what twolitrepinto wrote. I can't code it myself. Are You able to help a bit please :)
[Android Software/Hacking General [Developers Only]] twolitrepinto:
Managed to spoof it in the end using Lsposed and FakeGapps module. Also passes safetynet with magiskhide props config.
[Android Software/Hacking General [Developers Only]] Kusznier:
wait, on A12? I tried so many times... Which rom?
[Android Software/Hacking General [Developers Only]] twolitrepinto:
LineageOS 19.1 unofficial for Galaxy S20 X1S.

Using Magisk 24.3, check zygisk in the settings, then install Lsposed module.

Then install FakeGApps module for Lsposed and reboot. Also depends where you install microG from but if its from the magiskmarvin packagementioned here it's out of date. I had to update it using the latest microG installer Revived magisk module.
[Android Software/Hacking General [Developers Only]] NisseGurra:
Thanks, where did you find the "FakeGApps module for Lsposed"?, seached but can not find it
[Android Software/Hacking General [Developers Only]] twolitrepinto:
Took a bit of digging but it was this Fork on Github...

https://github.com/nift4/FakeGApps/releases

Mine is on FakeGapps v3.1 but I just saw 3.2 is now available...

This fork is updated for A12.

Hope it works for you as it does for me.
[Android Software/Hacking General [Developers Only]] Kusznier:
HI! It works on A12 and stock (customized, ungoogled) rom on Note10+

I can help You achieve that if You need, but basically install magisk, enable zygisk, install module LSposed and there enable FakeGapps. Thanks all
[Android Software/Hacking General [Developers Only]] Joe voic:
Hi! i have a flashed "f21 pro qin, xioami" (android 11) whit magisk installed and TWRP (the magisk version is 22.1, cause i did this through the xda forums and they warned not to update it)

Now to my question! I wanna install micro G on this phone, but the signature spoofing is disabled, i saw here your tutorial for samsung galaxy how to get signature spoofing working and i wanna know if i can do this in my f21 pro phone, so lemme know if i can do that, and if yes pls make a fully detailed tutorial for this

Thanks in advance!