yashsingh1/xdaforums huggingface dataset:
[Magisk] Playersidhu:
Thanks very much you are best. It worked fine.

Can you please tell me how you did it so that I can do it my selp for future miui updates.

I got these error while trying to patch.

fOmey @ XDA

Patcher Version: 0.0.4.0

==> Detected Java: 1.8.0_202

pull: building file list...

adb: warning: stat failed for path /system/framework/miuisystem.jar: No such file or directory

adb: warning: stat failed for path /system/framework/miuisdk.jar: No such file or directory

/system/framework/: 658 files pulled. 19.4 MB/s (441492705 bytes in 21.718s)

==> Dumped framework

!!! ERROR: The specified executable is not a valid application for this OS platform.

I: Using Apktool 2.3.4 on services.jar

I: Copying assets and libs...

I: Copying unknown files...

I: Copying original files...

!!! ERROR: Target JAR must be deodexed.

Thanks once again.
[Magisk] ptballer:
Thank you very much! Works perfectly on s7 edge lineage os.
[Magisk] Bicihere:
Hello everyone,

I correctly installed smali patcher, put gps joystick (ninja app) out of System apps and disabled all settings in it. The app is still the cloned one. I setted GPS to only Device and I have disabled find my Device. I followed all tutorial points.

In the beginning everything seemed to work fine, but spoofing out of home (where real gps can take signal) make me jump sometimes far away from spoofed location many Times.

What i can do to stop this (exept to cover the smartphone in tin foil)?

Thanks to everyone will answer me!
[Magisk] wurstherpes:
Can someone please patch the service.jar?

https://drive.google.com/open?id=1L_wTlZTWtuAhRKeycQsfeETRdrYoJjne

I start the SmaliPatcher 0.0.4.0 and it crashes.

If I use an older version then it says I'm supposed to be deodexed.

If I do that, it will stick to the boot-android.test-base.oat file and stop running.

The GPSSpoofer0.2.apk crashed at start.

What am I doing wrong?

I use Samsung S7 Edge with Lineage 16 Android 9.

Thanks.
[Magisk] Since1:
Why i cant download the attachment in the first post on the first page?

(SmaliPatcher-0.0.4.0-fOmey@XDA.zip)
[Magisk] wurstherpes:
Delete
[Magisk] seb_131:
I just followed the steps and it worked.

I looks like you are not using a vaid version of Java. Have you installed a recent JRE? I yes, then try another PC with a fresh install of Java.
[Magisk] kiki059:
delete
[Magisk] konks:
Hi,

I'm trying to use Smali Patcher 0.0.4.0 with my Google Pixel XL on Android 9 (5 Jan Update).

After I click "ADB Patch" it get stuck on Dumping framework.. 42% (and sometimes 39%).

Log below.

fOmey @ XDA
Patcher Version: 0.0.4.0
==> Binary download complete
==> Unpacked binarys.
==> Detected Java: 1.8.0_201
pull: building file list...
/system/framework/: 357 files pulled. 39.8 MB/s (279108037 bytes in 6.688s)
==> 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'
bin\compact_dex_converter: 1 file pushed. 77.4 MB/s (5087392 bytes in 0.063s)
bin\classes.cdex: 1 file pushed. 135.2 MB/s (9536440 bytes in 0.067s)
Opened '/data/local/tmp/classes.cdex', DEX version '001'
[Magisk] tubekeeper:
After update the firmware , you need to patcher to run once to get the new mgisk zip file to install again. If you install the os9.0.11 smali patcher file, it will cause bootloop
[Magisk] konks:
In case anyone else runs into this issue, I tried Smali Patcher on another PC and it worked.
[Magisk] AlvyRage:
Hello!

Can anybody help me patch my "services.jar" file?

It's not deodexed (I can't find a proper way to deodex it).

It's from Samsung J7 2016 Oreo 8.1.0 - stock (rooted).

https://drive.google.com/file/d/1nRQV1En6LtfdZ4WKhhNTGbo6xMVStUZo/view?usp=sharing
[Magisk] iHusky:
I can`t click on link, to download smalipatcher can you add link again
[Magisk] Spartacus500:
Hi, please upload you folder framework & file build.prop.
[Magisk] brylee123:
Java Not Detected v4.0 on OP5 (Android 8.1)

I still get a !!!ERROR: Java not detected error with v4.0

When I run

and

I get the following message:

I definitely have it installed since I am a Java developer. I've tried reinstalling and installing and rebooting before. How can I remedy this issue? Thank you!
[Magisk] wurstherpes:
Now I made it on the other PC. And now the problem is that an error message comes that the SystemUI is stopped as soon as I use FakeGPS. I should either wait or quit click. I use FakeGPS and Android 9, LineageOS 16 Samsung S7 Edge. Is there a problem solution to this?
[Magisk] kiki059:
After installation module .. the animation multitasking is very laggy it's normal?
[Magisk] konks:
I've installed the generated module and it works, allowing me to mock locations, but now the phone warms up very quickly and is very laggy. I get a notification fairly often saying System UI is not responding. I've got a Google Pixel XL on Android 9 (Jan 5 Security Update). Is this a known issue?
[Magisk] fOmey:
This reply is for all three of you: what mods did you apply? you'll also need to provide a full logcat while the issue is happening so we can figure out what is causing it.
[Magisk] kieblink5:
Lag

after aplying the zip from smali patcher, my device somehow getting lag/slow..

whyred miui 10

is it normal? or is there anything to make it not slow?

Thanks..
[Magisk] PokemonTotalWar:
It's normal. There were optimizations in the latest versions but the tools used don't support properly recompiling into the faster format used by the latest versions of Android, so the patcher has to use the slower formats, slowing down the device.
[Magisk] kieblink5:
Thanks for the answer :good:, hope there will update for the slow,,, :D
[Magisk] AlvyRage:
Oh, sure. Here it is:

https://drive.google.com/file/d/1cdFkMjOj_gO0WDF3bZKJSOgvwLAXCvuG/view?usp=sharing
[Magisk] kiki059:
i have apply signature apk and mock location , and screenshots secure
[Magisk] MisledMew:
Figured that out. Also the problem was I was using old patcher (version 3.7, Updated was 4). Magisk file got from updated patcher didn't cause any issues.
[Magisk] Mouradnoe9938:
APP dont run when "GPS only" is my location method

Hi everybody...

i followed the content of this thread a few monts ago. and everything was perfect ultil the last week ... when i received a message error...

im using android 6.0.1 with magisk v16.0...

when i use GPS only as location method , i receive this error message on my U. Driver APP "Enable location 'please turn on your location so we can provide you with trips ' "

any idea of how to correct this ?

:good:
[Magisk] wurstherpes:
https://drive.google.com/open?id=1KBvQ2CoVMloVy5WLPsTSmEnSWS0epK0R

Again, the same message comes along. SystemUI hold on.

Samsung S7 Edge LineageOS 15.

GoogleFile is CatLog.

There is also the PopUp window with the message whether the location accuracy should be activated.
[Magisk] Spartacus500:
Here you are ;) You services.jar file 4 patch for You :p
[Magisk] Sm0k3r83:
could some please patch my services.jar for mock locations? i keep getting the Magisk module temple download failed error. https://drive.google.com/file/d/1P6IEYKDQECqrY-Fsqq1jG7KXkyxi9waa/view?usp=sharing
[Magisk] konks:
I have only applied the mock locations patch. Logcat files attached.
[Magisk] Olorin92:
I've noticed that there's considerable lag using 4.0 vs. using 3.8. My girlfriend's OnePlus 5T has the 3.8 module and it performs exactly same with and without the module. My OnePlus 5T with the 4.0 module however performs noticeably worse, with the UI gestures often lagging a second or two behind the action.

I tried building the 3.8 module for my phone but I couldn't pull down the magisk module template - I'm assuming the older versions of these are dropped as soon as a new smali patcher is released?
[Magisk] Sm0k3r83:
could some please patch my services.jar for mock locations? i keep getting the Magisk module temple download failed error

https://drive.google.com/file/d/1P6IEYKDQECqrY-Fsqq1jG7KXkyxi9waa/view?usp=sharing
[Magisk] fOmey:
To clarify, if you disable the magisk module the crash disappears?

I'm assuming you have Pokemon GO installed on your phone... can you uninstall Pokemon GO, enable the module and see if you continue to crash then.

Google crash:

--------- beginning of crash
[ 02-27 09:17:18.104 26095:26095 E/AndroidRuntime ]
FATAL EXCEPTION: main
Process: com.google.android.gms.persistent, PID: 26095
DeadSystemException: The system died; earlier logs will point to the root cause

[ 02-27 09:17:18.572 26095:26095 E/DeviceDoctorHandler ]
FATAL EXCEPTION: main
Process: com.google.android.gms.persistent, PID: 26095
java.lang.RuntimeException: Unable to start service com.google.android.gms.chimera.PersistentIntentOperationService@5ae4b1a with Intent { act=com.google.android.chimera.container.IntentOperationService.NEW_START_INTENT cmp=com.google.android.gms/.chimera.PersistentIntentOperationService (has extras) }: java.lang.RuntimeException: android.os.DeadSystemException
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3724)
at android.app.ActivityThread.access$1600(ActivityThread.java:200)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1688)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6718)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
Caused by: java.lang.RuntimeException: android.os.DeadSystemException
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3717)
... 8 more
Caused by: android.os.DeadSystemException
... 9 more

[ADDITIONAL NOTES:]

FakeGPS user.

To be honest, I'm still trying to figure out what is causing this slowdown certain users are having.

The generated module on 3.8 & 4.0 should be identical, I haven't modified anything to do with the output module between these versions.

Magisk was updated which broke the patcher in the process, so older versions won't work..
[Magisk] Olorin92:
No worries, I've attached that here! To clarify, this is the one that seems to not have noticeable slowdown.
[Magisk] fOmey:
Give this version a try and report back:

CHANGELOG ::

4.1

Allow the patcher to run without having any patches selected for testing purposes.

Force a single classes.dex to be generated when applying signature spoofing patch.. (potential slowdown fix?)

Remove irrelevant debug output.
[Magisk] Olorin92:
No luck unfortunately - I still get pretty noticeable lag when switching apps with the gestures. Happy to provide my file if that helps at all, but yeah I can't see a noticeable difference performance-wise unfortunately.
[Magisk] fOmey:
Nah no need to supply any files.. it is what it is.. for now.

Can't modify the files without deodexing <-> can't deodex without deoptimizing <-> can't deoptimize without introducing lag.

Think the only way to solve this is to be able to odex & optimize back to cdex.. which at the moment just isn't possible to my knowledge.
[Magisk] Olorin92:
Fair enough that makes sense - confirming as well when I run that patch with nothing actually selected, it still slows certain things down. So I'd say you're right in terms of what's causing the lag. There aren't any other alternatives to achieving the same thing GPS spoofing wise are there?
[Magisk] fOmey:
Can you try wiping cache & dalvik cache..
[Magisk] Olorin92:
I had tried that as well, but still no luck :(
[Magisk] fOmey:
OK.. officially out of ideas for now haha.

Hopefully when my S10 arrives it has a similar lag issue so I can look into this further.
[Magisk] konks:
I'm not really experiencing crashes, I'm just getting notifications of non responsive apps (mostly Android System UI (I usually press wait)). Everything seems to generally be working. The system just becomes a lot laggier with the module installed / enabled.

I disabled the module and system responsiveness came back.

I uninstalled Pokémon Go and then re enabled the module and the lagginess returned.

I also noticed that I couldn't add a Google account with the module enabled. I entered my username and password, and clicked I agree, and then the next page said "There was a problem communicating with Google servers. Try again later."

I've attached a couple more logcats incase they're helpful.
[Magisk] fOmey:
OK.. can you upload your module?

What patches did you apply? Have you tested version 4.1?
[Magisk] konks:
Module attached.

Only applied mock location patch. Have not tested 4.1 yet, I'll give it a go when I get home.
[Magisk] fOmey:
Give that a try & reupload if you don't mind.. just so we're working with the latest release.
[Magisk] Olorin92:
Yeah it's odd. It's quite a noticeable difference in performance, and there's also weirdness with the joystick app (like taking 5 seconds before it actually starts moving in the direction I've set).

Again this happened without anything selected for the 4.1 build, so it may well be what you mentioned about effectively deoptimising the libraries used in the process. Disappointing however as it makes my phone frustrating to use!

Are there any other tools in this space?
[Magisk] fOmey:
Upload the module, we can try something.
[Magisk] Olorin92:
Here you go, this is the one I'm currently using for my OnePlus
[Magisk] fOmey:
Let's see if any of these make a difference.

Clear cache & dalvik cache between installations.
[Magisk] whalesplaho:
I havent succeeded deodexing my services.jar, just updated to Pie!!!

i dnt know if anyone can help... Batch Apktool just showing error!
[Magisk] wurstherpes:
Google Account added again. Once I get the location fake comes this problem. I put it off running the phone without any problems.

I use the three-option module without allow to screenshot.
[Magisk] konks:
I haven't noticed much of a change with 4.1. My 4.1 module is attached.

Thanks for your help by the way.
[Magisk] kisspepe:
Xiaomi Redmi Note 4

Hi

I ask for help, I can't generate the module. What could be the problem?

Modell: Redmi Note 4

Android version: 7.0 NRD90M

Miui version: Miui Global 10.2 (10.2.3.0 NCFMIXM)

Magisk: 18.1

Magisk Manager: 7.0.0

fOmey @ XDA

Patcher Version: 0.0.4.1

==> Binary download complete

==> Unpacked binarys.

==> Detected Java: 10.0.1

system/build.prop: 1 file pulled. 0.6 MB/s (11259 bytes in 0.019s)

pull: building file list...

==> Dumped framework

==> Detected API: 24

I: Using Apktool 2.3.4 on services.jar

I: Copying assets and libs...

I: Copying unknown files...

I: Copying original files...

!!! ERROR: Target JAR must be deodexed.
[Magisk] Spartacus500:
Please upload you folder framework & file build.prop.
[Magisk] whalesplaho:
thanks man ... appreciate big!

here is tha link....https://drive.google.com/file/d/100eAlvvR405lnO_rJ3CE18oTiK190M4m/view?usp=sharing

i would also love if yhu can guide me through when yhu re done. thanks!
[Magisk] HWLew:
Need help to patch smali zip file

To xda developers,

I have an error magisk module template download failed. I need someone help to patch following already deodexed service.jar for me.

1)	Redmi6A:

drive.google.com/file/d/1qcAIwZekRSC3oDD_pDZ4JF2895OaaTeo/view?usp=sharing

2)	S3LTE:

drive.google.com/file/d/1x4Bq1y8hvAi7or3k6GrA_GMP1YURsnvS/view?usp=sharing

3)	Note4:

drive.google.com/file/d/1Z3rH92tpzFWBPDk5n3UDkrQq3neEtoUK/view?usp=sharing

Your help is really appreciated.

Thank you,

New & junior member.
[Magisk] Spartacus500:
Your services.jar 4 patch for You ;)
[Magisk] whalesplaho:
Im so grateful buddy.... Big thanks man!!

Please if yhu dnt mind, put me through on how yhu were able to deodex it so i can learn too... Please!

Thanks man. :good:
[Magisk] Olorin92:
OK great thanks I'll give them a shot. What do each of these builds do differently that you think might help?
[Magisk] AlvyRage:
OMG Thank you very much :crying: you saved me! THANK YOU!
[Magisk] fOmey:
One of the modules retain the .art file & the other .vdex file.

I'm hoping by retaining the .art file, the lag should disappear..

The .vdex one is a sanity check, to just rule out both scenario's.

EDIT: Also you can see if switching the run time improves anything: "Settings -> Developer options -> Select runtime.."
[Magisk] GTDarthYoda:
I'm seeing much improvement with this update.

Still a laggy but not as bad and barely any force closes which before it was all the time.

Thanks for a wonderful tool.
[Magisk] Bicihere:
Rubberbanding with smali

Anyone have my same problem or know a solution?
[Magisk] Olorin92:
Ok so tried both - lagged still on the first test, but was fine on the second. Sanity test passed I guess? :P

Seems like spoofing is working on the test 2 one though...so that's good?

Edit: maybe the lay is still there, just less pronounced...
[Magisk] HWLew:
Need help

Can you help me for 3 smali zip file??? Please....
[Magisk] fOmey:
OK..

If anyone else wants to test, please provide feedback if you do.. I can't fix issues I can't reproduce without your feedback:

CHANGELOG ::

4.2 [TESTING]

Potential slowdown fix?
[Magisk] A30NI_Y:
HWLew,

Here you go. Using Smali Patcher-4.1 with mock locations and signature spoofing.

The redmi6a seems to have the correct file size but the s3 and note4 seems a little small, so not sure its going to work. I have done a redmi6a for a friend so it should work but not sure about the other 2 as I don't have those devices.
[Magisk] wurstherpes:
That's just wonderful what you do. I am of the opinion that the errors with the SystemUI are gone with the version 0.0.4.2. I'm going to keep watching this.
[Magisk] fOmey:
Great news.. two birds one stone.
[Magisk] wurstherpes:
All day long, it was going without any problems. Now it's back.

It still remains a great job.
[Magisk] Olorin92:
So this definitely seems much better, but there are still times where there's noticeable lag with the module vs. the phone running without the module. Maybe this is about as good as it can get?
[Magisk] elwholo:
Using smali patcher 4.2 less laggy here at Android 9 oxygen os
[Magisk] konks:
4.2 seems a little less laggy in some things, but overall the performance seems very similar to the previous versions (Google Pixel XL Android 9).
[Magisk] Olorin92:
This is probably a better way to put it than I did!
[Magisk] sebadelta:
smali pather android9

hello i installed smali pather on galaxy s 9+ android pie works but it does not work wi fi i need to finish the module in magisk to work wi fi how to fix it?
[Magisk] brylee123:
Java Not Detected v4.2 on OP5 (Android 8.1)

I still get a !!!ERROR: Java not detected error with v4.2

When I run java -v and java.exe -v I get the following message:

I definitely have it installed since I am a Java developer. I've tried reinstalling and installing and rebooting before. How can I remedy this issue? Thank you!
[Magisk] camesenin:
Please share module for Redmi Note 6 pro, running global beta Miui 10 -9.2.21
[Magisk] fOmey:
You running the patcher as admin? Sounds like a permission issue to me.. virus scanner?
[Magisk] Mzwir:
Im always got bootlop on redmi 4a ( rolex ), i was treid 4 custom rom in the end i get bootlop again and again.. gib me solution? I use android 9
[Magisk] Suryo75:
I dont have much trouble with smali patcher (MM and Nougat running smooth), since i use android lollipop version. Especially grab driver application, it still detects mock location is on. I have tried entirely version of it, but still not workin.

Thank you for creating it
[Magisk] Peter1212:
[MENTION=1620550]fOmey[/MENTION] I used smali patcher on two roms Bootleggers pie and havoc pie for bacon. https://pastebin.com/1aWcv5Za

Here's the log for it. I got a warning "could not find resources" in both and an error "Index and length must refer to a location within the string." in the havoc build. I selected all 4 patches and get the magisk zip for both. I mostly need this to disable signature verification but when I installed the modules I still can't install an app over a google installed app. I can't downgrade apps either. Am I doing something wrong or anything I could do to fix that?
[Magisk] camesenin:
Share this file for this phone.
[Magisk] fOmey:
Not sure what is causing that error.. going to need your framework directory to look into that.

This signature verification patch won't allow you to overwrite apps through the package manager, you need to overwrite the apk's.
[Magisk] Lidocain777:
Works flawlessy on my 3 HTC Phones (10, U11, U12+). Big thanks to [MENTION=1620550]fOmey[/MENTION] !

Yet, did somebody get the patcher to work on Sony Xperia devices (stock ROMs) ?

Can't get the patch to work properly on a Xperia that was brought to me to patch. Manual install does not work (using TWRP) and Magisk module, well ... it's detected by PoGo even when hiding it.

I'm considering flashing it with AOSP ROM and trying again...

Edit March 7. : works flawlessly on a Sony Xperia xa2 ultra running LineageOS 15.1.

There is definitely something wrong with stock Sony rom
[Magisk] kiki059:
Guys smali patcher work with a new Xiaomi Mi 9? I will buy this phone and I want spoofing
[Magisk] Sacronik:
Stuck on step 8

So I was able to generate the module no problem, but when trying to install it through the magisk app it just appears grayed out. I'm on magisk 18.1 if that matters. Any ideas on how I can get it installed?
[Magisk] warking:
Just can't do screenshot in YouTube TV on 4.2 module with allow screenshot patching on. Searched this thread, no one seems to mention this.
[Magisk] HWLew:
Thank you to A30NI_Y

Dear A30NI_Y,

Thanks for your help and you made my days. Appreciated.
[Magisk] ididntwannajoin:
Can't DL

I'm trying to download the smali .zip from the links provided but I keep getting this error: 410 Gone

EDIT

Tried again today and DL worked. Dunno what went wrong before.
[Magisk] camesenin:
Any please help me with this. Not working smali patcher in this phone
[Magisk] Fan of fomey:
Hi thanks for smali patcher... Am using it in oneplus6 it's works good but when ever am enabling fake gps and opening desired application after few minutes it's getting restarting could you help me with this please..
[Magisk] szarkadani:
After the latest beta update on Mi Mix 3, it makes the phone go wild. It says it crashes the 'phone searching' and it makes the screen go black and not working. Could you please fix it? Been using for 2 years now.
[Magisk] wurstherpes:
And now its perfekt. Have replaced my kernel to ReFlux Now works without problems. Samsung S7 Edge, LineageOS 15.1, SP MockPatch. Yeah thanks...