yashsingh1/xdaforums huggingface dataset:
[Magisk] Kiwi8:
I'm stuck on "Executing prepatch checks".

Does it take very long to do the checks? How long should I be waiting before concluding that it's stuck?
[Magisk] negroxxx:
When I jump to the real location, what I do is restart the cell phone and start the module again. For now this works for me in 5.8.

If you need to experiment with xposed let me know I have android 9 and xposed. I could try something you tell me. thank you very much for your work
[Magisk] fOmey:
Hmm, upload the adb directory to google drive and I'll take a look.

No harm trying another cable if you have one around.

Shouldn't take long at all, check your phone.. might be a ADB popup you need to accept.
[Magisk] Fre$h:
Nope! You have to disable the 0.0.5.8 module first on Magisk, then reboot and restart to patch with 0.0.6.0
[Magisk] Kiwi8:
Hmmmm interesting.

I was just trying to patch my services.jar file. Isn't it the case that I should copy out services.jar file from the phone to the pc and do the patching on the PC?

The phone isn't connected at the point of the patching. Should I do so?
[Magisk] negroxxx:
[MENTION=1620550]fOmey[/MENTION] have you tried the xposed DIWA module to hide simulated location?
[Magisk] fOmey:
Following the instructions in post 1.. adb method.

I haven't tested any xposed modules.
[Magisk] phoberus:
Just for your information:

I'm using lineage os 16 (android 9) with google play services 19.2.75, smali patcher 5.8 and the gps joystick app without a problem on my oneplus x and my oneplus 3T.
[Magisk] Kiwi8:
Oh, actually I do not want to install root nor install Magisk. My phone is unrooted, but it has TWRP. I just want to patch the files from the phone and copy it back to the phone. :D
[Magisk] shoey63:
I haven't updated Smali patcher since 4.9 or so (not broken for me so didn't try to fix it)

My setup

- Android 9 (Sony)

- Adb method in recovery or deodex services.jar with [MENTION=5787964]SuperR.[/MENTION]'s kitchen.

- GPS joystick with all settings disabled

- Latest google play services

- Bluetooth and WiFi scanning enabled (ie. High accuracy)

- Latest Magisk Canary (now Beta) repackaged with random name and Pogo hidden in Magisk hide.

No rubber banding issues whatsoever.
[Magisk] Aar_on:
I tried patching the framework files on Syberian OS OnePlus 6 and I'm getting:

fOmey @ XDA

Patcher version: 0.0.6.0

==> Detected java: 1.8.0_221

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

I'm guessing they do some non-standard stuff with their services.jar? https://github.com/syberia-project/platform_frameworks_base/

https://fil.email/1Ecg0G3k <- Framework folder zip if someone wants to verify. I was able to patch fine with AOSiP, LiquidSmooth.
[Magisk] Ijp1999:
https://drive.google.com/drive/folders/1y2SkB9tTLE6_YzsrseGpt8TEnEfz-SsK?usp=sharing

Patcher version: 0.0.6.0

==> Binary download complete

==> Unpacked binarys

==> Detected java: 1.8.0_221

==> Dumped framework

==> Processing framework

==> Detected API: 24

==> Deodexed services.odex

==> Patched mock location boolean

==> Patched mock location boolean

==> Patched high volume warning function

Generating classes..

Anyone mind looking to see what might be wrong? Tried multiple times and it won't get past this.
[Magisk] cristianodk:
the application stays in generation class, it doesn't end in idle anymore. I tested on moto z play androi 6.0.1 and android 7.0

How long should I wait, since I've been waiting for more than 10 minutes

---------- Post added at 12:05 PM ---------- Previous post was at 11:26 AM ----------

additionally I did the test by downloading the google play services and it doesn't work either stays in generating class

probe with version 0.0.5.8 and 0.0.6.0
[Magisk] Dr Droid:
I also am being stuck at the "Generating Classes..."

Any advice?
[Magisk] fOmey:
Can you show me a screenshot of the files in the "bin" directory.

Can't reproduce this, used the files you supplied and it worked fine.

Try this, tons of error reporting & verification added... remove the "bin" directory also, let the patcher re-download the binary files:
[Magisk] Ijp1999:
Just tested it and it worked! Thanks! I really appreciate the assistance.
[Magisk] fOmey:
What did you do exactly so I can understand.. I didn't change anything in terms of patching, just added some more error checking.
[Magisk] Ijp1999:
https://prnt.sc/p8ghlg

Exact same thing as before. Plugged in my phone after it went idle, clicked patch, and got my file. I added a link to the screenshot of the bin from the 6.0 version. If you need anything in particular, just lmk
[Magisk] kountry83:
[MENTION=1620550]fOmey[/MENTION]

I'm getting this on Razer Phone 2 Android Pie, stock Rooted.

Patcher version: 0.0.6.0

==> Detected java: 1.8.0_221

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

Thank you
[Magisk] anndrenaline:
Where can i find the .exe file as stated in the instructions? Or can i just flash the zip file above?
[Magisk] A30NI_Y:
Unzip the patcher, you'll get the exe file
[Magisk] cmstew:
Fascinating! Since sometime last year I haven't been able to leave wifi/Bluetooth scanning and location accuracy turned on. I think it broke for me sometime during the last updated of android 8.

So you've got wifi/Bluetooth scanning on and location accuracy too?
[Magisk] fOmey:
Can you show me a screenshot of all the files in the "bin" folder.

Careful, that can cause some rubberbanding.
[Magisk] kountry83:
[MENTION=1620550]fOmey[/MENTION]

The bin files on the computer or phone?

This is from the computer with version 6.1 still.
[Magisk] cmstew:
Haha I know. I guess I forgot to quote the original post But I was saying it's fascinating that he says he doesn't get any rubber banding with all of those things enabled.
[Magisk] fOmey:
PC, you should find the bin folder near the patcher .exe.
[Magisk] kountry83:
This is from version 6.1. Sorry if the picture it not that good.
[Magisk] fOmey:
You have accepted the usb debugging popup & checked always allow?
[Magisk] kountry83:
I haven't got that pop up since I first got the phone. Since then I only got that one time and accepted it. ADB works but when I type ADB devices it shows my device number with unauthorized.
[Magisk] fOmey:
Unauthorised? That's not what we want.

Go to settings -> developer options -> revoke usb debugging authorisations.. disconnect and reconnect your phone.

Look out for a popup, make sure you tick "always allow from this computer".. try patching again.

ADB devices should look something like this:

C:\Users\User1>adb devices
List of devices attached
RF2M22XA5L1 device
[Magisk] kountry83:
Yea I've tried that and also tried deleting the ADB keys from computer and phone to re-establish RSA keys. Can't get it to pop up. Grrrr
[Magisk] fOmey:
Try running any adb command.. eg: "adb shell".

Mine pops right back up as soon as I reconnect my phone to my PC..
[Magisk] kountry83:
I get this:

Error: device unauthorized.

This ADB server's $ADB_VENDOR_KEYS is not set.
[Magisk] fOmey:
No idea, google it.. you need to fix that before you can progress.

You've inspired this new check before proceeding:
[Magisk] walking2015:
I have a problem, I do everything correctly, but my gps always goes back to the current location, I did all the processes I saw in this whole post to try to solve, nothing solves, tested all fake gps apps including the joystick gps, no result , deactivated location accuracy, deactivated find on my device, put only gps mode on the device, nothing solved, i used its spoofer app on android 8.1, i can't install it on android 9 it automatically closes with bugs app stopped, can help me I appreciate ...

My phone : Redmi note 6 pro 9.0pie

thanks.
[Magisk] kountry83:
Fixed it and now working. I had to copy the adbkey.pub from computer to /data/misc/ADB and rename it to adb_keys. Fixing to flash magisk zip your program created. Thanks a bunch for the help.
[Magisk] fOmey:
Nice one, good to hear you got it sorted.
[Magisk] Kiwi8:
Thank you for being patient on a noob like me.

So far I have followed the steps, and successfully copied the patched files back to the phone. Rebooted it, so far so good, without rubberbanding issues.

Thank you again.
[Magisk] zzzhead:
Secure flag does not work, using latest patcher v6.2.

Secure Apps still prevents phone from taking screenshots

Appreciate if any tech person is able to take a look
[Magisk] Scarlet D.:
Actually I thought you clearly said just the services.jar from the "adb" folder XD

Ok, So I did boot to twrp recovery mode with system being mounted (went to the mount button and checked system), not sure if there is another way around :laugh:. Anyway, while I did that, the same problem persisted, so permissions may not be the case here. :rolleyes:
[Magisk] cristianodk:
Thanks, you already make the file

v0.0.6.2
[Magisk] xigma20:
v0.0.6.2 has an error in the GPS, it returns me to my exact location every so often
[Magisk] wurstherpes:
Me too.
[Magisk] DeniTx:
Mine patches successfully as well but when I flash it via magisk it goes in bootloop, Its been driving me crazy already
[Magisk] fOmey:
Although your bootlooping even if you only patch just mock locations right ?
[Magisk] DeniTx:
Yes I did patch all 4 separately and still gets stuck in bootloop.

This is what I have if it helps to understand better.
[Magisk] fOmey:
Yeah your issue is different to Eng.Ramans...
[Magisk] Eng.Raman:
My deodex unpatched services.jar
[Magisk] fOmey:
Can't find any issues... can you try patch with just signature spoofing see if it causes a boot loop... you sure you were bootlooping, maybe just a long boot up ?
[Magisk] DeniTx:
I just did a clean restore and wipe to factory settings, and also updated to latest version of android so i am hoping the patch will work so far have had bad luck with both Note 4 and Note 5, but there has to be a way to get this to work. One of the apps i use its new update now is able to check xposed framework modules like hide mock location, and some other modules for location, i am trying to get this services patch to work i feel like i am in such big battle with this app because they are able to know real location somehow.

Fomey you seem like an expert in these type of stuff, would you be able to find out what they using to find tools or know real location? like mac address? ip address or ? and i also think they are digging into apps in background processing , If you are able to make some sort of tool to block this app or make it invisible that would be awesome i and my buddies will pay for this.
[Magisk] mrceli:
what is "signture spoofing"? ?
[Magisk] Eng.Raman:
When I patching just "signature spoofing" it causes a bootloop while patching the other three options working flawlessly as i mentioned before. May be signature spoofing trip the dm-verity or ZF2 boot sign file.

I'm sure it is a bootloop because it didn't bootup while it exceeded very long time (more than 20 min). Normal boot for my phone bootup with less than 30 sec.
[Magisk] fOmey:
Allows apps to spoof their own signature.
[Magisk] DodoGTA:
microG's brain
[Magisk] DeniTx:
I did clean restore with wipe data and did root again did same process with patching everything goes perfect until I flash the module then gets stuck in bootlooping. Those of you who got all 4 options to work what phone do ya have and model and I don't get it why is it doing both both phones note 4 and note 5 this is just stupid insane.
[Magisk] FreeTheWeb:
How should i do this on a S7 Edge with Bat Man Room 7.0

https://i.imgur.com/uSLoEMH.png

Can anyone do it for me

As far i understood my room is fully deodexed so i assume the service.jar as well , what should i do now just run the smali patcher on windows or what, sorry for being a noob

This is my service.jar

https://www.dropbox.com/s/h07mom5ys23xb3p/services.jar?dl=0
[Magisk] DeniTx:
Any recommendations on custom rom for Note 4 SM-910T? I am thinking I need to get this to work with patching

---------- Post added at 11:38 PM ---------- Previous post was at 11:33 PM ----------

I found few custom roms for note 4 sm910t but I am not sure what to chose any recommendations?

1. https://xdaforums.com/note-4-tmobile/development/firekatn4v1-4-4-4-tw-anj7-extremely-t2916463

2. https://xdaforums.com/note-4-tmobile/development/rom-n910t3uvs3eqe2-stock-rooted-odex-t3635629

3. https://xdaforums.com/note-4-tmobile/development/rom-cmremix-rom-v2-5-12-23-14-t2981479

4. https://xdaforums.com/note-4-tmobile/development/rom-maximum-ovrdrive-v15-1-1-t3196653
[Magisk] DeniTx:
I just did the patch again without signature spoofing and it worked this time so looks lile the issue is with signature spoofing so wqs anyone able to get all 4 to work? I am curious why is the fake gps still asking to use mock location settings isnt this supposed to bypass that?

Another thing I learned after module is installed if you hit the reboot button from magisk it cause the phone to get stuck in bootloop I think because this time I hit close and I did restart from the phone and I didn't have any issues.
[Magisk] DeniTx:
I just did test with all 4 options just to see if it works and its diffidently signature spoofing causing this bootloop. Fomey can you find out what is causing this?
[Magisk] tom.android:
Here--- https://mega.nz/#!d6AS3QiY
[Magisk] immortal72:
Hi fOmey

Thanks for the smali patcher, I did all the instructions (I ticked all patch options on smali patcher and i pulled system folder from my lenovo to my pc) and successfully create the smali magisk module (only smali module installed on my magisk)

I install smali patcher within twrp without error, after i reboot my lenovo K4 (Marshmallow), its take almost 15 minutes to boot process.

after boot successfully, i test my gps aplication and the mock location still disable on developer option, its mean everything working.

The problem only every time i reboot my lenovo, its takes 15 minutes but if i uncheck smali module, my lenovo booting look normal.

Any idea what i have to do with my booting problem? any one help me please

Thanks
[Magisk] FreeTheWeb:
Thank you.

What is the decryption key on mega
[Magisk] tom.android:
!uwNLkj_GTMhw8zYolo3f9eqHqqH5XbD0TJwg-MxQHm0
[Magisk] cristianodk:
MOCK LOCATION RUBBER BANDS TO REAL LOCATION ::

Set device only in location method settings (Settings -> Location -> Location method).

Disable improve location accuracy settings (Settings -> Location -> Improve accuracy).

If you are still experiencing rubber banding after trying everything above, try a different spoofer.
[Magisk] wurstherpes:
no, no matter what you say. lately rubber banding is getting worse. no idea why. that's the way it is.
[Magisk] fOmey:
Sorry, I probably did.. that's my bad. The services.jar you uploaded wasn't deodexed, I can't do anything with it.

You'll need to upload your entire "adb" folder to google drive unfortunately.. try the latest release before hand tho.

The patch is the exact same as previous versions.. something else is causing it.

Verify all your location settings are set to device only... downgrade google play services and see if that solves your problem.
[Magisk] wurstherpes:
I know, I know. It is probably due to Google. I have no idea why that is. I've been using it forever. But Android 9 only causes problems.

I Use Android 9, S7 Edge and N8 Port
[Magisk] fOmey:
I have no rubber banding, the rubber banding I experienced was caused by my location accuracy settings being reset. Since turning them back off, working great on android 9, Samsung S10.

If you say you have checked all your location settings and you have set them to

device only

, there must be a outside source messing with your location. If your receiving location updates from anywhere else beside GPS... you'll rubberband: bluetooth, wifi, network - disable, disable, disable.

So its up to you to find it and isolate what is causing it - it has nothing to do with the patch, I know this.. good luck :good:
[Magisk] zzzhead:
@f0mey could you help to look into this if you have time thanks
[Magisk] Cristiano Araújo:
==> Extracting classes.cdex !!! ERROR: Failed extracting classes.cdex

How to solve this problem ???
[Magisk] A30NI_Y:
Agreed with fOmey, it's the location settings that trigger the rubberbanding, tested it on 3 different devices. On some devices, there is a general settings where you can set GPS to device only but this is not enough, you'll need to also look for "Google Location Accuracy" and switch that off as well.
[Magisk] Dr Droid:
I understand Smali Patcher looking for the Jar files on start up on port 443, but can you please explain this connection request from your application?

The application wasn't even running and my firewall is going off, and mind you on a port that is only been typically registered for TVNC connections.

I'm not making assumptions, I think an open explanation would work in your favour as I do appreciate the work you've done.
[Magisk] fOmey:
No idea to be honest.. could be adb doing something funky in the background?

Feel free to analyse the .exe all you like, something like procmon might reveal a little more data you can take a look at the next time your firewall starts *****ing.
[Magisk] phoberus:
I had some problems earlier with some versions (5.6,5.7,...) but 6.2 works very good. thanks for your work
[Magisk] Scarlet D.:
https://drive.google.com/open?id=1k0S-i-KsvQyuvLlmEtDxvyVhZrZDXgek
[Magisk] Dr Droid:
Yeah It's just a weird request coming form the patcher, I'll be keeping my eye on it.

EDIT:

I think its also worth mentioning, that when a connection request is made by the application you've made and its checking the same IP address that your using for your jar database checking, it doesn't look good on you to dismiss it as an "adb doing something funky in the background?".

Also coming from a programmer (you?) who is using TCP connection functionality in their programs and dismissing my firewall as "*****ing" doesn't make any sense.

My firewall is telling me that:

The same IP that requested JAR updates is requesting a connection to a TVNC protocol port.

You've said you're inspired for error checking in other posts, why dismiss my findings and not run to check out what the connection request is for?

You tell me to check the EXE all I want( Don't give me the the debugging and decompiling of your software as a task) Make your code open source then. Blaming it on "adb doing something funky in the background" could be true, or you can realize that its just a command line tool that doesn't make connection requests on its own.

I was expecting a much more friendlier if not, more helpful response based on how wonderful you've been in the past 300+ pages of this thread.

I don't want to think the wrong things, I'm just presenting the finding and looking for your support - because I truly, as I mentioned, appreciate your hard work.
[Magisk] stranger-mj:
Only had problem with 5.9 (6.0 untested due to developer reverting back to 5.8).

6.2 is working as expected! Thanks!!!
[Magisk] fOmey:
Hmm.. you seem to be missing alot of files in this framework dump.

Have you tried running the patcher while booted in recovery mode with /system mounted? My guess is whatever phone you're using has very strict permissions, the patcher is unable to pull all the files it needs.

I think running in recovery mode might bypass this.. give it a try and report back.

EDIT: You have inspired some new error handling that will be added in a upcoming version:
[Magisk] shoey63:
[MENTION=4564118]Dr Droid[/MENTION]

Of course smalipatcher.exe asks for internet connection. It needs to download things to make it work.
[Magisk] Dr Droid:
From port 443 (HTTPS) yes, I was just requiring info on why its requesting connections on port 21601. That is all really.

I know, being a network administrator has made me pretty cautious. :silly: even at the expense of if I'm totally wrong :fingers-crossed:
[Magisk] Scarlet D.:
I am honestly glad i've inspired you about that ^^

Anyway dealing with so many people having problems at once must be really confusing by your side since you told me the very same thing to me 2-3 days ago and I answered that I did it and had the very same effect as on doing it without TWRP recovery with /system mounted XD, maybe if I was in the same situation as you were, I'd perform far worse, so good job with all of that XD.

I am not sure why files are missing really, fun fact is that a friend of mine (who had oneplus) gave me his phone from the same thing I was trying to do and it worked just fine to him!
[Magisk] Skimpy007:
Worked perfect for my pixel 3 XL on 9! Thank YOU!!!
[Magisk] fOmey:
How was I not being friendly? because I used the word "*****ing".. I'm Australian, common lingo here: "sorry if I offend".

If you're on a witch hunt, by all means hunt away.. I personally am not going to waste any of my own personal time on this vendetta, because quite frankly I don't care! That's the cold harsh truth, I already know nothing malicious exists and I honestly have no idea what made that request..

It is you with the questions, therefore it is YOU AND YOU ALONE that should seek the answers.. seek the truth my friend - uncover the origin story of port 21601..

For all I know you have some disgusting worm virus eating its way through your hard drive, latching itself onto my beautiful, pure, smali patcher.. so HOW DARE YOU POINT THE FINGER! :p

Also fun fact, the origin of that IP appears to be Russia.. the plot thickens.

I'm so sorry, were going around in circles now.. yeah your phone is a unique case.

What recovery are you using? TWRP?

We need to source the files from somewhere... they exist on your phone, its just not giving them up for some reason?
[Magisk] PoochyX:
Patcher is the best

([emoji3590]09-09-18[emoji3590])
[Magisk] Scarlet D.:
Yap, i've been using TWRP, I am really not sure why it does not give them I mean even on TWRP, something is not quite right with that :confused: , if you have any idea for my case just tell me, I've done little to none modifications to my phone that needs root access really all I really did was change the boot animation
[Magisk] fOmey:
What phone are you using? Can you link me to the device forum?

I'll take a quick look at a rom, maybe I can figure out what is going on.
[Magisk] Scarlet D.:
Well J am not sure what you mean by "device forum" all i can give you abou what I understood is this: http://en.miui.com/forum-109-1.html

phone is xiaomi redmi note 4 , the one with snapdragon core.
[Magisk] fOmey:
I meant: https://xdaforums.com/redmi-note-4

I've managed to find the latest stock rom for your device from the link you posted: V10.2.3.0.NCFMIXM

I manually extracted the firmware files from it & finally was able to generate a module.

Please check your settings -> about -> build number.. make sure it matches: V10.2.3.0.NCFMIXM

Backup... give this a try, includes only the mock locations patch:
[Magisk] AssyDrift:
Hello, I have got a Poco F1 with latest Xiaomi.eu rom beta 9.6.27. I have been your patch working well (v5.1), but some days ago it starts rubber banding. So, I installed Pixel Experience 9.0 and used your latest patch and same thing... rubber banding. So, i installed 9.6.27 from xiaomi.eu again and patching it slowly step by step but same thing again. I am using latest Appninjas app (systemized) to spoofing. And location in device only.

What can I do? I really need help

Thank you very much
[Magisk] Scarlet D.:
I am glad to tell you the patch just works like a blessing. Installed it and I no longer have rubber banding issues at all! :D

Thanks for the help! I really appriciate it!
[Magisk] tubekeeper:
I got rubber band problem on my one plus 7 pro, Mate 10, Mate 9 also Mate 10 is in Oreo, and 7 Pro and Mate 9 are in Pie , I think it is related to the latest Google sevice 19.2.75,. After upgraded to the latest Google service, the rubber band occurred.