yashsingh1/xdaforums huggingface dataset:
[Magisk] danilo_scala:
. this is a great work. thanks friend.. keep this. in my Xperia z5 Premium Android 7.1.1 sometimes back real location. If i move fake gps to system i need put mock location? Playing Harry Potter Wizard Unite,
[Magisk] Dorian57600:
help me

could someone help me to patch my service.jar file because i have the error target jar must be deodexed and fulmics deodexed hangs at boot.oat i attach you my link again thanks in advance https://drive.google.com/file/d/1Y9qz2xTWRmUS1J_v4933Vv62M9-kkh5e/view?usp=sharing
[Magisk] pritchfest:
Great work! one quick question:

Is there a way to cut off the real gps location data feed from the gps chip, and only use the mock location feed instead? I want only mock location data going through the fused location service (no real data). This is key to safely spoof.
[Magisk] howdeedodat:
your service jar still odex u can't patch odex file i guess
[Magisk] runningslow:
I have used this patcher on two different devices for mock locations. One is a Galaxy S5 (G900T) with LOS 15.1 and the other is my LG V20 (H918) on LOS16. I don't know if its just due to Pie or the highly experimental status of the LOS16 on the V20, but I find the patch to be much more stable on the S5 with Oreo.

I am able to spoof reliably on the S5 and my joystick app works fine. The only trouble I have is due to limited system resources of the phone, but that's nothing to do with this patch.

On the V20... everything starts out fine. I can spoof and the joystick works fine, although sometimes there is a bit of lag in the response time. However, after a little while, I start getting "System UI isn't responding" messages and then spoofing no longer reliably responds in game. I can go to the spoofing app and see my location change, but in game there is usually no change in position.

When I first ran the patcher, it would hang at a certain point in the process (I forget exactly where). So, I would then CTRL+C in the command prompt window, but then the patcher would complete without an error message and give me a patch module. I first thought that patch was the reason for the unstable behavior. So then I tried to manually extract my services.jar file from the phone and applied the patch to that. The patcher finished without incident, but the supplied patch gives me the same behavior. I have other magisk modules installed on my phone, but I disabled them all before trying to run the patcher.

Any thoughts?
[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.
[Magisk] jamesfitzes:
excuse the noob question but do I need this module or can I just convert a spoof GPS location into a system app? What would be the benefits of this module over that?

Also is this fully compatible with Pie?

Thanks
[Magisk] ~brunozvn:
Can someone help?

!!! ERROR: Base directory not found.
[Magisk] fOmey:
CHANGELOG ::

5.0

Adapted backend functions to support multi-file patches.

Require at least one patch to be enabled before proceeding.

Fix download percentage status updates.

Popup explorer window to output directory on completion.

Modified signature verification patch (android P).

When browsing for a JAR only display compatible patches (preparation for multi-file patches, services.jar must be named "services.jar" from this point onward for verification purposes.. otherwise no patches will be displayed).

New patch - disable high volume warning popup.. this has annoyed me so much recently! I was only able to test this on android P, if you find the patch does not work on your device please supply a deodexed services.jar so I can investigate further.

I've modified ALOT on the backend, I'm expecting some issues to popup.. please make sure your using virgin unpatched services.jar before reporting any issues. If you're using ADB method, simply disable the smali patcher module & reboot before generating a new one.
[Magisk] whalesplaho:
Check here... https://xdaforums.com/showpost.php?p=79618429&postcount=2970
[Magisk] wurstherpes:
I can not find the download link. :(
[Magisk] whalesplaho:
Check first post bro....
[Magisk] wurstherpes:
No i can't find in pc and handy too.
[Magisk] whalesplaho:
Its there bro..... But i have attached below for yhu!

I hope im not violating thread rules!
[Magisk] wurstherpes:
Thank you. I thought it was a finished module.
[Magisk] A30NI_Y:
Hi Fomey,

Just an update.

Tried your latest patcher on OnePlus6T on android P, never had any issue with all your patchers before but this time it didn't work properly running on windows10pro.

1) If High volume warning is selected, the patcher just closes by itself, have tried a few times same result.

2) Patcher will only run if unticked High volume warning patch, patcher showed Magisk Template Download: 100%, however in the actual folder still showing adb, apk, bin, tmp folders.
[Magisk] whalesplaho:
Nope... Yhu ll generate tha finished module with your services.jar
[Magisk] danilo_scala:
signature spoofing? couldnot find ressources.
[Magisk] hhwong:
would this work on android 9.0?
[Magisk] ~brunozvn:
so I've seen this, but nothing appears on the screen.
[Magisk] fOmey:
Can you upload deodexed services.jar, I'll take a look.

Settings -> Developer options -> Revoke USB debugging authorisations.
[Magisk] howdeedodat:
thanks for update gonna testing asap n give u the report

---------- Post added at 11:28 AM ---------- Previous post was at 10:35 AM ----------

tested on 3 different service jar MM, NG, P. and it works flawlessly ... once again thanks for the update
[Magisk] Fredy24:
Can I make the smali patcher module from the rom stock ZenFone Max Pro (ZB602KL) 9.0 Pie ?

And how ?
[Magisk] whalesplaho:
Steps is on first post.....
[Magisk] Fre$h:
Ty for your hard work here [MENTION=1620550]fOmey[/MENTION] : a triple Ty for :

developping new stuff in it

constantly fix bugs in

permanently support user with it

I add another TY freely, it's for those guys that I see asking you stuff with no words, not even a please or a thanks ... like if you were only there for their own needs

BTW, when you say : "please make sure your using virgin unpatched services.jar" are we agree that, as a magisk module trick, if we uninstall the older module, and then launching a new session of your tool, it will create a new patched based on a "virgin" services.jar isn't it ?
[Magisk] Driver_super:
:silly: Let me try this COMPLETED ERROR :silly:

i got an issue, it never been before.

Apps logs shown

Patcher Version : 0049
==> detected java : 1.8.0_202 (installed)
I: using apktool 2.4.0
I: baksmaling classes.dex
I: copying assets and libs
I: copying unknown files
I: copying original files
==> patched mock boolean
==> patched mock boolean
==> patched secure flag function
==> patched secure flag boolean
==> patched secure capture function
==> patched signature verification function
==> patched signature verification function
Error occurred during initialization of VM
!!! ERROR: compile failed - service.jar not found.
==> magisk template download complete
==> generated magisk module zip file
*** complete ***

1. Try an exist V49 on my windows, error shown are :

- error occurred during initialization of VM (on some service.jar taken from different ROM, sometime is after DETECTED JAVA)

- error occurred .... of VM, target must be deodexed

- !!! ERROR: compile failed - service.jar not found

2. Try update newer V50. error shown exact i wrote above (code).

fyi

i use same deodexer tool it Named BatchApktoolV371, to deodexed 3 different OREO ROM.

sorry my bad english

EDiT:

After many try, i think something when wrong with your script, string, etc. i don't realy understand about developing.

Why?!

There 6 patch option :

MockLocation

SecureFlag

SignatureVerification

SignatureSpoofing

MagiskReboot (Galaxy S10)

HighVolume

Actualy, i need only this patch

MockLocation

SecureFlag

SignatureVerification

When i tick MockLoct+Volume (it ticked by default), i don't face any apps progress and proccess issues. its also happen when i tick MockLoct+SignatureSpoof, only.

But..

When i tick SecureFlag and or SignatureVerification with MockLoct patch, i got an ERROR occurred during initialization of VM (also,

!!! ERROR: compile failed - service.jar not found.)

Storage Consumtion (after Module generated) are the same as older apps version, around 3Mb up to 4Mb.
[Magisk] Fredy24:
Via ADB PATCH stop on 20% framework-res.apk
[Magisk] fOmey:
Boot into recovery mode, mount /system & run the patcher.. probably a permission issue.

Target services.jar must be named exactly "services.jar" on version 5.0 and above..

Your error "Error occurred during initialization of VM" probably because your running out of RAM.. or using a outdated version of java? Follow the instructions on the second post under the title "UNSUPPORTED MAJOR.MINOR VERSION XX.X".
[Magisk] Fredy24:
#Edit

---------- Post added at 02:38 PM ---------- Previous post was at 02:36 PM ----------

Of course I've done that

Then I tried to open smali patcher with run as administrator

I tried again using ADB PATCH and what happened was the application hang/no working

I also have to restart the computer
[Magisk] whalesplaho:
I dnt know why tho... Did yhu check tha cable/try another cable? I do copy framework folder and build.prop manually out to tha Smalipatcher folder.
[Magisk] fOmey:
Of course you've done that? Oh my mistake... unfortunately I can't read minds, so from this point onward I'll need you to mention what you have done to try fix your problem in your messages so I'm aware.

Open a cmd window, navigate to the "bin" directory and type the following: "adb pull /system/framework"

See if you get stuck in the same spot.
[Magisk] danilo_scala:
I have this problem,but if stop (close)adb patch, and try one more or two times work. 100%, but could not find ressources all time.
[Magisk] camiloxt:
eso es ovio ya indique que lo e hecho en varios teléfonos se como se hace pero en algunos telefonos sale ese mensaje como si no lo reconociera instalado drivers y todo aq se debe

Auto Translate:-
[Magisk] howdeedodat:
i think the issue is on ur computer... u can send me ur service jar n let me try patch for u if u want...
[Magisk] Fredy24:
My Rom "ODEX"
[Magisk] gmanos06:
It seems this module is incompatible with LG V20 roms. I also use an LG G4 running a modded rom of LG V20, in which the module is intalled normally, doing exactly what i need to do, but I get error 12 in PoGo, which means the module is NOT functioning. Can I provide you with any logs to seem what's wrong in there?
[Magisk] SacredDeviL666:
Hi,

Quick reminder regarding non-english posts.

Thanks

SacredDeviL666.
[Magisk] tbbttbbt:
fOmey @ XDA
Patcher Version: 0.0.5.0
==> Detected Java: 1.8.0_181
==> Dumped framework
[INFO] Processing 1 file(s) from bin\services.vdex
[INFO] 1 out of 1 Vdex files have been processed
==> Extracted classes.dex
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
==> Patched secure flag function
==> Patched secure capture function
==> Patched secure capture function
==> Patched high volume warning function
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...
W: Could not find resources
==> Magisk template download complete
==> Generated magisk module zip file
*** Complete ***

Patch for secure flag did not work at least...

"W: Could not find resources" - Does this mean sth important went wrong?

I also saw a cmd.exe closing very fast, possibly in an error

Is there a possibility for adding an option that keeps the cmd windows open

(by adding a "pause") as an option in the program

EDIT: NEVER MIND. Still wondering what that error was but it's not too important

I was testing with an app that clearly is smarter than other with screenshot protection (well maybe it's also more protected bc of widevine protection being from google and all) and that lead to a false assumption

On the other hand: there's an Xposed module that works for Netflix apparently

Patch working as expected

MANY MANY THANKS
[Magisk] fOmey:
That's fine.. open CMD, navigate to the "bin" directory (patcher should of created this folder) and type "adb.exe pull /system/framework".

Sure post your magisk log.. we can verify if the module is being loaded on startup.

W: Could not find resources is a harmless warning...
[Magisk] thinhnv:
I'm using miui masik x3.0 android 8.1.0 on redmi note 5 pro. I used smali patcher to disable signature verification and added 'signature spoofing' But after installed by Magisk. I still cannot install 'Unsgined apk' . I have a unsgined apk need to be installed. Please help me
[Magisk] howdeedodat:
yeahi found the issue too so im not tick the disable signature verification ... n it work flawlessly what u need is patch that option via lucky patcher,,, n it work just fine
[Magisk] xcal_tau:
[MENTION=1620550]fOmey[/MENTION] could you kindly patch mine? Always get magisk template download error.good connection here. Thanks
[Magisk] thinhnv:
I tried. lucky patcher not working with MIUI.
[Magisk] A30NI_Y:
Just helping out here.

Every options ticked except Magisk reboot (Galaxy S10).
[Magisk] dave1205:
I've followed the steps carefully and it all worked fine for one session but now I've tried and pogo says device or OS is unsupported. I have everything hidden in magisk and it worked fine the first run. I don't understand why it's not working now. Any advice?
[Magisk] thinhnv:
I saw in MIUI, they have 'framework.jar' and 'framework.jar' has check signature also. So I attached all files for MIUI. Please help me to disable signature verification to install unsigned apk.

http://www.mediafire.com/file/dnq558dxvgrek6d/adb_-_MIUI.zip/file
[Magisk] howdeedodat:
here you go
[Magisk] howdeedodat:
try patch manually from luckypatcher for disabling signature, it works for me

---------- Post added at 02:42 AM ---------- Previous post was at 02:34 AM ----------

u sure ? m using 4 miui redmi 3 pro based on miui 9 mi3w based on miui 8 redmi 5 plus based on miui 10 miA1 based on miui 10 and i used lucky patcher to patch disable signature for all those phone i mentioned... did u aware how to patch disable signature from lucky patcher ?
[Magisk] jptsetung:
!!! ERROR: Base directory not found.

I've followed the instructions carefully, I have a samsung s5 neo with Magisk installed.

When I presse the "ADB Patch" button I get this error almost immediately :

fOmey @ XDA
Patcher Version: 0.0.5.0
==> Detected Java: 1.8.0_211
==> Dumped framework
!!! ERROR: Base directory not found.

Then I tried the second method, I copied the file /system/frameworks/serices.jar ( uploaded the file here if you want to check it : https:// file.io / 41DSJt ) from my phone to my PC, and I selected this jar file in SmaliPatcher. Then I press "PATCH JAR" and I get this error, a .zip module is created by it doesn't have location mocking :

==> 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 ***

I have no idea how to solve this.
[Magisk] fOmey:
ADB method: You probably didn't confirm the USB debugging popup on your phone -> !!! ERROR: Base directory not found.

Target method: The services.jar your browsing for is not deodexed -> !!! ERROR: Mock location class not found.
[Magisk] jptsetung:
Yep , thx, sorry silly mistake...
[Magisk] gilbertex:
Patch services.jar with alternative method

Patcher return ''!!! ERROR: Signature verification utils class not found.''

and module only 6KB
[Magisk] howdeedodat:
i have the same issue i try to reboot my pc n try opened again n untick the signature verification patch n it back to normal
[Magisk] fOmey:
What android version are you guys running? Can you upload deodexed services.jar so I can take a look.

EDIT: Never mind, found the problem.

CHANGELOG ::

5.1

Removed signature verification "class not found" error report, false positive on legacy android versions.
[Magisk] dani971989:
HELP

my phone got bootloop after process smali patcher coz my bad signal now i'm flash again my phone, please help me https://drive.google.com/file/d/1OGkb1bnLo1EYcrUTcVExZzL8IvWitwj6/view?usp=drivesdk
[Magisk] whalesplaho:
Yhu could have just flash magisk uninstaller instead bro. Wish i could help now buh not home yet, probably someone might beat me to it.
[Magisk] manhb01:
Anyone used this on Pixel 2 XL with Android Pie & latest security patch? I've just tried and got Failed to detect location error in Pokemon Go. Please help!
[Magisk] mercifool:
Hi . i am a beginner. i use previous version of smali and didnt need to deodex service.jar.

I am wondering if i can skip that part with the 5.1, because i dont understand what service.jar is or where to obtain it from.
[Magisk] whalesplaho:
Check oP.... Odex files still allowed!
[Magisk] Yooks:
After updating my phone to android 9 i can no longer get the disable flag_secure patch to work. Even though magisk has the module installed, i still cant take screenshots within netflix. Im using a oneplus 6 if anyone else has managed to solve this isssue.
[Magisk] fOmey:
Share the generated module.. I'll take a look.
[Magisk] Yooks:
I sent you a PM since it wont allow me to send links or attachments for some reason
[Magisk] fOmey:
Thanks for that.

Give this a try, backup first (experimental - untested):
[Magisk] Yooks:
Just tested by trying to take a screenshot in netflix. It still won't let me.

I'm using a One Plus 6 on Oxygen OS 9.0.6 if that helps.

Thank you.
[Magisk] fOmey:
I just tested it on netflix, it seems to work fine for me.

With the module disabled I get a popup "Can't take screenshot due to security policy."... when I enable the module I can take screenshots just fine.

This is on the login screen, as I don't have a active netflix account to test further..

Not sure why it's not working on your phone.
[Magisk] gmanos06:
Lg G4 H815 incobatibility

Hi, this project is really awesome, thank you for this great job.

Unfortunately it seems that in the LG phones (H815 with lg v20 modded rom installed) this patcher is not compatible, since the installed magisk module is not funtioning or making the phone to bootloop, depending on the patches applied.

I have uploaded my deodexed rom's services.jar plus the generated module for the first patch only, as well as a log file from magisk.

Could you take a look to see what's wrong with it, please?
[Magisk] fOmey:
Can you try narrow down what patch is causing the boot loop? Apply one patch at a time and test.

Most likely signature spoofing is causing it.
[Magisk] azxn:
Do i only have to remove the module from magisk if i want to uninstall this? Or do i need to connect to computer again?
[Magisk] gmanos06:
Signature spoofing does cause it indeed.

Also while applying mock location patch, everything seems to be ok. Phone boots, module seems to be active but it s not working.
[Magisk] dani971989:
dear fOmey
[Magisk] 420SYN:
Will this work on Android Q?
[Magisk] Yooks:
I tried a complete fresh OP6 OTA 9.0.6 flash and i still can't get the flag_secure patch to work. Don't know what is wrong with my phone. I guess I'll just downgrade back to Oreo for now. Thanks for your time and assistance!
[Magisk] fOmey:
Try v5.2 before you go ahead with that.
[Magisk] manhb01:
Does this work if I directly copy the files from generated module into system/framework instead of using Magisk? It worked on Android 7 but I tried on Android 9 and failed. If it still works that way what are the changes that I missed?

Thank you for your great work!
[Magisk] xM45T3R:
Nothing is working on Android 9.0

Im on Havoc 2.6 on the LG G6 H872 and this is the log:

But still I can't take photos of netflix not in the login screen and the "mocking" doesn't work also, I keep bugging out back and forward to my original location just by that
[Magisk] xM45T3R:
here is my generated patch btw
[Magisk] starbucks2010:
Hello Guys,

I patched my services.jar with all options and the secure screen shots works fine but the reboot menu didn't changed. It should look the same as original but the reboot button will reboot the phone directly to the rooted system or there should be a different reboot menu. I have a S10+.

I got this error also (v0.0.5.2):

==> Merged patch: sigspoof_7.0-9.0

fatal: exception: lanchon.multidexlib2.DuplicateTypeException: Lcom/android/server/SystemServer$1;

==> Merged patch: sigspoof_core

==> Magisk template download complete

==> Generated magisk module zip file

*** Complete ***

Thank you.
[Magisk] fOmey:
Sure will, just make sure you remove any relevant odex/vdex/cdex files also.. please make sure you have a backup before messing with this.

If you need more advice, search the thread this has been discussed already.

Can't see secure flag patch being applied in your log at all. so that explains why you can't take screenshots.

As for mock locations, try a different spoofer.. this has been discussed many many times on this thread, if you need more advice just run a search.

No visual changes to the power menu.. however the reboot option will boot back into the rooted system.

As for the error... something isn't playing nice. Are you patching a stock rom/services.jar?
[Magisk] xM45T3R:
Well yeah it worked but the spoofer still isn't working ima search for another and try
[Magisk] starbucks2010:
Hi,

Yes, stock deodexed services.jar (attached).

Thanks.
[Magisk] Driver_super:
Thanks for help

Thanks offering a help (u got ur button)

Also ur button devs

=====

it happen cause 'accidentally i reset VM allocating' (after flashback with 4W1H why does my windows slowed down)

may it weird, i do always allocating 4X bigger then physical RAM installed

about tools and files requirements, however i try my best to get latest version
[Magisk] dani971989:
[MENTION=1620550]fOmey[/MENTION] can patch my service jar, i got problem my service jar if only saying rom is odex ...i use custom rom lenovo vibe k5 plus https://drive.google.com/file/d/1OGkb1bnLo1EYcrUTcVExZzL8IvWitwj6/view?usp=drivesdk
[Magisk] fOmey:
Can't reproduce, zero errors here.

fOmey @ XDA
Patcher version: 0.0.5.2
==> Detected java: 1.8.0_211
I: Using Apktool 2.4.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 location boolean
==> Patched secure flag function
==> Patched secure controller function
==> Patched secure capture function
==> Patched secure capture function
==> Patched signature verification function
==> Patched signature verification util function
==> Patched magisk reboot function
==> Patched magisk reboot function
==> Patched high volume warning function
I: Using Apktool 2.4.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...
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
==> Generated magisk module zip file
*** Complete ***
[Magisk] A30NI_Y:
All option selected except reboot option
[Magisk] dani971989:
i got problem my phone always saying odex rom, can u patch my service jar bro
[Magisk] A30NI_Y:
I already did that. The file is the patched file which you need to flash it with Magisk.