yashsingh1/xdaforums huggingface dataset:
[Magisk] jimbo77:
I'm on the same boat as you. Patch is not working correctly on Android 8.0, I compared Nougat's Services.jar vs Oreo's Services.jar for my ROM and it differs a lot. I see a lot of new methods, classes, definitions and so.

[MENTION=1620550]fOmey[/MENTION] Can you take a lookt to confirm my above statement? If so, do you think you can work on an update :)?

Thanks!

EDIT: Attached are my two LocationManagerService smali files if needed....
[Magisk] fOmey:
I've coded the patcher to not really rely on the classes per se.. it find's particular chunks of code and patches only what it needs to.

If the "mock locations XYZ patched" pops up it in the status window you can assume the patch was successful!

As I mentioned on the OP I don't own a device on 8.0, so I personally have not tested the patcher on that version... in saying most user's have reported success.

Also the "red warning" has nothing to do with the patcher.. the patcher is doing it's job disguising mock locations as legit location updates. If your moving erratically like a bot would - you'll get warned.. also I highly recommend looking at post 2 and following the instructions for "MOCK LOCATION RUBBER BANDS TO REAL LOCATION".. disabling other location methods would be wise (bluetooth & wifi) along with location history..
[Magisk] heysata:
Hello f0mey,

Thanks for your Patcher it worked fine!

I still got some weird little Problems though..

Sometimes everything is working fine i can move set new location and stuff like that..

But after a while i get the Device is not compatible [IMG="device not compatible"]https://i.ytimg.com/vi/vLVJclktMTw/hqdefault.jpg[/IMG] Error..

Im using an Huawei p9 lite with elite custom rom, the newest Magisk 16.3 and your Patcher..

I couldnt find anything which helps me from the previous Posts or the FAQ.

In Magisk Hide (PokemonGo and your GPS Spoofing App is ticked) + Mock location app is set to your GPS Spoofing App you provided.

am i missing something?

Edit: When im closing your fake gps app from the Multitasking app switcher and restart pokemongo 2-3 Times it works perfectly again for some minutes..
[Magisk] Bcl2:
It's a magisk problem. Type this in terminal emulator:

su

magiskhide --add com.nianticlabs.pokemongo

If the terminal says that the command --add is not recognized, just reboot your phone and retry
[Magisk] heysata:
not working for me :( but thanks ! Pokemongo was already on the hide list.. i even tried your command to make sure..
[Magisk] JimZiii:
patch just giving me a bootloop on my huawei honor 8 with stock rom B394.

on my previous rom versions i even used the same module made from a services.jar several versions earlier but on B394 i got a bootloop all of a sudden. thinking i just needed the latest services.jar file i extracted and deodexed it again but even with the latest jar file i keep getting bootloops.

so i'm pretty sure it's not a bad framework pull.

i'm only trying to get the secure flag patch so if you could find a fix, workaround or even an alternative solution for this i'd really appreciate it

thnx
[Magisk] alponso:
Bootloop on:

- Samsung SM-G532G/DS AP_G532GDXU1AQC1_CL10833492_QB12769600_REV00_user_low_ship_MULTI_CERT.tar

- Samsung SM-J250F/DS NMF26X.J250FDXU1ARA2

I have to provide deodexed services.jar from Fulmics Deodexer to your patch tool to make it work.

On several mock apps, my spoof location detected.

Is it related to mock apps or patched services.jar?
[Magisk] fOmey:
Try deodexing using fulmics deodexer and supplying the services.jar..

Could be a bad firmware dump.. read post 2 and follow "MOCK LOCATION RUBBER BANDS TO REAL LOCATION" title.
[Magisk] alponso:
When using GPS spoofer "A" to mock location it is working fine, but spoof detected when using GPS spoofer "B".

Both GPS spoofer does not have rubber bands issue. They both stay still on provided Lat/Long.
[Magisk] Telperion:
Presumably this won't work on P DP1 either?
[Magisk] fOmey:
I don't understand the problem then.. you answered your own question. It's the spoofer your using..

Untested, baksmali doesn't support P anyway.. the price you pay for the bleeding edge !
[Magisk] Jebew:
can someone help me, please?

i got some error "mock location class not found"

how to fix it??
[Magisk] cognitivedissonance:
Location Spoofing

So I know Magisk modules are used extensively in spoofing location for Pokemon Go and several other games, but has anyone ever been able to spoof other apps (Tinder, Bumble or other apps which depend heavily on location?) I know there's an Xposed module called Fake My GPS which still works for this, but I'm not sure if Magisk can dig deep enough to properly spoof what's required for apps like these. Tinder in particular has become very proficient and stopping spoofing.
[Magisk] fOmey:
They all grab location the same way.. aslong as you disable other methods of grabbing locations (wifi / bluetooth). The app's would never know the difference..
[Magisk] cognitivedissonance:
Well I'll probably give it a shot, but the apps in question tend to have popups that force you to either enable high accuracy location (WiFi and possibly tower location?) or close the app. I think The Fake My GPS Xposed module was able to spoof properly because it went deeper than even apps with root permissions could...
[Magisk] fOmey:
GPS will take's precedence over wifi, bluetooth or tower location updates anyway.. aslong as they are accurate and frequent location updates.

I guess certain apps might compare locations obtained by different methods to try catch cheat's... makes sense they may force you to use high accuracy, even tho I had yet to come across one.

Best of luck !
[Magisk] cognitivedissonance:
Both tinder and bumble had freak out popups if you weren't using high accuracy and wouldn't function. I imagine Pokemon go probably does something similar these days. Anyway I appreciate the responses. If I test those apps out I'll report back.
[Magisk] nominath654:
Hi, whenever i run the patcher this is what my log looks like:

fOmey @ XDA

Patcher Version: 0.0.1.9

adb: error: failed to copy 'system/build.prop' to 'adb\build.prop': remote open failed: Permission denied

pull: building file list...

/system/framework/: 353 files pulled. 11.5 MB/s (254843882 bytes in 21.104s)

==> Dumped framework

==> Detected API: 00

Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1890111560

at org.jf.dexlib2.dexbacked.BaseDexBuffer.readSmallUint(BaseDexBuffer.java:53)

at org.jf.dexlib2.dexbacked.OatFile$DexEntryIterator.next(OatFile.java:579)

at org.jf.dexlib2.dexbacked.OatFile$DexEntryIterator.next(OatFile.java:570)

at com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48)

at org.jf.util.AbstractForwardSequentialList$1.next(AbstractForwardSequentialList.java:91)

at java.base/java.util.AbstractSequentialList.get(Unknown Source)

at org.jf.dexlib2.DexFileFactory.loadDexFile(DexFileFactory.java:129)

at org.jf.baksmali.DexInputCommand.loadDexFile(DexInputCommand.java:144)

at org.jf.baksmali.DisassembleCommand.run(DisassembleCommand.java:161)

at org.jf.baksmali.Main.main(Main.java:102)

==> Deodexed services.jar

!!! ERROR: Mock location class not found.

dont know how to fix that, any help? im running magisk 16.0, android 8.1 on an essential ph-1 (this is happening while phone is plugged in and usb debugging is enabled, its not in bootloader, im running the patcher as admin and have deleted the bin file to see if that was the issue)
[Magisk] fOmey:
8.1 isnt supported yet, post your build.prop I see another problem tho.
[Magisk] prashanth_:
Hello [MENTION=1620550]fOmey[/MENTION],

I'm trying to patch only Secure flag. Even that alone doesn't work with 8.1 based custom ROMs?

This is what I get:

fOmey @ XDA

Patcher Version: 0.0.1.9

==> Binary download complete

==> Unpacked binary.

==> Binary download complete

adb: error: failed to copy 'system/build.prop' to 'adb\build.prop': remote open failed: Permission denied

pull: building file list...

/system/framework/: 181 files pulled. 14.2 MB/s (258539655 bytes in 17.402s)

==> Dumped framework

==> Detected API: 00

Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1889988680

at org.jf.dexlib2.dexbacked.BaseDexBuffer.readSmallUint(BaseDexBuffer.java:53)

at org.jf.dexlib2.dexbacked.OatFile$DexEntryIterator.next(OatFile.java:579)

at org.jf.dexlib2.dexbacked.OatFile$DexEntryIterator.next(OatFile.java:570)

at com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48)

at org.jf.util.AbstractForwardSequentialList$1.next(AbstractForwardSequentialList.java:91)

at java.base/java.util.AbstractSequentialList.get(Unknown Source)

at org.jf.dexlib2.DexFileFactory.loadDexFile(DexFileFactory.java:129)

at org.jf.baksmali.DexInputCommand.loadDexFile(DexInputCommand.java:144)

at org.jf.baksmali.DisassembleCommand.run(DisassembleCommand.java:161)

at org.jf.baksmali.Main.main(Main.java:102)

==> Deodexed services.jar

!!! ERROR: Secure flag class not found.

Thank you very much for your time :)
[Magisk] fOmey:
I appreciate what your trying to do... however the tools used to extract the apk's dont support 8.1.

Nothing I can do unfortunately.. All I can say is keep an eye on the baksmali github and when it eventually gets updated. Delete the "bin" folder, which will force the patcher to re-download the latest binary files !
[Magisk] prashanth_:
Sorry, I should've searched more before asking. I see you've already covered this.

Thanks for the input. I'll keep an eye on the github page and this thread.
[Magisk] motioninja:
Help

Dear Eng.Raman

Please help me to patch my service.jar

Thx so Much
[Magisk] g3mb1x:
Dear [MENTION=1620550]fOmey[/MENTION],

I am using your smali patcher module and its working great with my several phone type, etc all xiaomi, huawei, lenovo, samsung j7 j2 j3 a5. But when i try to use it with my tab, samsung sm-t285 deodexed version it seems not to work, my mock location still detected. Please kindly check my attacher services.jars..

Regards
[Magisk] AvisAile:
Does it work on Android P ?
[Magisk] nithin1999:
Bro p is not even released
[Magisk] ivivaitylin:
8.1 user here with the same mock location class error. I've done some digging, and from what I understand, this is because the program can't deodex the 8.1 files. But if I were to use something like this: https://github.com/anestisb/vdexExtractor I would then be able to use my services.jar and do it manually?

Not that I have a clue how to even compile a program, but if this wouldn't actually work then I won't dig further into this. Thanks!
[Magisk] fOmey:
Technically yes.. As long as you can manually deodex your services.jar!

Your android revision must be supported by apktool at a minimum - if it is it's compatible with smalipatcher !

I believe 8.1 & P are supported by apktool.. Baksmali which is used for the patcher's inbuilt deodexing does NOT support 8.1 or P.

Deodexing your services.jar can be done with a few different tools, that's entirely up to you to figure out which one works best/supports for your android version.
[Magisk] sopx:
(Oreo 8.1) found the services.jar is only 300 bytes and paired with a services.jar.prof file. Is this vdex?
[Magisk] soraxd:
I believe my rom is deodexed, as i dont see any .odex files in system/app folder, only .apk files.

my rom is based off LineageOS 15.1 for T-713.

I get the error

!!! ERROR: Target JAR must be deodexed.

I've deleted the bin folder and repatched a few times to no success.

here is my service.jar
[Magisk] ivivaitylin:
Sorry, you're still odexed. If you look at all of the .jar files in system/framework folder and check any of the jar files, they are all exactly 318 bytes. That's because they are odexed and the information is actually stored somewhere else, the jar file is just there for legacy applications which look for it in that location. Or at least that's how I understand it.
[Magisk] fOmey:
Follow the ADB method on the original post.
[Magisk] ivivaitylin:
He's running a ROM based on 8.1, so won't that just fail to deodex just like stock 8.1?
[Magisk] fOmey:
Your absolutely correct.. I missed that.
[Magisk] dhavietz:
Xiaomi redmi 4 pro, MIUIPro 9.5.1.0 Android 6.0

Safetynet test often not passed

Cannot open Location Setting (always FC)

How to restore my phone to original state before using this smali patch?
[Magisk] dani971989:
ask help

Dear mr. Eng raman

Please help me because i'm still can't patch my framework, i've already deodexed my framework, thanks before

https://drive.google.com/file/d/18NR8mRpC8A0j5Alecd7wg4TpD0p1yvZw/view?usp=drivesdk
[Magisk] dani971989:
this my service.jar mr eng raman, thanks before

https://drive.google.com/file/d/10ChO47IsNe4GEg74i_PyT2LHk6ahhMi5/view?usp=drivesdk
[Magisk] Eng.Raman:
Tick the recycle bin icon forward to the smali patcher module in the magisk manager and reboot then you will restore to the original state.

The smali patcher module doesn't affect or change the safety net status in any way.

---------- Post added at 12:31 AM ---------- Previous post was at 12:23 AM ----------

Bro, your file need permission to access, i sent you an access request.
[Magisk] dani971989:
i'm sorry mr eng raman, now i sent back access to confirm
[Magisk] michaelcssirait:
I tried, error no find mock location?

What's wrong?
[Magisk] dani971989:
thanks mr eng raman, i try flash use magisk now
[Magisk] ria2hariah:
Detected API: 00, is that Safely?

For First i Want to say Thank You Very Much for this Great Module of [MENTION=8436917]Magisk[/MENTION] there is Much Device Helply of this Module, Thanks Again For all Team Dev, to Always Contuniu to Developed this Modul.

I have a Question:

I used GUI of this Module on my Hope Notebook and I get this

my question about this, i found:

i used this Rom :

[ROM][6.0.1][Lenovo K4 Note]RESURRECTION REMIX M [5.7.4][MT6753][12/12/2016]

is that safely??

I'm sorry for my Bad Engglish Writing, if there is of my word not polite i'm very very sorry, i just try to learning and learning againt, because i am a otodidak IT Lovers :o:o:o:o
[Magisk] fOmey:
You haven't authorized your PC on your device. "adb: error: failed to get feature set: device unauthorized.".. so it failed to pull build.prop.

It's not a issue anyway... It's purely there for debugging purposes.
[Magisk] zasukey:
So what now?

Samsung j3 2016 android 5.1.1

fOmey @ XDA

Patcher Version: 0.0.1.9

system/build.prop: 1 file pulled.

pull: building file list...

/system/framework/: 138 files pulled. 4.6 MB/s (195479237 bytes in 40.813s)

==> Dumped framework

==> Detected API: 22

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

at org.jf.dexlib2.DexFileFactory.loadDexFile(DexFileFactory.java:120)

at org.jf.baksmali.DexInputCommand.loadDexFile(DexInputCommand.java:144)

at org.jf.baksmali.DisassembleCommand.run(DisassembleCommand.java:161)

at org.jf.baksmali.Main.main(Main.java:102)

==> Deodexed services.jar

!!! ERROR: Mock location class not found.

ww w68 .zi ppyshare.co m/v/dqafZpEy/fi le.ht ml

Its not deoxed but if u could patch it :)
[Magisk] Eng.Raman:
The smali patcher tool doesn't support deodexing lollipop ( API:21 / API:22 ) services.jar, use LBD2.5 tool to deodex it manually then use the OP tool to patch and generate the module zip for it.
[Magisk] zasukey:
Thanks, kinda worked but got into boot loop ;-;

Any idea how to make it work?
[Magisk] Eng.Raman:
For Lollipop Users.

Since there are no "oat" named folder for lollipop system in ( /system/framework/ ) and to get rid of a bootloop, you need to edit the generated module zip as follows:

1. Change the following lines in "config.sh" using Notepad++:

/system/framework/oat/arm/services.odex → /system/framework/arm/services.odex

/system/framework/oat/arm64/services.odex → /system/framework/arm64/services.odex

2. Move the folders ( with its contents) named "arm" and "arm64" to ( /system/framework/ ) then delete the "oat" folder.

3. Save the changes then flash it and enjoy.
[Magisk] ria2hariah:
I'm realy sorry for, :o my mistake, this problem solved, i change another custom rom and SmallyPatcher a Great Working :)

Picture1

Picture2

:good::good::good: Thanks For Dev For a Great Module... :good::good::good:​
[Magisk] zasukey:
Worked thanks <3

Seems like module is not working tried copule of apps ;/ Also one from thread but can't even install it.

By not working i mean location mocking, Pokemon go still can see i use it.
[Magisk] danizwam:
Hi,

i just updated my OnePlus 5 to 8.1 and after failing to deodex the framework, i looked in this thread.

Did i get it right, that i am not able to deodex 8.1 Roms anymore?

Greetings, Daniel
[Magisk] fOmey:
Totally missed this one, well done!

CHANGELOG ::

2.0 ::

Prevent false "detected api" message.

Now play's nice with android lollipop - full credit to [MENTION=5818781]Eng.Raman[/MENTION]
[Magisk] zasukey:
Are u sure about 'play's nice with lolipop"?

Deoxed by myself patched and goes into bootloop if i dont edit like [MENTION=5818781]Eng.Raman[/MENTION] told me to.

But even if i do module is not working.
[Magisk] inggaro:
I did the same on my 5T, and now I'm stuck.

I tried deodexing with this one: https://github.com/anestisb/vdexExtractor

but I get a .dex file, and then I don't know what to do. I attach it to this post. Can someone help?

Thanks a lot
[Magisk] inggaro:
I tried to convert to jar with this:

https://github.com/pxb1988/dex2jar

and I got a jar. Smalipatcher gives me this error, like it was not deodexed:

fOmey @ XDA

Patcher Version: 0.0.1.9

I: Using Apktool 2.3.3 on services.apk_classes-dex2jar.jar

I: Copying assets and libs...

I: Copying unknown files...

I: Copying original files...

!!! ERROR: Target JAR must be deodexed.

any help?

thanks!
[Magisk] danizwam:
That is exactly where i am stucking...

...i think i'll go back to 8.0. At this moment, i am downloading the factory image and if there are no good news until this evening, i'll spend it flashing my phone ;)
[Magisk] inggaro:
Don't give up! We have to find a way :)
[Magisk] zasukey:
So using module made by patcher 2.0 is making phone bootlooping but using made by 1.9 is not working. I flashed it throught magisk manager and twrp both installed it but it didn't work. Any idea?
[Magisk] Eng.Raman:
Thanks alot for your hard work. :good:

Tested for Lollipop: when generating a module zip, the "config.sh" doesn't contain the lines required to prevent a bootloop.

( /system/framework/arm/services.odex ) and ( /system/framework/arm64/services.odex ).

---------- Post added at 12:39 PM ---------- Previous post was at 12:14 PM ----------

After flashing your smali patcher module, try to install the mock location app named " Fake GPS Joystick & Routes Go 1.6.1 " then systemize it systemlessly using Terminal App Systemizer.
[Magisk] zasukey:
Do i have to pay for this app? It looks so even if i get redirected to google play from app it's not available in my country.

Ok ok installed moved it but dont know what to do about license;-;

Finally working (for now) great thanks for ur help <33 Used some other app which i had already downloaded before "fake gps go"
[Magisk] Eng.Raman:
For android 8.1 [ API27 ] users.

After you can manually and successfully deodex your services.jar via VdexExtractor, do the following steps:

1. Rename your "services.apk_classes.dex" to "classes.dex".

2. Install winrar or 7zip into your PC then right-click on "classes.dex" and select " Add to archive ".

3. Select the zip format and rename the archive to "services.jar" and hit OK, it will output a services.jar with classes.dex inside.

4. Now, use the OP tool to patch and generate a magisk module zip for your 8.1 deodexed services.jar.

[MENTION=5642616]inggaro[/MENTION]: the smali patcher module based on your uploaded services.apk_classes.dex in the attach, try and report. :)
[Magisk] danizwam:
Thx, but i already switched back to 8.0. The main reason was a problem with my GPS. Even with clear sight and outdoor it took a long time until i got a GPS location. Switching between Pokémon Go and Ingress was very annoying. The Apps lost the GPS location immediately after putting them in the background.

[MENTION=5642616]inggaro[/MENTION] Does it work for you?

Greetings, Daniel
[Magisk] Eng.Raman:
Thanks for reporting. :)
[Magisk] fOmey:
Coding blind, don't use lollipop.. can only try !

Thank you for testing and providing useful information yet again!

CHANGELOG ::

2.1 ::

Corrected missing variables in config.sh for magisk module (lollipop bootloop fix) - full credit to [MENTION=5818781]Eng.Raman[/MENTION]
[Magisk] inggaro:
YES! It works like a charm! Thanks a lot Eng.Raman! The best part is that now we know how to deodex 8.1 easily!
[Magisk] Eng.Raman:
Thanks for your report, you are right. :good:

---------- Post added at 04:01 PM ---------- Previous post was at 03:43 PM ----------

Tested for lollipop: worked fine now. :)

Thanks again dev. :good::good::good:
[Magisk] sopx:
So can we get a post with a step by step guide for 8.1. I'm sure it will come up over and over again.

Is this the right steps?

1. Get services.vdex (.odex too?) from /system/framework/oat/arm64

2. Complie and use vdexExtractor with syntax? to get services.apk_classes.dex

3. Rename that file to classes.dex

4. Zip that file to services.jar

4. Use Smali Patcher to get the Magisk module
[Magisk] inggaro:
I just wrote

vdexExtractor -i services.vdex --ignore-crc-error

last option was necessary because it gave me a CRC error, but seems that ignoring it is fine.
[Magisk] Zincoshine:
With these new versions coming out I am wondering, is oreo 8.1 supported yet?

edit: judging by the most recent replies, looks like there is nascent support for 8.1. I think I'll wait a while before updating my phone to 8.1, at least until crystal clear instructions exist....
[Magisk] Eng.Raman:
For Oreo 8.1 users.

Good news for android 8.1 (API27) users.

Deodexing the "services.jar" can be done using "Vdex Extractor" tool. To do that you need to copy 3 files only from your phone to the PC.

1. services.jar from ( /system/framework/ ).

2. services.vdex from ( /system/framework/oat/arm64 ).

3. boot.oat from ( /system/framework/arm64 ).

Then you can use the OP tool to patch and generate the magisk module zip for it. :)
[Magisk] fOmey:
If this is 100% confirmed and has some good success results I may consider merging vdex into the patcher and automate the process.

EDIT:

Can someone please upload a 8.1 framework directory I can use for testing ? or the very least the files Eng.Raman listed above.

EDIT 2:

Found a few success stories on Google, that's a good sign..
[Magisk] Eng.Raman:
100% confirmed dev, tested with 3 different 8.1 framework folders for 3 users.
[Magisk] danizwam:
My 8.1 Framework (Oneplus 5):

Mod Edit:- Link Removed
[Magisk] suffer1989:
Could anybody do me a huge favour? I only run linux and I can't get the application to run under WINE. I've uploaded my services.jar, could anybody please patch it and re-upload it?

My Phone is a Nexus 5, running Lineage 14.1 (Android 7.1.2).

Also, will I need to repatch services.jar with every lineage update? Does the location setting need to be "Device only" or does it not matter if its "High accuracy"?

https://drive.google.com/open?id=1zYyQefFA-PMOFpT88RdMmvVSlKW567K3
[Magisk] theredbaron1834:
I dont know about repatching, but unless the update touches it I would say no. High only works if you also mock wifi location (I know floater can do this).

And here is yours patched, https://www.sendspace.com/file/7pqdey
[Magisk] Eng.Raman:
Deodexing your services.jar based on the uploaded 8.1 Framework for Oneplus 5 using the VdexExtractor utility.

As i mentioned before, ONLY 3 files required by the utility ( services.jar, services.vdex and boot.oat ) not the whole framework directory, which will drastically reduce the uploaded zip size too.

The smali patcher module zip for the deodexed 8.1 services.jar in the attach. :)
[Magisk] suffer1989:
Thank you SO much for patching it for me! I really appreciate it, it saves me from downloading and setting up a windows VM.

Floater? Is that a location spoofing application?