yashsingh1/xdaforums huggingface dataset:
[Magisk] bustyouup4free:
thanks again will report back later, just did a clean install with full wipe on both phones.
[Magisk] Spartacus500:
OK

For Note 9
[Magisk] bustyouup4free:
N9 working, s7 I'll test in like 2 hours after I get it setup (did full wipe again)
[Magisk] DenyDarko:
Hey [MENTION=1620550]fOmey[/MENTION]

Latest version 5.2 crashes immediately on launch with newest windows 10 insider

It seems that if I copy the adb/bin folders to the executable location, downloaded by the 0.0.4.9 which works normally, the crash does not occur.

Furthermore, the crash also not occur if I move the exe to another folder, in that case Downloads. Weird

I bet it crashes during the "Fetching" of the bin files step.

Logs:

Faulting application name: SmaliPatcher.exe, version: 0.0.5.2, time stamp: 0x5d06e173
Faulting module name: KERNELBASE.dll, version: 10.0.18932.1000, time stamp: 0xe6cc6bab
Exception code: 0xe0434352
Fault offset: 0x0011b6a2
Faulting process id: 0xb74
Faulting application start time: 0x01d536937c95d5c6
Faulting application path: C:\Users\denyd\Desktop\SmaliPatcher.exe
Faulting module path: C:\WINDOWS\System32\KERNELBASE.dll
Report Id: 91c1c4ee-a4a4-4b12-824c-84962be34936
Faulting package full name:
Faulting package-relative application ID:

Application: SmaliPatcher.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.FileNotFoundException
at System.IO.__Error.WinIOError(Int32, System.String)
at System.IO.Directory.InternalCreateDirectory(System.String, System.String, System.Object, Boolean)
at System.IO.Directory.InternalCreateDirectoryHelper(System.String, Boolean)
at System.IO.Directory.CreateDirectory(System.String)
at SmaliPatcher.Download.downloadBinary()
at SmaliPatcher.MainForm.<MainForm_Shown>b__16_0()
at System.Threading.ThreadHelper.ThreadStart_Context(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Threading.ThreadHelper.ThreadStart()
[Magisk] bustyouup4free:
I was having similar issue, but at very end before zip was created it would crash. hopefully he fixes it

---------- Post added at 02:17 PM ---------- Previous post was at 02:16 PM ----------

S7 also working fine thanks, hopefully the error will be fixed with the newest 5.2 version. anyways very much appreciated for your help!!!
[Magisk] HMNiLK:
Java detection

How does this tool detect the Java version? Which Path does it use?

I have multiple Java versions installed (for various reasons), and my JAVA_HOME and PATH variables are pointing on the correct version.

However, this tool seems to always select the wrong one, terminating with the following output:

fOmey @ XDA
Patcher version: 0.0.5.2
==> Detected java: 1.5.0_22
==> Dumped framework
==> Detected API: 28
[INFO] Processing 1 file(s) from bin\services.vdex
[INFO] 1 out of 1 Vdex files have been processed
java.lang.UnsupportedClassVersionError: Bad version number in .class file
!!! ERROR: Mock location class not found.
==> Magisk template download complete
==> Generated magisk module zip file
*** Complete ***

, which is a totally wrong Java version of course.

Temporarily deleting the binary folder of this Java version results in no detected version at all.

"java -version" output:

java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)
[Magisk] fOmey:
Both seem like a permission issue.. caused by something like UAC, a virus scanner, windows defender etc. it looks like the patcher is trying to create the directory and failing.

Can you see a "bin" directory near the .exe?

I should add some error checking to display a relevant error.. but this wont solve your problem.

The tool executes "java.exe -version" and checks the output.. so it should default to whatever version path is set in the environmental variables.
[Magisk] bustyouup4free:
I'll take a look at my UAC (I'm pretty sure I disable it on first boot of my laptop lol) , I have windows defender off, but I'll double check it. thanks for helping
[Magisk] HMNiLK:
But why does running "java.exe -version" in console return 1.8.0_121 while this tool seems to detect 1.5.0_22?
[Magisk] HWLew:
Need help to patch smali module zip file

To xda developers,

I have difficulty and error to patch smali module zip file. I need someone help to patch following service.jar for me.

Vivo V3Max:

https://drive.google.com/file/d/16kfQIvlmJ4Oh-SJqOuk_UXc_CDttoD-O/view?usp=sharing

Your help is really appreciated.

Thank you,

New & junior member
[Magisk] Spartacus500:
Which patches do you want to apply ?
[Magisk] andrew2432:
[MENTION=6138728]Spartacus500[/MENTION] you're awesome for helping everyone haha

My ROM was the issue, didn't let it play long enough ever
[Magisk] Telperion:
I didn't see where this was answered -- will this work on Q, or is it still up through Pie only?
[Magisk] HWLew:
Hi,

I tried to use Smali Patcher-4.1 with mock locations and signature spoofing but fail. Please help....

Thank you.
[Magisk] sobirin90:
Unable to use latest version 5.2, but 4.6 still can output magisk zip

Just updated my software version today, hoping to use latest smali if possible, however it stucked at magisk download 99%, or sometimes it will stuck at patching classes..

Any thoughts?

Try to do on version 4.6, and still can compile magisk zip file.
[Magisk] fOmey:
Your guess is as good as mine..

Test it & report back.

Can't seem to reproduce.. just be patient and let it do it's thing.
[Magisk] alexcheveau:
Anyone using this mod with Galaxy S9+ G9650 (Snapdragon) & Pie?

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

Are you on PIE ?

Gonna try this next week hope it works...
[Magisk] isaac5122:
Samsung Tab 4 (SM-T530)

Marshmellow 5.1

Patcher version: 0.0.5.2

==> Detected java: 1.8.0_201

==> Dumped framework

==> Detected API: 21

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

==> Deodexed services.odex

!!! ERROR: Mock location class not found.

==> Magisk template download complete

==> Generated magisk module zip file

*** Complete ***
[Magisk] Spartacus500:
Only 2 patch Vivo V3Max Android 5.1.1

-Mock location

-Signature spoofing
[Magisk] DenyDarko:
You were right [MENTION=1620550]fOmey[/MENTION]

It's the ransomware protection, it control what can access personal folders (Desktop for example) and it denied smali as it's kinda unknown app.

It should handle the exception though, not crash xD
[Magisk] slst:
[MENTION=1620550]fOmey[/MENTION] I have tried everything to make secure flag patch work but it's not working... I'm still getting a black screen any idea how to make it work. Please help in disabling the secure flag for oneplus 7.

fOmey @ XDA

Patcher version: 0.0.5.2

==> Binary download complete

==> Unpacked binarys.

==> Detected java: 12.0.1

==> Dumped framework

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 secure flag function

==> Patched secure controller function

==> Patched secure capture function

==> Patched secure capture 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 ***
[Magisk] Spartacus500:
It is not possible on your file that you have made available to do your services.jar. services.jar must be deodex. I can delete the patch, actually all of the services.jar, you just have to share the entire framework folder and build.prop file.
[Magisk] Telperion:
Success for me on a Pixel 3, Q Beta 5. I didn't need to run from recovery either (not that I could anyway, since TWRP on Q doesn't exist yet). Location was mocked successfully and confirmed with Maps.

That being said, Pogo and Wizards Unite don't run on Q yet, so I went back to Pie.
[Magisk] slst:
Can you please help... I tried everything to record video in Netflix but I'm not able to do... Your help is much appreciated...

https://drive.google.com/file/d/1mQfmNqfsZNaeYi5E4h6_KShbmnAIpzCN/view?usp=drivesdk

https://drive.google.com/file/d/1SGeEi7NcT0i1HrJSF9YoTVbJM8QKS6Zo/view?usp=drivesdk
[Magisk] Spartacus500:
I do not have a good message, in the framework folder you have the services.jar deodex with the services.odex and services.vdex files removed. You did not backup these copies before the Smali patch and now you can not do anything, I do not know enough to remove one patch from services.jar deodex. Also, I can not help anything in this situation.
[Magisk] slst:
Will uninstalling and getting the framework folder works?
[Magisk] Spartacus500:
Uninstalling? How do you want to do this? If you do not have the original services.jar odex files you will not do anything.
[Magisk] KulpeX:
Hi Xda Developers. Im trying to install Smali Patcher but when I click on adb patch it says: ERROR, base directory not found. I have granted access to PC from my phone, latest version of Java and NET framework installed. My phone is a Poco F1, my Android version is: 9 PKQ1. 180720.001 and my MIUI version is : 10.3.5.0. Nothing is working for me, any ideas? Thanks
[Magisk] A30NI_Y:
Have you try putting your phone in TWRP and then run the patcher?
[Magisk] isaac5122:
Samsung Tab 4 (SM-T530)

Marshmellow 5.1

Patcher version: 0.0.5.2

==> Detected java: 1.8.0_201

==> Dumped framework

==> Detected API: 21

Exception in thread "main" org.jf.dexlib2.DexFileFactory$UnsupportedOatVersio nException: Unsupported oat version: 39

==> Deodexed services.odex

!!! ERROR: Mock location class not found.

==> Magisk template download complete

==> Generated magisk module zip file

*** Complete ***
[Magisk] slst:
Can't I get it from my stock ROM file?
[Magisk] jjjq:
Hi, I have problem with patcher

fOmey @ XDA

Patcher version: 0.0.5.2

==> Detected java: 1.8.0_211

==> Dumped framework

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

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

==> Extracted classes.dex

Error occurred during initialization of VM

!!! ERROR: Mock location class not found.

==> Magisk template download complete

==> Generated magisk module zip file

*** Complete ***

My phone is Mi A2, Havoc OS 2.7 android 9, adb folder - drive. google .com/drive/folders/14ktC1Zrb1Yf0xwP_moAq81MyeFVgz0xC?usp=sharing
[Magisk] sgj1:
!!! ERROR: Mock location class not found.

fOmey @ XDA

Patcher version: 0.0.5.2

==> Binary download complete

==> Unpacked binarys.

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

My phone:

Xiaomi Redmi note 4(Snapdragon 625)

Android version 7.0 NRD90M

Android security patch 2018/12/01

Miui Global 10.2 (Stable)

10.2.3.0(NCFMIXM)
[Magisk] Rubeo:
when clicking on abd patch it says !!!! Error high volume warning class not found, how do i fix this?
[Magisk] tacoman1:
==> Patched mock location boolean

==> Patched secure flag boolean

==> Patched secure capture function

==> Patched signature verification function

==> Patched signature verification function

!!! ERROR: High volume warning class not found.

==> Magisk template download complete

==> Generated magisk module zip file

*** Complete ***

I'm using a Lenovo K5, Android 5.1.1

I dont have a ABD folder in my Smali folder though.... Any help?
[Magisk] andrew2432:
After flashing the patch on my s5 I get incompatible, disabling the module gets everything working again. Works fine until the module, appears to run properly in the small gui, any thoughts? Got it to work on my pixel no problem
[Magisk] MilkyOolong:
Pulling files

Can anyone please help me?

Using a OnePlus 6t and I cannot get past Pulling files. I am getting no errors so I don't know what is wrong and although I have seen a few posts from people with similar problems I have not seen a solution.

fOmey @ XDA

Patcher version: 0.0.5.2

==> Detected java: 1.8.0 211

==> Dumped framework

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

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

And then nothing else happens.

Please help!
[Magisk] dani971989:
dear fOmey

can u help me, my phone got bootloop when i flash with my smali pather i don't know why my mistake but i've already flash my phone vibe k5 plus with lineage os rom 8.1 deodex rom...,
[Magisk] Suryo75:
not work oreo 8.1 ?
[Magisk] bigcid10:
It doesn't seem to be working

I flashed 52 with no errors or warnings

but mock locations isn't working ,tried removing reinstalling

htc 10 oreo leedroid 11 r4

update

my fault ,my program got updated and I forgot to make it system app
[Magisk] ashimpure:
Did anyone manage to run smali for Razer Phone 2?

Keep getting the mock location class not found.
[Magisk] reddsmokee:
Do we need to do this in each rom or it's enough for do it once? I change a rom in a week and should i do it again after new rom flash?
[Magisk] HWLew:
Thank you to Spartacus500

Thank you and you make my day. Appreciated.
[Magisk] peter9811:
I have a question

Disable SIGNATURE apk works on Android 9 Pie?

I have a Redmi Note 5, but Lucky Patcher can't be used
[Magisk] JXIV:
Download link is down! Thanks for the work!
[Magisk] wurstherpes:
The link works

Gesendet von meinem SM-G935F mit Tapatalk
[Magisk] Bumblecito:
Disable Secure flag is not working on Moto G6 Plus Android Pie, I think the issue is with the deodex process, all the .odex and vdex. files size are 0 bytes.
[Magisk] Suryo75:
hello, my smali patcher still detected as mock loacation is active. can you help me ? device redmi 6a cactus 8.1
[Magisk] Suryo75:
is it working ? to make fake gps as system app
[Magisk] bigcid10:
Yes,That's the only way it will work

if you don't make a system app ,it doesn't work properly
[Magisk] dani971989:
Up
[Magisk] peter9811:
Redmi Note 5

Flag secure. Work on incognit on Google Chrome, but don't work on Netflix, how to do?
[Magisk] sarcastical:
Can Smali Patcher work ADB over WiFi? Port on my phone is completely ruined and I can barely charge my phone, so I use ADB over WiFi.

Edit: I tried manually creating the patch, but it made my phone bootloop because, I suppose, it doesn't know where the files are in my phone (I checked the script and I don't have the files to replace where script says they should be).
[Magisk] fOmey:
You're not wrong, eventually I'll stop being lazy and write in all the exceptions..

Secure flag patch isn't perfect, it works for some apps.. not all.

I want to improve it but don't have any "secure apps" that fail to test with... If you can give me a example of a free app, please do.

Revoke usb debugging permissions in developer settings and try re-grant access next time you plug your device into the PC.

Could be a ADB driver issue? I don't know...

If all else fails try running the patcher while booted in recovery mode with /system mounted..

Please note the following line in the log:

Exception in thread "main" org.jf.dexlib2.DexFileFactory$UnsupportedOatVersio nException: Unsupported oat version: 39

Your device is not compatible with some of smali patcher dependencies.. not much I can do about that unfortunately..

Please note the following line in the log:

Error occurred during initialization of VM

Looks like the PC you're running the patcher on is running out memory.. google the error and you should be able to find a solution.

Make sure you have granted USB debugging permission on your phone after you have plugged it into your PC..

The patcher can't find the files required to patch.. (the reason you don't have a ADB folder is because the patcher deletes this folder during a clean up process).

Meaning that particular patch is currently incompatible with your device.. upload your deodexed services.jar and I can look into making it compatible.

You should be generating a new module for each rom.

Partially... allows modified APK's to run.. you can't install modified APK's over the top of signed ones tho.

You'll need to either replace them manually or use a magisk module to replace them.

You should not have to make the spoofer a system app... try a different spoofer.

All my testing was done while the spoofer was a simple user app and it worked just fine.

I've tested the patcher with ADB over wifi and it works fine.. if you're boot looping its most likely caused by the deodex process.

If your device requires some special deodex ritual process that is entirely up to you to discover and execute it. If/when you finally get a successful boot you can manually target your services.jar and patch it.

Some devices do require a little more finesse to deodex, otherwise they will boot loop.. or perhaps they simply are not compatible with smali/baksmali.. could be a number of reasons, which unfortunately I don't have all the answers to.

Do a little research, good luck! :good:
[Magisk] jdhelman:
PoGo just detected muy OS has root in the new latest version. Do I have to update my Smali zip?
[Magisk] tatze_tatze:
Hi guys I have a problem,, I always get an error message when trying to generate the smali-patch.

This one with the adp:

This one when I try to patch the jar:

Then I tried the fulmics deodexer with a tutorial from reddit, but it still didn´t work.

I don´t know what do to now. I use an Galaxy S7 Edge with Android 8.0. I uploaded the build.prob and the frameworks folder, hopefully someone can help me. Because I´m new to this forum i can´t share a link, just replace the xx with tt.

hxxps://drive.google.com/drive/folders/1ZdhHZxhmp7n-BFQn62IETLrhstlIkL_I?usp=sharing
[Magisk] Spartacus500:
Pack the entire framework folder and build.prop file for zip compression and share it with me. Downloading each separate file is very time-consuming.
[Magisk] tatze_tatze:
Here you go:

hxxps://drive.google.com/drive/folders/1Nrwzr46Stf6kPFcTMh5O8HLVMN4vnZBR?usp=sharing
[Magisk] Spartacus500:
What patches do you want to apply ?
[Magisk] tatze_tatze:
mock locations and high volume warning
[Magisk] Spartacus500:
There is a problem in your framework folder is the services.odex file 0 byte, you can not do deodex ... You must share the software framework with the software without any modifications on the services.jar file, otherwise you can not do deodex on the services.jar file.
[Magisk] tatze_tatze:
so what to do now? should i reset the phone again?
[Magisk] Spartacus500:
Resetting the phone will not restore the deleted file, you may even have a problem with the deleted services.odex file, it only rescues you from re-inserting the software by Odin.

Alternatively, if you have a copy of the system that you have previously performed using TWRP, it is enough to restore the system in this case.
[Magisk] tatze_tatze:
Ok, I´ll put the firmware back on and then we´ll see if it works.
[Magisk] Herox:
Thanks for this it works great. Super pro tip. The first time it sent my tablet into a boot loop but worked fine on my S8. My tablet was in charge only not file transfer. If your module causes a bootloop make sure you had your device in file transfer.
[Magisk] tatze_tatze:
It worked, thanks for your help :good:
[Magisk] dani971989:
dear mr Spartacus500

can u help me patch my service.jar, i've already try patch and get bootloop,..
[Magisk] Spartacus500:
Not possible, you services.jar is not deodexed, please upload folder framework & file build.prop
[Magisk] ksoulxx:
Samli.exe file is not fetching any data, is it a server problem?
[Magisk] kuprakupret:
i'm used Smali Patcher 5.2 but error java not detect

any have solution?
[Magisk] eddusilver:
I tried again...

so, this time, whitout a device, I pasted framework folder on PC and tried use smali patcher, and show it

fOmey @ XDA

Patcher version: 0.0.5.2

==> Binary download complete

==> Unpacked binarys.

==> Detected java: 1.8.0_91

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

Like before, the generated file services.odex is 0 byte, maybe this cause bootloop

my framework is

hxxps://drive.google.com/file/d/1e4agj8mG1cG2AbHbR1ID-I9SB4QT23jT/view?usp=sharing

can you help me whit my SM-G532
[Magisk] Spartacus500:
Which patches do you want to use in services.jar ? Tomorrow I will try to do these patches for you in the services.jar you provide.
[Magisk] eddusilver:
mock locations
[Magisk] fOmey:
If you browse for a services.jar, it must be deodexed.. note the error in the log:

!!! ERROR: Mock location class not found.

The generated services.odex is 0 bytes because its a dummy file... it replaces the original file, because .odex has been merged into the .apk.

CHANGELOG ::

5.3

Suppress false positive "magisk download failed" errors.

Verify patched APK's have been generated before creating module.
[Magisk] zefexi:
[Xiaomi Redmi 5+ with Android 8.1.0 and MIUI Global 10.2.3 rom)

I patched a deodexed services.jar file with "Mock Locations" ticked and phone plugged in with USB Debugging prompted. The product inside the patch was without services.jar, but it had a 0 byte services.odex.

Log;

fOmey @ XDA

Patcher version: 0.0.5.2

==> Binary download complete

==> Unpacked binarys.

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

==> Magisk template download complete

==> Generated magisk module zip file

*** Complete ***

Will upload the bin later.

I also get this message when running the ADB method in the cmd: "adb: warning: stat failed for path /system/framework/miuisdk.jar: No such file or directory

adb: warning: stat failed for path /system/framework/miuisystem.jar: No such file or directory" with the same output as the .jar patch.
[Magisk] Spartacus500:
Your services.jar is only Mock location patch Smali patcher 5.3
[Magisk] dani971989:
https://drive.google.com/file/d/1noVBNlMtxzWJMIOKciB3IDe80137xQPW/view?usp=drivesdk

https://drive.google.com/file/d/14dNsukS8i5ZWnhzNVTrdgd5q6psitahl/view?usp=drivesdk
[Magisk] Spartacus500:
What patches do you want to apply?

Attention to everyone interested, if you provide your framework folder and file build.prop, write immediately what patches you want to apply, I will not have to ask separately each time.
[Magisk] dani971989:
mock location mr. Spartacus500

---------- Post added at 01:39 PM ---------- Previous post was at 01:38 PM ----------

Mock location mr. Spartacus500

---------- Post added at 02:06 PM ---------- Previous post was at 01:39 PM ----------

mock location mr

---------- Post added at 02:07 PM ---------- Previous post was at 02:06 PM ----------

smali patcher mr

---------- Post added at 02:12 PM ---------- Previous post was at 02:07 PM ----------

smali patcher mr
[Magisk] marregazza:
Hello sir. I need your help. Got a small problem on my pc ?. Here's the service.jar file link below. Thank you in advance.

Secure flag

Mock location

https://drive.google.com/file/d/1QYyG69Vff2o_Yxw-neOBQFmgO2ykOO32/view?usp=drivesdk
[Magisk] fenixfyre:
I tried generating a module with android q beta 5 and it went past all the steps without a hitch but I still seem to be unable to mock locations. Is this expected behavior on Q or if not, which logs should I send to be able to help figure this out?

edit: by went without a hitch I meant smali successfully created a module that I was able to successfully load with magisk canary