yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] starbright_:
I get a flickering screen here after reboot. And message the Playstore has been closed several times. Maybe I need to delete playstore or first?

Playstore and everything has been still on my device, as I would just spoof it (first). But - during installation with Magisk I get a message that no playstore is available so fakestore will be installed.

I give it a second try just install the spoof_AVDaoi30.zip. Result was exactly same as with installing NanoDroidPatcher via Magisk - Bootloop.

I am wondering why I put the service.jar into the package and the upload the whole thing. Does this make sense? The services.jar is on device, why this should be included into the package?
[Android Software/Hacking General [Developers Only]] anarchotaoist:
So, I have had to do this again after a new rom update.

After flashing them through Magisk and rebooting there is no change!

No spoof and no microg! 😕

What could I be missing?
[Android Software/Hacking General [Developers Only]] Iron_Overheat:
Hi, thanks for sharing your findings!!

I followed all the steps except for stupidly flashing nanodroid through Magisk once before flashing the proper files, and MicroG reports signature spoofing is supported, and that the permission is granted, however the "System spoofs signature" box is not checked.

Upon trying a signature spoofing tester app, the permission dialogue pops up but after pressing yes the app shows signature spoofing failed. I am using LineageOS 18.1 for Galaxy S7 exynos and ThundeRStormS kernel.
[Android Software/Hacking General [Developers Only]] j0110:
Is the patch surviving to OTA updates ?
[Android Software/Hacking General [Developers Only]] Bracher:
I'm really sorry but I can't addapt your proposal to my Windows knowlege, perhaps I'm to old for this? I have a latest ADB fastboot tool but unfortunately I'm not able to use your command with this tool. Has somebody for me a proposal how to do this in Windows? I would be very grateful for this. (Perhaps I should stick with LOS 17.1 this is to complex for a 72 year old grandmother). Unfortunately I can't use edxposed and FakeGApps either as my tablet has no Phone to enter the code...:mad::mad:
[Android Software/Hacking General [Developers Only]] Bracher:
OK I found some help in your github link thanks for that I'll try that in the next days
[Android Software/Hacking General [Developers Only]] dreas74:
The instructions for patching the Services.jar also work with the Linux subsystem under Win10. However, you must use Ubuntu from the MS Store and install Java + Zip Packer after that. so the patching is then no act and quickly made.
[Android Software/Hacking General [Developers Only]] textmarker007:
Awesome! Thanks @Kingslayer9988 !

Works perfectly on Redmi Note 8T on @DarkJoker360 LineageOs 18.1
[Android Software/Hacking General [Developers Only]] Kingslayer9988:
dunno how lineageOS does its OTA's but proberbly not.
[Android Software/Hacking General [Developers Only]] Kingslayer9988:
Reinstall your OS and do the steps again :)
[Android Software/Hacking General [Developers Only]] Kingslayer9988:
I really don't know what phone are you using ?
[Android Software/Hacking General [Developers Only]] Kingslayer9988:
yes do it again after upadte
[Android Software/Hacking General [Developers Only]] aleph.mercury:
the services jar starts out on your device. it gets pulled to your pc and the other files you download from the OP make the adjustments to it for signature spoofing. Then it replaces the existing services.jar in the zip you downloaded from the OP so you can use magisk to flash it back into your device, returning to whence it came but now with adjustments.

Don't worry about the flickering screen and all the messages, that's normal. Just try to do what you need to working around them, yes it's annoying and makes it seem like you broke something but you didn't.

I didn't use the nanodroiod zip, the other zip the OP provided, I used the microg one from the magisk repo. I know that one works fine. I noticed the nanodroid one tries to place the apks back into the product/priv-app where the originals should go, and even the new system_ext folder for the gsf one. maybe that's not good on some devices. I couldn't get it to work and had to abandon it. The magisk microg only uses /system/priv-app and it works fine for me.

read the instructions on the magisk microg, it tells you to put a playstore apk into /data/adb before flashing if you want to use the real store, otherwise the fake store will be installed. ( you can always debloat that one and use the app systemizer module to cram a playstore there later)

re: bootloops, sometimes it works if you just hold the power button and kill it, then let it try again. It worked for me that way today. I had to do that a couple of times when rebooting until finally it's just back to normal now and boots as quickly as it ever did.

good luck
[Android Software/Hacking General [Developers Only]] aleph.mercury:
I built the attached zip file using the tools in this thread. it's for the pixel 5, stock google rom as of april 2021 if anyone else wants to use it. flash in magisk. I'm not responsible if there's any problems, but I don't think there will be any.
[Android Software/Hacking General [Developers Only]] Rastabude:
Working perfect .tested it with unofficial lineage OS 18.1 for Sony xz premium g8141 and newest nandroid.ZIP 23x, magisk canary 22.1 and evry permission and x in microg is available and I habe no warnings anymore that Google services are not install.using fdrdoid fskestore, dont know if playstore works,too but I think.but i prefer without for privacy and download the .apk off a APP an install it. Btw. I used Linux Subsystem for win10 but there you habe to copy the files manually because USB ADB is not suported there. Put it to ur for example Debian wsl and compile the New .services jar and ADB pull it in Windows and push it back too. Thank u much for that
[Android Software/Hacking General [Developers Only]] Aqq123:
Just a minor point: it should say -a 30 (or --api-level 30). API level 11 was Android 3.0 Honeycomb. That parameter can also be skipped for auto-detection, not sure if it changes anything in practice.
[Android Software/Hacking General [Developers Only]] Droid_Nut:
Kingslayer, thanks for this work around. I got a bad output on the java command and I did not get the 4 .dex files? I did this in Linux Kubuntu. What am I missing here? I have 5 files in my working folder.

bob@bob-desktop:~/Downloads/MicroG$ adb pull /system/framework/services.jar
/system/framework/services.jar: 1 file pulled. 26.3 MB/s (16970149 bytes in 0.615s)
bob@bob-desktop:~/Downloads/MicroG$ java -jar dexpatcher-1.8.0-beta1.jar -a 11 -M -v -d -o ./ services.jar 11-hook-services.jar.dex 11core-services.jar.dex
DexPatcher version 1.8.0-beta1 by Lanchon (https://dexpatcher.github.io/)
info: read 'services.jar'
debug: read 'services.jar': file 'classes.dex': 4862 types
debug: read 'services.jar': file 'classes2.dex': 5329 types
info: read '11-hook-services.jar.dex'
fatal: exception:
java.io.FileNotFoundException: 11-hook-services.jar.dex
at lanchon.multidexlib2.MultiDexIO.readMultiDexContainer(MultiDexIO.java:60)
at lanchon.multidexlib2.MultiDexIO.readMultiDexContainer(MultiDexIO.java:48)
at lanchon.multidexlib2.MultiDexIO.readMultiDexContainer(MultiDexIO.java:39)
at lanchon.multidexlib2.MultiDexIO.readDexFile(MultiDexIO.java:33)
at lanchon.dexpatcher.Processor.readDex(Processor.java:299)
at lanchon.dexpatcher.Processor.processFiles(Processor.java:134)
at lanchon.dexpatcher.Processor.processFiles(Processor.java:80)
at lanchon.dexpatcher.Main.runWithExceptions(Main.java:71)
at lanchon.dexpatcher.Main.run(Main.java:49)
at lanchon.dexpatcher.Main.run(Main.java:44)
at lanchon.dexpatcher.Main.runWithUsage(Main.java:39)
at lanchon.dexpatcher.Main.main(Main.java:30)
[Android Software/Hacking General [Developers Only]] Aqq123:
You need to extract 11-hook-services.jar.dex and 11core-services.jar.dex from the haystack-11-attempt.zip archive you downloaded.
[Android Software/Hacking General [Developers Only]] Droid_Nut:
Thanks, that process worked, I installed the 2 zips in magisk with no errors, now I reboot and the phone wont load. Just get the lineage boot logo with the circle moving from right to left endlessly. Was I supposed to physically delete the /system/framework/ old services.jar from my phone?

Also I read I need to pack the new services.jar in the spoof\_AVDapi30.zip correct?

I cant even find /system/framework/ in the system directory of my phone.

I found the directory with root browser with the phone booted, but I could not find it in TWRP file manager? Anyways I will wait for an answer before I make another move.

For now I put in my stock boot.img not sure how to uninstall modules any more. Used to be able to use uninmod or mm from TWRP, but that don't work any more.

Edit, modules gone, TWRP Data/adb/modules, deleted the 2 modules, and back to rooted.

back to the services.jar, just delete and replace with the new one?

Thanks
[Android Software/Hacking General [Developers Only]] Droid_Nut:
So I started from scratch, ran all the commands, created the new services.jar deleted the old one and put the new on in System/framework on my phone.

It says "Now You need to open the spoof\_AVDapi30.zip go in /system/framework/ and delete the old services.jar and put your own file in. that's in your repack Folder."

Not sure what to do when you open the spoof\_AVDapi30.zip the OP did not elaborate on that?

I am using magisk 22104. When I try and install the 2 zips in magisk, it complains that I need version 20.4+ Actually, I have a magisk problem, as no modules will install at all. Let me get that worked out first.....

Update:

Got magisk working, and still get boot up animation, going no where until I remove the modules. I am using a OnePlus 7T on Lineage 18.1
[Android Software/Hacking General [Developers Only]] Droid_Nut:
All is well, Lineage with MicroG for OP7T is out. So I am good. (y)
[Android Software/Hacking General [Developers Only]] abrahamjohn731:
Guys, I get an error when I try to depatch my service.jar file. Anyone can help?

from this command: java -jar dexpatcher-1.8.0-beta1.jar -a 11 -M -v -d -o ./ services.jar 11-hook-services.jar.dex 11core-services.jar.dex
[Android Software/Hacking General [Developers Only]] abrahamjohn731:
the error might be here:

It looks like the file 11-hook-services.jar.dex not having the target file to edit
[Android Software/Hacking General [Developers Only]] abujoo:
thankyou
[Android Software/Hacking General [Developers Only]] Aqq123:
First of all, don't use -a 11. For Android 11 it's either -a 30 or nothing:

The error is:

debug: type 'com.android.server.pm.PackageManagerService': edit
error: type 'com.android.server.pm.PackageManagerService': target not found

Some Android flavors need a different patch. For example in OxygenOS, the PackageManagerService class is protected, not private. Although I'd expect the error message to be different, it might be the situation here, in which case there exists an alternate hook patch for it already. Otherwise, you might need a different patch altogether.

It's impossible to say more without inspecting that particular services.jar. If you post it somewhere, people can look at it. Or you can try the alternate patch yourself first, which is linked to the post here, also with some related discussion: https://gitlab.com/Nanolx/NanoDroid/-/issues/169#note_470144813
[Android Software/Hacking General [Developers Only]] abrahamjohn731:
Thank you for your answer. It looks I get closer to fix my problem. I will try tonight to change the code. I had the last upgrade of stock to android 11 version 07 not 6. And is to new and only problems I have.it's seems I can't upload my service file here via xda app. I'll put it tonight. . If you can look into it I'll appreciate!
[Android Software/Hacking General [Developers Only]] abrahamjohn731:
I tried with -a 30 and got same error. I tried without -a 11 and got same error. I post here my services.jar

services.jar

drive.google.com

If anyone is willing to help and succeed I will appreciate the effort with a gift. But as I understand the matter can be really complicated as I am a noob and the disscussions from gitlab is chineese for me :(
[Android Software/Hacking General [Developers Only]] Aqq123:
Can't download that file, the link redirects to a login form (for me at least).
[Android Software/Hacking General [Developers Only]] abrahamjohn731:
services.jar

drive.google.com

and this one?
[Android Software/Hacking General [Developers Only]] Aqq123:
I can confirm neither of the two versions of the hook patch applies to this build of services.jar. Specifically, it fails with the error message as reported before:

debug: type 'com.android.server.pm.PackageManagerService': edit
error: type 'com.android.server.pm.PackageManagerService': target not found

The relevant part of the source code for the patch where it fails to apply: https://gitlab.com/oF2pks/haystack/...0/services.jar/PackageManagerService.java#L46

@DexEdit(contentOnly = true)
public class PackageManagerService /* extends IPackageManager.Stub */ {

@DexIgnore /* final */ Context mContext;

@DexWrap
//<4.1// PackageInfo generatePackageInfo(PackageParser.Package p, int flags) {
/*>4.1*/ //<7.0// PackageInfo generatePackageInfo(PackageParser.Package p, int flags, int userId) {
/*>7.0*/ private PackageInfo generatePackageInfo(PackageSetting p, int flags, int userId) {

Comparing the posted version of (Samsung's) services.jar to LineageOS 18.1's implementation, it appears the private method generatePackageInfo(Lcom/android/server/pm/PackageSetting;II)Landroid/content/pm/PackageInfo; against which this patch is written is absent from Samsung's version of com.android.server.pm.PackageManagerService.

To make it work, someone would have to write an equivalent patch:

patches-src/sigspoof-hook-11.0/services.jar · 11-attempt · oF2pks / Haystack · GitLab

GitLab.com

gitlab.com

...unless one exists already, so I'd check the device/vendor-specific forums first.
[Android Software/Hacking General [Developers Only]] abrahamjohn731:
I am amazed of your level of knowledge and I thank you for your involvement.

In very simple words, should I still wait for patch or can I change on Lineageos 18.1 rom ? I have the latest update of Android 11 (7) and I found an unnoficial version of Lineage 18.1 for Android 11 for my phone released on 1st of May. But my update came after 1st of May and I'm not sure if I can flash that rom if is build on v.6 over mine which is v. 7. Again, thousands of thanks!
[Android Software/Hacking General [Developers Only]] Aqq123:
LineageOS is great for customization and comes without bloatware (well, almost) but unofficial builds can have varying quality. Also, on a very new/high-end device you might be losing some functionality (like the stock camera app, if better) -- although there are often workarounds available (Google Camera mods). I don't even know which device you have, and I'm not really familiar with Samsung anyway, so can't really give you good advice here.

On a general note I'd defnitely want to check out LOS or other custom builds. Before flashing LOS it's usually best to flash the latest stock firmware to update the modem and other stuff, so it shouldn't be a problem that you've done so. But for the details you'd have to check the information specifically for your device, I really can't tell you anything more.
[Android Software/Hacking General [Developers Only]] abrahamjohn731:
I can go to the latest stock which actually is a hadeache because the custom roms are not yet build for my variant (except DrKetan rom on which I am now and I can't patch service.jar for)

The official LOS is only for Android 10. Even the one based on 11 maight be to old for me as I am on the latest version which said that I can't downgrade from there...

I am on Samsung Note 10 plus 5g N976B. - N976BXXU7FUE1. Do u think I should wait an equivalent patch? I really need to use Note for my work but I'm still with the old one for the moment...
[Android Software/Hacking General [Developers Only]] starbright_:
Am I wrong or does the requested download of microG_AVDx86api30_magiskMaRViN.zip and rename it is not needed anymore - as it is already part of haystack11-attempt-zip?
[Android Software/Hacking General [Developers Only]] Akbar KanColle:
Please help me patch mine too
[Android Software/Hacking General [Developers Only]] abrahamjohn731:
Unfortunately mine was not yet pached....
[Android Software/Hacking General [Developers Only]] Akbar KanColle:
Glad i found a way for windows user
[Android Software/Hacking General [Developers Only]] Akbar KanColle:
Thank u! Working

I will share turorial for windows user
[Android Software/Hacking General [Developers Only]] Akbar KanColle:
For windows user install this : https://www.java.com/en/

After that take your services.jar of your current rom in system/framework/services.jar

and paste with same folder of haystack and dexpatcher

After that hold shift in your folder and right click choose open powershell or cmd here

After that write this command : java -jar dexpatcher-1.8.0-beta1.jar -a 11 -M -v -d -o ./ services.jar 11-hook-services.jar.dex 11core-services.jar.dex

you should get 4 .dex file in your current folder and copy that files to your phone

after install mixplorer in your phone and terminal emulator after that go to your directory where you save 4 dex files

and write this in terminal :

mkdir repack
zip -j repack/services.jar classes*.dex

last step like in this thread
[Android Software/Hacking General [Developers Only]] suleymanov_aydar:
Unfortunatelly, it doesn't work on Android 11 / MIUI 12.1 (Xiaomi Mi 9t).

After installing the SigSpoof support module the "MicroG" shows that the system supports signature spoofing. But after pressing to button to grand the permission "MicroG" is closing (going to black screen).

Also "Signature Spoofing checker" app closing when I start it to test.
[Android Software/Hacking General [Developers Only]] JohnWick020:
I flashed the two zips in magisk but it still did not enable signature spoofing. Im on op6t evolution x rom. Any solutions?
[Android Software/Hacking General [Developers Only]] Gionathan:
Confirmed working on a T-Mobile Samsung Galaxy Note 4 (SM-N910T/trltetmo) running on LineageOS 18.1!

Thanks so much for sharing this, mate! This was starting to give me a headache lol
[Android Software/Hacking General [Developers Only]] Spidersoft:
Thank you very much, I can confirm it worked for me on a clean install of LineageOS on Oneplus 5t.

I have a question concerning updates. When I flash an update via the build in updater (and TWRP) after restarting it takes about 30min to 12 hours for the device to enter a soft boot loop. I think this might be related to not doing the spoofing procedure again after updating. Because everything's fine again, when I downgrade to previous rom version in TWRP.

So can somebody confirm I have to redo all steps mentioned in OPs post after updating the rom?
[Android Software/Hacking General [Developers Only]] abrahamjohn731:
It does not work for me. I got the same errors as before....
[Android Software/Hacking General [Developers Only]] Akbar KanColle:
What error?
[Android Software/Hacking General [Developers Only]] abrahamjohn731:
from my earlier post. target not found. https://xdaforums.com/t/signature-spoofing-on-unsuported-android-11-r-roms.4214143/post-85039545

My services.jar file can't be patch with this tool.
[Android Software/Hacking General [Developers Only]] Crayvolt:
Successfully done in redmi note 3 ported lineage 18.1 by@

nasim7500​

system has signature spoofing support- check

only this two is not enabled

system spoof signature cant toogle- not check

playservice gmscore has correcty signature- not check
[Android Software/Hacking General [Developers Only]] Akbar KanColle:
Try send your services.jar

I help
[Android Software/Hacking General [Developers Only]] abrahamjohn731:
Many thanks Akbar.. I am driving and using the app now. Please try to look in the earlier posts. I had there a link to my service.jar and someone tried to pack it but said something about it which for me is to much to understand. Maybe will help you to see if you can or not to do something. He said that my file needs another pack which probably is not yet made by anyone. If u can't find the file I'll send it later from home. Many thanks again
[Android Software/Hacking General [Developers Only]] kurtn:
Easy method for Android 11 and 12

Signature spoofing works with magisk modules "riru" and "riru lsposed" and that xposed module
[Android Software/Hacking General [Developers Only]] Zha Revnart:
nanodroid have documentation of it

GitHub - Nanolx/NanoDroid: [MIRROR] See https://gitlab.com/Nanolx/NanoDroid for main repository

[MIRROR] See https://gitlab.com/Nanolx/NanoDroid for main repository - Nanolx/NanoDroid

github.com
[Android Software/Hacking General [Developers Only]] kurtn:
Have you seen a confirmation for that 11.0 claim?
[Android Software/Hacking General [Developers Only]] GG44:
Confirmed?
[Android Software/Hacking General [Developers Only]] GG44:
Seems like a lot of issues listed with that package on git
[Android Software/Hacking General [Developers Only]] GG44:
Thank you to every one, a helpful thread, I'm still trying to learn
[Android Software/Hacking General [Developers Only]] shrubthebub:
How would i edit the zip without unzipping it? I'm on a Mac. Is there a Linux command I could use to change the jar file? thanks
[Android Software/Hacking General [Developers Only]] Kingslayer9988:
Cant help you with mac sorry bro.
[Android Software/Hacking General [Developers Only]] breversa:
@Kingslayer9988 Thanks a lot for your guide, it really helped me out !

You could improve the formatting even more. For instance, there are several occurences of "\_". You could also use the inline-code tags for path/file names. :)
[Android Software/Hacking General [Developers Only]] Khh77776:
Unfortunately, this tutorial dont work for me. I have LineageOS 18.1 Unofficial on Xperia 10 ii.
[Android Software/Hacking General [Developers Only]] kurtn:
Tried the fakegapps thing?
[Android Software/Hacking General [Developers Only]] Khh77776:
Yes, of course
[Android Software/Hacking General [Developers Only]] kurtn:
And what error in what step?
[Android Software/Hacking General [Developers Only]] Khh77776:
I dont have error. I only have inactive options of spoof in microg core.
[Android Software/Hacking General [Developers Only]] kurtn:
Did you enable spoofing for microG core in fakegapps app?
[Android Software/Hacking General [Developers Only]] Khh77776:
Nope. This function is unavailable.
[Android Software/Hacking General [Developers Only]] kurtn:
So you don't use

https://github.com/whew-inc/FakeGApps/releases/download/11_log_fix/app-release.apk with LSPosed
[Android Software/Hacking General [Developers Only]] Khh77776:
I enable Fakegapps Lsposed module now, reboot, and all is work now, thanks😁
[Android Software/Hacking General [Developers Only]] Kaalba:
im not gonna lie, i dont understand sh1t..

about the java shell thing its been hours im trying.. can you just share the repacked spoof-AVDapi30.zip file?
[Android Software/Hacking General [Developers Only]] Khh77776:
Why you attach a whole post? I'm trying too. Can you just share repacked ROM? LMAO.
[Android Software/Hacking General [Developers Only]] Kaalba:
HALP ME SIIR HALP ME
[Android Software/Hacking General [Developers Only]] kurtn:
Maybe you should try the xposed method.
[Android Software/Hacking General [Developers Only]] Kaalba:
i managed to try this method which kinda worked but i still cant pass basic integrity. and the xposed doesn't work, but lsposed works but still doesn't do much, cant pass basic integrity. but maybe cuz its not an official rom? and i have root. although its hidden.

but is there a way to flash files with magisk without having root?
[Android Software/Hacking General [Developers Only]] kurtn:
If you really need securitynet, you better stay with GApps or stock rom.