yashsingh1/xdaforums huggingface dataset:
[Magisk] m3lv1nht:
i'm trying to make the modul but got this error. help needed. i'm using redmi note 4 mtk with miui 10 version 8.9.20.

this is the error log :

fOmey @ XDA

Patcher Version: 0.0.2.7

==> Binary download complete

==> Unpacked binarys.

I: Using Apktool 2.3.4 on services.jar

I: Baksmaling classes.dex...

Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: java.util.zip.ZipException: invalid stored block lengths

at brut.androlib.Androlib.decodeSourcesSmali(Androlib.java:100)

at brut.androlib.ApkDecoder.decode(ApkDecoder.java:147)

at brut.apktool.Main.cmdDecode(Main.java:164)

at brut.apktool.Main.main(Main.java:73)

Caused by: brut.androlib.AndrolibException: java.util.zip.ZipException: invalid stored block lengths

at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:85)

at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:38)

at brut.androlib.Androlib.decodeSourcesSmali(Androlib.java:98)

... 3 more

Caused by: java.util.zip.ZipException: invalid stored block lengths

at java.util.zip.InflaterInputStream.read(Unknown Source)

at java.io.FilterInputStream.read(Unknown Source)

at com.google.common.io.ByteStreams.copy(ByteStreams.java:70)

at com.google.common.io.ByteStreams.toByteArray(ByteStreams.java:115)

at org.jf.dexlib2.dexbacked.ZipDexContainer.loadEntry(ZipDexContainer.java:192)

at org.jf.dexlib2.dexbacked.ZipDexContainer.getEntry(ZipDexContainer.java:120)

at org.jf.dexlib2.dexbacked.ZipDexContainer.getEntry(ZipDexContainer.java:58)

at org.jf.dexlib2.DexFileFactory$DexEntryFinder.findEntry(DexFileFactory.java:382)

at org.jf.dexlib2.DexFileFactory.loadDexEntry(DexFileFactory.java:186)

at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:72)

... 5 more

!!! ERROR: Mock location class not found.

thank you
[Magisk] Tenshirock:
Hello, I met the same problem and in my case it was the names of files that exceed the limit under windows. My solution was to move the SmaliPatcher folder in the root C: Rename the folder as short as possible. The process is then executed without problem.
[Magisk] Spartacus500:
What is this 'FusedLocation' application? What does this app give you? In S7 8.0, this application is in version 8.0.0, and your version is 6.0.0.
[Magisk] Mzwir:
This is not supported for android lollipop?
[Magisk] Spartacus500:
What exactly ?
[Magisk] wawankonyol:
HELLO

I am very curious and want to ask if the smali pacher file can be flashed via twrp?

if it can be flashing through recovery please indicate how.

# forgive me if the language I use is less understood
[Magisk] shoey63:
Do you mean if you don't want to install it as a magisk module?

Extract the services.jar from the zip.

Then replace the one in /system/framework with it using twrp file manager, or adb or a root file manager.
[Magisk] robbayani:
is feature point 3 & 4 (Sign Verication & Spoofing) same as three feature of my attach picture??

if yes its same as #1, #2 or #3 on my picture??
[Magisk] TheUndertaker21:
one of my favorite little module.

glad it's still being updated
[Magisk] ChinmayLIVE:
does this module work on android pie (pixel experience for mido)?
[Magisk] fOmey:
It certainly can, the generated module behaves exactly like a normal magisk module would.

Signature verification = package manager.

Signature spoofing = signature spoofing permission.. the modules in your list are a little vague.. can't confirm/deny.

It should.. report back.
[Magisk] wawankonyol:
What files to be replaced

---------------------------------------------------------------------

what file must be replaced ??

I use the Smali 2.7 module.

in the service.jar file that I see there are four files classes.dex1, classes.dex2, classes.dex3, classes.dex4.
[Magisk] shoey63:
The services.jar file itself. I didn't say to look inside.[emoji3]
[Magisk] robbayani:
ok.. no problem..

if U can add all three option on my picture in u'r module it will great :good:

or u can make other module for patch three of it :D
[Magisk] Iancaster:
Is there way to bypass mock location app from the developer option? I have succesfully created smali patcher for my phone yet this problem still occured

Everytime I used fgps apps, it always force me to turn off mock location from the developer option

I didnt use Xposed because my needed app could detect it

My phone is Samsung A6, running Android 8.0

Everything went normal when I patch my service.jar

[MENTION=1620550]fOmey[/MENTION] any way to tell if the my module was installed correctly? What line should I look for?
[Magisk] fOmey:
I need much more info of what the patches do other than a screenshot with very vague descriptions if you want that to happen.

Source code? A unpatched file & patched file? Something...
[Magisk] ADIAN HERAWAN:
FusedLocationPatchModule-0.0.0.1-fOmey_XDA.zip issue

Dear sir f0mey,

I have update my Xiaomi Mi3 A1 to September 2018 patch, but after that i get my GPS not have location(lost). I try to remove the FusedLocationPatchModule-0.0.0.1-fOmey_XDA.zip module, and my GPS come back work again.

So now I don't use the module, can it make the problem ?

Sorry for my bad English.
[Magisk] fOmey:
That module was a experimental.. don't use it.
[Magisk] ChinmayLIVE:
I am Using Pixel Experience 9.0 Rom (MIDO).

can someone please help me out? I didnt get how to do it because it's too complicated for me..

Pls help me out.????
[Magisk] fOmey:
Enable developer options in settings.

Enable USB debugging under developer options in settings.

Connect phone via USB to PC.

Confirm USB debugging permission popup on phone.

Open SmaliPatcher.

Click "Patch" button.

Install magisk module.
[Magisk] Boel Nauri:
Yups, i understand what ur poin about bro

Yes it can n it work perfectly, believe me

I've try it.

Note:

Work on both the green import n the local one
[Magisk] wan_nomore:
Can the gps spoofer package name change? Coz the Grabcar apps detect when use the gps spoofer alk
[Magisk] Astatin13:
If I run smalipatcher after decompiling "SmaliPatcher has stopped working" error appear and program close. My phone Oneplus 3T Computer Windows 10. I installed Java Se and Fw 4.7 still same problem. How can I patch my phone?
[Magisk] lockmunk:
success on oneplus 5t oos open beta 17
[Magisk] b4karmenyan:
yup...i also have same problem...i've sucesfully created smali patcher and installed it but still if i turn on mock location...my needed app can detect it.

can anyone share more detail step on how to use smali patcher so my mock location dont get detected ?
[Magisk] dani971989:
dear mr fOmey.

please help me patch smali patcher i'm using cusrom lineage 16 running android pie, i've already root my with magisk
[Magisk] Graceli:
Hi fOmey, I need disable "Secure flag" module, so it can allow screenshots/screensharing in secure apps.

I followed your instructions, and install the module successfully, but I still cannot do screenshots.

Could you help me out?

Thanks very much:)
[Magisk] fOmey:
Try a different spoofer, the one your using could be blacklisted.

Some apps detect screenshots with other methods.. what type of app are you trying to screenshot?
[Magisk] levone1:
Sorry if I missed it; I think I've been pretty thorough in searching, but... I'm mainly interested in signature verification disable. I've read that it may or may not work, and I've read that if it will work, it will only work if apk has been signed. I have run the smali patcher, and got successful module created, (Sony Xperia X Compact, latest stock O 8.0, odex, [and I also tried with deodex services.jar]). Flashed module, and no error. Tried to use modded SystemUI apk, and not working. Questions: 1) if I were to sign the modded system apk to try it again, which signature should I use, (since I'm pretty sure testkey won't work with system app), and 2) is there any way to test if signature verification is disabled, (I know at one point [MENTION=4433143]venkat kamesh[/MENTION] made an app for it, but then removed it for security issues - maybe someone has something similar?)?

Thanks
[Magisk] venkat kamesh:
hi bro

but i think i have not removed any of my files....

are you talking about this tool ?
[Magisk] levone1:
No, but in one of your threads from a few years ago, (I've searched, and can't remember which one - I think it was for superuser mod for LP or maybe Kryptonian...), you posted an apk app that did nothing except test if superuser mod was working or not, (I think if the app opened, it meant it was working). After a little while, you posted that you removed it, because of a question about security, (or something like that...)

Do you remember?
[Magisk] levone1:
Also, I see 'failed to copy /system/build.prop' in my log, and in others'. Is that a problem, if the rest of the process goes fine? Is it an issue of adb not being root?
[Magisk] fOmey:
When you say it doesn't work, what doesn't work exactly? Have you checked the logs and figured out where its failing?

Exactly, some devices can't pull build.prop, harmless warning.
[Magisk] levone1:
Haven't gotten into checking logs yet... What's happening is that a modded apk won't load on boot. For example, if I modify my Settings app, just a simple color value change for testing, then I recompile, and sign and push to /system, there is no Settings app on reboot. Sony ric and dm-verity are disabled, but for O, you need sig verification to be disabled also, even though I copy original signature from apk to new apk. I've patched framework before on other devices and versions to get superuser mod, but I always followed a guide, since I don't know enough about smali to figure it out myself. There's currently no confirmed guide for X Compact O, so I was happy to find this, but apk still not loading. Not sure if signature verification is still not disabled, even after flashing module, or if it is, but I need to do something else...

Thanks
[Magisk] b4karmenyan:
any suggestion for the spoofer ??
[Magisk] fOmey:
As long as you have enabled the patch, then it's safe to assume its active.. as long as you have the magisk module active.

Take a look at the logs, may answer a few questions... I would simply decompile & recompile the settings app and see how you go, also verify you're setting the correct permissions when pushing to /system...

Rather then pushing files to /system, I would make a simple test magisk module... so if you get caught in a boot loop for whatever reason you can simply uninstall magisk to recover, this is exactly how I test potential patches..
[Magisk] LikaLiku:
how? make a tutorial to deodex service.jar android Pie please... :(
[Magisk] garth_murk:
links is gone

https://xdaforums.com/attachment.php?attachmentid=4592740&d=1536576790 link can't open master...:):):):)
[Magisk] Adromir:
I am honestly not sure if I need to tick or untick the Option to remove FLAG_SECURE. Which of this is correct?
[Magisk] Suryo75:
Mock location jump back to ist original location

Does smali patcher compatible with mock location (running fake location place to place). Because after installed smali patcher my device couldnt smooth when running mock location. I use samsung j7 prime version 7. I have changed setting location accuraracy to device only, set mock location as app default inside developer option. Thank you for kindmess response.
[Magisk] eliaspizarro:
Just follow the op instructions, ADB, root, PC and exec the app, then copy the zip to your phone and install with Magisk app
[Magisk] Darke5tShad0w:
Working fine here.
[Magisk] robbayani:
what difference patching via direct pulling vs services.jar??

i'm testing two method above + check all 4 patch options..

zip result from direct pulling is 3.19Mb

zip result from services.jar is 3.21Mb

what best result via pulling or services.jar only??
[Magisk] adikri:
privacy manger issue

I've been using this lately and it was working flawless but recent updates broke "Privacy Manager" on RR ROM, after patching I couldn't allow or deny permission of apps via using privacy manager.

And usually I patch everything (all 4 options), I've attached patched services.jr in zip and unzip and also untouched services.jar too, though I couldn't be able to provide logs.

Device : Lenovo K3 Note

ROM : RR ROM

Android : 7.1.2
[Magisk] TheUndertaker21:
i successfully flashed this on xl2 but signature disabling doesn't seem to work

since apps can't be installed on top of each other
[Magisk] fOmey:
The patch your speaking of is outside of services.jar..

The patch included in smalipatcher allows modified apps to run without force closing, you still need to replace them manually.
[Magisk] TheUndertaker21:
i'm not sure what you mean? do i replace the services.jar that smali created on my xl2 ?

thanks
[Magisk] fOmey:
No.. you install the smalipatcher module the same as any other magisk module.

You said:

The signature verification patch doesn't allow you to overwrite apps by installing them through the package manager.... the patch specifically allows modified system apps to run/execute.

To clarify: You still need to overwrite the system apps your trying to modify manually... you can't just install a modified systemui.apk through a file manager.
[Magisk] TheUndertaker21:
Oh meaning I won't be able to overwrite an modify apk that I already installed without moving it through system app?
[Magisk] Ir.pongky:
Add features smalipatcher

[MENTION=1620550]fOmey[/MENTION] can you add features like this?

- Signature Verification always True

- Disable .apk Signature Verification

- Disable signature verification in the package manager

For now Your smali patcher, just patch disable signature verification in the package manager,

please add feature patcher:

- Signature Verification always True

- Disable .apk Signature Verification
[Magisk] fOmey:
Some of those patches are outside of services.jar.

EDIT: I am considering expanding the patcher, right now I'm figuring out if its worth doing as its going to be quite a bit of work..

I'm trying to figure out what patches are worth adding, so far I've come up with the following:

Bluetooth latency fix for game pads - input lag. (Tested & confirmed working)

Disabling fusedlocation service, perhaps forcing fusedlocation to use GPS only? (WIP - Untested)

Enable mock location for all apps aka. "Mock mock locations" xposed module. (WIP)

Signature verification always true (WIP).

Disable .APK signature verification (WIP).

If you have any ideas, please share... just keep in mind patches need to be relatively simple. Magisk doesn't allow complex modification like xposed does, so things like "app settings" xposed module just wouldn't be possible with magisk.
[Magisk] Duden17:
Hi f0mey, i have problem with my fake gps accurasi. with google play service update version 14.3.66 before flash smali my fake gps accurasi 0.01 but after flash smali my accurasi become 3. This happen after google play service update to 14.3.66. and i try to downgrade google play service to 13.2.80 the accurasi fix on 0.01 with smali install on my device. But after hour google play service update itself and the accurasi become 3 again. Is it possible that smali not working on play service 14.3.66 coz on play service 13.2.80 my accurasi fix on 0.01 thank you for your smali patcher. Sorry for bad english thanks again.
[Magisk] Aan579:
Thank you for Smali Patcher, it's very helpful for my driver's work. there is a little problem that I experienced smali patcher has been formed when it is installed via the Magisk module and has been successfully used but there is a pretty lag which makes the movement of my mobile phone feel heavy, hopefully in the future smali patcher can be better no lag is felt. my mobile zenfone max pro m1 android oreo v.8.1.0. very2 tq
[Magisk] fOmey:
Is the accuracy 3 while your spoofing? or normal GPS updates?

Clear your cache and use your phone for a day or two, any lag should clear right up.
[Magisk] Aan579:
ok i try, tq vry2 mch
[Magisk] Getsuga121:
How would one go about installing an app manually? Thanks
[Magisk] Duden17:
[/COLOR]
[Magisk] drakulaboy:
[MENTION=1620550]fOmey[/MENTION] great tool, upcoming patches with Signature verification always true and Disable .APK signature verification will be good, can't wait, i'm doing this manually, by decompiling core-oj.jar, and doing this:

open smali\java\security\Signature.smali

find method

.method public final verify([B)Z

after "move-result v0" add "const/4 v0, 0x1" (no quotes)

now in the same file find method

.method public final verify([BII)Z

after "move-result v0" add "const/4 v0, 0x1" (no quotes)

Save the file and open smali\java\security\MessageDigest.smali

find method

.method public static isEqual([B[B)Z

the first "const/4 v2, 0x0" , (it can be v1 or other number) replace 0x0 with 0x1

.method public static isEqual([B[B)Z
.registers 7
.param p0, "digesta" # [B
.param p1, "digestb" # [B

.prologue
const/4 v2, 0x0 #HERE CHANGE 0x0 with 0x1

.line 461
array-length v3, p0

array-length v4, p1

if-eq v3, v4, :cond_6

tut taken from 4pda.ru forums

now with services.jar it's easy. eagerly waiting for upcoming version
[Magisk] fOmey:
The easiest way would be extracting services.jar from the generated module zip & placing it on your phone sdcard.

Boot into a custom recovery (TWRP) and just copy & paste it to /system/framework.. making sure to set the correct permissions - view the original services.jar permissions before overwriting if your unsure.

If your running a odexed rom you need to delete the services.odex files also.. they can either be in:

/system/framework/oat/arm

/system/framework/oat/arm64

/system/framework/arm

/system/framework/arm64

Before attempting any of this, backup... backup.. backup.

I would try setting the accuracy of the spoof location on every location update.

Thank you for sharing.
[Magisk] turturel:
Hi,

I'm having a weird issues with the patcher - if I select one or more patch options, after patching my services.jar it simply stops doing anything and doesn't generate the Magisk module (see picture). However, if I don't select any patches it generates the module succesfully...

Any ideas?

Thanks!
[Magisk] tedi2p:
help

please help me

fOmey @ XDA

Patcher Version: 0.0.2.7

I: Using Apktool 2.3.4 on services.jar

I: Baksmaling classes.dex...

I: Copying assets and libs...

I: Copying unknown files...

I: Copying original files...

!!! ERROR: Mock location class not found.
[Magisk] 88Root-Team:
deodex Service.jar file
[Magisk] DeMarco84:
what's different smali patcher 2.2 2.7 or 3.1 ? and where i can find smali patcher 3.1. thanks
[Magisk] s.i.t.h.l.o.r.d:
Where you find a version 3.1 of the patcher is totally beyond me.

Is it that difficult to use the op's official posting as the source to trust?

https://xdaforums.com/apps/magisk/module-smali-patcher-0-7-t3680053
[Magisk] robbayani:
if i want to mock location only is better tick option #1 & #4 only??

because after tick all option my GMaps only show Grey Dot, not Blue Dot..

also Grey Dot showing my location far away from my real current location..

my network connection also good..

is this because i tick all option??
[Magisk] neokragu:
Dear fOmey,

Very good work, I have use the patcher for disable secure signature flag. I haven't select any other patch. I am using Redmi Note 5 pro with havoc custom rom based on oreo. I am using a streaming app named Hotstar for cinemas. I want to mirror to my smart tv. But hot star app not let me to take screenshot nor mirror to tv. But after patching with this module, I can take screen shot but not mirror to tv. But xposed module makes this work correctly, I want to get rid of xposed if samli patcher allow me to do screen mirroring on Hotstar. Thank you for the great work.
[Magisk] Mikanoshi:
Any idea how to apply core-oj.jar patch above to an odexed Android 9 ROM? :)

These are the odex files there:

framework/boot-core-oj.vdex
framework/arm/boot-core-oj.art
framework/arm/boot-core-oj.art.rel
framework/arm/boot-core-oj.oat
framework/arm/boot-core-oj.vdex (symlink to first file)
framework/arm64/boot-core-oj.art
framework/arm64/boot-core-oj.art.rel
framework/arm64/boot-core-oj.oat
framework/arm64/boot-core-oj.vdex (symlink to first file)
[Magisk] Bcl2:
Hi. I have a Moto z2 play with official LineageOS, deodexed. Everytime I use smali patcher.exe, no matter if I use the automatic procedure or the manual procedure (browse for services.jar), the app close itself while ''Decompiling..''. No error message is shown, the app simply close itself. I can see that ''adb'' and ''bin'' folders are created into the smali patcher folder, but no module is generated. I have windows 10 x64. Do you have any clue on what is wrong?

---EDIT---

nevermind... You should change the link in the first post because it leads to the download page for JDK, while you need JRE!! :)
[Magisk] everix:
I'm trying to use this patcher to let me take screenshots in Puzzle and Dragons, which uses FLAG_SECURE to block them. In the past, on Android O, I was able to used the Xposed Module to do this. Now that I've upgraded to Android P, I'm looking for a different way since Xposed isn't available. I tried using the patcher, got a Magisk Module generated, and installed it, but I still can't take screenshots. Any ideas as to what could be going on?

Device: Pixel 2

Android Version: Latest October Security Patch of Android P from Google

Rooted with Magisk

Log:
[Magisk] appiend96:
link eror

please fix
[Magisk] iamelton:
no problem with the links in OP..
[Magisk] pandrizon:
Target jar must be deodex (eror)

I have a patch jar problem, the message displayed is "target jar must be deodex", while my ROM is deodex, I've tried fulmicsdeodexer to get a deodex service.jar, but it doesn't work on my PC. My PC already uses the latest java JRE and NetFrameawork 4.72. The Rom I use is Miui.9, my android version is 6.01. Rom Arvansoft 8.5.2.4. can anyone help me?
[Magisk] Warkhawar:
Bisa bantu saya maaf saya hanya bisa berbicara bahasa indonesia

Saya mempunyai kesulitan smali patcher sudah berhasil saya pasang / instal di modul magisk tapi kenapa smali patcher tidak berfungsi dengan baik dan mock mock location masih terdeteksi menggunakan fake gps mohon memberitau solusinya saya menggunakan handphone samsung J510 Fn 2016
[Magisk] neokragu:
Please use English.
[Magisk] TaufikAziz:
Hi Admin. I have a problem deodex my services.jar on my s6 nougat version. Im using fulmiscdeodoxer and attach the framework and build prop file and chose the smali and baksmali 2.2.1 and result show successful. When i check the services.jar, the classess.dex file is not exist, but it is in 'áll share' in the framework. I copy and paste the file 'classes.dex' into folder services.jar and run the smali patcher'and browse into services.jar, result shows error 'mock location class not found'. I dont know what to do next and im not sure weather services.jar is already deodex or not.

Anyone here can help me on this?

Much appreciated if someone here can patch the smali patcher for me. Thank you in advance.
[Magisk] luiskabes:
Kalo Grab usahakan ga terinstall xposed ya, cukup magisk+module, dan tuyul.

dan usahakan tuyul yang di gunakan seperti xbt, bsh atau driver xgps dari diwa, jangan lupa di magisk hide centang grab, dan search "gsf" centang semua yang nama paket ada "gsf" na.
[Magisk] SacredDeviL666:
Hi Everyone,

Kindly go through our forum rules before posting/creating new threads in future.

You could auto translate using :- https://translate.google.com/

Thanks

SacredDeviL666

Forum Moderator.
[Magisk] gojeklawangsewu@gmail.com:
smalipatcher 0.0.3.1