yashsingh1/xdaforums huggingface dataset:
[Magisk] peter9811:
How to deodex?

The last time I deodex was on Samsung J7, haha
[Magisk] PoochyX:
Hmmmm

([emoji3590]09-09-18[emoji813])
[Magisk] Spartacus500:
Missing folder framework /arm/ /arm64/ /oat/ /oat/arm /oat/arm64.
[Magisk] ZKnowN:
Updated the folder.
[Magisk] Spartacus500:
Ok, what patches do you want to apply ?
[Magisk] ZKnowN:
Just mock locations.
[Magisk] Spartacus500:
Ok, your services.jar only Mock locations
[Magisk] marregazza:
Hello [MENTION=6138728]Spartacus500[/MENTION] . I need your help to patch. The framework folder+build.prop link attached below.

- mock location

- secure flag

One more thing, about mock location patches. What is suitable gps spoofer which is compatible with this patches? I read the OP, but I'm not clear what is traditional gps spoofer. And then, with this patches, we no need to enable mock location at developer options, right?

Thank you in advance.

https://drive.google.com/file/d/1GgyPIgD5z0OIPK-4EdD6LnJVdE5HH5Co/view?usp=drivesdk
[Magisk] pmq2212:
Can't generate file .zip

J7 Prime G610F - Android (8.01 or 7)

Window 10, Installed java 1.8, .NET framework 4.8, Turn off Firewall

But can't patch jar. I click "Path jar" then nothing happen, waiting about any minutes and app auto close.

[IMG="Generate file .zip"]https://xdaforums.com/picture.php?albumid=15695&pictureid=59160[/IMG]

[IMG="Can't generate file services.jar"]https://xdaforums.com/picture.php?albumid=15695&pictureid=59162[/IMG]
[Magisk] AlvyRage:
Updated the rom and the last module wont work

Can anybody help me? I need the Smali module for my device. I installed another ROM and it's not compatible with the old one. Here is the services.jar

https://drive.google.com/open?id=1BrWvJeU0qpwgRs29P-Ae2p0Ud9DaWgwa

And here is the build.prop

https://drive.google.com/file/d/1nM0FPVrKiRYip95QriVqzhwwFDeR95La/view?usp=sharing

Please help me. And sorry for being annoying. I don't have PC right now to do it myself ?
[Magisk] A30NI_Y:
All patches except S10
[Magisk] EpicSweats:
So i've been trying to patch my galaxy s6 G020F.

Now i have the problem that the patcher gets stuck at different percentages. 43% 53% 74% even at 98%.

Does anybody know what is causing this and how to fix it?

Screen of the stuck patcher: imgur.com/a/bygScdx

i need this for pogo spoofing so i need to check all boxes, right?
[Magisk] fOmey:
It's not stuck.. just be patient.

The percentage in the current release is a little buggy, if a new binary download task starts it won't update the percentage until it catches up to the current percent..

I've already fixed this for a future release of the patcher, for now just be patient and let it do its thing.. it will eventually finish.

Try a different USB cable, the one you're using might not be providing a reliable connection.

If all you're concerned about is spoofing, the only patch you need is the mock location one.
[Magisk] Spartacus500:
Ready :)
[Magisk] EpicSweats:
Thanks it worked!

I tried a few different cables including the official cable. The same happend got stuck at x%.

This time i just closed the patcher completely and restarted the patcher, ran the patch again and it worked.:good:
[Magisk] blackroseyagami:
ok I dont get it...

I´ve been getting "Error: Invalid or corrupt jarfile bin\apktool.jar

!!! ERROR: Mock location class not found." for the past week on at least 5 different roms.

I understand this has to do with Android 9 but Ive tried using Oreo roms and no good, even using Stock Potter rom.

Any ideas what can I do?

I´m on Moto G 5 plus (potteR)
[Magisk] marregazza:
I don't know why. After i flashed 0.0.5.5, my phone can't boot. It stuck at logo. So i revert back to 0.0.5.3..
[Magisk] elche8:
Hello, i tried to do the tuto on my redmi 4x but it didn't work.

I: Using Apktool 2.4.0 on services.jar

I: Copying assets and libs...

I: Copying unknown files...

I: Copying original files...

!!! ERROR: Mock location class not found.

I just want to play po go with fake gps.

Thx a lot :)
[Magisk] FloFloFlow:
Pokemon GO not working with 5.5, I'm alone ?

edit : I installed back 5.1 and it works again.
[Magisk] elche8:
still work on my samsung A3 2016.

[MENTION=6138728]Spartacus500[/MENTION] if you can help me with the service.jar for the mock location for the redmi 4x it will be so awesome :D

Thx :)
[Magisk] fOmey:
Has absolutely nothing to do with the rom.. android 9 is supported.

One of the binary files is corrupt. Delete the "bin" directory and restart the patcher.. it will re-download the binary files.

Probably caused by a unreliable internet connection.
[Magisk] blackroseyagami:
Just to be sure. Where is the bin directory?

EDIT: NVM figured it out xD

Thanks mate this fixed it for me.
[Magisk] Spartacus500:
Ok, ready, only Mock Location ;)
[Magisk] teknomedic:
Help Needed Please:

I'm running an LG V30 with Oreo ROM (vUS99820H) with TWRP installed and Magisk 19.2 and Smali 0.5.5. I can create the patch without issues on PC and I've tried installing through TWRP and Magisk with same results. Keep in mind that this is a very freshly wiped phone. I recently unlocked and rooted and then even accidentally killed my OS and files so had to freshly install ROM 820H (Oreo). All I've done so far is use TWRP to install OS, Install Magisk, patch Smali, install PokemonGo and Install Fake GPS Routes. I've of course used Magisk to hide from PokemonGO.

I'm making my Smali patch with flags "Mock Locations, secure flag, and Volume Warning". I'm trying to use this to spoof in Pokemon Go... however, no matter what I do I get error 12 "failed to detect location (12)" in PokemonGo and it seems it's detecting that I'm using Mock locations... as soon as I remove my mock app from developer options PokemonGo works fine with device GPS.

I've followed a few guides on Reddit as well which recommend Smali and still the same results. Either I'm missing something simple or Smali doesn't work on an LG V30 Oreo ROM for some unknown (to me) reason.

Thoughts???
[Magisk] zimmerma379:
Cool Tool -- THX!

Just used this tool to gen + install "Secure flag" patch to my new LG V30. All went well and it is working great with apps that had been prohibiting screenshots! THANK YOU for this awesome tool! :D
[Magisk] A30NI_Y:
Did you systemized the GPS app?
[Magisk] fOmey:
That's good to hear!

By any chance are any of the apps that prohibit screenshots free? (I haven't been able to actually test the patch myself, as none of the apps I use actually block screenshots!)
[Magisk] zimmerma379:
The Chase app is a good (and free) example app.

And thanks again for your patcher tool! :)
[Magisk] shoey63:
Gps joystick by theappninjas has a toggle to block screenshots and does so, and is free. Also good for testing if mock locations is correctly hidden [emoji6]
[Magisk] slst:
[MENTION=6138728]Spartacus500[/MENTION] Can you please help me with the secure flag for oneplus 7(not pro).
[Magisk] langithitam:
Hy [MENTION=1620550]fOmey[/MENTION],

seems that smali patcher doesn't suppotty samsung one ui?

i've tried using adb method & deodex it doesn't work
[Magisk] fOmey:
All my testing is done on one UI, I use a S10.. so yes it's absolutely compatible.
[Magisk] Spartacus500:
Sure, share the framework folder + build.prop file and pack in zip. Alternatively, if you have services.jar deodex then all you have to do is use the services.jar file itself.
[Magisk] teknomedic:
I've tried both systemizing and not systemizing with no results on spoofing. Most guides say not to systemize though. I was unable to fully systemize Fake GPS Route though as that asks for XML file modifications... which I've been unable to do as the files seem to be locked down even with root access. I've tried several "root" file managers and permission changers with and have been unable to get any of them to actually modify the files. I doubt it would work anyways.

I'm getting to the point of trying to a custom ROM, but I'd rather not. I'm really at a loss what is blocking this on the V30. So many other phones are spoofing without problems using Smali and yet LG V30 kicks it to the side... is it hardware... software? I'm not sure. I've tried both Nougat and Oreo... fresh system wipes and no changes in behavior.
[Magisk] A30NI_Y:
Systemizing the GPS will leads to error 12 with Smali. Have you try GPS Joystick (Appninja)? I have no issue with this app on many devices. Give it a go just to narrow down the issue.
[Magisk] teknomedic:
I've tried that app as well... at one point I was able to get it kinda going (only when I departed from the guides and mucked around on my own trying various settings) but with extreme rubberbanding that wasn't even solved with foil, copper and special wifi blocking fabric (not my first rodeo blocking gps signals).

been trying to do this for a month... I've tried many things and combos of things... the V30 just refuses

it's like there's some fundamental setting or basic issue that's being over looked that's uniquely V30.
[Magisk] A30NI_Y:
When you tried GPS Joystick, did you disable mock location in the settings and select the app in developer option? The app auto select mock location as default and I have to disable it manually (I have rubber banding issue when mock location is selected). In fact, you need to disable every settings in the app for it to work with Smali.
[Magisk] teknomedic:
yes I did.... when I disable mock locations Pokémon says no GPS signal (error 11)... with it enabled I'll either get rubberbanding (only happened once so far) or "failed fo detect location (error 12) which happens 99% of the time.

I've tried all the guides I can locate for Smali and none have worked so far. I'll try again if you have a suggested guide.

i really do appreciate the help.
[Magisk] teknomedic:
i have testing to do, but I think i finally got it.

GPS Joystick, privacy set and original uninstalled

GPS Joystick, set as system app

GPS Joystick, all options disabled except "system mode"

Mock locations in development not used.

Magisk 19.2, hidden

Nougat 7.1.2 all location options disabled except location itself and GPS only.

play services 12.6.85

I now question if smali is needed with this setup. what I can say is that it still seems that Pokémon can detect that mock locations is being used despite Smali installed as any time i turn that on I instantly get "failed to detect location"

I am also using an old play services so will need to test if this works on newer versions or not.
[Magisk] A30NI_Y:
It seems to me the service.jar is not properly patch, I might be wrong. During the patching process, do you encounter any error? or if you post your framework folder and build.prop, I can try patching it for you to try again.

I have not try FakeGPS before, so, I can't comment on it. As far as I know, with Smali, play services version is never a concern. GPS app is not systemize. Mock location is disabled in GPS app. Select the GPS app in developer option for mock location app. Device only selected in phone GPS location service. Of course, this is with the GPS Joystick.
[Magisk] teknomedic:
Oops, I meant GPS Joystick... I'll correct that. I've been using FakeGPS Route for years on an older phone, but it was long overdue for a phone upgrade.

I'll happily provide any files that can help you. And no... I never saw an error when making my patch zip... I'll send that too. So what exactly do you need from my phone?
[Magisk] A30NI_Y:
Preferably on a fresh ROM, in TWRP mount system and copy the framework folder (all files) and the build.prop file to the download folder in the phone internal storage. Upload it to a google drive or other so I can download it to do the patching.
[Magisk] teknomedic:
Not sure I'll do a fresh ROM (don't want to lose whatever magic happened), but it's pretty fresh as it's only been a day, since my last re-flash and all I've been doing is trying to get spoofing working.... And going through the same steps on my other V30 I'm getting rubberbanding... Could be the new play services on that phone though... Or I did something else and have forgotten. Hopefully we can sort out why my Smali appears to not be working for me though and this will be moot

I'm at work, but will rip those files soon and get them uploaded for you.
[Magisk] henderjr:
Were you ever able to get this to work with Q?
[Magisk] hhjkkh10:
I am trying to use smali patcher but it keeps always getting stuck on something e.g., patching classes, recompiling. What could be the issue? I have TWRP and Magisk. I am using android 9.
[Magisk] lividhen99:
So, is there a way to install without a computer? Like is there an arm version for wine? Can wine even access root? Is this even a plausible thing with mobile specs?
[Magisk] mantinasss:
rrrr

Hello everyone . Need help with smali patcher , i try install services.jar and getting this error over and over again

. fOmey @ XDA

Patcher version: 0.0.5.5

==> Binary download complete

==> Unpacked binarys.

==> Detected java: 1.8.0_221

I: Using Apktool 2.4.0 on services.jar

I: Baksmaling classes.dex...

I: Copying assets and libs...

I: Copying unknown files...

I: Copying original files...

!!! ERROR: Mock location class not found.

Phone using redmi note 4x mtk helio x20 , just updatet to version 10.2 i think and cant install..
[Magisk] A30NI_Y:
Here it is with mock location and sig spoof. Remember to back up first in case something go wrong.
[Magisk] f41lbl0g:
Hey fOmey, I am also on OneUI on the s8+. When i try using adbpatch it works but there are two issues. First is that signature verification doesn't work. I cant install apps with different signatures on top of each other. I also ticked mock location and signature spoofing and they both work. Second is that the ui gains some noticeable lag and feels a bit unresponsive. Is there any fix for that?
[Magisk] mantinasss:
Thank i try later!
[Magisk] lividhen99:
Is this for all devices? Or just the redmi note 4?
[Magisk] mantinasss:
Mine its redmi note 4x helio x20 mtk, i dont know maybe its work with others devices. Everything good by the way
[Magisk] A30NI_Y:
Different device has different hardware and ROM, so require specific patch. Unless it is the same device and ROM then can use the same patch.
[Magisk] fOmey:
The signature verification patch is partially working, it does not allow you to install apps with different signatures over the top of each other.. only allows them to run/execute, you need to replace the base APK manually.

By deodexing, we're decompressing the files. I personally don't notice any difference in terms of lag.. but some users have reported lag like yourself. We can't modify the files without deodexing unfortunately.. meaning no fix. Might be a way to odex the files after we modify them, I haven't looked into this tho.. we are also dealing with VDEX/CDEX files which complicates things further.. yea, no fix for now.
[Magisk] f41lbl0g:
Thanks for the response. I've tried replacing the base apk with twrp, but it ends up uninstalling the app after a reboot. The S10 is probably so fast the the lag is probably negligible.
[Magisk] jimmysviken:
So the installation is completed now , and module installed in magisk :D thanks for this now i shall just try to set it up somehow o.O
[Magisk] Immortal-theMaster:
Oneplus 3t problem

Hello everyone . Need help with smali patcher , i try install services.jar and getting this error over and over again

. fOmey @ XDA

Patcher version: 0.0.5.5

==> Binary download complete

==> Unpacked binarys.

==> Detected java: 1.8.0_221

I: Using Apktool 2.4.0 on services.jar

I: Baksmaling classes.dex...

I: Copying assets and libs...

I: Copying unknown files...

I: Copying original files...

!!! ERROR: Mock location class not found.

Phone using Oneplus 3t , just updatet to version 9.0.5 I think and cant install..
[Magisk] dagamer1991:
hey everyone.. i generated the module and installed it using magisk.. when i hit reboot the device turned on.. but now im stuck on my lockscreen.. cant seem to get past it.. every time i enter the pattern lock, it gets stuck on blurry unlock screen and the device remains locked.. cant even reboot with the power button.. have to use adb reboot everytime.. can you help?

im using s6 edge G925I, stock rom.

Nevermind, fixed it.

Flashed this script from TWRP and uninstalled module.

https://xdaforums.com/showpost.php?p=72542167&postcount=242

(For future reference, if anyone encounters the same problem.)
[Magisk] MendyG5:
In Android Q (10) with xiaomi.eu last rom for MI9 it doesnt work. I hope you can fix it soon, thanks.
[Magisk] ultimatepichu:
Hey fomey,

First of all, nice work on this patcher. It worked well on Pie but somehow it doesn't work anymore on PoGo in Q Beta6. Don't know what changed. In Google maps I'm seeing myself in spoofed location. But PoGo gives error 12. Any idea?
[Magisk] MendyG5:
Same here. Error 12 in POKEMON GO with Android Q... Waiting for a fix!

Thanks
[Magisk] vettayyan:
I am on OP 3T , running Nitrogen OS .. Tried to install Smali Patcher, got stuck @ Pulling files ...

I used to apply this 2 only MOCK Locations and Secure flag..

My PC have all the latest running Java 1.8.0 and USB Debugging is enabled,,

Where I'm struck ??
[Magisk] rrmTV:
Getting !!! ERROR: Mock location class not found.

Android version 5.1.1

Log:

fOmey @ XDA

Patcher version: 0.0.5.5

==> Detected java: 1.8.0_211

==> Dumped framework

==> Detected API: 22

Exception in thread "main" org.jf.dexlib2.DexFileFactory$UnsupportedOatVersionException: Unsupported oat version: 45

==> Deodexed services.odex

!!! ERROR: Mock location class not found.

adb folder (I can't post links so replace the # with .): drive#google#com/drive/folders/1tykdYm8H_jCu0CyDrrPmp5ZoGBlCeHE7?usp=sharing
[Magisk] yannahzinha:
Update: It's working perfectly on Pie now, even with split screen.

---------- Post added at 09:23 PM ---------- Previous post was at 09:20 PM ----------

Working with Mi 8 (dipper) with miui.eu 10.3.4 without problems. Thank you very much!
[Magisk] clueless_needs_Help:
Big sad. Just a regular, tech unsavvy person trying to follow instructions on reddit and finally gave up.

I have only installed TWRP and Magisk to the device at this point.

---

Log: fOmey @ XDA

Patcher version: 0.0.5.5

==> Detected java: 1.8.0_181

==> Dumped framework

==> Detected API: 22

Exception in thread "main" org.jf.dexlib2.DexFileFactory$UnsupportedOatVersionException: Unsupported oat version: 45

==> Deodexed services.odex

!!! ERROR: Mock location class not found.

---

Can't post link, so replace the # like the other poster: drive#google#com/drive/folders/1hhZokPIHPC_C3hGPBAC3CpwWEcF3jTNS?usp=sharing
[Magisk] Spartacus500:
[MENTION=1620550]fOmey[/MENTION],

I have a question about Mock Location, in Samsung Galaxy S7 Edge I have entries like this below, so the question is, does Mock Location work properly ?

"mock_location" "0"

"ro.allow.mock.location" "0"
[Magisk] teknomedic:
I've bewn having the same issue on a V30 for the last month. Also waiting for a fix. I'm just happy to finally see others having the issue.
[Magisk] stevesteve:
Hello all,

Sorry if my question sounds stupid, but, can this module patch a non-deodexed Pie ROM (stock Pie service.jar)?

I tried, and it always gave an error.

"The specified executable is not a valid application for this OS platform".

So, I just want to make sure. And if it can, can someone tell me the procedure? or if omeone willing to patch mine, I will be appreciate it a lot.

Thank you.
[Magisk] fOmey:
Unfortunately not supported by smali.. meaning the patcher is not compatible with your device. :(

What OS are you running the patcher on? Is it a full windows OS?

Doesn't surprise me it doesn't work with Q, I'm sure a few things have changed.. upload your deodexed services.jar and I'll take a look when I have time.
[Magisk] stevesteve:
Hello,

Yes, I ran it on Windows 7 32-bit.

Ps: even using BatchApkTool it failed, no luck :(
[Magisk] psychox32:
Hi, im not a Windows user and I cant get a Windows laptop anytime soon. Can someone help me with the patch? Please. I will be so grateful

Mock locations

Framework folder + build.prop

drive.google. com/file/d/1-6heEqtayVN5ubUrpxnTHtC2jNiFiDHI/view?usp=drivesdk
[Magisk] teknomedic:
Forgive me, but how does one "deodex" the services.jar and where is it located?

I'm happy to upload it, just need a little more info.
[Magisk] Spartacus500:
Try backing up your services.jar and services.odex files before using Smali patcher. Patch only Mock Location.
[Magisk] wurstherpes:
Not enough information. Which patch should it be?

EDIT

I also get the following error message.

fOmey @ XDA

Patcher version: 0.0.5.5

==> Detected java: 1.8.0_221

I: Using Apktool 2.4.0 on services.jar

I: Copying assets and libs...

I: Copying unknown files...

I: Copying original files...

!!! ERROR: Mock location class not found.
[Magisk] stevesteve:
Hello,

I usually use another tool to deodex services.jar. In other case, some Xiaomi ROM is already deodexed.

Services.jar is located in System/framework folder. U need root acces to get the file if using a file manager.

But if u already have TWRP or any other custom recovery u can get the file without rooting by rebooting to TWRP, mount system, go to file manager, look for System/framework folder, copy the file to externalSD

---------- Post added at 03:54 PM ---------- Previous post was at 03:51 PM ----------

[MENTION=6138728]Spartacus500[/MENTION],

Can you tell me what to do in order to patch Pie services.jar? (Non-deodexed).

Or if u may, can you help me patching mine?

Thank you
[Magisk] psychox32:
HI, exactly that patch :( what to do with that error?

Its a Galaxy S9 with Android 9
[Magisk] wurstherpes:
I can't tell you that. The developer will have to tell you.
[Magisk] psychox32:
[MENTION=1620550]fOmey[/MENTION] [MENTION=6138728]Spartacus500[/MENTION] we have that problem with Samsung S9 with Android 9 (One ui). I saw that u already solve some Problems with mock location class not found
[Magisk] Spartacus500:
No problem on 9.0 Pie :) share the entire framework folder and build.prop file, pack the entire file in a zip so that I can download the entire folder and write if you only want the Mock Location patch or one more ?
[Magisk] psychox32:
Just the mock location patch

This Is the Framework folder + build.prop

drive.google. com/file/d/1-6heEqtayVN5ubUrpxnTHtC2jNiFiDHI/view?usp=drivesdk
[Magisk] PoochyX:
Why you need mock location patch I got to review your reasons before Spartacus can make it

([emoji3590]09-09-18[emoji813])
[Magisk] vettayyan:
Could any threw some Light on it ??I'm really confused where I'm struck!!

I'm running Android Pie!
[Magisk] psychox32:
Just to play pgo with my friends that are 400kms away while im on vacations. We go to raids together and combates each other.
[Magisk] Spartacus500:
Ok, ready, only Mock Location you services.jar ;)
[Magisk] psychox32:
Thanks u very much
[Magisk] stevesteve:
Can someone help me with mine? I really appreciate any help.

Just the mock location and screen capture patch.

This is mine:

LINK
[Magisk] Spartacus500:
Ready ;)
[Magisk] stevesteve:
Thank u alot [MENTION=6138728]Spartacus500[/MENTION]. Haven't tried yet, but will let u know the result.

Anyway, mind to share me how u did it? Bcoz I failed all the time :(
[Magisk] Spartacus500:
I'm sorry, I do not provide such information.
[Magisk] stevesteve:
Okay, I understand.

Anyway, already tried it and it works.

Thank you so much for helping me out.
[Magisk] fenixfyre:
I tried again with Q beta 6 using 5.5 and app ninjas gps joystick 4.1.2 and I can confirm it works. We might have just overlooked some of the usual cleanup steps. Also, Google Location Accuracy has a separate entry in the Location options now, so it's not just enough to disable Wi-Fi and Bluetooth scanning but also need to remember to disable this (it's in the Advanced options drop-down in Location settings)
[Magisk] th3cavalry:
Care to share how you got it working? Im using a Pixel 3a XL. I have Q6, Smali 5.5, GPS Joystick 4.1.2 myself. I disabled wifi and bluetooth scanning along with Location Accuracy but I still get a red bar "Failed to detect location. (12)"
[Magisk] MendyG5:
Hello [MENTION=1620550]fOmey[/MENTION]. Here i uploaded my services.jar in Android Q. Xiaomi.eu rom in MI9. Thanks you, i hope it is OK for you. Thanks.

https://mega.nz/#!agxhBa5I!FHiPSxKHYo9rg5FvHfj0y_186HSR_JznvoFDyb_AJ-E