yashsingh1/xdaforums huggingface dataset:
[Magisk] JohnHenryEden:
@A30NI_Y Having a little trouble and for whatever reason it won't let me patch it myself

Just need the Mock Providers, Sig Spoof, Sig Verification, Secure Flag, and Samsung Knox (especially this one)

(Edit forgot to include 2)

Framework should be attached below, if theres anything else I need to do/send I'm more than willing

Thank you for your time and contributions!!
[Magisk] A30NI_Y:
No luck from myside also. "!!! ERROR: Knox patch class not found."
[Magisk] JohnHenryEden:
Ah damn, any idea if theres any other methods of patching Knox on Android R?

Thanks for trying!
[Magisk] Pandemic:
Does this have signature verification for A11 the 7.4 version ?

Asking for the 2nd time now -___-
[Magisk] A30NI_Y:
As mentioned in the OP, it's for legacy devices but the only way to know for sure is to try.
[Magisk] dknight178:
Hi everyone, I'm having issues with my OP7pro (Android 10 rooted). I have java and .net framework installed and running the exe file with admin privileges but encountering the error on initialisation of VM. Please help me, thanks

EDIT: Fixed this by installing 64-bit Java
[Magisk] noobSU:
Saaarr! @A30NI_Y Need yewr support again badly! Due to some source side issues. I had to change my Rom from Legion to ForkLineage. Can yew please? I'll be thankful!

✓ Mock location

✓ Mock Provider

✓ Secure Flag

Link removed

Edit: Yew are away i think, So i patched myself. Thanks anyway bruh!
[Magisk] Lilcode:
Plss patch my framework i dont have pc,

Mock location

Mock providers

Secure flag

Signature verification

Signature spoofing

High volume warning

Samsung Knox

Thanks in advance❤

Heres my framework

framework.zip

drive.google.com
[Magisk] A30NI_Y:
Here it is with all the patches you want
[Magisk] Lilcode:
I don't know why i got bootloop i think because lot of patches can you plss patch again plss.

Mock location

Secure flag

Signature verification

Signature spoofing

High volume
[Magisk] A30NI_Y:
Try this
[Magisk] noobSU:
If yew're on A11. I'll recommend yew to let yewr framework patched excluding as-is patches.
[Magisk] Lilcode:
Bootloop again :( before my device ota update i already have patches

Mock location

Secure flag

signature verification

Signature spoofing

High volume

Knox

Reboot recovery

All work well before update im using stock samsung j7 pro 9.0
[Magisk] Lilcode:
Im only on A9, btw i saw you on sm4a thread im little confused on commands can i dm u on telegram?
[Magisk] rfilipoiu:
Hi,

is there somewhere a more detailed explanation for these things:

Mock locations - Hide mock locations status, allowing apps like Pokemon GO to treat them as genuine location updates.

Mock Providers: Allow creation of mock providers without mock permissions.

GNSS updates: Disable all GNSS (GPS) location updates.

Secure flag - Allow screenshots/screensharing in secure apps.

Signature verification (as-is, legacy support only) - Disable signature verification allowing modification/execution of signed system apps.

Signature spoofing (as-is) - Enable signature spoofing app permission.

Recovery reboot - Reboot directly back into recovery from powermenu.

Samsung Knox (as-is, legacy support only) - Bypass Samsung Knox trip protection, only confirmed working for secure folder.

High volume warning - Disable high volume popup dialog.

4.8.9. are pretty clear, but the others may need some explanation, even background info for beginners.

Just asking if the info exists. Thanks.
[Magisk] pogo-airsupport:
1. Mock Locations - allows you to use mock/fake GPS apps without other apps knowing mock GPS is enabled. This allows you to spoof in many popular games

2. I find this one pretty self explanatory?

3. GNSS updates - disable getting location updates from GNSS/GPS sources. This means no new updated locations will be brought in. Unclear whether apps detect this?

4. Self explanatory

5-6 are legacy, don't recommend using unless you know what they mean anyways

7. Recovery reboot - when you reboot, instead of booting into system, it goes into recovery mode, allowing you to flash boot images, or go into custom recovery, etc

8-9 self explanatory
[Magisk] Fre$h:
@fOmey & @A30NI_Y

Long time user of Smalipatcher for Pogo things, I just would like to thank you one more time for the job that has been done here.

I used to smalipatch my good old HTC U11 from A8 to A10 without any issue.

I'm now owner of an O+9pro running A11 ( up to date security patch, googleplay serveices etcetc), and Smalipatch works like a charm on it, from extracting framework to flashing my dedicated patch, everything is running flawlessly !

Kudos to you guys
[Magisk] minmin3772:
[Help] Tool stuck at Binary download 99%

Hi, does anyone have the same problem? Already installed JDK 1.8 x64, .Net Framework 4.8 and run as Administrator.

The tool just got stuck at "Binary download 99%" at first launch. If I close it and relaunch, the status is "Idle". But clicking "ADB Patch" has no response at all.

I wonder if there are some detailed log files or something. It used to work for an older version (maybe 7.2 & Android 10 as I remember?)
[Magisk] noobSU:
Sure. @shahhussainii
[Magisk] A30NI_Y:
In the smali folder, do you see the bin folder?
[Magisk] minmin3772:
Yes, there are 3 files in /bin:

- apktool.jar

- baksmali.jar

- smali.jar

And 4 files in /tmp:

- compact_dex_converter.zip

- dexPatcher.zip

- platform-tools.zip

- vdexExtractor.zip

And on the output area on exe, it just prints two lines:

fOmey @ XDA

Patcher version: 0.0.7.4
[Magisk] A30NI_Y:
It should end up with only the bin folder and the smalipatcher.exe

If there's a tmp folder, it means the process is not complete. I have attached the bin folder, you can try it
[Magisk] minmin3772:
Hi @A30NI_Y ,

Thank you so much for your kind help. The bin folder you uploaded got me through the launch period.

I would agree there may be some problems downloading the binaries, yet there is no much logs to trace.

However, it then got stuck again at "Built apk" stage :-(

Below are the full logs.

fOmey @ XDA
Patcher version: 0.0.7.4
==> Detected java: 1.8.0_252
==> Processing framework
I: Using Apktool 2.5.0 on services.jar
I: Baksmaling classes.dex...
I: Baksmaling classes2.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
==> Patched secure flag function
==> Patched set secure function
==> Patched capture function
==> Patched get capture function
==> Patched is capture function
I: Using Apktool 2.5.0
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes2 folder into classes2.dex...
I: Building apk file...
I: Copying unknown files/dir...
I: Built apk...
[Magisk] mcmillan123:
I've used smali on a number of phones, and usually it works fine without any issues, but on two phones I've used I still get rubberbanding. Any tips?
[Magisk] noobSU:
Disable Google location accuracy
[Magisk] SLVRMN:
Hello, I've used smali pathcer to mock location for a long time on several phones, but on my newest ROG Phone 5 Ultimate, even if I removed the module, unrooted the phone, erase the phone or re-flash the ROM, I couldn't get the real location from GPS in any app, any idea to fix it?
[Magisk] SLVRMN:
I'm not sure if it's something that went wrong with the patch "Disable all GNSS (GPS) location updates". If so, how can I clean it completely?
[Magisk] noobSU:
Not practically possible btw. Did yew try any other custom rom?
[Magisk] noobSU:
An alternative way for Android 10 (Tested), Android 11 (Tested) & recently launched Android 12 (Tested, ArrowOS A12)

1- Download & Install Riru from Magisk repository (Reboot)

2- Download & Install Riru - LSposed from Magisk repository (Reboot)

3- Download & install mockmocklocation app from xposed repos.

4- Switch on the mockmocklocation module inside LSposed app.

5- Switch on the module inside the LSposed app (Tick mark) for the app you want to spoof. For e.g Pokemon go or any app which you want to spoof.

6- Reboot.

This alternative way is basically for A12. Try!

It's simple & easy. Until @fOmey doesn't update the patch for A12.
[Magisk] chenjohnliu:
Just try to find something for mocking location in Android 12 today. And it really works! Thanks for your tutorial!
[Magisk] noobSU:
Happy to hear that it's working in A12 aswell 👍
[Magisk] amk316:
using "Secure flag" only on my s20 works will.

after i updated the firmware "Secure flag" still works, but when any app updates my phone reboot!!!

i disable the model and the updated goes without a problems.
[Magisk] noobSU:
Fresh patch the framework again
[Magisk] noobSU:
I have recently tested it with Android 12 & it's working. Any1 just need mock location feature. This does the job.
[Magisk] victornin:
Does the phone have to be unlocked to be able to do this?

Thanks.
[Magisk] zgfg:
As a result, you get Magisk module, to install to your phone

Hence yes, Bootloader must be unlocked and phone must be rooted with Magisk
[Magisk] victornin:
Can I root a Galaxy s10 plus and a Note 20 ultra US version. I need to be able to fake the gps location for a delivery company I wwork for. Before I was able to do it mocking the location.
[Magisk] zgfg:
You should be able but check here on XDA, under Galaxy S10..., Guides and Questions and/or Answers

Only users with the same phone can give you relevant instructions
[Magisk] wlau7:
working for sony zultra lineage 0S 18.1 with this method.. many thx
[Magisk] kouzelnik3:
Great, it is working well on Lineage OS 18.1 on my Oneplus 6! :)
[Magisk] wongx:
For some reason, Pokemon go doesn't show up in the LSPosed app, but almost everything else does. Any idea why this might be?

Things I tried:

- Reinstalling Pokemon go

- Using Pokemon go app as is - has Error 12 "Failed to detect location" when GPS joystick is on. Error 11 "GPS signal not found" when GPS joystick is off.

Details:

OS: Android 12

Model: Pixel 3

LSPosed Version: 1.6.2 (6152)

Magisk Version: Magisk 23.0

Magisk Modules Installed: MagiskHide Props Config, Riru, Riru - LSPosed, Universal SafetyNet Fix

Magisk Super SU Permissions: No app has it

MagiskHide: Selected everything - incl Pokemon Go, Mock mock locations, Google play services

Magisk SafetyNet: Passing

Google Play Services Version: 21.39.16
[Magisk] kouzelnik3:
For me it is showing. When I install mockmock and open that module via lsposed, it shows me pokemon go app. Did you try this guide?
[Magisk] wongx:
Yes, I followed the guide to install Riru - LSPosed and mockmocklocations. This is what I see.

I also listed some additional details on the versions I installed in my last post.

I assume it may be the Pokemon app detecting it somehow or Google play services potentially.

The video below shows Pokemon Go missing in LSPosed app, showing authentic Pokemon Go app, then Magisk settings:
[Magisk] kouzelnik3:
And what if you try to find that pokemon go in lsposed mock mock location module? Because on that video you haven't tried that function, you are only showing ticked on apps
[Magisk] wongx:
When I search it, it doesn't appear. Specifically, Tap LSPosed module > Modules > Mock Mock Locations > Tap magnified glass to search > Enter in "Pokemon" or "Pokemon go" and nothing shows up.

However, in the Mock Mock Locations App inside LSPosed, if I tap the gear icon to show Whitelist Settings > untick "All Apps" > Tap "Add App" > Scroll to "Pokemon GO" it shows up oddly. But from what I understand, this is to whitelist the app and that's not what we want from what I understand.

FIXED!

Edit: I had to Tap the menu (3 dots) on top right > Select Hide > Untick Games > Pokemon Go shows up > Tick Pokemon Go

@kouzelnik3 Thanks for sticking with me. Hopefully this additional bit of info will help the uninitiated.
[Magisk] kouzelnik3:
Just a little detail - it is Pokémon, not pokemon that I tried also now. I know it might be like I am doing you dumb, but I am trying to figure it from the smallest detail in fact. :)
[Magisk] wongx:
Thank you. I just fixed it because by default all games were hidden. The solution is below. Thanks again for sticking with me as I was about to give up and use Android 10/11.

RESOLVED: Tap the menu (3 dots) on top right > Select "Hide" > Untick "Games" > Pokemon Go shows up > Tick Pokemon Go >Rebooted phone > Everything is working now.

Thanks!
[Magisk] kouzelnik3:
Great and congratulations. I don't know about this function yet, because I am using lsposed first day to be honest. But I am glad you fixed it!

EDIT: It is funny that despite being "hide games" for me ticked on, it was showing pokemon go. Nevermind :D
[Magisk] ptballer:
Hi - Samsung TAB A SM-T385

getting this error message when running the patch

fOmey @ XDA

Patcher version: 0.0.7.4

==> Detected java: 1.8.0_311

==> Dumped framework

==> Processing framework

[ERROR] [9428] 2021/10/31 08:05:53 (utils.c:118 utils_init) Couldn't stat the input file/dir 'bin\services.vdex': No such file or directory

I: Using Apktool 2.6.0 on services.jar

I: Copying assets and libs...

I: Copying unknown files...

I: Copying original files...

!!! ERROR: High volume warning class not found.
[Magisk] ptballer:
fOmey @ XDA

Patcher version: 0.0.7.4

==> Detected java: 1.8.0_311

==> Dumped framework

==> Processing framework

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

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

==> Extracting classes.cdex

!!! ERROR: Failed extracting classes.cdex
[Magisk] melvinJones:
Due to the removal of magisk hide, my game detects root. Is their any way to work around to spoof
[Magisk] mx597turbo:
Revert back to the older version of Magisk v23 and don't update until hide has been implemented again.
[Magisk] zgfg:
MagiskHide will not be implemented again - TJW clearly described his agenda earlier (btw, he works for Google since earlier this year)

However, new Magisk (Canary for now, Stable is still old with MagiskHide) comes with Zygisk+Denylist instead of MagiskHide. Although DenyList is not the same as MagiskHide, usually (if needed, with USNF) it works to pass SafetyNet and hide root from apps

Nevertheless, there are now Magisk spin-offs MagiskCustom and Magisk Alpha, maintained by dofferent developers, otherwise aligned with TJW's latest Github changes, but where you can still use MagiskHide

Monitor discussions in Magisk General thread here on XDA

Edit: MagiskCustom project closed (TG channels and Github deleted) but Magisk Alpha (with the possibility to use MagiskHide instead of DenyList) is still alive
[Magisk] dani971989:
[ask] [help] someone please help me to patch mock location here is my framework+build.prop https://drive.google.com/file/d/1-3AtpeCWdC8jIkcMGf1sAE86H69XzzAC/view?usp=drivesdk
[Magisk] zfk110:
fOmey @ XDA

Patcher version: 0.0.7.3

==> Detected java: 1.8.0_311

==> Dumped framework

==> Processing framework

I: Using Apktool 2.5.0 on services.jar

I: Baksmaling classes.dex...

I: Baksmaling classes2.dex...

I: Copying assets and libs...

I: Copying unknown files...

I: Copying original files...

==> Patched mock location boolean

==> Patched mock providers function

==> Patched high volume warning function

I: Using Apktool 2.5.0

I: Checking whether sources has changed...

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

I: Checking whether sources has changed...

I: Smaling smali_classes2 folder into classes2.dex...

I: Building apk file...

I: Copying unknown files/dir...

I: Built apk...

W: Could not find resources

on the bottom it saying Magisk template download 100%, after that it won't do anything.
[Magisk] Phantom Thief:
Restart smalipatcher and try again
[Magisk] zfk110:
I did three four times, I used another PC, and it worked
[Magisk] azteria2000:
Hello I got this issue, how to fix this?

Yesterday I can execute smali patcher normally.

Latest Java

Latest Net Framework

ADB permission on the phone
[Magisk] umid2025:
Hi! Could you write down your steps and what apps or modules are you using? Because I can't get it work in Android 11 with Samsung A52.

I used the ADB method and it went well. But then when I use FakeGPS Route app (v 1.6.1) there are 3 spoofing modes:

1. Expert

2. Android 10 FusedLocationAPI

3. Smali Patcher Mode.

First is not available and the Smali Patcher mode doesn't work. The only method that is working is the second (FusedLocationAPI). By working I mean that whenever I put a new spoofed location in an app, google maps also shows that new set location. In the third method it shows my original location all the time. But this FakeGPS Route app requires setting a mock location. Should I be worried that developers may find out that I'm spoofing?
[Magisk] pogofanatic:
Hi there, i am trying to create a patcher but it encountered the following error messages below. I have tried looking in the threads but did not see a solution to this. Also tried turning off firewall and antivirus but it did not work.

Appreciate any expert help on what should i do next?

I: Copying unknown files/dir...

I: Built apk...

fatal: exception: org.jf.dexlib2.util.DexUtil$UnsupportedFile: Dex version 039 is not supported

==> Merged patch: sigspoof_7.0-9.0

fatal: exception: org.jf.dexlib2.util.DexUtil$UnsupportedFile: Dex version 039 is not supported

==> Merged patch: sigspoof_core

==> Magisk template download complete

==> Generated magisk module zip file

*** Complete ***
[Magisk] Fre$h:
I can't say what's going bad on your device as you own a Samsung one. What can I say is that FakeGPS Route isn't really still recommanded for PoGO playing rn. You should try GPSJoystick from THe AppNinjas which aldways worked for me since many years.

Yes I have to set it as mockedlocation app in developpers options, but the purpose of Smalipatch is to hide it from being " readable" by other apps like Niantic does.
[Magisk] vanbinsbergen:
I'm also getting this error (when trying to patch spoofing):

fatal: exception: org.jf.dexlib2.util.DexUtil$UnsupportedFile: Dex version 039 is not supported

Running fresh install of lineage 18.1 , magisc 23.0 and twrp 3.5 on a samsung a70fn.

It was working before i upgraded from lineage 17
[Magisk] vanbinsbergen:
Thanks guys,

You have to follow this guide since android 11.

https://xdaforums.com/t/signature-spoofing-on-unsuported-android-11-r-roms.4214143/

It work's linke a charm
[Magisk] umid2025:
Finally I could make it work. I used both GPS Joystick and FakeGPS Route. However, I encountered different problem now. The thing is, I am not using Smali patcher for PokemonGo or something. I am using to fake the GPS location for delivery app. And one program detects the software that is listen in Mock Locations. Whenever I open the app, it lists these programs (GPS Joystick, Fake GPS Route or even with built-in privacy mode by creating a clone with random name).

So, the question is, is there a way to remove these apps from Mock Location Providers list (in developer settings) but make them work as usual because Smali Patcher (second patch option) can make it work without giving mock permission to apps?
[Magisk] vintotale:
Try executing Smalipatcher from a location with a short name (like C:\smali).
[Magisk] peter7910162:
Try a new way?

No need to use Smali Patcher

Mock Hider for LSPosed​

Mock Hider for LSPosed-Pokémon GO-Android 遊戲交流-Android 台灣中文網 - 手機版 - Powered by Discuz!
[Magisk] Imaphiwe:
worked like a charm thank you very much for creating this...
[Magisk] saidguliev293:
Hello

fOmey @ XDA

Patcher version: 0.0.7.4

==> Binary download complete

==> Unpacked binarys

==> Detected java: 1.8.0_311

==> Dumped framework

==> Processing framework

Error: Unable to access jarfile bin\apktool.jar

Please help

What to do???
[Magisk] jaka45:
Dear fomey..can you help me..iam always fail to make your module in my devices poco X3 pro vayu..here my framework..https://drive.google.com/file/d/1-Cjk65hMrFT6ke5ex53pcpcwnQbW-id3/view?usp=drivesdk

thanks before..
[Magisk] Olorin92:
Has anyone had any luck getting this to work with a Pixel 6 or Pixel 6 Pro? I'm getting a 12 error code when running GPS Joystick with the smalipatcher module installed and activated (using Magisk Canary as that is the only one available for proper root on P6/P6 Pro).

As it stands I'm not sure if Smali Patcher supports Zygisk (which is what modules run under in the current Magisk Canary) and if this is the problem or if this shouldn't matter. For what it's worth, Google Maps seemed to correctly detect my location, it was just Pokemon Go that gave me the location error (although the in game map did show the correct location and I could move around).
[Magisk] cheesesticksspirit:
Hi,

I have problem installing SmaliPatcher on my Moto g7 Power with LineageOS 18.1 + Magisk 23.0.

Options checked in SmaliPatcher: Mock locations, Mock providers, High volume warning.

zip package is generated with no error, just one warning: "W: Could not find resources"

I tried instaling package with LineageOS recover sideload option, with following error:

Also tried installing via twrp with error:

I did the same think with Redmi 4X and RevangeOS last week and all went great with no problem, Wanted to go with LineageOS this time, as i found it more stable.

Any help will be appreciated :)
[Magisk] Olorin92:
OK just an update on this - I think the module hadn't actually finished installing when I first posted this. After restarting, I got a boot loop, and subsequent tries regenerate and re-install smali patcher keep resulting in boot loops for me.

Is stock Android 12 supported?
[Magisk] shoey63:
Installing modules through Twrp is not reliable on all devices. Do it through Magisk instead.

Maybe not at this stage, but if it is hiding mock locations you are after, you can try Magisk canary with Zygisk + Lsposed (Zygisk version) + mock mock locations xposed module.
[Magisk] cheesesticksspirit:
Thanks, it worked!
[Magisk] zgfg:
Actually, it's not about 'reliability' but the fact that certain installation scripts may require running Android and/or Magisk environment (which is not the case if phone is booted to TWRP instead).

It's also clearly explained that modules should be installed through Magisk in the Magisk Github documentation

(For some 'old' modules the installation through TWRP might still work, but no guarantee)
[Magisk] Olorin92:
Thanks for the suggestion! This worked so far as I could get the location recognized in game, however shortly after I got the message telling me my device isn't supported. It seems I had to remove Pokemon Go from the deny list otherwise the mock mock location module didn't seem to work. Is there any way around this?

Obviously it goes without saying I am using the canary Magisk without magiskhide
[Magisk] shoey63:
Lsposed modules don't work on apps in the deny list.

If you are passing safety net you shouldn't need to have Pokemon go there.
[Magisk] Olorin92:
I am passing safetynet - but pokemon still seems to detect root if I remove it from the denylist. Maybe there's something else it's picking up?

EDIT: seems when I launch the game it is still detecting root, despite me passing safetynet. I haven't got any Magisk related files in storage either that pokemon could be seeing - any ideas?
[Magisk] shoey63:
Probably time to consult your device forums/ Reddit etc.

A bit OT here, and I don't have pixel 6 (yet)
[Magisk] Olorin92:
I might take a look at the AOSP for Android 12 today and see if I can notice any breaking changes for the mock locations flag modification that smali patcher does.

Theoretically I should be able to modify the Java source file for the location manager service (or whichever class it is that handles the mock location flag), rebuild it, then have a working services.jar at the end that I can replace the smali patcher generated one with
[Magisk] darapper1:
Dear Sir

I have Android 11 MIUI 12.5.6 EU stable rom on Redmi K20 Pro. whenever i tried to generate smali pather 7.4 some error is shown (image inserted below) but module is created successfully. i want to know is this error is importnat or I can leave it or how to solve this error. please help me out.