yashsingh1/xdaforums huggingface dataset:
[Magisk] Seagorilla2:
Its seems that Pokemon Go spoofers on Android 8.1, like myself, have to wait until the deodexer (Fulmics) and Smali/baksmali are updated to be compatible with 8.1

As for now I figured out how to use the GPS joystick (by App Ninjas) -in private mode- without a 'failed to detect location error' in in the Pokemon Go app. You need to be rooted with Magisk to make this work. Details how to install GPS Joystick app with correct settings can be found here:

https://bestforandroid.com/location-gps-signal-error-pokemon-go/

Go to 'method 3'. I asume your on Magisk now. Follow instructions from 3. Dont forget after installing the clone Joystick GPS app (private mode) to remove the original app. Also set mock location app in Androids developers settings to non/disable.

Now you need to move the clone Joystick GPS app from user app to system app. I have tried many but the normal methodes to do that dont work in Oreo. What does work is a Magisk module named App Systemizer (Terminal Emulator). After installing this module via Magisk manager downloads, i was able to use a terminal emulator to copy the clone Joystick app from data/app to system/private app. https://xdaforums.com/apps/magisk/module-terminal-app-systemizer-ui-t3585851

You need to replace the 'systemizer_magisk' command in the video by 'systemizer'. In the last step choose option 2 private app. Before rebooting you need to remove the clone Joystick GPS app to avoid double app conflicts. After rebooting it will show up again, but this time as a system app.

In my case GPS spoofing is working now without the smalipatcher module. Good luck.
[Magisk] Thunder50:
Kembangkan lagi fitur smali patcher

I am very helpful with the Smali Patcher and I hope it can continue to develop its features.
[Magisk] SacredDeviL666:
Hello Everyone.....

A quick reminder on our forum rule regarding the language used here.... :angel:

Thanks

SacredDeviL666

Forum Moderator
[Magisk] Zincoshine:
I have tried this now. It is half working. The problem is that the location is flashing to all kinds of places along a straight line between the coordinates I set and my actual coordinates (at least on google maps). It appears to be that both my real GPS and the fake one are competing against each other in giving my phone GPS coordinates instead of GPS joystick overriding the real coordinates. Any idea how to fix that? The 4 "fixes" in the menu don't seem to help.
[Magisk] Seagorilla2:
Ah the rubberbanding issue....did you put you're location settings to 'device only' ?? This helped on my side some time ago. Did you turn off select mock location app the device developpers settings? If thats al so you could try to look at the joystick apps settings. I have the four settings beneath 'developer options' turned on. Hope you get it working....
[Magisk] Dr.Nero:
After pressing Patch, few seconds and "smalipatcher stopped working"
[Magisk] Zincoshine:
I finally got it working by killing all location services using disableService and rebooting. This of course completely kills the real GPS and requires reenabling the services and rebooting if I want to go anywhere. It's extremely inconvenient but it will do until Smali patcher is updated, which will in turn be ok until Fake my GPS for xposed is finally updated for Oreo.
[Magisk] Seagorilla2:
Yeah i see that is a temp solution and far from ideal. That it doesnt work for you like it does me, is probably due to OS differences. Mine is Oneplus 5T OOS OB4 (8.1.0).

You are talking about Xposed. How do you prevent Xposed from tripping Safetynet?
[Magisk] Thunder50:
Please Help

I tried to make Smali Patcher from Xiaomi Redmi Note 4 Mediatek but always failed when making deodex rom. Please help
[Magisk] masryan:
my rom lollipop 5.1.1 and it was deodexed (using LBD2.5 method). but when i'm trying to patching service.jar always get FAILED.

Log : File must be deodexed.

Can anyone tell me something about that ? thanks :(

---------- Post added at 12:47 PM ---------- Previous post was at 12:40 PM ----------

I think fullmic deodexer was a great tool for deodex your rom. I was a tested for reno 4 nikel and its amazing :D
[Magisk] nazeerkhan157:
smali patcher has stopped working some one help me I am on windos 10 home 64 bit. please help me what should I do. I had install latest frame work and jre but no luck
[Magisk] kacaksevgilim:
Smali Patcher Windows 10 x64 stopped
[Magisk] Eng.Raman:
The patched module zip for your lollipop 5.1.1 rom.
[Magisk] masryan:
Big Thanks bro, ur amazing person :)
[Magisk] Eng.Raman:
In order to successfully deodexing and patching the services.jar, follow one of these cases.
[Magisk] nazeerkhan157:
How to install this patched module

I have same miA1 runningandroid oreo but how should i install this ptch i dont know method.i am new to these things
[Magisk] s.i.t.h.l.o.r.d:
[MENTION=5574379]nazeerkhan157[/MENTION]

How should we judge of you should install the patch?

Just by the question, I would recommend not doing it.

If you need the functions enabled by patching your system, then you'll have to go through patching it.

I, for one, was sick of having apps tell me where and when to take screenshots (e.g. banking apps,...), so I took matters into my own hands and now I'm free to use my phone entirely how I want to.
[Magisk] jaka45:
Dear fomey can you makes module more mock for android 6.0+ for your tools because its maybe can make run if with two fake gps app run ..thanks before.
[Magisk] nazeerkhan157:
Please just guide me i need it

Thanks i did it it is working great. Thanks for helping
[Magisk] Bcl2:
I have an odexed services.jar in my rom (lineage 15.1). I tried both the solutions in this post: https://xdaforums.com/showpost.php?p=75771103&postcount=869

But smali patcher stops working (windows 10 x64) and Fulmics get stuck while deodexing (it seems that it has problems with 8.1 system).

No way for me to get this module.... :(
[Magisk] Eng.Raman:
baksmali didn't support unquickening ( deodexing ) vdex files used in oreo 8.1 yet, need to wait for a new version may resolve it.
[Magisk] donlie11:
error with smali patcher 1.2

hi fomey,

I need your help, I use J-500G with android OS 6.0.1. I have to instaled Magisk v.16 but safety net cannot by pass (there was instaled universal safety net patcher beta 2), and then when I try to instal magisk v.15.3 safety net passed. But when I instaled smali patcher 1.8 there was an error bootloop. I tried to used smali pathcer 1.7 and have the same problem.

So, I tried use smali patcher 1.2 and I have got the error like in attach. please help me fomey. thank you
[Magisk] aitormix:
Hi!! Someone have the patch for OnePlus 5 OxygenOS 5.0.4?? Thanks!
[Magisk] Eng.Raman:
To get rid of this error, make sure you are installing the microsoft .net framework 4.6 / 4.7.1 or later and the tool didn't blocked by the firewall setting.
[Magisk] Ramakrishnan ?:
[MENTION=1620550]fOmey[/MENTION] . . Nice work dev :)
[Magisk] jiddahidda:
Thanks for your hard work [MENTION=1620550]fOmey[/MENTION], the patcher is crashing on my Galaxy Tab P555 running 7.1.1, and the manual method doesn't work because my file is odexed. I hate to ask but would you be able to deodex it for me?
[Magisk] fOmey:
Read the original post.. follow the adb method.
[Magisk] jiddahidda:
The recommended (adb) method crashes almost immediately, I can see it got as far as "Dumping framework", as it crashes it creates an empty folder called adb. The alternate method doesn't work due to odexing. Re-reading your original post you mention that Nougat can't be decompiled so I guess I'm out of luck?
[Magisk] aitormix:
Hi! Can someone share with me the Patcher for Oxygen 5.0.4? OnePlus 5. Thanks!!
[Magisk] fOmey:
Does it spit out any type of error ? Very hard to try fix a bug when all I have to go off is "it crashes".

Try run as administrator.

Whitelist / allow the patcher through any virus scanners.

Try invoking adb from command line manually and try pull some files from system.

Any additional information would be appreciated!
[Magisk] jiddahidda:
It's a very generic crash, nothing is logged. I've attached a screenshot.

I'm running the AV built into Windows 10, I've tried disabling and excluding. I've tried this on two different Windows 10 computers. I'm running the patcher as admin. ADB is working and finding the tablet in debug mode, my test being a simple 'adb devices -l'. I'm very unskilled in ADB, not adventurous enough to muck around in it without following guides.
[Magisk] fOmey:
Can you open cmd and type "adb pull /system/framework".. let me know what happens..
[Magisk] Zincoshine:
Hey fOmey, since you are here, I want to mention that when I try to use this the program it just hangs after saying it is trying to patch. I am using Oneplus 5T with Oxygen OS 5.0.4, which means I'm using android 8.0.0. is Oreo unsupported? If the patcher is supposed to work with Oreo let me know so that I can show logs and stuff later today when I'm able to.
[Magisk] DreckSoft:
I second that question for 8.1

I'm using Lineage 15.1 for Capricorn and would love to use the patcher but deodexing fails :(
[Magisk] Kermit223:
Can anyone let me know the correct way to patch services.jar without magisk? Can I just install then zip through TWRP? I extracted just the services.jar (I patched it first with fomey1.8 all patches) last night and copyed and pasted it over using TWRP but it was still asking me to set mock locations in my GPS app and wasn't able to spoof my kocation.

Thanks
[Magisk] jiddahidda:
This command appears to have duplicated the framework folder onto my computer., including my framework.jar.

241 files pulled. 14.2 MB/s (243890639 bytes in 16.326s)
[Magisk] fOmey:
You need to remove the files in /system/framework/oat also.. check the magisk module the patcher makes for the file names.

What files are inside the "adb" directory when the patcher crashes ? God this crash is so annoying... I have no idea what is causing it haha..
[Magisk] jiddahidda:
The adb folder it makes is empty. Happens on both my Win 10 64 bit machines. I've triple checked that I have Java and .Net. Yeah the error is annoyingly generic, doesn't give anything to work with.
[Magisk] fOmey:
OK were getting somewhere, so the folder the patcher makes is empty... however if you run the adb command I gave you earlier it works fine (not empty) ?

Give this a try:

CHANGELOG ::

1.9 ::

Potential fix for random crash.
[Magisk] x_boogies:
Help my redmi note 4 mtk, miui 9 os marshmallow

Cannot create patch smali (service.jar)

Error mock location class not found

How attach my problem service.jar deodex and screenshoot via xda.apk on android bad request on attach. Plz help
[Magisk] fOmey:
Try the latest release, just pushed an update.
[Magisk] x_boogies:
Thank sir, i will try it
[Magisk] soraxd:
so youre saying take the

SmaliPatcher-0.0.1.9-fOmey@XDA.zip

we get from the exe, and instead of installing it via magisk, if we delete the

SmaliPatcher-0.0.1.9-fOmey@XDA.zip/system/framework/oat

folder, it should install via TWRP?

ive tried it with and without the oat folder, and both error. are we understanding your instructions clearly?
[Magisk] fOmey:
Haha nah, you need to extract services.jar from the module zip. Replace the one in /system/framework with it and delete the files inside /system/framework/oat.

Scrap that, I uploaded a template I used.. just replace the services.jar in that zip file with your's and flash it in TWRP.
[Magisk] soraxd:
...i actually love you rn
[Magisk] Kermit223:
Where did you upload the template? I would really like to get this installed on phone without magisk. Thank you

---------- Post added at 06:15 AM ---------- Previous post was at 05:56 AM ----------

Do you know where he uploaded the template?
[Magisk] fOmey:
Whoops, forgot to attach it my bad..
[Magisk] Kermit223:
Thank you!!
[Magisk] jiddahidda:
Thanks @f0mey it looks like that has fixed it. The logs churned away and a .zip was created. But then in trying to install the module Magisk boot-looped my device. I don't think it's your file because I tried factory resetting and restoring a backup etc. It's as though it's being to told to continually boot into recovery, it's not even trying to boot normally. Magisk got it to this point, in the manager there was a 'reboot to recovery' which I chose and it now won't leave recovery.
[Magisk] fOmey:
That's good to hear, sounds like your having problems with verity.. flash this in recovery: https://build.nethunter.com/android-tools/no-verity-opt-encrypt/no-verity-opt-encrypt-6.0.zip

Or the patcher isnt playing nice... backup backup backup!
[Magisk] Androfreak821:
for rom os nougat 7.1.2 is it possible to patch its service.jar, sorry if my english is bad. thank you. :D
[Magisk] Eng.Raman:
Yes, it is possible.
[Magisk] ria2hariah:
Thank you very much for your smali patcher. I am using your mock location for a while now. On My Android DotOS, ViperOS, RevolusionOS.
[Magisk] Zincoshine:
The latest update seems to have fixed the patcher... but the module produced doesn't seem to be doing anything. I have enabled GPS mocking for your GPS spoofer app but on google maps it still shows the real location. I tried setting location to be device only and turning on and off location but no dice. What could be wrong?
[Magisk] fOmey:
My pleasure.

Make sure you set location to device only and disable wifi scanning & bluetooth under improve accuracy.
[Magisk] cristihan:
Thank you [MENTION=1620550]fOmey[/MENTION] for your work. Unfortunately on android 8.1 got error. (attached)
[Magisk] fOmey:
8.1 isnt supported by baksmali yet..
[Magisk] Zincoshine:
It seems to have worked but my god, my phone will not stop spamming for me to turn on location even though it is already on. Still, it works and that's what counts.

Regarding the GPS spoofer you made.. uh.... it would be nice if it had a off button :P but I suppose killing the app in recents menu is sufficient.

edit: I've done more testing. Apparently after a second reboot or something the module just works perfectly on any gps app even with location set to high accuracy. fOmey you have outdone yourself and you WILL be getting a donation sometime in the future.
[Magisk] RieTech:
Idk but i think didnt work on my lineage extended, maybe from rom side, any clue to get log or anything needed for research?
[Magisk] fOmey:
Just press the back button to exit the app and it will clean up after itself. If you exit using home button / switching apps it runs in the background. This is standard behavior for all apps btw.. don't need exit buttons ;)
[Magisk] ria2hariah:
Problem to Update Module from v0.1.8 to v0.0.1.9 at Dot OS

Thanks to [MENTION=1620550]fOmey[/MENTION] for this Great Module :good::good::good: i used Smally Patcher v0.0.18 it's works Wonderful on My Magisk at My Android DotOS

But i got Problem to update my Smali Patcher, from 1.8 to 1.9, i got ERORR, My Module Instaled "Sorry for My Write English Worst, Sir" :o:o

fOmey @ XDA

Patcher Version: 0.0.1.9

Error: Invalid or corrupt jarfile bin\apktool.jar

!!! ERROR: Target JAR must be deodexed

Thanks to Resolve my problem ;);)
[Magisk] cameronkelley28:
I have tried patching my deodexed services.jar on 3 different PCs and the tool crashes on each one. Each PC has JRE 8 u144 and the latest .NET. I have confirmed that my services.jar contains classes.dex. Not sure what I might be missing.

Could someone who has had success please try patching the attached services.jar for me and uploading it?
[Magisk] Spartacus500:
In my case it does not work to the end of the patcher, even with the classes.dex file, patches and at the end of the message "Windows has detected an error, the program will shut down" anyway every time.
[Magisk] Veid71:
thank you :D one last question when i run the first command

java -jar baksmali.jar x services.odex -d framework\arm64 -o tmp it says services.odex do i have to rename services.jar to services.odex?
[Magisk] Fenny:
You're patching setIsFromMockProvider, isSecureLocked, and compareSignatures in smali right?

Should be able to do the same thing with some sed magic. :D

I bet we could get a bash version, or at the very least a mono version working if .net is a requirement.
[Magisk] fOmey:
A services.jar that contains classes.dex is already deodexed.

Look's like someone knows how to run a diff command :p

If you want a pretty UI you need .NET... its a staple framework now a days anyway.
[Magisk] Fenny:
Indeed I do, but I was curious and decompiled your patchFiles method in this case. :P

I think the ideal would be to have the process run on-device, and maybe even be dynamically applied on each boot if it detects that the framework signature changed. Either way, it seems like a maintenance nightmare keeping it up to date, and working on multiple devices even without adding such complexity.
[Magisk] Eng.Raman:
---------- Post added at 11:31 PM ---------- Previous post was at 11:19 PM ----------

Uncheck " Signature Verification " and the tool will work for you.

If I helped hit the thanks button .

---------- Post added at 11:41 PM ---------- Previous post was at 11:31 PM ----------

No; services.odex file should be found within ( /system/framework/oat/arm or /arm64 ).
[Magisk] fOmey:
There is a method to patch during a recovery flash, but that requires a deodexed rom..

I've already devoted enough time in this project however, I know the current solution isn't a very elegant one.. but it works and is easy to update!

Majority of users will run the patcher once and will not have to re-run it for a very long time...

So I asked myself is it really worth your time ? Answer is no.. for something that you run so rarely, the current solution fits.

Can you upload your services.jar please ?
[Magisk] cameronkelley28:
That worked, but disabling signature verification is really the only feature I wanted. Why is that what is causing the crash?
[Magisk] fOmey:
Upload your services.jar.. I'll take a look after work.
[Magisk] cameronkelley28:
I did on the previous page, but here it is again. Thanks so much for checking it out.

Also, in case it matters, the services.jar is from a heavily modified Galaxy S8 ROM for S7s so it could be a conflict with some existing mod. I really have no idea, but figured the more information the better.
[Magisk] taz26:
Works fine with redmi note 4 mido. Lineage os and stock FW.

I had to wipe cache/dalvik and now no banding issue. If it can help.
[Magisk] fOmey:
Appears it's already patched! Whoever patched it modified the code structure a little that's why it's crashing.
[Magisk] piskor:
Hello [MENTION=1620550]fOmey[/MENTION]

Could you be so kind and prepare next patch?

I am talking about extending call log history, which is limited to 500 entries.

It would be nice to set it to 10000 for example.

framework.jar patching procedure is described in this forum post https://xdaforums.com/showpost.php?p=55333215&postcount=14

I think such patch would be helpful not only for me.
[Magisk] Spartacus500:
https://files.fm/u/j388jjj5
[Magisk] adhd_1977:
Make sure your using the latest .NET framework and Java JRE.

Thanks so much for confirming !

Any errors ? Please make sure your using the latest .NET framework and Java JRE.[/QUOTE]

Got my PC updated and now it work fine, file made and flashed.. working like a pro, great work..

Thx mate.
[Magisk] fOmey:
That mod is outside the scope of this patcher.. uses a different .JAR file.. more than happy to add any "services.jar" mods however.

It's not working because thats still ODEXED.
[Magisk] warfab:
Can anyone give me the deodexed version of services.jar for Samsung Tab S 8.4 Wifi (http://updato.com/firmware-archive-select-model?record=05B874E3941B11E6891DFA163EE8F90B)? Can't successfully deodex using FulmicsDeodexer or via Java commands
[Magisk] :
This looks interesting.

Question for the OP; Can you disable / re-enable the signiture verification on the fly, or does your patching just outright disable it?

Obviously, signiture verification is important, being as wiithout it, you have no way of knowing whether or not an update for an app may have been tampered with, malicious or not even from the original author.... of course the flip side is; yea, you can modify system apps...

Just curious if it works like the xposed module works. Being able to temperarily disable signature verification could be handy, not sure I like the idea of it being just switched off though...

On that note: you might want add to your 'precautions / terms of use' section, that disabling signature verification could be potentially dangerous, reduces security and the integrity of the user's system...

I'm sure lots of people trying this out, would know that... but it still might be good to mention it, IMO.

Cheers
[Magisk] fOmey:
At this stage it outright disables, you cant re-enable using the patcher.. In saying that tho if you disable the magisk module, it disables the patches..

So if you are worried about any potential security risks, just disable the module when not in use.
[Magisk] fOmey:
Delete the bin directory and restart the patcher it will re-download the binary files.. they are corrupted. Probably due to a sketchy internet connection..
[Magisk] ria2hariah:
:good::good::good: THANK YOU VERY MUCH, SIR, its Problem SOLVED :good::good::good:​

fOmey @ XDA

Patcher Version: 0.0.1.9

==> Binary download complete

==> Unpacked binary.

I: Using Apktool 2.3.1 on services.jar

I: Baksmaling classes.dex...

I: Copying assets and libs...

I: Copying unknown files...

I: Copying original files...

==> Patched mock location boolean

==> Patched mock location boolean

==> Patched secure flag function

==> Patched secure flag boolean

==> Patched signature verification function

I: Using Apktool 2.3.1

I: Checking whether sources has changed...

I: Smaling smali folder into classes.dex...

I: Building apk file...

I: Copying unknown files/dir...

W: Could not find resources

==> Magisk template download complete

==> Generated magisk module zip file

*** Complete ***

Thanks Sir
[Magisk] jimbo77:
[MENTION=1620550]fOmey[/MENTION] i'm currently having an issue that might be related to my ROM but wanted to confirm. I have a Galaxy Note 8 running ODEX Samsung's stock Oreo (8.0), i used the adb mode and it pulled the files, deodexed services and patched succesfully but when i activate the module it goes to bootloop.

Do I need a fully deodexed ROM here? or am i missing something in the process?

Thanks for your help in advance!
[Magisk] fOmey:
Try again using ADB method.. if the same thing happens deodex the entire rom using a external tool like fulmics deodexer and use the alternative method.

Might either be a corrupt framework pull, a bad deodex or a patch that doesn't play nice with your rom.. I know that doesn't really narrow things down, process of elimination is the only way to figure it out tho.
[Magisk] marcorua:
Hi

smali patcher using Mock locations on Android 8.0 pogo detects that I am using changed software, I get red message. With android 7.1.2 no longer. Why?
[Magisk] Bcl2:
The red message has a delay of hours/days/weeks before appearing/disappearing after you start/stop using fake gps. Are you sure that is related to the OS version?
[Magisk] jiddahidda:
I'm running a Tab A, running 7.0, and I have the same issue as jimbo77. I've tried a few times but I can't successfully install this module without the tablet bootlooping afterward. I originally had all three tickboxes ticked, but I've also tried the GPS only tickbox.

I've Odin'ed on a stock ROM, installed TWRP, installed Magisk, and all goes well up to here. I then install this module and trigger a reboot and the bootloop begins. Is there any logging I could extract from it? I can enter recovery to do so.
[Magisk] kacaksevgilim:
rom deodexed but gives the error in the picture

note: V1.8 is running

"Error: Invalid or corrupt jarfile bin\apktool.jar

!!! ERROR: Target JAR must be deodexed."
[Magisk] marcorua:
The message appears after about 2, 3 days. It can only be from the android version because I'm using the same settings. The account of my son and my wife did not receive the message (android 7.1.2).

I'm doing tests with a secondary account to see if it happens the same (since this morning). I no longer risk the main.