yashsingh1/xdaforums huggingface dataset:
[Magisk] coollad10:
Mock location not found error. Android 4.4 Please help

In device setup 1 , when I run smali to patch the jar file, I cannot select the jar file directly, I can just select the folder. Is this the right method?

Also, I get the following string of messages on smali:

"fOmey @ XDA

Patcher version: 0.0.6.7

==> Detected java: 1.7.0

==> Dumped framework

==> Processing framework

==> Detected API: 19

Exception in thread "main" java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version; class=brut/apktool/Main, offset=6

!!! ERROR: Mock location class not found."
[Magisk] teknomedic:
I could use some serious help with this. I'm trying to get Smali Patcher to work on an LG V30. I've tried the latest version of Smali alongside older versions... always get the same errors. I've tried deoxeding (or whatever it's called too) following a guide on Reddit. This is the second time if tried doing this and I failed about a year ago too... gabe up and decided MAYBE smali updates would have resolved the issue... but nope. Have tried on Android 7, 8 and 9.... no luck.

Anyone willing to assist with what's stopping it from working??
[Magisk] Telperion:
[MENTION=1620550]fOmey[/MENTION]

ADB method fails to patch. Pixel 3, latest beta, no TWRP, run while device is booted to OS. Log:

fOmey @ XDA
Patcher version: 0.0.6.7
==> Binary download complete
==> Unpacked binarys
==> Detected java: 11.0.1
==> Dumped framework
==> Processing framework
I: Using Apktool 2.4.1 on services.jar
I: Baksmaling classes.dex...
I: Baksmaling classes2.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
!!! ERROR: Mock location class not found.

Drive link to adb folder:

https://drive.google.com/file/d/1LHF23nsGSae51MpWwMqqJtDMYh_eK6e5/view?usp=sharing
[Magisk] teknomedic:
[MENTION=1620550]fOmey[/MENTION]

OK... I've uploaded my LG V30 system files both as ripped from phone and Deodexed version. Can someone tell me what's going on with this??

(200MB) - https://mega.nz/file/htl0HCIL#bLu8TnSHblpNg_CRttvuJkXD1bIGor-z_zimSR8LYwE

I've tried using this guide from Reddit to Deodex the files:

https://www.reddit.com/r/PokemonGoS..._guide_android_root_smalli_patcher_deodexing/

Today I tried doing this on Android 8 using this image:

https://xdaforums.com/lg-v30/development/rom-fw-us99820e-twrp-zip-t3868415

As well as Android 9 using this image:

https://xdaforums.com/lg-v30/development/rom-fw-lg-v30-joan-us998-30b-twrp-t3973811

I've tried a few versions of Smali Patcher including the latest v6.7 from here:

https://xdaforums.com/apps/magisk/module-smali-patcher-0-7-t3680053

The primary issue I've run into with v6.7 is that according to the Reddit guide linked above, I'm supposed to ""Run the smali patcher and click on the BROWSE button. Browse to the system\framework\services.jar and click Patch JAR."" ... however, v6.7 doesn't seem to have an option to load JAR files... only folders?? I've tried using Smali patcher v3.7 as the guide states and I can at least load the "Services.jar" file, but then I get the following error:

""fOmey @ XDA

Patcher Version: 0.0.3.7

Error: Invalid or corrupt jarfile bin\apktool.jar

!!! ERROR: Target JAR must be deodexed.""

Which... according to the guide I followed, should already be done.

If I use v6.7 on the supposed deodexed files I get this error...

""fOmey @ XDA

Patcher version: 0.0.6.7

==> Detected java: 1.8.0_251

==> Processing framework

==> Detected API: 26

Error: Invalid or corrupt jarfile bin\apktool.jar

!!! ERROR: Mock location class not found.""

Which is the same error I get if I use v6.7 directly on V30 (instead of copying system files to PC) on Android 7, 8 and 9.

Reminder, I tried to do this about a year ago using Smali Patcher v5.5 with basically the same results. I basically gave up then and hoped some further updates and understanding of the LG V30s would have helped solve the issue... but here I am again. :eek::eek::eek:

YES - TWRP Recovery installed

YES - Rooted with Magisk 20.4

YES - Running everything as "Admin"

Would be nice to get this running on Android 9 (Pie), but I'm not sure if it works or not if I need to Deodex the files??

Finally, if someone can get this to work with the files I've provided... I would like these flags set:

YES - Mock Locations

YES - Secure Flag

YES - Recovery Reboot

YES - High Volume Warning

Any suggestions about all this?? Thanks in advance.
[Magisk] ahmdnz7797sy:
Hi:

my laptop wifi is currepted.

I need to tether from my mobile but smali didn't complete the binary download and stuck at 99%!

Is that possible to someone send the binary files and download it from my mobile and move them to bin file manually?

If yes, then I need your help to send it :good:

I also tried LAN internet but also stuck at 99% :(

sorry for my bad English :p

sent from sm-j730f using xda labs

edit

*today I fixed my laptop wifi

run as administrator

did't connect mobile

delete old bin and tmp files

also stuck at 99%!

Can any one help me patch my mobile for me?
[Magisk] adammalyck:
just report, smali patcher module caused bootlopp for Custom ROM LineageOS 17.1 (SAMSUNG J5 2015)

https://xdaforums.com/galaxy-j5/development/unofficial-lineageos-17-1-beta-galaxy-j5-t4038777
[Magisk] Huy2312:
Hi, lineage os just update and my old smali cant use. If you have freetime can you create again for me? Here the link for new framework. Thank you. I need mock location

https://drive.google.com/file/d/1-A2xppXADcZ6iyGx7ZxLFjEX-pmJlAbM/view?usp=drivesdk
[Magisk] jancoker:
I have reno 7 lavender with TWRP and magisk installed and running MIUI Global 11.0.4 but the patcher always end with "mock location class not found".

I read some thread and they said I have to deodex my service.jar. anybody knows the tools to deodex my service jar? Thanks.
[Magisk] halcy0n9001:
I get this error,

!!! ERROR: Java not detected.

If I run java - version in the cmd I get this (showing it is installed)

java version "1.8.0_251"

Java(TM) SE Runtime Environment (build 1.8.0_251-b08)

Java HotSpot(TM) Client VM (build 25.251-b08, mixed mode)

And tips on getting Java detected?
[Magisk] sahil1982:
Pixel 4 running in full OS (Android 11 Beta 1)

Rooted with Magisk installed

Getting error as below

fOmey @ XDA

Patcher version: 0.0.6.7

==> Detected java: 1.8.0_251

==> Dumped framework

==> Processing framework

I: Using Apktool 2.4.1 on services.jar

I: Baksmaling classes.dex...

I: Baksmaling classes2.dex...

I: Copying assets and libs...

I: Copying unknown files...

I: Copying original files...

!!! ERROR: Mock location class not found.

https://drive.google.com/file/d/1ds7j_0t4YsK7eM2mFvFOQinaFw5spbgA/view?usp=sharing

Need Mock Location only
[Magisk] A30NI_Y:
Based on your 1st link, it's on Oreo and I have no problem generating the module with the 4 patches.

If you are patching the services.jar alone, it need to be deodexed first and put in a folder (any name will do) and using the browse button on the patcher, point it to the folder (not the services.jar file).

Why not just use the "PATCH" button and connect your phone to the pc instead? That way you don't need to deodex anything
[Magisk] A30NI_Y:
It seems like an antivirus is blocking it. If you need to patch, link a copy of your complete system/framework folder and what patch you want?

---------- Post added at 09:38 AM ---------- Previous post was at 09:35 AM ----------

It maybe one of the patch that is causing the bootloop. Which patches you have selected?

---------- Post added at 09:41 AM ---------- Previous post was at 09:38 AM ----------

Did you try running the patcher while your phone is booted in twrp as mentioned in the first page?
[Magisk] A30NI_Y:
Not sure what google did, same error here
[Magisk] teknomedic:
Correct, it's currently on Oreo (I tried Pie previously with same results).

When I connect the phone and run Smali v6.7 (I just tried again)... I get this error:

fOmey @ XDA

Patcher version: 0.0.6.7

==> Detected java: 1.8.0_251

==> Dumped framework

==> Processing framework

==> Detected API: 26

Error: Invalid or corrupt jarfile bin\apktool.jar

!!! ERROR: Mock location class not found.

If you can process the files I provided, what am I missing? I've followed the guides to the letter and keep having the same issue. Very confusing.

Is the zip file you provided the patched version of my V30? Thank you if so, I'll try and apply via Magisk

forgot to add that if I try this in TWRP I get "ADB device not found" error.
[Magisk] A30NI_Y:
Yes, it's the patched module for the oreo framework. Try it.

Looks like the bin file in the patcher is corrupted. Delete the bin folder and run the patcher again without connecting to the phone, let it download the bin folder first.
[Magisk] sahil1982:
No problem... thanks for trying
[Magisk] Huy2312:
Thank you very much
[Magisk] A30NI_Y:
Seems that the services.jar file is already deoxdexed and somehow it was not properly done, so this maybe the cause of the failure. I might be wrong!
[Magisk] Indru:
Anybody has any clue about this error and how to get around it?
[Magisk] teknomedic:
Well crap... THAT'S been the issue this whole time? :silly: I had no idea that Smali was creating a bin folder. I deleted that folder and it finally worked. I had thought that corrupted file error was on the phone, not a file on the PC. Figures it would be something simple like that. You're the first person in like a 18 months of me trying this to mention that bin folder. Not sure why it would be corrupted, but this time I had my anti-virus disabled.... sooooo... maybe that's been killing the file each time I tried previously. Thank you so much. So many headaches due to that issue.

Will this work on Pie??? Been getting mixed information if Smali can patch Pie.

---------- Post added at 02:57 AM ---------- Previous post was at 02:55 AM ----------

In my searching I ran into someone solving the "no ADB" error while in recovery by getting proper USB drivers installed for their phone. I didn't pay any attention to the details because it wasn't for my phone and at the time I wasn't having that issue. I think I searched for that error message long with TWRP and ran into that info on google... probably worth a look for you. Sorry I don't have any further information.
[Magisk] A30NI_Y:
Smali works on Pie and even on android 10 depending on which patch (signature spoofing will not work on Android 10)
[Magisk] teknomedic:
Thank you, I'll attempt this on Pie then... worst case I go back to Oreo it seems. Thank you again for the help. :highfive:
[Magisk] ahmdnz7797sy:
I need help to patch my samsung sm-j730f android 9 stock rom,

framwork folder and puild.prop file uploaded to drive,

this is the link:

https://drive.google.com/file/d/1-0-kAqP9fKspB4QwGrB7vBCuxpBHEV-x/view?usp=drivesdk

about 110 MB,

I need secure flag, samsung knox.

thanks in advance.
[Magisk] Toubo:
Do I have to re-install the Smali patcher if I change/update the fake GPS software or POGO?

Thanks,
[Magisk] Indru:
Thank you!!!! I had to switch to File Transfer mode for the fake CD Drive to appear so that I can install the drivers (The phone spawns a fake CD drive with drivers in this mode) and after installing the patcher worked!!! :D
[Magisk] teknomedic:
No, Smali patches the Android system through Magisk. Updating GPS or PoGo won't affect it. Think of it like this: When you start your phone Android loads up all the defaults, then Magisk loads the patches on top of Android then when you run GPS or PoGo, they're by default using the modified Android system files. The only time I think you'll need to run Smali again and update the module is if you upgrade the Android system from say 8.0 Oreo to 9.0 Pie... though I'm unsure if you'd need to re-run it if mid-tear upgrade happened (say 8.0 to 8.1) ((though I guess it would be best to update Smali at that point just in case?

---------- Post added at 04:20 PM ---------- Previous post was at 04:19 PM ----------

Glad what little info I could give you helped. It was like two months ago I ran into that info, lol

---------- Post added at 04:26 PM ---------- Previous post was at 04:20 PM ----------

Just an update, I did upgrade to Pie again and did get Smali to work. I'm not sure why, but Smali was crashing/closing about 2/3 of the way through it's patching any time I tried to apply the "Recovery Reboot" flag. I would then need to go into task manager to kill ADB.exe before I could try again. Once I figured out that flag was the issue, I was able to patch the other 3 flags. Though it took a few attempts as Smali kept locking up even on those ones. Maybe I need an updated ADB... IDK.

Just thought I'd add that little tid-bit to the general knowledge here.
[Magisk] Dante63:
So Secure flag doesn't work on Android 10?
[Magisk] Zozomon:
Anyone successfully patched smali on redmi note 4X Mido stock rom miui 11?

I need your help. Thanks
[Magisk] A30NI_Y:
Glad it work out for you. Just a thought, the problems you are getting may come from a bad usb cable. I had similar experience before.
[Magisk] XThePhoenixX:
This isn't working to me with android 6.

In recovery mode with System mounted I get "No ADB devices found"

In the system I get

==> Dumped framework

==> Processing framework

==> Detected API: 23

!!! ERROR: Incomplete framework dump, required files missing.

You can try running the patcher while booted into recovery mode with /system mounted, it may fix this.
[Magisk] adammalyck:
Mock location only
[Magisk] Zozomon:
Hi, could anyone help me on Redmi note 4x Mido stock rom.l just need to mock Location for pogo.

Thanks.
[Magisk] XThePhoenixX:
How can I extract the framework directory files to put them in?
[Magisk] ahmdnz7797sy:
by using any root file explorer like (es file explorer)

copy framwork folder to internal storage then to pc

---------- Post added at 03:56 AM ---------- Previous post was at 03:26 AM ----------

I forgot to tag you when I sent the link for framwork folder :(

https://xdaforums.com/apps/magisk/module-smali-patcher-0-7-t3680053/post82948085
[Magisk] A30NI_Y:
Secure flag & samsung knox
[Magisk] A30NI_Y:
Well, it just meant that smali is not compatible with the rom you have then. You may want to try a different rom

---------- Post added at 12:17 PM ---------- Previous post was at 12:12 PM ----------

The services.jar file you have attached is not deodexed, so cannot be patched. Link the complete system/framework folder instead. Xiaomi phone has a tendency to miss out some folders and files when copying the framework to pc (don't know why) but do check first by comparing the copied folder with the one in the phone before uploading.
[Magisk] PoochyX:
What is the method to get mock locations working on android 10 if it's not working I only recall something of a sort of lowering olay services or was I mistaken....

([emoji88]Havoc GSI[emoji88])
[Magisk] Zozomon:
https://drive.google.com/folderview?id=1gT0IW521Q_hodPaIEW9zUJCUfVhXROF_

Hi sorry, I am attaching from mobile phone. Hope all the files has been copied correctly.

Redmi note 4x Mido, stock miui 11.
[Magisk] A30NI_Y:
There are missing files and folders unfortunately as mentioned before, so unable to patch. Do make sure it is the complete framework

---------- Post added at 01:49 PM ---------- Previous post was at 01:45 PM ----------

AFAIK the initial release of android 10 has issue with smali but the later releases from google somehow rectified the issue. I am running android 10.xx without any issue with smali (or rather the other way around).
[Magisk] Velocity_9:
Can anyone help me with this?

My phone is a Redmi 6a, Android version 9, MIUI 10.4.4

I have rooted my phone with Twrp and have the latest version of Magisk, and bootloader in unlocked.

Whenever i try to run smali patcher this error occurs.

fOmey @ XDA

Patcher version: 0.0.6.7

==> Detected java: 1.8.0_251

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

I have-

1) Run smali patcher as administrator

2)Installed latest java update and net framework

3)have the latest drivers for my phone

Things i have also tried which don't work

run smali patcher with my phone in recovery mode where it shows error "no ADB devices found"

so /system mounted doesn't really do anything if my PC can't recognize my phone

i have turned on file transfer which works normally

i just don't know what to do.
[Magisk] A30NI_Y:
Link a copy of your complete framework folder and I'll try
[Magisk] Velocity_9:
Here it is

www(.)mediafire(.)com/folder/fl84275dild3p/framework

just remove the brackets ()
[Magisk] XThePhoenixX:
I got some error but unselecting some files it has done it, thanks. The problem is that even with smali patcher, the gps spoofers don't work (they're selected in developer options, android 6), location is still the real one

Plus, all apps say that there is an overlay so they can't start....
[Magisk] Zozomon:
Hi , I have managed to create the module successfully with the manual link to framework files

Thanks for your help!
[Magisk] A30NI_Y:
Are you able to upload the files to a google drive or one drive?
[Magisk] Velocity_9:
Here you go

Here it is

drive(.)google(.)com/drive/folders/1Sp4d-54RKIqqWvJDGQIUTqT4JB9qH2uo?usp=sharing

again just remove the brackets ()
[Magisk] Velocity_9:
Mock locations, secure flag, high volume warning.

Thank you?
[Magisk] A30NI_Y:
Ok done
[Magisk] ThePerf3ct:
Hi

I'm currently trying to run Small Patcher on my pocophone. Rooted with magisk, running Miui 10.3.8 Stable (Android 9, EU ROM) and I'm suffering an issue, where smali isn't able to find miuisdk.jar and miuisystem.jar

I've searched throught the thread and couldn't find a concrete answer to this issue. I've seen some suggestions but as I'm not entirely familiar with Android, I'm surely not getting the whole point

Is there any way to get smali to run properly and to patch my phone with the current setup?

Thanks in advance
[Magisk] ProXas:
help

it says "!!! ERROR: No ADB devices found."

but cmd(adb) clearly says there's a device connected in recovery mode

also system is mounted. idk what's the problem here...
[Magisk] XThePhoenixX:
Smali doesn't do anything on the phone after being installed on the module as the gps position is still stock, with Taichi I have to use the "Indirect mocking" option in the gps faker by ninjapp, thus making rubber banding issues, othwerwise I have error 12 in pogo, the systemizer works but with rubber banding.

Any help please?

---------- Post added at 03:04 PM ---------- Previous post was at 03:03 PM ----------

same here, had to manually dump the framework.
[Magisk] FallenAion:
smali and majisk 19.1

i cant get smali patcher 6.5 to work, fails on downloading majisk template. i need majisk 19.1 for pokemon go to work correct. Smali patcher 6.7 requires me to used later than majisk 20.0 so how can i fix this problem? when i install any later majisk my pokemon go will not authenticate at all. wont let me log in. fixed with majisk 19.1.
[Magisk] phoberus:
Had the same but after 5 or 6 attempts it worked
[Magisk] Henkôsan:
Stuck on recompiling

Hello, first of all great job with this tool!

The only problem is I can't seem to make it work on my OnePlus3.

Clean format and rooting of the device with Magisk 20.3.

Smali patcher is getting stuck on Recompiling no matter what.

The phone is correctly recognized by ADB,I got the right .net framework version and tried to get the patch through the extracted framework with to success.

If someone manage to have more success than me getting lock location and volume warning patches , my framework can be found here : drive(DOT)google(DOT)com/folderview?id=11qefrVyjH425pySoMsz5l6YBacm9Gliv
[Magisk] Lean9:
I installed de patcher correctly, with all functions; but now I can't take screenshots anywhere on my phone. Any solution?
[Magisk] Lean9:
Can't take screenshots

If i have the module active I can't take screenshots anywhere on my phone, even if I don't install the Secure Flag patch. I have an S9+ Snapdragon and I would like all patches.

As i'm new at the forums the page doesn't allow me to post any link so send me a private message to lend you the folder pls
[Magisk] Lilcode:
Guys patch my services.jar pls. Here patches I need.

Mock location

Signature verification

Secure flag.

Here's my framework and build.props I'm using crdroid rom.

https://www.sendspace.com/file/tri3ka

Thank you in advance. <3
[Magisk] 1phhrct:
==> Detected java: 1.8.0_251

==> Dumped framework

==> Processing framework

!!! ERROR: The specified executable is not a valid application for this OS platform.

I: Using Apktool 2.4.1 on services.jar

I: Copying assets and libs...

I: Copying unknown files...

I: Copying original files...

!!! ERROR: Mock location class not found.

help me please , my phone xiaomi note 7 miui 11 android 9 rom pfgeuxm 11.0.8.0
[Magisk] Eng.Raman:
My SmaliPatcher.zip builded with the OP tool is Already patched "Disable Signature Verification In The Package Manager", I can confirm .
[Magisk] iPusak Gaoq™:
Can you downgrade an apps without having to uninstall previous version from your phone? For example installing greenify apps v3.6 on top of v3.7?
[Magisk] Eng.Raman:
After disabling apk signature verification, I can install any older version app over the newer one without any issues .
[Magisk] iPusak Gaoq™:
Are you sure? Cause i try mine and it doesn't work...it only work for unsigned apk and i have tested this plenty of time...when i try downgrade an apps i get "packages seems to be corrupted" in install package....
[Magisk] Eng.Raman:
I'm sure bro .:good:
[Magisk] Spartacus500:
"ERROR: Target JAR must be deodexed."

Please to odex Smali Patcher for Stock Rom ?
[Magisk] Eng.Raman:
What is your android version ?
[Magisk] Spartacus500:
[MENTION=5818781]Eng.Raman[/MENTION]

Nougat 7.0 S7 edge stock Rom.
[Magisk] Eng.Raman:
SmaliPatcher for your phone with all three patches .
[Magisk] Eng.Raman:
Is your services.jar contain classes.dex ?
[Magisk] Spartacus500:
Does not have. Can you make 3 patches on my file for me? Or help solve the problem of missing classes.dex.
[Magisk] Eng.Raman:
Any services.jar doesn't contains "classes.dex" then I think cannot be patched successfully with the OP tool patcher .
[Magisk] Itachi23:
Thanks for this module.

It worked flawless for me.

Tested on Oneplus 5, with OOS 4.5.1.

Tested just the screenshot feature

For pepole like me who didn't know how to extreact and deox service.jar:

-Download your stock rom .zip

-(You could also copy the system directory in your storage using a file manager with root permission and than copy it onto your pc but i didn't try it, so I can't confirm that it will work)

-Extract it

-(If you copied it from you phone just jump to the XX point)

-Go Here

-Download the Tool

-Put the files system.new.dat and system.transfer.list that you got by unzipping your Stock Rom in the rom folder of the Tool

-Run the Tool

-Wait

-You have now your Stock Rom extracted

XX-Now go here

-Download Fulmics Deodexer and Baksmali/Smali 2.2 binaries

-Open Fulmics Deodexer and in settings, set the path for Baksmali e Smali binaries

-Select the /system folder that you got extracted

-Hit the arrow and wait, it will take quite a long time

-When it's done, you'll have you service.jar deoxeded in the /Sistem/Framework folder

-Patch it with Small Patcher

-You'll get a zip, it is your personal Magisk Module, flash it from Recovery

-Enjoy
[Magisk] AvisAile:
I don't understand how to do that :/
[Magisk] lameme:
Thank you so much for this module. I use the hide mock location status and it's working unbelievably well.

I've been using for hours and got no rubber banding (jumping back and forth between real and spoofed locations). Before I needed to disable location service to achieve this, but it caused me warning in pokemon go continuously. It only stops when I stop using this after a while.

I don't understand how they work but will this module possibly cause any bad affect like that?