yashsingh1/xdaforums huggingface dataset:
[Magisk] xk0niR:
Hi, I am running OxygenOS Pie (One Plus 6) and tried to patch my services.jar with Signature spoofing. Sadly it failed using adb method with:

=> Extracting classes.odex

!!!Error: Failed extracting classes.cdex

When I just pointed to my services.jar I got:

!!! ERROR: Signature spoof class not found.

Anyone got an idea about this? Thanks a lot!

Edit:

I got it working. I changed to things: 1st I wasn't in Recovery/TWRP (thought it may be better) and 2nd just used SmaliPatcher as Admin.

So far looks good! Are there any performance / battery issues due to deodex?
[Magisk] Sandy1701:
After installing the module, System UI constantly stops responding. Had to restore a backup
[Magisk] trekker99:
Hi fOmey,

I am also facing a similar issue. Debug output from 0.0.5.7 and the link to the adb directory can be found below for your reference. Hope this helps in your troubleshooting.

fOmey @ XDA
Patcher version: 0.0.5.7
==> Binary download complete
==> Unpacked binarys
==> Detected java: 1.8.0_211
==> Dumped framework
==> Detected API: 28
[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

https://drive.google.com/open?id=1Wl63u3T4-xK7zIDw3PTp_29bbo117sjz
[Magisk] fOmey:
Thank you for reporting back.

There is a minor performance hit, nothing we can do about it tho.

Can you try running the patcher as administrator.. if that doesn't fix it, run the patcher while booted in recovery mode with /system mounted.

If running the patcher in recovery mode works, I think this "issue" can be fixed by executing some of the commands on the device as root.. this should prevent users having to boot into recovery to patch (this is not required for all phones tho).

I can already predict future problems with users that don't accept the root permission pop-up, especially with it having a time-out.. I guess I could code in some sort of root check when the patcher loads up. I honestly would prefer not going down this road tho, because the reality is only certain phones have this requirement.
[Magisk] trekker99:
Hi fOmey,

I was already running in recovery mode with /system mounted to do this. So, it is probably not a permission issue?

Regards.
[Magisk] A30NI_Y:
Try this. See whether it help.
[Magisk] fOmey:
Right, what phone and android version are you using? You are running the patcher as admin?
[Magisk] VizricK:
Hello I'm still using RICE 14.1 on a Exynos S8.

Been meaning to upgrade to a Pie Rom. Does anyone have a Rom that has Samsung Dex working (with an unpowered USB3 to HDMI) that can still flash Smali?
[Magisk] JackeyHuang:
Hi fOmey,

I'm using the same ROM and Phone as MendyG5.

But I still experienced rubber band issue with SmaliPatcherModule-0.0.5.7-fOmey@XDA.zip.

Could I remove current patch and replace with this file you modified for MendyG5?
[Magisk] fOmey:
The patches are identical.. must be caused by some other setting on your phone.
[Magisk] Hanataji:
Help me.

My SD card and internal files has gone i can't see any files. How to uninstall this module and see back files?
[Magisk] AvisAile:
here : https://www.catupload.com/download/8a31215e24b65886f03f8f6c894e3239.html
[Magisk] DeniTx:
I have created download links for both Note 5 and Note 4

Note 5 Odex File

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

Note 5 Patcher

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

Note 4 Patcher

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

Note 4 Odex File

https://www.sendspace.com/file/ng7yhq
[Magisk] tom.android:
Result: for note4

Download here--- https://mega.nz/#!t2JkGYSZ

note 5 : try to copy all files in system to deodex it.
[Magisk] fOmey:
The patcher failed to download magisk template, bad internet connection ? That error has nothing to do with patching, deodexing etc.

Try only apply mock locations patch and see if you can boot.. one of the patches may not be playing nice with your phone.. work your way down the patches until it causes the boot loop.

The weird thing is generally if apktool can recompile you shouldn't have any issues, as it does error check to some degree.. weird.
[Magisk] DeniTx:
I selected mock location only and patched it, its doing the same thing so i am trying the second option secure flag only
[Magisk] fOmey:
Are you using stock kernel ? Sounds like dm-verity is being triggered..

[MENTION=4667597]Didgeridoohan[/MENTION] you seem to know alot about Magisk, any idea if magisk modules can trigger dm-verity ? That's what it sounds like to me is happening to this user.
[Magisk] DeniTx:
Phone is rooted with magisk and i am using TWRP Custom Recovery if that's what you referring to?
[Magisk] fOmey:
OK, sounds like your running a stock kernel... Do you have any other modules installed ?
[Magisk] DeniTx:
This is what I got

Root browser

ES FILE EXPLORE

TWRP Recovery

Magisk Root rest is all regular apps

Not sure how to get the other custom rom or what u need to do to get this to work.
[Magisk] fOmey:
Try install another module, like this for example.
[Magisk] DeniTx:
What is the name of the module I couldn't open that one shows link to magisk root?

---------- Post added at 12:13 AM ---------- Previous post was at 12:10 AM ----------

This one?

https://www.google.com/amp/s/xdaforums.com/apps/magisk/module-iytbp-magisk-t3619705/amp/
[Magisk] Josmanu:
where can i find the ''tutorial for idiots''? i want to patch this for pokemon go
[Magisk] fOmey:
That the one.. its a youtube adblocking module.. see if you bootloop when using that.

Read the last few pages of this thread. I've been giving DeniTx a crash course.
[Magisk] Didgeridoohan:
Not quite my area of expertise, but Magisk in itself would trigger dm-verity, no? Besides, it's disabled by default...
[Magisk] Eng.Raman:
v1.0 causes bootloop for me while v0.8 works fine, any idea ?

Zenfone 2 / stock 6.0.1 / magisk 14.3 installed.
[Magisk] fOmey:
Any errors when recompiling ? Paste the output of the patcher.

Also try patching without signature spoofing and let me know if you bootloop.
[Magisk] Eng.Raman:
No error, it patched successfully.

Without signature spoofing, the module works well as v0.8.
[Magisk] fOmey:
Upload your unpatched service.jar.
[Magisk] newtonuae:
fOmey @ XDA

Patcher version: 0.0.5.7

==> Detected java: 1.8.0_221

==> Dumped framework

==> Detected API: 22

Exception in thread "main" org.jf.dexlib2.DexFileFactory$UnsupportedOatVersionException: Unsupported oat version: 45

==> Deodexed services.odex

!!! ERROR: Mock location class not found.

Also tried patch services.jar directly but got this error:

==> Detected java: 1.8.0_221

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.

can someone help ? im using an s6 andriod version 5.1.1
[Magisk] lividhen99:
I think you'll need to be on atleast marshmallow 6.0) I'm not sure if the galaxy s 6 has a official marshmallow update, but here is an Oreo (8.0 & 8.1) rom if you want it.

https://xdaforums.com/galaxy-s6/development/rom-lineageos-15-1-unofficial-galaxy-s6-t3909458

If you don't want to go as far as Oreo, just look through the s6 thread for other custom roms.

And again, the s6 might have an official marshmallow firmware, so check that.
[Magisk] MadCoookie:
stucks on 99% tried to wait, restart, and redownload, nothing helps
[Magisk] Hanataji:
How to fix my microSD card?
[Magisk] asifbhaijaan:
MI A2 Android pie

Can I get a smali patcher for Android pie Mi A2..

I'm unable to deodex services jar.. It gets stuck at (12/48)
[Magisk] nuv:
Positive feedback, works with adb patch on

Phone: BQ Aquaris X Pro

Stock firmware: 2.7.2

Android 8.1.0

Magisk: 19.3

SmaliPatcher on

Windows 10 with .NET Framework 4.8 (https://dotnet.microsoft.com/download/dotnet-framework)

No admin needed for me.

Used adb patch function with phone in System.

Installed resulting .zip with MagiskManager.

Thanks [MENTION=1620550]fOmey[/MENTION]
[Magisk] trekker99:
Sony XZ Premium on Android Pie. I just tried running the patcher as admin and it works. Is there a reason why you need admin? The tool really should only work in user space.
[Magisk] jhonathantanada:
someone who can share the patch for pocophone f1 miui global 10.3.6 pls ths
[Magisk] fOmey:
I honestly don't know.. but it seems to fix issues for most users. :confused:

From my knowledge nothing included with the patcher or the patcher itself should require administrator privileges.. my best guess would be something to do with anti-virus, perhaps running as administrator works as a bypass? One of the dependencies being flagged as a false positive?
[Magisk] RegalMan:
I'm getting error, failed to detect.

Using s5 with lineage is kite 9

Any help appreciated

Many thanks
[Magisk] Hanataji:
[MENTION=1620550]fOmey[/MENTION] Help me poradę, arter instal Smali module i list my data. I cant recovery my data grom microSD, please help me...
[Magisk] PoochyX:
You should of never installed the patch then if you don't have the competence to use it

([emoji3590]09-09-18[emoji813])
[Magisk] fOmey:
Restore the backup you made in step 1 of the instructions.
[Magisk] TheRealModder:
Bro, help, i just try your SmaliPatcher, it works, successfuly booted, but can't install almost any apps
[Magisk] lividhen99:
Like, saftenet tripped? Or like, there is something wrong with the device verification so most apps see it as incompatible?
[Magisk] fOmey:
Don't use the signature verification patch, its doing something funky on your device.
[Magisk] miki200290:
it works great job there is only one problem.

activated the gps and everything is ok. but when the joystick is activated for the control with any fake gps application the position starts to jump from one place to another so the problem lies in the joystick because finyanto is not used the position remains stable when the position is activated starts jump from one part of the world to another.

let me know for a remedy thank you.
[Magisk] Keule-Tm:
And maybe you should lower your tone. XDA, as I understand it, is about helping people. We've all started while being noobs, and.. well, I won't go on. It's OT either way.
[Magisk] lividhen99:
Yeah, I'm with you, xda still seems to be stuck in the eternal September.
[Magisk] PoochyX:
Riii

([emoji3590]09-09-18[emoji813])
[Magisk] kiki059:
Hi all , I have issue with my S6 G920F :

error : Mock Locations class NOT FOUND

I can using smali patcher module genered by other phone?

S6 G920F STOCK

Android 7, security patch 1 decrmber 2017

thank for your help
[Magisk] Leo-Monteiro:
need help

==> Extracting classes.cdex

!!! ERROR: Failed extracting classes.cdex

moto g6 play custom rom

android 9.0, security 01 jun 2019

i have tryed run as adm, run in twrp mounted and much things, i got same error every time

#### i have used 0.0.5.5 and it worked ########
[Magisk] PoochyX:
MOD EDIT- REMOVAL OF QUOTE/CONVERSATION
[Magisk] ximboliex:
Process stop

The process stop and dont move anymore:eek:
[Magisk] PoochyX:
Damn thats crazy [emoji2957]

([emoji3590]09-09-18[emoji813])
[Magisk] ximboliex:
Ye i need help !!error mock location class not found
[Magisk] fOmey:
CHANGELOG ::

5.8

Check if patcher is being ran with administrator privileges, otherwise display a warning.

Fixed a possible false positive error during cdex extraction.
[Magisk] apophis9283:
I've cleaned the thread. I also wish to comment on the responses I see that aren't really needed. 2 word responses just clutter the thread. Going forward please try to make responses a little more helpful.

Thank you,

apophis9283
[Magisk] phoberus:
Same error "Failed extracting classes.cdex" with v5.8 on my Oneplus X with Los 16 (only mock locations checked)

even in the recovery with /system mounted

it works with v5.5
[Magisk] starun10000:
Error mock location class not found in Redmi note 4 android nouget security patch 2019 pls give solutions
[Magisk] fOmey:
Show me the full log, supply some files.. I can't help you otherwise.

Show me the bin directory.

Show me the full log, supply some files.
[Magisk] Hanataji:
[MENTION=7815789]PoochyX[/MENTION]

[MENTION=1620550]fOmey[/MENTION]

I can't restore my data because my phone and PC(Windows and Linux) don't see microSD card and i cant format it :) How to fix it?
[Magisk] fOmey:
Nuke everything and start fresh.. I'm guessing it has something to do with encryption? To be honest I have no idea how you managed to corrupt your microSD.. none of the patches has anything remotely related to it.

If it was me I would put the micro sd directly into the PC, format it and go from there.
[Magisk] RolandVV:
hello

i am trying to use smali patcher for my Samsung note 3 but i am getting an error ( see screenshot )

[IMG="error msg"]https://imgur.com/XiwUjqE[/IMG]

any idea what i am doing wrong?

it worked for my huawei p8lite yesterday ( tested it today aswell and still worked for my p8lite )

Thanks in advance

Roland

edit : can't seem to post a picture so i'll try this , imgur DOT COM /a/FfAgRvb
[Magisk] Mikeligno:
Issues with brightness after applying the module

Hi people. I got a brigthness problem with smali parcher module on my samsung galaxy s7 edge exynos. Im running a custom rom based on NFE and probably its the cause of the glitch. Anyway its really smooth and stable, games running better than oreo. wanted to know if there is any way to fix the issue and not going back to oreo. I generated tons of the modules from the same pc since the 0.0.4.2 and no problems at all with the other roms. Anyway when i flash the module.zip from magisk manager (tested also from twrp, same issue), after the reboot i m not able to adjust brightness. I mean brightness values go from 1 to 255, and it seems i can only set the minimum, the medium and the max brightness from the slider. Also tried to use external app for adjusting, disabling auto brightness, but nothing.. tried to also wipe cache and dalvik. No way. If i uninstall the module, after the reboot im again able to adjust properly the brightness from the slider. So the question is. Why is happening that? How patched services.jar may glitch the brightness values of my phone?

I d appreciate your help and i thank you in advance.
[MENTION=1620550]fOmey[/MENTION] you can find out whats wrong with that and how patched sercices.jar may influence brightness of the device. Never seen a problem like that in all my entire life
[Magisk] fOmey:
What mods did you apply? Try only applying mock locations patch and see if you experience the same issue.

Try isolate if it's one of the patches causing it.
[Magisk] Mikeligno:
I tried with the mock location and signature spoofing only. Then i tryed with mock location+ secure flag+ signature verification + signature spoofing without disabling high volume warning. Still the same. Even flashing the module through official twrp of hero2lte

Need smali for playing pokemon go with the latest magisk 19.3. But i always got that problem after some test. Any way to patch mock location without having this issues? Anyway thanks for the fast response. Appreciate it. Hope there is a way to fix that...
[Magisk] trekker99:
That would help with users :)

Do you have a debug version I could play around with in my spare time? To see what is causing the need for admin rights.
[Magisk] fOmey:
Debug version?

Use procmon, that will give you an idea what's going on behind the curtain.
[Magisk] ccxex29:
Galaxy S7 running with OneUI 1.0 Android Pie 9.0. Smali patcher 5.8 runs fine without error or warning. Using magisk and install from twrp.

screenshoting a drm content still shows security policy.
[Magisk] jatintomar:
Can i use it without root or magisk by directly pushing into system through adb
[Magisk] Spartacus500:
Can you describe exactly what screen shoot drm means ?
[Magisk] asa10056:
mock location class not found

Ho do I fix this error, "mock location class not found".

Everyone keep saying deodexying or something services.jar

CAN SOMEONE GIVE ME A FULL TUTORIAL ON THAT? DEODEXYING SERVICES.JAR

NEED A TUROTIAL PLEASE.

THANK YOU
[Magisk] lividhen99:
Iv had that problem with everything past 5.5,so try it with that and see if it works.

Are you using the adb method? If not try that, an odexed file can not be modified well, so if your using the non adb method with an odexed file it will not work.

https://bitbucket.org/JesusFreke/smali/downloads/

This is smali, not smali patcher, I know you can use that to odex and deodex files, but I'm not 100% sure how, if anyone has any info on this, that would be appreciated.
[Magisk] oneplus7prouser:
Disabling signature check doesn't work for me on android Pie, I still cannot install an app update with a different signature.
[Magisk] kuprakupret:
i use version 3.4 - 5.8 still java doesn't detect ..

I reinstall java 5 times still not detect

any have solution?

this my java version
[Magisk] ccxex29:
screenshoting contents like netflix
[Magisk] nallsnowblind:
Trying the ADB-Method without success

"==> Detected java: 9.0.4

==> Dumped framework

!!! ERROR: Base directory not found."

I confirmed the popup and accepted the USB-debugging

Also tried system mounted with twrp

same error
[Magisk] lividhen99:
Try smali 5.5. Or try deleting the bin folder. Did you extract the zip folder before running it, also what device do you have ?
[Magisk] InContext:
From one Aussie to another :cool: Thank you so much for this, extremely easy to use and works first go, used the first method.

Computer: Windows 10 within KVM Virtual Machine on Arch Linux.

Phone: Galaxy Note 5, RR 7.0.1, N920X Hyper-Kernel, Magisk, Microg.

It also worked with LineageOS 16, I didn't like how my phone was reacting to the ROM so moved onto RR.
[Magisk] AlvyRage:
Ugh I have to go back to nougat stock... Can anybody patch my services.jar please?? https://drive.google.com/file/d/104zYvNwrcvmGkb6_F7i2miCNyAAiUqWl/view?usp=drivesdk
[Magisk] RG_007:
Error 1 when flashing smali without magisk

Anyone can help for fix ?

I'm flashing with TWRP recovery, and I get this error

Updater process ended with error: 1

Error installing zip file '/sdcard/

SmaliPatcherModule-0.0.5.8-fOmey@XDA.zip'
[Magisk] cristianodk:
Read instructions :good::good::silly:

INSTRUCTIONS (ADB METHOD/AUTOMATED - RECOMMENDED):

COMPATIBLE WITH BOTH ODEX & DEODEXED ROMS! WILL AUTOMATICALLY DEODEX REQUIRED FILES IF NECESSARY.

Backup device.. safety first kids.

Enable USB debugging in developer settings on your device and connect via USB to your PC.

Run "SmaliPatcher.exe", First startup will automatically download the latest necessary binary's.

Select your desired patches.

Hit "ADB PATCH" button (yes without browsing for a .jar file).

Authorise USB debugging connection on your phone.. example of popup.

Once the process has completed, magisk module will be generated in the same directory as "SmaliPatcher.exe" named: "SmaliPatcherModule-X.X.X.X-fOmey@XDA.zip".

Install the generated magisk module either in recovery mode or from the magisk app.

Enable smali patcher module in magisk.
[Magisk] A30NI_Y:
Mock Location & High Volume patch. For those who need help, please indicate what patches you need.
[Magisk] marregazza:
Hello friend, can u help to patch mine? Here's the link. Thank you for your time.

Mock location

Secure flag

https://drive.google.com/file/d/10QXZCep1UKJgjUzdv3KodMmkkA-ZAQdf/view?usp=drivesdk
[Magisk] A30NI_Y:
Here. Do the necessary backup first.
[Magisk] Herko3:
Hey!

I sent you a private message since Im to new to post outside links. I would be so happy If you could help me out too
[Magisk] ihatethus:
Hey guys, thank you for the work.

I installed twrp via command prompt, then I plugged my phone on pc and generated the smali module for it. After that, I copied all the files manually and ch'ed services.jar

But the patcher doesn't seems to work, what did I do wrong?

Is there another way to install it? Preferable without root
[Magisk] lividhen99:
No, it is a magisk module, magisk SU is required.
[Magisk] mr sandman:
Hi

I'm stucked in "!!! ERROR: Mock location class not found."

Redmi Note 4 Snapdragon - MIUI 10.2 - Android 7.0

patchs: Mock Locations; Secure Flag; High Volume Warning

https://drive.google.com/open?id=1yVN5Xyo3_b1IuM-GB9OxyWwjgdSHFnjx

tnks
[Magisk] marquelito:
[MENTION=1620550]fOmey[/MENTION] i normally used version 5.2 on my s9+ pie. And i think its all great, but now ive updated to 5.8 and after install magisk module i cant use 2sim card+sd. Before insert sim card pin got stuck with message thats something wrong in sim slot.

I use custom rom with rom control, ambasadii rom. But before with old version i can use both 2 sim and sd card.

Just reporting so you know that ia happening.

I use only mock locations patch

Thanks for your work!!

EDIT: Yeah, now i can confirm that 5.2 is working for me. And 5.8 doesn't
[Magisk] ihatethus:
So how do I do it? I'm sorry I'm not used to magisk, should I install it on pc or is it a phone app?
[Magisk] fc_themaster:
Bootloop on my OP7 with Android 10 Open Beta 1.

Someone confirm?
[Magisk] mr sandman:
works when I reboot in TWRP :D

(and sorry about my english)
[Magisk] Herko3:
sorry can you tell me what you did exactly? I have the same phone.

Thanks!
[Magisk] fOmey:
Can you upload both 5.2 & 5.8 modules so I can take a look.
[Magisk] A30NI_Y:
Boot to TWRP recovery, mount system, then run Smali patcher.
[Magisk] Evil...:
Work if i have custom service.jar and what magisk reboot (s10) mean ?
[Magisk] Herko3:
Thank you! It helped a lot
[Magisk] marquelito:
Sure!!

So im not sure of this: i remove 5.8 module and install 5.2. But after that it tripped my knox secure folder. Dont know if it is from installing 5.8 (i didnt open secure folder then) and after that i remove 5.8, installed 5.2, and a couple hours later i tried to use secure folder and it said i installed unauthorized software and secure folder was block. I remove module but its already tripped. Had to reflash rom, and for now i didnt installed smali yet cuz im not at home.

Secure folder is patched to work on root so i dont know how its possible to trip a patched software. But i think the patch its in services. But dont know.

Thanks

Cannot upload right now, app fail to upload

EDIT: Zips uploaded. thanks [MENTION=1620550]fOmey[/MENTION]
[Magisk] seven4zero:
error deodex android pie

everyone please, I failed deodex service.jar on Android 9.0. my handphone is samsung a205f. please help deodex service.jar me. thank you

drive*google*com/file/d/1wnz-xALF3Kc7EGHNCUlsar4iWKH3aS02/view
[Magisk] popyyyy:
I successfully instaled smali but pokemon go is recognizing magisk and don't let me play it. What should I do? Can I unistall magisk?
[Magisk] fOmey:
Your probably overwriting the secure folder patch with the module.. although if the services.jar installed on your phone is already patched, it should be transferred into the smali patcher module.

Can you delete the "bin" folder for both versions of the patcher, this will force the patcher to re-download the binarys... the modules you uploaded look like they use mismatched/different versions of the binarys, so they contain tons of differences which is going to make narrowing down the true important details impossible.. I can't use the files you uploaded to compare unfortunately, if you would like me to look into this further, you'll have to re-upload (sorry).
[Magisk] raoabdullah:
Can someone help me... I am using galaxy s8... And every time I try to to use smali patcher, it gets stuck to Patching classes... I am using 0.5.8 version
[Magisk] Jannomag:
Is there any way to install it without pc by manually executing the needed adb commands?
[Magisk] TxXDRAGONXxT:
hello i have used this with magisk and the screenshot patch didn`t work i still can`t take a screenshot in my banking app
[Magisk] Scarlet D.:
I've been having a problem installing the patch. Phone is Xiaomi redmi note 4 and OS is MIUI global 10.2.3.0 (android version 7.0), it is rooted with the latest magisk version

I've got the following error:
[Magisk] fOmey:
Can you upload the services.jar file found in "adb" folder.