yashsingh1/xdaforums huggingface dataset:
[Magisk] MisterMeJ:
When i have more time free, i'll dig into deodexing rom and try to patch it manually.

Maybe some commits to add to rom source, so booting will succeed?

Here's the output, while in recoverymode with system mounted and trying to patch android 8.1:

fOmey @ XDA

Patcher Version: 0.0.2.3

system/build.prop: 1 file pulled. 0.5 MB/s (5592 bytes in 0.010s)

pull: building file list...

/system/framework/: 273 files pulled. 3.2 MB/s (249846989 bytes in 75.093s)

==> Dumped framework

==> Detected API: 27

[INFO] Processing 1 file(s) from bin\services.vdex

[INFO] 1 out of 1 Vdex files have been processed

[INFO] 1 Dex files have been extracted in total

[INFO] Extracted Dex files are available in 'bin'

==> Extracted classes.dex

I: Using Apktool 2.3.3 on services.jar

I: Baksmaling classes.dex...

I: Copying assets and libs...

I: Copying unknown files...

I: Copying original files...

I: Using Apktool 2.3.3

I: Checking whether sources has changed...

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

I: Building apk file...

I: Copying unknown files/dir...

I: Built apk...

W: Could not find resources

==> Magisk template download complete

==> Generated magisk module zip file

*** Complete ***
[Magisk] expullzo:
sir please help me find services.jar on xiaomi redmi 4a miui 9 global rom i try n not deodex rom, maybe u can help me??
[Magisk] Athing13:
Please help me,im failed to path service.jar from smali patcher

My device is rooted and deodexer,i dont know why my devices failed to smali patcher

Eror : invalid or corrupt jarfile bin/apktool.jar

!!! ERROR target jar must be deodexer

My devices check from deodex checker my device status deodexer,please i have solution thanks :(
[Magisk] Firmino1919:
i download and extract and start running smali patcher but before that download binary complete and unpacked binary but apktool file, baksmali and smali why file size 0?
[Magisk] Ari0809:
I have same problem with you, anyone can help me to create my smalli with my services. Jar?
[Magisk] Spartacus500:
Please upload your file services.jar deodex.

---------- Post added at 11:28 PM ---------- Previous post was at 11:27 PM ----------

Please upload your services.jar.
[Magisk] Ari0809:
Thanks for help, i cant post outside link because i'm new member. Please cek your pm i will sent link there
[Magisk] fOmey:
Hmmm.. no problems.

Can you upload the generated module, that might give us some answers..

ALSO I HOPE EVERYONE REPORTING THEY ARE RECEIVING "TARGET JAR MUST BE DEODEXED" ERROR IS FOLLOWING THE ADB METHOD INSTRUCTIONS IN THE OP.
[Magisk] Athing13:
Services.jar

Im send from message
[Magisk] Gill002:
Hey would be it ok if I sent you a message as well? Thanks
[Magisk] Athing13:
yes i've tried it, but the result is the same

system/build.prop: 1file pulled.

pull: building file list ...

adb: error:failed to copy '/system/framework/miuisdk.jar 'to' adb\framework\miuisdk.jar':

remote open failed: No such file or directory

==> Dumped framework

==> Detected API: 25

Error: Invalid or corrupt jarfile bin\apktool.jar

!!!ERROR: target JAR must be deodexed.
[Magisk] MisterMeJ:
Here you go, thanks for looking!

https://drive.google.com/open?id=1CcLyNoB2YeGgNux8G8_bMSqYp9pfom1f
[Magisk] fOmey:
CHANGELOG ::

2.4 ::

Improved binary download function - verify binary size, will attempt to re-download if necessary.

Improved binary URL grabber function - should now fetch correct address.

Latest release should fix this.

Everything seems normal..

Try this:

Make a backup in recovery.

Enable the module and reboot straight into recovery.

Delete the following file "/system/framework/arm/services.vdex" (might also be in arm64 folder) in TWRP file manager.

Reboot into system, see if you successfully boot.

If you successfully boot, remove the module and restore your backup (you can just restore /system)

Let me know how you go..
[Magisk] Josueden69:
Hello, can you share the older version of this program (2.2)?, my computer Force closed this one
[Magisk] gerhardfs:
Mock location status detected

I've flash a clean stock rom for my device redmi 3 pro (ido). After that, i flash twrp, magisk.

Now, i want to try this module.

I successfully completed the module with my services.jar. then, i flash this module to magisk. Nothing problem happen with my device. All is going normally, but when i try to play Pokemon go, the application detected my mock location setting in developer mode.

Can you help me?

*Im sorry for my bad English
[Magisk] Spartacus500:
[MENTION=9298283]Athing13[/MENTION]

Your services.jar, 3 patch & only Mock Location
[Magisk] Spartacus500:
[MENTION=9264501]Ari0809[/MENTION]

Your services.jar, 3 patch & only Mock Location
[Magisk] Fl0wen0l:
I try making a patch for mock location and disable signature its succesfully made but in version 2.3 it cause bootloop reverted back to previous version,,give me no bootlop but the patch seem not working on my device,,im using redmi not 4 snap with xtended x5 rom oreo 8.1,,and here the log i copied from 2.3,,previous version gave me the same log too,,im using adb method btw,,and do exactly like what it say,,sorry for bad english

=========

fOmey @ XDA

Patcher Version: 0.0.2.3

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

pull: building file list...

/system/framework/: 301 files pulled. 23.5 MB/s (247865791 bytes in 10.055s)

==> Dumped framework

[INFO] Processing 1 file(s) from bin\services.vdex

[INFO] 1 out of 1 Vdex files have been processed

[INFO] 1 Dex files have been extracted in total

[INFO] Extracted Dex files are available in 'bin'

==> Extracted classes.dex

I: Using Apktool 2.3.3 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.3

I: Checking whether sources has changed...

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

I: Building apk file...

I: Copying unknown files/dir...

I: Built apk...

W: Could not find resources

==> Magisk template download complete

==> Generated magisk module zip file

*** Complete ***

===========
[Magisk] Athing13:
thanks,what problem my services?but in my computer always error
[Magisk] depilrasta:
good :bd

patch 0.2.4 work for me

miui 9.6.1.0 (redmi note 4x snapdragon)

thanks you very much
[Magisk] thebenjibenji:
ADB Method:

Backup device.

fml, i just noticed this after screwing around for like 5hrs, i never noticed the ADB mode until now

here are some tags to halp google... and other people

8.1 deodex services.jar oreo android xda vdex 8.1.0 new odex smali

i currently am questioning my existence:silly:....
[Magisk] Ari0809:
Thanks, what haven with my services.jar?

In my com it always error but in your com it sucsesfully patch
[Magisk] AvisAile:
It's now compatible with Android P ?
[Magisk] Hippothamus:
When running the SmaliPatcher.exe it completes to 100% "dumping framework" and quits instantly when the "deodexing" message is visible at the bottom. No errors visible so I'm unsure if it crashes or not.

I end up with three folders, adb, bin and smali. Last one is empty.

How should I proceed?

Running while TWRP is loaded and system is mounted

Device plugged in

Android 6
[Magisk] MisterMeJ:
Could only find services.vdex in "/system/framework/oat/arm64", deleted it but also resulted in a bootloop.
[Magisk] dmw212721:
Same here, i'm using global stable rom 9.5.2.0 IDO. Any suggestion?
[Magisk] fOmey:
Can you screenshot error ? Have you tried logging in without spoofing.

EDIT: Looks like they are have figured out a way to detect if developer options is enabled.

EDIT 2: Nope not developer options, I think they might be detecting magisk..

EDIT 3: Wow they were detecting some random IV calculating app I had installed..
[Magisk] fOmey:
I can't login at all if I have developer options enabled.
[Magisk] dmw212721:
Its's not an error. After playing pogo a while, its close and i've notification to turn off mock location.

If i play pogo with mock location set to false, everything looks fine.

I use smali 0.0.2.2. I will try 0.0.2.4

---------- Post added at 09:53 AM ---------- Previous post was at 09:39 AM ----------

I can login and play normally. Is it (pogo) detect magisk like rootbeer sample?

If magisk manager still installed on my device, rootbeer sample will keep red, detecting Root Management Apps. But when i uninstall magisk manager, then rootbeer sample pass.
[Magisk] fOmey:
All I'm running is a GPS spoofer and I can confirm it still works fine:
[Magisk] Dantalionblood:
Same to me, ?
[Magisk] draqkin:
How did you managed rubberband problem?
[Magisk] fOmey:
Read FAQ in post 2.
[Magisk] draqkin:
I did them all, not worked for me. If i am near windows or open space, it is rubberbanding. At this time only solution "tinfoil" for me.
[Magisk] fOmey:
I'm not doing anything special.. if you have set your source as GPS only, its shouldn't be possible for your location to be grabbed from anywhere else..

I potentially might look into a new patch to disable any other methods of grabbing location.. but it doesn't seem like a good idea - I don't think many people would use such a thing.
[Magisk] cmstew:
It might be worth trying a different mock location app. "GPS Joystick" was giving me awful rubber banding on my Pixel 2. I tried a different one and everything seems to be working great now!

Don't really want to mention the one I use in fear it might become too popular and banned though. Just try a few out.
[Magisk] jimbo77:
Hello!

Do you know a way to deodex just services.jar?0inhave a phone with faulty USB and can't be read by pc so I thought of deodexing services alone and then using your module.

Any ideas?
[Magisk] Rottweilerz:
Help

can somebody tell me what i done wrong? :rolleyes:

Magisk v16

Smali v2.4

Moto E4 Plus XT1770 nougat 7.1.1

Module generated but cannot install

no problem when installing on my asus zenfone 2 (i already remove the zenfone files before build for Moto)

- Copying zip to temp directory

- Installing SmaliPatcherModule-0.0.2.4-fOmey@XDA.zip

- Mounting /system, /vendor

Archive: /data/user/0/com.topjohnwu.magisk/cache/install.zip

inflating: config.sh

inflating: module.prop

******************************

Smali Patcher

fOmey @ XDA

******************************

Powered by Magisk (@topjohnwu)

******************************

- Found /data/adb/magisk_merge.img

- Mounting /data/adb/magisk_merge.img to /dev/tmp/magisk_img

! /data/adb/magisk_merge.img mount failed...

Failed!

! Installation failed
[Magisk] jimbo77:
Have you tried with Magisk Beta (V16.6)?
[Magisk] Eng.Raman:
SmaliPatcher with all 3 patches for [MENTION=6169969]RokCruz[/MENTION] services.jar

If I helped hit the thanks button.
[Magisk] John-W:
Still the same error...
[Magisk] Eng.Raman:
I have successfully patched your services.jar, what is your magisk version ?
[Magisk] John-W:
Magisk-Version v14.0
[Magisk] Eng.Raman:
Try to install it via TWRP Recovery.
[Magisk] John-W:
I have a bad feeling about this, I had many problems with TWRP in the past (boot loops and more)

Edit: Well, I just risked it, it has the same error "can't extract zip file"
[Magisk] Eng.Raman:
Are you have problems with installing other magisk modules ?
[Magisk] John-W:
Edit: Okay, I fully unrooted and rooted magisk and now it works, finally!

Now I need to find out how modules actually work and how to use them.

Thank you for your help [MENTION=5818781]Eng.Raman[/MENTION]
[Magisk] RokCruz:
Thanx it worked!

But I try to downgrade an app and stills show " the package appears to be corrupt".

Secure flag I can't check if it works, I can take screenshots in Snapchat since I remember.

Mock locations I use GPS Joystick and I have no issue teleporting.
[Magisk] Eng.Raman:
Ok, this means there are no issues with modules.

I suggest to uninstall your current magisk then install the latest beta version 14.2 may help because it has some improvements.

Good Luck.
[Magisk] John-W:
I just edited my post. I got it, thank you for your help again !
[Magisk] Eng.Raman:
You are welcome bro.:o

---------- Post added at 12:37 AM ---------- Previous post was at 12:29 AM ----------

To downgrade an app, I think you need to patch " Disable .apk Signature Verification " OR install unsigned apk.
[Magisk] warfab:
Can anyone help me patch my services.jar? From stock Samsung Galaxy Tab S 8.4 LTE 6.0.1
[Magisk] Eng.Raman:
This is an odexed services.jar, you need to deodex it first then it can be patched easily by the OP tool.

Use the " Smali/Backsmali Code " method, follow my guide in post#74.
[Magisk] Foxtheory:
Sorry

-_- I scoured the earth I've been at this for like 3 hrs and came to the conclusion that nothing for me works I used Fulmics Deodexer it look liked it worked but when I tried to patch I got this file isn't deox error. I tried APK patcher or whatever and I get a bunch of errors. I'm at a loss if someone could patch it for me I'd be ever so obliged. I can't post links yet I'm sad.

Done deoxed 106 files (Services.jar was one of them). but wont patch because not deoxed -_-.

I got it to work using the cmd prompt that was not fun --_--
[Magisk] Veid71:
whenever i try to run the .exe file it tells me "cant open file" am i doing something wrong?
[Magisk] Eng.Raman:
Your services.jar still odexed " it didn't contain classes.dex ", you need to deodex it first then it will be patched with no issues.

---------- Post added at 09:53 AM ---------- Previous post was at 09:34 AM ----------

Are you installed Microsoft .net framework 4.6 and Java JRE 8 U144 ?
[Magisk] fOmey:
Upload your services.jar.
[Magisk] fOmey:
What mods did you apply ?
[Magisk] fOmey:
CHANGELOG ::

0.8 ::

Improved patching function.
[Magisk] fOmey:
ADB over wifi ? Never used this or tested - it should work tho.
[Magisk] jimbo77:
I didn't try that but i was able to deodex using a tool from here and the module is running great on S9+ btw. Great job man! With all this issues of Google Play Services being updated i see a lot of my friends (that don't know about root and stuff) struggle to find a reliable way to spoof. I am so grateful to have your module installed :D
[Magisk] GroovinChip:
I'm having problems deodexing my services.jar on my Nexus 6 running LineageOS 15.1 - using Ultimate Deodexer, I get a supposedly successful deodexed services.jar, but when I run the smali patcher it says !!! ERROR: Mock location class not found. From searching it seems like the jar is not actually deodexed.

I'm attaching the supposedly deodexed jar - for some reason XDA is not letting me upload the framework.zip or the system.zip

EDIT: I'm an idiot, don't mind me.
[Magisk] Rottweilerz:
Tried it, didn't work either.. Thanks for suggestion though :)

Anyone else have suggestion?
[Magisk] jimbo77:
Are you installing the module from TWRP or Magisk Manager itself?
[Magisk] micination:
need help

i'm still confused why the program read my rom as non-deodexed rom already check using deodex checker but it says as deodexed rom.

i'm running on multirom on nikel right now, any assistance will be appreciated.
[Magisk] jimbo77:
Have you tried the "adb" mode?
[Magisk] micination:
ya, already done that but the problem still remain.

i can send u pm with the link to my service.jar to crosschecked that my rom was already deodexed.

because i think i can't post outside link due to my new id on this forum.
[Magisk] Rottweilerz:
From magisk manager
[Magisk] jazzespresso:
anyone try to use this on Samsung device (nougat or oreo) for signature disable part? and working ok? [MENTION=1620550]fOmey[/MENTION]
[Magisk] EnerJay:
Hi was wondering if this works in android o now? Also, I was getting bootloops when i tried to manually disable fused location service so does this do the same? If so, can I still use this to some extent?
[Magisk] robbayani:
hii [MENTION=1620550]fOmey[/MENTION] i want permanently using patched services.jar(without Magisk)..

how to get file patched services.jar ??

i have a plan install Magisk first to gain root, then i replacing my original services.jar with patched services.jar, then i uninstall Magisk..
[Magisk] MisterMeJ:
[MENTION=1620550]fOmey[/MENTION]

Maybe this is interesting?

https://xdaforums.com/pixel-xl/help/successfully-deodex-stock-oreo-systemui-t3685034

I read somewhere that smali 2.2.5 will be released very soon?!
[Magisk] fOmey:
Post the patch log.

I'm running nougat.. The signature verification patch is used when modifying system files - Bypassing "Application not installed" errors...

This is quite a old patch, might not even be relevant now a days.

Just unzip the module and replace services.jar in /system/framework.. be sure to set the write permissions after replacing.
[Magisk] draqkin:
Also i can't use your gps app, ıt is not loading maps. Just blank grey screen. I am using Huawei Mate 10 with Oreo 8.0.0

I have tried many other fake gps apps but all same. If i dont use tin foil cover (even gps only) phone detect my real location and rubberbanding.

Edit : Sorry my fault, it is not your spoofing app not working. Another one ( fakegps routes)
[Magisk] Mzwir:
Bruh, why i cant get smalipatcher.zip after i was hit patch jar on smalipatcher.exe ? My device is rolex on havoc os
[Magisk] saciladh:
Please make new patch for fused location provider method, i will be your tester..

Or at least give me clue to patch it my self manually
[Magisk] Dantalionblood:
I thinks this patch just work for android 6.0 or higher, in android 5.1 mock location was detected, but in marshmallow and nougat it's works, mock location not detected...
[Magisk] dmw212721:
Hi fOmey, i already make smalipatcher with v0.0.24. It looks Ok, when i tested with some applocation detector for mock location, it says mock loc = false, even i enabled it from dev option.

I want to re-test again with yout gpsspoofer, but after i download your apk, i can't install it, some error says cannot parse. Whats wrong?
[Magisk] hmd90:
why after my rom deodex, be slow i try on many custom rom 8.1?
[Magisk] dmw212721:
Its work on my device, Redmi 3Pro, MIUI Global ROM Stable 9.5.2.0. And its Android 5.1 Lollipop.

You says still detected? Some apps? Have you try to hide that apps in magiskhide menu?

---------- Post added at 04:33 PM ---------- Previous post was at 03:56 PM ----------

I'm sorry, i didnt get your question.....

Slow, when do what? Playing games or what? Many custom ROM, which one? There's so many option there on custom ROM.

Btw, what device?

If i may suggest, find a proper thread, ROM thread maybe? Which you feel "slow"?

I'm sorry.....
[Magisk] Widi1312:
help me
[Magisk] hmd90:
lag ,my phone redmi 3s
[Magisk] cmstew:
Here's a word of advice for those having issues with rubber banding while using smali patcher.

If you're using smali patcher, there is absolutely no need to make your spoofing app a system app. In some cases you don't even have to change your location mode to Device Only. (Depending on your spoofing app)

Begin Rant:

I've been messing around with this for so long and I finally decided that I'd try just setting my spoofing app as the mock location app and that's it. I don't know why there are so many people recommending that you should move your spoofing app into the priv-app folder, editing xml files, blah blah blah. Every single time I tried doing that I had nothing but trouble. So much rubber-banding that it's not worth it. The whole point in using smali patcher is to hide mock locations and make them appear as genuine GPS coordinates, so why would you think that there's anything else that needs to be done? I now have no rubber banding whatsoever!

FYI: I'm using a Pixel 2, so i suppose your mileage may vary. But before trying all sorts of fancy hacks and methods, don't you think it's worth trying the easiest thing first?

P.S. Thank you so much to fOmey for putting this together. It works wonderfully and I'm super grateful for all the hard work that you've put in.
[Magisk] fOmey:
I'll have to look into it, its just an idea at this stage.

Someone finally gets it!

Thank you very much for the kind words.
[Magisk] dmw212721:
Superb......

Thanks to f0mey :svetius:
[Magisk] draqkin:
I am agree with you if you patched smali you dont need to make spoofing app system ap but it does not solving rubberbanding issue. (Least not solving mine) I have tried 6 different spoofing app including fOmey's spoofer but all of them rubberbanding. Also i need routes in spoofing app that narrowing options. Anyway real problem is to disable fused loction services without bootlop in my condition. I have tried many thing but still same result. Only posible solution is covering back with tinfoil. But even that is not woring outside after 10 seconds rubberbanding.

Also i am open for suggestions. Is there any recommended spoofing app for me? I gladly share my findings about that problem. I am sure there are many people have exact same problem like me.

P.S. Thanks for work fOmey it really means :)
[Magisk] dmw212721:
What apps? I'll try it on my device.
[Magisk] Dantalionblood:
The apps is not a game and need registered account, and may not available in your country, are you running android 5.1 and not detected?
[Magisk] robbayani:
so easy.. thankzz
[Magisk] Widi1312:
[MENTION=5818781]Eng.Raman[/MENTION] sir..please help me to patch my frame work..im stuck in ERROR..magisk module template not found.

htt*ps://drive.google.com/file/d/1B6J2wJFzFLXi8ICVWNUZvEbumRtMFx0V/view?usp=drivesdk

sorry im newbie.. i use redmi note 2 with lollipop rom miui 7.

hopefully you can patch it

thankyou

---------- Post added at 04:17 PM ---------- Previous post was at 04:16 PM ----------

[/COLOR [MENTION=5818781]Eng.Raman[/MENTION] sir..please help me to patch my frame work..im stuck in ERROR..magisk module template not found.

htt*ps://drive.google.com/file/d/1B6J2wJFzFLXi8ICVWNUZvEbumRtMFx0V/view?usp=drivesdk

sorry im newbie.. i use redmi note 2 with lollipop rom miui 7.

hopefully you can patch it

thankyou

---------- Post added at 04:17 PM ---------- Previous post was at 04:17 PM ----------

[/COLOR [MENTION=5818781]Eng.Raman[/MENTION] sir..please help me to patch my frame work..im stuck in ERROR..magisk module template not found.

htt*ps://drive.google.com/file/d/1B6J2wJFzFLXi8ICVWNUZvEbumRtMFx0V/view?usp=drivesdk

sorry im newbie.. i use redmi note 2 with lollipop rom miui 7.

hopefully you can patch it

thankyou
[Magisk] Spartacus500:
Your services.jar Smali Patcher 3 Patch
[Magisk] Widi1312:
thank you sir..ill try it..
[Magisk] cmstew:
That's weird that you're having trouble still. I've heard disabling fused causing banning though, so I've never fully tired it. Out of desperation I tried disabling it to see if I could even do it, but it would always cause my phone to boot loop.

I had trouble with rubber banding using most of the recommended spoofing apps. GPS Joystick, the one recommended everywhere, always rubber bands for me. No matter what settings I used. fOmey's GPS spoofer works for me only if I set location mode to device only. Mock Locations (fake GPS path) works really well but doesn't provide a joystick, and I can't get it to loop my route.

The one I've been using most regularly is called Fake GPS Joystick & Routes. I did uncheck all the spoofing mode options as I wanted it to mess with my system as little as possible. It's a paid app but it seems to work well. It lets you set a single location. There's a joystick. You can create routes. You can make it loop your routes as well. This one works perfectly in high accuracy mode for me too. Including when I'm outside with good real GPS signal.

Mock Locations (fake GPS path)

https://play.google.com/store/apps/details?id=ru.gavrikov.mocklocations

Fake GPS Joystick & Routes

https://play.google.com/store/apps/details?id=com.incorporateapps.fakegps_route

I hope one of those works for you!