yashsingh1/xdaforums huggingface dataset:
[Magisk] fOmey:
Weird.. try this, delete bin folder.
[Magisk] BadWithPhones:
All 3 options on (testing now):

Haven't Tested mock locations patch. it seems to work but I am not 100% sure what I am looking for to see if it failed.

Secure Flag patch works correctly (screenshots work in Signal with "Security Screen" option turned on)

Signature Verification patch does not work (can't overwrite an apk with one of a different sig)

Side note: magisk module was added directly via Modules -> + ->module.zip

Side note 2: safetynet still passes both checks.

late edit see above for mock locations

fOmey @ XDA
Patcher Version: 0.0.2.6
==> Binary download complete
==> Unpacked binarys.
adb: error: failed to copy 'system/build.prop' to 'adb\build.prop': remote open failed: Permission denied
* daemon not running; starting now at tcp:5037
* daemon started successfully
pull: building file list...
/system/framework/: 362 files pulled. 45.4 MB/s (278991921 bytes in 5.857s)
==> 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. 37.9 MB/s (5087392 bytes in 0.128s)
bin\classes.cdex: 1 file pushed. 50.1 MB/s (9513440 bytes in 0.181s)
Opened '/data/local/tmp/classes.cdex', DEX version '001'
/data/local/tmp/classes.cdex.new: 1 file pulled. 81.2 MB/s (9955928 bytes in 0.117s)
==> Extracted classes.dex
I: Using Apktool 2.3.4 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
I: Using Apktool 2.3.4
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
[Magisk] fOmey:
CHANGELOG ::

2.6 ::

Added support for Android P.

Modified binary download function to prevent crashes.
[Magisk] BadWithPhones:
I assume the signature verification patch not working is something that changed in Pie.

I tried a different patcher...that...um...we aren't allowed to talk about, and it also didn't work (and claimed to have successfully applied the patch)
[Magisk] fOmey:
Different patcher?

Signature verification is not signature spoofing.. it sounds like your trying to use signature spoofing which is not supported.

Signature verification & spoofing is more or less the same crap, if your trying to modify system apps disabling the signature verification will prevent any forceclose/bootloops.

However if your using a mod that relies on signature spoofing, obviously disabling signature verification is going to do nothing for you..

To be honest I haven't had to use signature verification in a very long time so it may be broken for all I know, but I know it DID work so I included it for the sake of including it.
[Magisk] UnexpectedGuy:
I've searched the tutorial to deodex MIUI rom but not any of them trusted and the user who have tried it got bootloop. Can I use Batch ApkTool from this site https://www.bootloop.id/2018/05/batch-apktool-versi-371.html will it work? But I'm very sure the rom is deodexed when I check the service.jar as it appearing classes.dex. Or if you don't mind can you provide me a link or video to do this process, sorry for asking but I don't know what to do.
[Magisk] bagbag:
Download worked after I deleted the folders and started smali patcher again.

But crash still happens:

https://www.youtube.com/watch?v=VMzo2cMsUOY
[Magisk] fOmey:
Can you upload services.jar which you should find in the "adb\framework" directory.
[Magisk] Foxtheory:
it supposedly was it said completed it didn't work. I took the whole framework folder and then I took the the tools and put them in the main directory and started running those commands every time it said could not find x file.. I took it out of framework and put it into the main directory (lol).. Then when it made that generated file I put a copy of that into the generated folder it made and ran the final line and took the services.jar out of that generated folder and it patched then I installed the module it works amazing, Had I been running 6.0.1 I wouldn't have known it was even doing anything though as there's no indication of anything lol. but amazing mod fixed rubber banding as well. Testing now to see if it can avoid nintiatics detection.
[Magisk] Eng.Raman:
SmaliPatcher for [MENTION=5821169]rawimagee[/MENTION] services.jar
[Magisk] Veid71:
On my computer? Or my phone?
[Magisk] cityneversleepz:
computer
[Magisk] Eng.Raman:
On your computer, of course.

These software can't be installed on the phone because they're created for windows platform.
[Magisk] Veid71:
so i move the services.jar to my computer then i run the .exe and i copy the smali.zip file it created and put that on my phone correct? do i change the name back to services.jar and replace the current one i have with it?
[Magisk] Eng.Raman:
If you correctly created a module zip for your services.jar. The tool will generate "SmaliPatcher-0.0.0.8-fOmey@XDA.zip", copy it to your phone and just flash it via magisk manager OR TWRP Recovery. Don't rename or replace anything.
[Magisk] Veid71:
so i got this...

"I: Building apk file...

I: Copying unknown files/dir...

W: Could not find resources

==> Magisk template download complete

==> Generated magisk module zip file

*** Complete ***"

and when i tried to flash it in twrp after -mounting /system, /vendor, /data, /cache ! /system could not be mounted! -unmounting partitions i got

"Updater process ended with error: 1

Error installing zip file '/sdcard/download/smalipatcher-0.0.0.8-f0mey@xda.zip' "
[Magisk] Eng.Raman:
You don't need to mount system directory because the magisk binary and all the magisk modules are systemless. Let TWRP at its default setting and try to flash it again. If you get the same error, unroot your phone and root it again with magisk then try your smali zip.
[Magisk] Veid71:
Yeah I tried it on twrp again and it didn't work so I had to do it through magisk and that worked and it's working flawlessly now thanks so much :D I do have one question though, on Pokemon go does every pokestops show up blank for other people?
[Magisk] Eng.Raman:
I don't play the Pokemon Go. If you have any question about it go to this thread
[Magisk] cityneversleepz:
Just an observation on LG v20. Module works fine for screenshots on banking apps where it did not work before (ty). However on Netflix a little different. Whereas before attempting screenshot prompted the screenshot not allowed message; now it takes the shot but it turns out blacked out. Is there something else that needs to be changed or is that a symptom of some devices?
[Magisk] fOmey:
Good question.. there could potentially be another patch required for certain apps..
[Magisk] lahceneamine:
I hope it may help for those who get bootloops

From my experience, the bootloop is caused by Xposed (when you wipe ART Cache) not by your module (I had to deactivate Xposed, wait for the phone to fully boot, reactivate xposed...etc).

So, is wipping ART/Dalvik mandatory for your mod ? I mean, can we disable it ?

Thank You :)
[Magisk] John-W:
quick question, I still have rubber banding with this module installed. I don't want to deactivate fused location, is there anything I can do against the rubber banding?
[Magisk] mika_radical:
Thanks for the module.

It worked fine for me.

Tested on Nexus 6P, with Stock 8.0.0

Oreo Rom with Security Level Patch 5 September 2017

Magisk 14.2 and manager 5.3.5

Tested the screenshot feature with Bankia App (Spanish wallet) and mock locations feature.
[Magisk] fOmey:
Have you set your location settings to "device only" ?
[Magisk] John-W:
My bad... I had two different gps apps installed and they contradict each other. (forgot about the old one and uninstalled it)

Everything works fine now, thank you for this great module :good: I hope it prevents warnings in PoGo.

Edit: okay, the rubber band is still there, it happens like every 30-45 minutes, I cleared a-gps and set gps to device only.
[Magisk] cityneversleepz:
Will be a tester if/when the time comes sir.
[Magisk] fOmey:
Every 30-45 minutes ? Try another spoofer.. if you were being effected by rubberbanding issue it would happen within a few seconds.

If it's a issue specifically with netflix, I doubt there is going to be a fix to be honest.. needle in a haystack.
[Magisk] bagbag:
There it is: https://seafile.batrick.de/f/2cf68018346247f7b0c4/
[Magisk] cmstew:
Dude, good job. That was a crazy fast turnaround!
[Magisk] fOmey:
Looks normal to me.. you do have java installed yeah? It's crashing when the patcher should be decompiling...

Worked fine for me.. Supplied the patcher your service.jar, worked without a hitch.. I'm thinking java may not be installed?

I've attached the generated module, I suggest you sort what ever issues your having out anyway tho..
[Magisk] JimZiii:
if the signature verification patch is on i get warning notifications when installing or updating any apps. it's telling me the apps aren't compatible with my system version.

at first i thought it was related to the mock location patch since i got it when trying location spoofers, but i tried each patch separately and its the signature verification.

anything i could do to get it working?
[Magisk] fOmey:
CHANGELOG ::

2.7 ::

Re-added signature spoofing patch.

Added dexpatcher as a dependency.
[Magisk] bagbag:
:silly: No, Java was not installed and that was the problem. Thank you very much!
[Magisk] BadWithPhones:
Tested on Pixel XL with Android Pie using ADB method:

Mock Locations: Working

Secure Flag: Working

Signature Verification: not working? Is this intended to patch out this function in the package manager or just apks?

Signature Spoofing: Working
[Magisk] fOmey:
Boot into TWRP, mount /system and the run the patcher while booted in recovery.

Even tho you have a classes.dex its empty.. maybe a permission issue? Patching in recovery mode should fix it.
[Magisk] Zumzum20:
Will this spoof Location of only pokeman game or any app?
[Magisk] shoey63:
It will hide the the fact that you are using an app for mocked locations in developer options from any other app.
[Magisk] UnexpectedGuy:
Still no luck, I've done patch while mount /system and turn off system read only. And this is the log anyway:

fOmey @ XDA
Patcher Version: 0.0.2.5
system/build.prop: 1 file 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: 23
I: Using Apktool 2.3.4 on services.jar
I: Baksmaling classes.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
!!! ERROR: Secure flag class not found.

miuisdk.jar only show 0 byte
[Magisk] Andy4Shurr:
Is WiFi state controlled by services.jar as well??? Could the patch also edit that to fake a WiFi connection when on mobile data?
[Magisk] gk1984:
Can this spoof the hdmi connection too? Cable company app won't stream while hdmi is connected... Only solution that appears to work is with Xposed but don't really wanna use that.
[Magisk] Spartacus500:
Same on S7 Edge Oreo. [MENTION=1620550]fOmey[/MENTION]

It's great that you've added patch signature spoofing ?

Signature Verification: Installation of APK works only after signing, for example- zip signer, without signing it can not be installed.
[Magisk] BadWithPhones:
I modified the APK and signed it (the signature is different than the original) but the install still fails with:

"INSTALL_FAILED_UPDATE_INCOMPATIBLE"

and

"signatures do not match previously installed version; ignoring!"
[Magisk] fOmey:
The intention of this patch allows

modified system apps

to run... doesn't magically allow you to install/overwrite apps through the package manager.

Another patch is required to allow installation through the package manager outside of services.jar... which is completely outside the scope of this patcher.

Replace the APK manually and you should be able to run/execute the modified core system apps.

EDIT: Also this patch could be broken for all I know in newer android versions, I haven't tested it in a while.. I mentioned this in a previous post.
[Magisk] Schroeder09:
Did some searching and I don't see this answered in the thread. Will this make it so screenshots can be taken in Snapchat without being detected without screwing up the rest of the gps apps like maps?
[Magisk] upimoesa:
Smali Patcher 2.7

Link is gone....
[Magisk] Schroeder09:
Huh? Is this in reply to my question?
[Magisk] Zumzum20:
Please Patch this service file

Please Patch this service file.
[Magisk] sensei99:
I still got detected when using mock location on pokemon go after flashing Smali Patcher..

What to do after flashing??
[Magisk] Fun_GKC:
Unable to disable FLAG_SECURE on OP5T 8.1.
[Magisk] s.i.t.h.l.o.r.d:
Did work for me fine. OP5, OxygenOS 5.1.5/Android 8.1.0, although I have used the patcher v 2.4
[Magisk] Defforest:
Hi, I'm testing new version of 2.7 and here is the result patched on Mi 4c RR 5.8.5 Nougat 7.1

fOmey @ XDA
Patcher Version: 0.0.2.7
==> Binary download complete
==> Unpacked binarys.
system/build.prop: 1 file pulled. 0.7 MB/s (9988 bytes in 0.014s)
adb server version (32) doesn't match this client (40); killing...
* daemon started successfully
pull: building file list...
/system/framework/: 65 files pulled. 12.9 MB/s (87345685 bytes in 6.457s)
==> Dumped framework
==> Detected API: 25
I: Using Apktool 2.3.4 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 secure flag function
==> Patched secure flag boolean
==> Patched signature verification function
I: Using Apktool 2.3.4
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
info: read 'tmp\dist\services.jar'
info: read 'bin\sigspoof_7.0-9.0.dex'
info: type 'com.android.server.pm.PackageManagerService': method '<init>():void': (PackageManagerService.java:28): implicit ignore of trivial default constructor
info: write 'classes'
0 error(s), 0 warning(s)
==> Merged patch: sigspoof_7.0-9.0
info: read 'tmp\dist\services.jar'
info: read 'bin\sigspoof_core.dex'
info: type 'com.android.server.pm.GeneratePackageInfoHook': method '<init>():void': (GeneratePackageInfoHook.java:35): implicit ignore of trivial default constructor
info: write 'classes'
0 error(s), 0 warning(s)
==> Merged patch: sigspoof_core
==> Magisk template download complete
==> Generated magisk module zip file
*** Complete ***

As result above, I see no error no warning so its successful right? Old version 2.4 doesn't have detail log like this.

Also [MENTION=1620550]fOmey[/MENTION] your new 2.7 I think have bug with higher ram/cpu usage, for me no problem because i have 12GB ram. But for low end PC might be big problem.
[Magisk] jagawana27:
Work Well

thanks sir for smali patcher.. Installed successed on redmi 3s land rom miui eu:svetius::good:
[Magisk] Zumzum20:
Please someone confirm this.
[Magisk] fOmey:
Doubt anyone can confirm or deny it because it's not something that has been looked into..

Why would you want to spoof your wifi status anyway? Anything that requires wifi usually can just be forced to download on data anyway with a button press.. I'm not following the logic here?
[Magisk] Andy4Shurr:
You'd be surprised the number of apps that still require a WiFi connection to work properly. There are definitely use cases for this.

If anyone does know it would be helpful, I'll try and dig a bit further myself but it'd be greatl if someone knew and could just say.
[Magisk] fOmey:
Looks like it's outside of services.jar... definitely a possible patch tho.

Your looking for:

ConnectivityManager.TYPE_WIFI
[Magisk] Zumzum20:
I don't know how to explain it.. :(

When you enable mock location and fake gps then check your location on Google MAP it shows you fake Location,

But some app also check your wifi connectivity, and if they use High accuracy location they not work with mock location enabled. [MENTION=1620550]fOmey[/MENTION]
[Magisk] fOmey:
If your mocking your location you should disable high accuracy.

EDIT: If your only concern is mocking location, you can spoof wifi location also.
[Magisk] Andy4Shurr:
[MENTION=8749119]Zumzum20[/MENTION] yeah I think our purpose for modifying the WiFi state is a bit different, I'm not really interested in mocking location at all and my initial query wouldn't help with that I don't think.

[MENTION=1620550]fOmey[/MENTION] thanks for confirming that. I used to use the fakewifi module on xposed but nobody seems to have created a similar module for magisk so I'm looking into how that can be achieved.
[Magisk] Widi1312:
anyone can help me to patched my framework https://drive.google.com/file/d/1Xxx0l68CILYN0xK_O14SlG4QxU-EMR-0/view?usp=drivesdk

help help help...
[Magisk] fOmey:
Went down the rabbit hole this morning and attempted to find a way of patch wifi state within services.jar, I was unsuccessful unfortunately..

I have been thinking about expanding the patcher beyond just services.jar and adapting it to potentially patch any file within the framework directory... if I go ahead with this idea I will definitely keep this patch in mind.
[Magisk] cognitivedissonance:
For those asking about patching WiFi, it's possible that I'm misunderstanding but let me explain how this works for me. A certain dating / hookup app (you know the one I mean) forces you to enable High Accuracy location mode before it'll let you start swiping. I was concerned that I was going to experience rubber banding because I wasn't certain that this module would allow for spoofing of WiFi location, but it seems like it does because the spoofed location is the one that the app uses.

For the record, I'm using this spoofing app https://play.google.com/store/apps/details?id=com.incorporateapps.fakegps.fre
[Magisk] Andy4Shurr:
Thanks [MENTION=1620550]fOmey[/MENTION], from what I've been looking at and reading so far, all the methods point to hijacking the API class call and for that you need a method or framework to hook those API calls (such as Xposed or the redundant substrate). I thought this patch might be a different approach that could work at source rather than hooking the API.
[Magisk] UnexpectedGuy:
Finally, I've figured out the problem. I updated the rom to MIUI 9.6 and it seems the framework is deodexed and the size is only around 45 mb. Thanks to [MENTION=1620550]fOmey[/MENTION] and all who helped me though :D
[Magisk] fanfandi:
Patch my smali

Who have smalli patcher for lenovo a2010 stock rom 264?

I want to insert link for my frameworkk,,but xda forum prevent me to do that. how i send my framework?
[Magisk] Widi1312:
anyone please share smalipathcer for ZTE nubia Z17mini https://drive.google.com/file/d/1Xxx0l68CILYN0xK_O14SlG4QxU-EMR-0/view?usp=drivesdk

this is my framework...please help me bro..thx
[Magisk] manishmehra373@gmail.com:
https://drive.google.com/folderview?id=1DGtOL619-yxT33rZWfJWlbbG3ZhhkE-a

Help me sir, I don't have any pc right now.

Please patch this for me
[Magisk] manishmehra373@gmail.com:
Here is the file
[Magisk] suku_patel_22:
I am getting the below error on my Nexus 5X in TWRP. I have the system partition mounted.

fOmey @ XDA
Patcher Version: 0.0.2.7
system/build.prop: 1 file pulled.
pull: building file list...
/system/framework/: 286 files pulled. 4.4 MB/s (251166956 bytes in 53.938s)
==> 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
Error: Invalid or corrupt jarfile bin\apktool.jar
!!! ERROR: Target JAR must be deodexed.
[Magisk] fOmey:
Delete the bin folder and restart patcher.
[Magisk] Mzwir:
ERROR!! " target must be deodexed, but i was try methode vdex2dex for android 8.1 it is success be deodexed services.jar on batchapktool but with smali patcher, it is be error " target must be deodexed " any solutions?
[Magisk] ahrion:
OP have you found a way to baksmali within Android itself?
[Magisk] Adromir:
Does someone still has Smalipatcher 2.4 ? As patching with 2.7 doesnt work, id like to give it a try with that
[Magisk] fOmey:
Look into a tool called "dx" which is included with the android SDK build tools.

The tool will allow you to convert .jar to .dex.. which you should be able to execute on a android device without issue.
[Magisk] manishmehra373@gmail.com:
I am also getting same error-

ERROR: Target JAR must be deodexed

I tried deleting bin folder and restart patcher but still not working.

Here is my services.jar

https://drive.google.com/folderview?id=1DGtOL619-yxT33rZWfJWlbbG3ZhhkE-a
[Magisk] fOmey:
Please read the instructions on the first post.
[Magisk] manishmehra373@gmail.com:
I followed the instructions carefully but still didn't know what's wrong.

Help me sir
[Magisk] bakul_lampu:
please patch my jar

I always have this error

fOmey @ XDA

Patcher Version: 0.0.1.2

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

!!! ERROR: Magisk module template download failed.
[Magisk] fOmey:
Your using version 1.2... use the latest release.
[Magisk] b4karmenyan:
i'm not sure how this module works. i've flashed the zip files and install the gps spoofer but the apps still can detect that i'm using mock location. can anyone tell me how to use these modules ?
[Magisk] bakul_lampu:
it's work with latest version, thank you very much [MENTION=1620550]fOmey[/MENTION]
[Magisk] Spartacus500:
[MENTION=1620550]fOmey[/MENTION]

FusedLocation ?
[Magisk] eliaspizarro:
Works on OnePlus6 Pie OOS, Thanks
[Magisk] fOmey:
[MENTION=6138728]Spartacus500[/MENTION] ContactSync?