yashsingh1/xdaforums huggingface dataset:
[Magisk] xM45T3R:
So yeah the probem was that the APP was set to System and it was fighting over location lol, when I set it full to Mock locations it started working, thanks
[Magisk] starbucks2010:
Hi mate,

Thanks for taking the time to test it.

I discovered where the problem was - java version; maybe you can add it as a prerequisite: the smali patcher need Java JDK not JRE.

Thanks again for this great work.
[Magisk] cognitivedissonance:
This is exactly the question I have. The Fused Location Provider apparently takes into account GPS, WiFi, cell tower location, Bluetooth information, and other environmental variables. Obviously if I'm trying to spoof location for an app that definitely doesn't want me spoofing, and if the developers are smart, they'll be pulling location checks from fused. I need to be sure that the location being reported by that service is fully spoofed. Is there a way to make sure of that?

Obviously the days of forcing apps to only use GPS location are gone, so I'm hoping this patcher is the solution.

Can you address this, [MENTION=1620550]fOmey[/MENTION]? (Thanks again for the module btw!)
[Magisk] Johnny Eng:
Hi, anyone tested Smali 5.0 to 5.2 on Huawei emui 9.0? Any issue? Currently I'm on 4.6

Thank you
[Magisk] Benigno_:
Thank you fOmey! Version 5.2 works on my Mi A2.

My setup.

Xiaomi Mi A2

Android 9

Security Patch: May 5, 2019

Google play services: v15.0.90

Magisk v19.4-c

Thank you again.
[Magisk] fOmey:
Should work fine with either.. if environmental variables are set correctly.

Spoofed locations will be fed into fusedlocation and will take priority if they are considered the most accurate.
[Magisk] jdiegmueller:
Yes, that's my experience as well. The "secure flag patch" bit seems to work great on non-media apps, but media apps (Netflix, Hulu, YouTube TV are the ones I personally have observed the "screenshot blocking" behavior still present) seem to still be able to block screenshots once the media actually begins playing back (ie, load screens, menus, etc. can be screenshot as you observe, as well).

Hulu has an ad-supported ("free") version, but I confess don't know how or if that works outside the US (assuming you're Australian based on your PayPal/beer fund donation link converting to AUD).

Based on my comment above re: the identical screenshot blocking behavior between media apps (works on loading & non-playback screens, immediate blocked once media playback starts, immediately works once media playback stops) I suspect that if we can solve this for one media playback app, we solve it for all.

Of course, I say "we" like I'm actually helping in some fashion :), so let me say I very much appreciate the additional functionality Smali Patcher already provides and left something in your beer fund tip jar. Would be happy to further chip in with time + effort if there's anything I as a power user can do or provide (sharing a login to Netflix/Hulu/etc, sharing logcats, testing, etc) to assist the effort.

-jd
[Magisk] fOmey:
That's very kind of you, thank you.

Very interesting, I have not been able to test secure flag during media playback due to a lack of owned services.. I'll have a sus out and see if I can get my hands on a netflix/hulu account and investigate this further.

EDIT: Also you guys do help out more than you know by testing and providing feedback! Most of the features in the patcher were inspired/motivated by users needs.
[Magisk] cognitivedissonance:
That's good to know. Any suggestions on making sure they're the most accurate? My thoughts are maybe apps that specify random movement in an area, or ones that allow you to specify the interval between reporting location -- presumably, more frequent location reporting, and relatively small random movements would be best?
[Magisk] SebaS-DG:
Gps joystick do that, "small random movements" so is more like the real gps.
[Magisk] cognitivedissonance:
Yeah I found several apps that seem to do something similar. Some even allow you to set a walking path where it reports you moving along the line. I'm guessing maybe turning off WiFi would help too - I imagine if Fused notices a nearby WiFi network that somehow reports your real location, it may decide that's accurate and you could get rubber banding issues. I guess I'm also not sure how to combat against the phone's radios relaying info about the tower they're using and GPS radio providing an actual GPS reading. Seems like that data may be competing as "most accurate" for the purposes of Fused Location.

Perhaps I'm not understanding things properly, but it just seems like you may get rubber banding if the service is checking the Fused Location -- am I thinking correctly?
[Magisk] TabbyAuthor7924:
Thanks for staying active on this thread. When I reboot after flashing smali patcher from Magisk (modules) my OnePlus 3T has been stuck on the loading screen for quite a while.
[Magisk] H4X0R46:
I'm glad this tool keeps getting updated! First time I tried this with my OnePlus 7 Pro was version 0.0.5.0 and it didn't work, soft bricked my phone. I tried now with version 0.0.5.2 and it works! I HATE having secure apps that don't allow screenshots and this module works wonders! Even on Android pie!
[Magisk] Dorian57600:
[MENTION=1620550]fOmey[/MENTION] can patch my service jar, i got problem my service jar if only saying rom is odex thanks you https://drive.google.com/file/d/1Ek_hUjtuzCVomg4coA8Gymd-dyPyd-ua/view?usp=drivesdk

---------- Post added at 02:16 PM ---------- Previous post was at 02:12 PM ----------

For spoofing pogo only thanks you u are great dev
[Magisk] Spartacus500:
I can not do it, your services.jar file is not deodex. Please upload you folder framework & file build.prop, then I will make the patch Smali patcher on your services.jar file.
[Magisk] Dorian57600:
https://drive.google.com/file/d/1-17-HzGyPxcWZJcksd0FewkcJy0Gunj0/view?usp=drivesdk , https://drive.google.com/file/d/1-YGaszhkswqij4wMlYxceJeS2eyoT5vq/view?usp=drivesdk. here are the two links of my build.prop and framework ... thanks to you it's cool of you, I'll see you again
[Magisk] Spartacus500:
Which patches do you want? Only Mock location ?
[Magisk] Dorian57600:
Yes Mock location only....thanks you
[Magisk] SebaS-DG:
I cant install it, I dont know why, it jsut says:

Unable to extract it.

Where are the previus versions...

I do it 3 times, with reebot my pc and phone, same result. Cant flash it from recovery or magisk.

Found version 0.5

And, both same error :S, and by twrp the same:

Updater process ended with error: 1

Error installing zip file '/sdcard/

smaliptachermodule-0.0.5.0-fomey@xda.zip'

I dont know what is happening

Can some one get me the version "0.0.4.9" it was always working for me

Edit: This is what Smali, dont know if it helps:

==> Detected java: 1.8.0_211

==> Dumped framework

==> Detected API: 28

I: Using Apktool 2.4.0 on services.jar

I: Baksmaling classes.dex...

I: Copying assets and libs...

I: Copying unknown files...

I: Copying original files...

==> Patched mock location boolean

==> Patched mock location boolean

I: Using Apktool 2.4.0

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...

0 error(s), 0 warning(s)

==> Merged patch: sigspoof_7.0-9.0

0 error(s), 0 warning(s)

==> Merged patch: sigspoof_core

==> Magisk template download complete

!!! ERROR: Magisk module template download failed.

==> Magisk template download complete

==> Generated magisk module zip file

*** Complete ***
[Magisk] Spartacus500:
Unpack your services.jar, on which you made the patch Smali patcher and replace it manually by root Explorer in root / system / framework / services.jar and give 644 permissions and restart the phone, just remember to backup the original services.jar file in case problems.
[Magisk] SebaS-DG:
worked, like I need for "spoof"

Thanks

Using Xiaomi Redmi note 6 pro.

Two new things seems to be added to usb debugging options.

I activate one of them, but I get the same result, the other one is about installing apks by usb, not sure if it make a difference.
[Magisk] Spartacus500:
Your services.jar is only Mock location ;)
[Magisk] Spartacus500:
Smali Patcher 0.0.4.9 try :)
[Magisk] wzzupp548:
Anyone have a link for smali patcher 5.2 exe for automated install? seems to be dead in main post
[Magisk] Arkivdt:
Link dead 5.2 version?
[Magisk] Spartacus500:
No, work ok.
[Magisk] starbucks2010:
Hi @fOmey, is it allowed/possible to add this into a ROM (with proper credits of course)?

Thank you.
[Magisk] fOmey:
People still use roms? Sure.. as long as clear credits are given for each mod.
[Magisk] SebaS-DG:
My problem was with the rom, MIUI roms are much better than any miui official firmware, and much much better for spoofing.

I dont know why, the rom, for the first time, didnt let me flash things (even from twrp).

Anyway, I clear everything, update the rom, and Smali and everything else can be flashed now.

Using smali 5.2 now.
[Magisk] henavo:
My usb have spoiled & so not able to get adb detection through connecting mobile via usb. Is there any way I can get this working on adb network via tcp? [MENTION=1620550]fOmey[/MENTION]
[Magisk] fOmey:
You can try, I've never had the need to use ADB via network.

Configure ADB to connect to the device via network before running the patcher.. from what I understand all the adb commands are the same syntax, so it should work fine?
[Magisk] henavo:
Can you just explain me briefly where I can configure ADB to connect over network? In bin folder?
[Magisk] fOmey:
Here you go: https://developer.android.com/guide/topics/connectivity/usb/#debug-considerations

Just tested it, patcher works fine over wifi.. you are required to connect the device via. USB for the initial setup tho (as per the instructions in that guide anyway).

You might be able to set your phone into adb wifi mode on the device.. you'll have to look into this yourself tho.
[Magisk] remned:
Hello,

When i try to patch the error i get is: Multiple attached ADB devices found.

Anyone how knows a solution for this problem?'

Extra info:

I try to patch a Oneplus 2 running lineage os 16, android P

It has the latest version of Magisk and has the TWRP bootloader

I also installed the latest update of .Net framework and Java.
[Magisk] A30NI_Y:
What other devices is connected to the PC? Remove those and only connect your phone to the PC.
[Magisk] remned:
That was the first thing I tried. I have a wireless mouse connected but that is all after removing it nothing changed
[Magisk] A30NI_Y:
If you post your framework & build.prop, I can try patching for you. Just indicate what patches you want.
[Magisk] whalesplaho:
[MENTION=1620550]fOmey[/MENTION] been a fan of smalipatcher and never had issues but i tried AOSP extended rom today and tried using smalipatcher to patch n was successful buh after flashing tha zip i ran into bootloop.... Had to uninstall magisk to remove tha zip since there is no uninstall zip. I really dnt know wah happened.

---------- Post added at 10:43 PM ---------- Previous post was at 10:43 PM ----------

[/COLOR [MENTION=1620550]fOmey[/MENTION] been a fan of smalipatcher and never had issues but i tried AOSP extended rom today and tried using smalipatcher to patch n was successful buh after flashing tha zip i ran into bootloop.... Had to uninstall magisk to remove tha zip since there is no uninstall zip. I really dnt know wah happened.
[Magisk] HutchOven:
Trying to get spoofing for pogo and I keep running into this error..

Patcher version: 0.0.5.2

==> Detected java: 1.8.0_211

==> Dumped framework

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

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

==> Extracted classes.dex

Error: Invalid or corrupt jarfile bin\apktool.jar

!!! ERROR: Mock location class not found.

==> Magisk template download complete

==> Generated magisk module zip file

*** Complete ***

I'm on a 0neplus 3t running 8.0.0. I assume my issue is with the jar not being deodex but I dont know how to do that. I think I need mock locations and sig spoofing but if all I need is mock locations, just do that.

any chance you can help me out fOmey? Here is a link to my framework folder and build.prop

https://drive.google.com/file/d/1TESBOlH8F8jBzFu5Rn7gn1BZGQ-hpML2/view?usp=drivesdk
[Magisk] A30NI_Y:
Something is wrong, couldn't find your build.prop
[Magisk] HutchOven:
I'm sorry, I don't even know what link that is but it's not mine. I fixed my post and I'll post it again here to make sure. The file should be called for fOmey.zip

https://drive.google.com/file/d/1TESBOlH8F8jBzFu5Rn7gn1BZGQ-hpML2/view?usp=drivesdk
[Magisk] A30NI_Y:
Here it is. Patched for mock location and sig spoof
[Magisk] fOmey:
Error: Invalid or corrupt jarfile bin\apktool.jar

Delete the bin folder and the patcher will re-download required binary's.. should fix your error.
[Magisk] henavo:
How can I use build.prop file to generate this? Can you help me if I provide you with that file?
[Magisk] A30NI_Y:
You need to provide all the files in your framework folder and the build.prop file. But before that, what issue you are having with the Smali Patcher provided here?
[Magisk] surajit banik:
smalipatcher has stopped working any solution please ? i have already installed java and firmware
[Magisk] whalesplaho:
Please need help....
[Magisk] Timonysos:
Anyone know why the download is down?
[Magisk] Flint2:
Now is working with no issues, maybe was temporary problem
[Magisk] fOmey:
Try patching without signature spoofing and report back.
[Magisk] whalesplaho:
I ll run dat and give feedback....
[Magisk] WANTES:
Good afternoon, from last night, the game pokemon go, sees the connected smali patcher, disable it in the Manager, the game works. I have oneplus 6t, 19.3 magisk, rebuilt, spoofer rebuilt. I can't understand why. ctf profile is validated.
[Magisk] leronxp:
Hi! I'm trying to get mock locations and I keep running into this error:

I'm on a Redmi 4 Prime running 6.0.1. I've tried to deodex framework folder with FulmicsDeodexer and use deodexed framework, but had same error. [MENTION=1620550]fOmey[/MENTION] Can you help me with that problem?

dropbox.com/s/l9ux5mzirkfez1h/system.zip?dl=0
[Magisk] PandiMhanap:
please help. i try renew my patcher since the last version got deleted. but it show this

fOmey @ XDA

Patcher version: 0.0.5.2

==> Detected java: 1.8.0_201

==> Dumped framework

I: Using Apktool 2.4.0 on services.jar

Exception in thread "main" brut.androlib.AndrolibException: brut.directory.DirectoryException: java.util.zip.ZipException: zip file is empty

!!! ERROR: Mock location class not found.

==> Magisk template download complete

==> Generated magisk module zip file

*** Complete ***

but it worked on v.0.0.5.0 before

drive.google.com/open?id=16IYBks4uE2_DDZ2pUVWQVNPr-dqvMkSJ
[Magisk] surajit banik:
i am getting " smali patcher stopped working " any solution ?
[Magisk] whalesplaho:
Phone works without signature spoofing... What could be tha cause? And i noticed dat booting takes longer than before, is it normal?

Thanks man.
[Magisk] Rustedwhiskey:
Long time lurker of xda for many years but this is the first time I've made an account and posted (I've been able to find a solution to any problems i've had with a little digging, until now that is)

After some messing around I was able to get this all working on a samsung J120W, but now i'm trying to get it on my Tab E (SM-T377W) Followed all the steps but smali is throwing my Tab E into a bootloop. I've tried flashing through magisk (lastest version, everything appears to be good to go with magisk) I've tried the manual method through TWRP as well. One of the things I've noticed is that my framework doesn't contain an arm64 folder, neither does framework/oat, but the smali patcher still generates it. I've tried manually installing all the files without the arm64 files just to see but still bootloops.

Any suggestions?

Edit:

Samsung Galaxy Tab E 8.0 SM-T377W

TWRP 3.0.2

Smali patcher 5.2

Magisk 19.3

Magisk Manager 7.3.2

Android 7.1.1

Build: NMF26X.T377WLUVLU3BRG4

Additional Edit: As I was copying my framework folder to upload here I saw there is in fact an arm64 folder in both the places I said there wasn't. I can see it in the copied folder, but when I browse in trwp is looks like it's hidden? is there something other than system I need to mount in order to see it? perhaps if I can get that folder to show up I can try manually copying the files in trwp again...
[Magisk] whalesplaho:
If yhu read above yhu ll get help. Had same issue buh solved. Untick signature spoofing and try to patch again.
[Magisk] stevesteve:
Hello,

Sorry for my noob question, but is this tool works for android 9 (Pie)?
[Magisk] whalesplaho:
It does.
[Magisk] Rustedwhiskey:
Ah yes. I didn't try that, I'll giv'er a go in a little bit when I get back to my stuff. What exactly will not having signature spoofing affect? I mean, with the privacy mode of Fake GPS joystick, and Magisk hide, will it really have any effect at all?
[Magisk] whalesplaho:
Except [MENTION=1620550]fOmey[/MENTION] explain more on dat, i majorly use signature verification disable bro.
[Magisk] Rustedwhiskey:
Well, turns out i'm a bit of a dummy. Sig spoofing and verification is unticked by default, so I haven't been using it either. So I tried with Sig spoofing checked, tried with verification checked, and tried with both ticked. all still cause bootloop.

I don't have enough posts to link my framework download, so if someone wants to have a look, let me know and I'll dm the link.. or something.
[Magisk] whalesplaho:
I really dnt know why its causing bootloop would have help... Hope tha last 2 options arent tick or any of it?
[Magisk] Rustedwhiskey:
I just tried replacing the files generated by smalipatcher into my framework folder on my PC then using twrp just replacing the entire framework folder but still bootloop.

It really seems like my Tab E just does not like smali... there is a folder in my framework called "Samsung-framework-res" that contains an apk with the same name.. my J120W didn't have that. perhaps it's the culprit?

halp?
[Magisk] whalesplaho:
Wait.

Yhu shud deoxeded yur framework folder. I do dat by copying framework folder and build.prop to desktop, i use TOAD tool to deoxeded and after, i copy tha services.jar from tha zip file created and copy to smalipatcher folder and run tha patcher to patch tha services.jar den after i use magisk or twrp to install tha magisk module created..... I dnt know if dis helps!
[Magisk] Rustedwhiskey:
That did it! I flashed through magisk manager and rebooted when it was done. Samsung screen came up and looked like it was bootlooping again. I was about to hard reset into twrp and restore, then it loaded!

Thanks so much for all the advice! So far everything looks good, here's to hoping the rest goes smoother! Thanks again!
[Magisk] whalesplaho:
Happy it works... Enjoy!!
[Magisk] Phantom Thief:
hey fOmey on the latest smalipatcher it doesn't stop when it detects the services.jar is not deodexed.

Here's an example of a output:

fOmey @ XDA
Patcher version: 0.0.5.2
==> Detected java: 1.8.0_211
I: Using Apktool 2.4.0 on services.jar
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
!!! ERROR: Mock location class not found.
==> Magisk template download complete
==> Generated magisk module zip file
Complete

Ends up still generating a module. Possibly blank but will have people bootloop. I know it's obvious one shouldn't install if there's an error but helped a few who still tried anyways and ends up being annoying explaining them odex vs deodex
[Magisk] surajit banik:
It works thank you dev:highfive::silly:
[Magisk] Sandy1701:
My friend is getting the error "api-ms-win-crt-locale-l1-1-0.dll is missing" when trying to use smali patcher.

We both have a galaxy s9 and are using exactly the same custom rom, is it possible for him to use my module?
[Magisk] ghostbusted:
Guys i have rubberbanding how to solve? I'm running android 9 on pixel 2xl device, i cannot find gps only gps settings

Please help
[Magisk] remned:
Hey,

I tried to use the patching tool a few times now but it keeps giving different error messages a the time. It there someone how can patch the mock location & high volume warring for me (mock location is most important, high volume is just nice to have). Just let me know what kind of files you need! Thanks!
[Magisk] henavo:
Sorry for getting back late. Underwent surgery so was late.

My device usb is spoiled so it gives me error of ADB device not found. Tried ADB over network but can't get it to work.

If you can help I will really appreciate it.
[Magisk] alphandi6:
hi all, is there anyone can help me to patch my services.jar. coz everytime i patch, it always showed an error on high volume warning. thx in advance.
[Magisk] Phantom Thief:
https://xdaforums.com/showpost.php?p=79507821&postcount=2921
[Magisk] A30NI_Y:
Send the link to your copy of framework folder and the build.prop file. I'll try to do whatever I can from here.
[Magisk] lzydavid:
Stuck in boot loading screen of oneplus 6

Hi, I follow the instruction and after applying the module in Magisk, it stuck in the boot loading animation, how to remove the module or restore
[Magisk] andrew2432:
Probably need to uninstall magisk at that point
[Magisk] GeckoHXO:
S9+ Smali module disables wifi

This is the first phone I've ever routed ,galaxy S9+. I created a module using smali patcher but as soon as I set it as active in magisk manager and restart the phone I am unable to connect to wifi at all and only use my data for Internet. As soon as I disable the module the wifi reconnects to the wifi with no problems. Any idea what's going on here
[Magisk] lzydavid:
!!! ERROR: Mock location class not found on oneplus 6

Got this error using the adb method. How to resolve this?

Android version 9

Phone: oneplus 6
[Magisk] alexcheveau:
Did you managed to solve it?
[Magisk] GeckoHXO:
No sadly not
[Magisk] ahuca117:
I9305 unable to install Magisk module correctly

Hi all,

I'm having a problem applying the Smali patcher generated Magisk module on a Samsung Galaxy S3 (I9305). Basically, after installing the module (either on Magisk or TWRP) and rebooting, Magisk Manager just... disappear. When I try reinstalling Magisk Manager the phone prompt that there's not enough memory space, even though it had 8-9Gb of free memory.

A few years ago I've done this whole thing successfully to a Sony Xperia Z1. At that point I had to extract the "/system", then deodex it and apply Smali patch manually. With the current I9305, I've been using the new built-in automatic feature.

I've tried the following custom ROMs for the I9305, and none of them have worked out:

lineage-14.1-20180624-UNOFFICIAL-i9305 (from cyanogenmods)

lineage-14.1-20190627-UNOFFICIAL-i9305 (by [MENTION=382340]walter79[/MENTION])

lineage-14.1-20190703-UNOFFICIAL-i9305 (by [MENTION=382340]walter79[/MENTION])

Does anyone have an idea about this? Thanks in advance!

Cheers.
[Magisk] fOmey:
Can you apply a single patch at a time and isolate which one is causing this behaviour.

Probably due to low ram on the PC you're using?

This sounds like a problem with magisk, have you tested a different module to see if the problem persists?

The high volume warning class does not exist, can't patch something that doesn't exist.

High volume warning patch is not compatible with your device.

What android version are you running?