yashsingh1/xdaforums huggingface dataset:
[Magisk] Spartacus500:
Why does not the system application update work with other signatures or without a signature ? App not installed...

I mean updating system applications from the apkmirror site. [MENTION=1620550]fOmey[/MENTION]

Please add Smali Patcher : signature spoofing
[Magisk] fOmey:
Nanodroid offers signature spoofing already.
[Magisk] Spartacus500:
I understand, but can you add this patch to Smali Patcher so that you can finish your services.jar ?
[Magisk] PrimateaEu:
UP

smali patcher.exe worked, creating the zip, but no way to install/flash it. alway "/data/adb/magisk.img mount failed...

Error: 1

i have a maze alpha 4g/64 android 7.0

magisk 16 and twrp 3.2.1

Quote:

fOmey @ XDA

Patcher Version: 0.0.2.2

==> Binary download complete

==> Unpacked binary.

system/build.prop: 1 file pulled. 0.7 MB/s (12222 bytes in 0.016s)

pull: building file list...

/system/framework/: 168 files pulled. 17.0 MB/s (254602938 bytes in 14.291s)

==> Dumped framework

==> Detected API: 24

==> Deodexed services.jar

==> Patched mock location boolean

==> Patched mock location boolean

==> Patched secure flag function

==> Patched secure flag boolean

==> Patched signature verification function

==> Generated classes

I: Using Apktool 2.3.3 on services.jar

I: Copying assets and libs...

I: Copying unknown files...

I: Copying original files...

I: Using Apktool 2.3.3

I: Copying tmp classes.dex file...

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

Quote:

- Copying zip to temp directory

- Installing modulo_Magick_mock.zip

- Mounting /system, /vendor

Archive: /data/user/0/com.topjohnwu.magisk/cache/install.zip

inflating: config.sh

inflating: module.prop

******************************

Smali Patcher

fOmey @ XDA

******************************

Powered by Magisk (@topjohnwu)

******************************

- Creating /data/adb/magisk_merge.img with size 64M

Creating filesystem with parameters:

Size: 67108864

Block size: 4096

Blocks per group: 32768

Inodes per group: 4096

Inode size: 256

Journal blocks: 1024

Label:

Blocks: 16384

Block groups: 1

Reserved block group size: 7

Created filesystem with 11/4096 inodes and 1294/16384 blocks

- Mounting /data/adb/magisk_merge.img to /dev/tmp/magisk_img

! /data/adb/magisk_merge.img mount failed...

Failed!

! Installation failed
[Magisk] Spartacus500:
[MENTION=1620550]fOmey[/MENTION]

0.9 ::

Added new patch: signature spoofing.

Please add this patch to Smali Patcher 2.2 ?
[Magisk] fOmey:
[MENTION=6138728]Spartacus500[/MENTION]

No, I don't see the point in wasting any more time on signature spoofing.. nano droid already provides this mod for users.
[Magisk] Spartacus500:
What problem do you add patch signature spoofing to Smali Patcher ? You do not need all patches to mark, I did not even have the opportunity to test the version of Smali Patcher 1.0 where it was this patch signature applied, I understand that some people cause bootloop as you wrote, but I mentioned earlier if someone will not want to use this patch . I do not intend to install Nanodroid, I only need to test services.jar with patches signature spoofing, also add this patch to Smali Patcher.
[Magisk] DeniTx:
It's been a while since I visited this forum, before signature spoofing didn't work has this issue been resolved now?
[Magisk] fOmey:
At the time no one was willing to test and provide files I needed, the patch needs to be slightly different for each android version.. so I decided to remove it.

Not sure, I don't use signature spoofing.
[Magisk] Spartacus500:
Can you do patch signature spoofing for my S7 Edge Oreo 8.0 services.jar version ?
[Magisk] TheUndertaker21:
can someone patch my service for me ? 8.1

RR samsung S9+

i've tried everywhere and can't find a tool that can do that and everything is outdated

thanks in advance
[Magisk] Spartacus500:
Your services.jar is not deodex, therefore you can not patch Smali Patcher.
[Magisk] TheUndertaker21:
LOL

that's why i posted it and asked someone do deodex it for me since i can't seem to find any tools for 8.1
[Magisk] Spartacus500:
[MENTION=1620550]fOmey[/MENTION]

You can share Smali Patcher 1.0 where is this patch signature spoofing ?
[Magisk] fOmey:
No, it will bootloop.

It's not compatible with oreo.. why are having trouble understanding this?! :eek:

Follow adb method instructions in OP, you don't need any other tools beside the patcher.

No.. Its... not.. compatible.
[Magisk] Spartacus500:
[MENTION=1620550]fOmey[/MENTION]

Share Smali Patcher 1.0, I will personally test patch signature spoofing.
[Magisk] fOmey:
God your stubborn & annoying.. upload your services.jar.
[Magisk] Spartacus500:
Do not get me wrong, I just want to test.
[Magisk] fOmey:
Signature verification won't rebuild.. as I said.. not compatible.

fOmey @ XDA
Patcher Version: 0.0.2.2
I: Using Apktool 2.3.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...
==> Patched mock location boolean
==> Patched mock location boolean
==> Patched secure flag function
==> Patched secure flag boolean
==> Patched signature verification function
I: Using Apktool 2.3.1
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes2 folder into classes2.dex...
I: Building apk file...
I: Copying unknown files/dir...
W: Could not find resources
==> Magisk template download complete
==> Generated magisk module zip file
*** Complete ***
I: Using Apktool 2.3.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...
==> Patched mock location boolean
==> Patched mock location boolean
==> Patched secure flag function
==> Patched secure flag boolean
==> Patched signature verification function
==> Patched signature spoofing function
I: Using Apktool 2.3.1
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
Exception in thread "main" org.jf.util.ExceptionWithContext: Exception occurred while writing code_item for method Lcom/android/server/fingerprint/FingerprintService$SemGestureManager;->setGestureMode(II)V
at org.jf.dexlib2.writer.DexWriter.writeDebugAndCodeItems(DexWriter.java:825)
at org.jf.dexlib2.writer.DexWriter.writeTo(DexWriter.java:268)
at org.jf.dexlib2.writer.DexWriter.writeTo(DexWriter.java:246)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:61)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:36)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:419)
at brut.androlib.Androlib.buildSources(Androlib.java:350)
at brut.androlib.Androlib.build(Androlib.java:302)
at brut.androlib.Androlib.build(Androlib.java:270)
at brut.apktool.Main.cmdBuild(Main.java:227)
at brut.apktool.Main.main(Main.java:75)
Caused by: org.jf.util.ExceptionWithContext: Error while writing instruction at code offset 0x23
at org.jf.dexlib2.writer.DexWriter.writeCodeItem(DexWriter.java:1098)
at org.jf.dexlib2.writer.DexWriter.writeDebugAndCodeItems(DexWriter.java:821)
... 10 more
Caused by: org.jf.util.ExceptionWithContext: Unsigned short value out of range: 65537
at org.jf.dexlib2.writer.DexDataWriter.writeUshort(DexDataWriter.java:116)
at org.jf.dexlib2.writer.InstructionWriter.write(InstructionWriter.java:384)
at org.jf.dexlib2.writer.DexWriter.writeCodeItem(DexWriter.java:1067)
... 11 more

==> Magisk template download complete
==> Generated magisk module zip file
[Magisk] Spartacus500:
Have you added patch signature spoofing? Everything works ok, test signature spoofing disable ?
[Magisk] fOmey:
I did not, re-read my previous comment.

I didn't re-enable signature spoofing correctly in the patcher, the patch was never applied in that zip.

The patch is malformed.. it won't work. Even if it did compile it would bootloop...
[Magisk] Spartacus500:
[MENTION=1620550]fOmey[/MENTION]

Can you improve the patch signature spoofing for Oreo?
[Magisk] fOmey:
No.. I removed it for a reason.. It's not a patch I want to maintain.
[Magisk] Spartacus500:
[MENTION=1620550]fOmey[/MENTION]

Please upload Smali Patcher 1.0 where is patch signature spoofing.
[Magisk] flex1911:
Please stop asking the same annoying questions that you already have an answer for. If you will continue acting this way, your posts will be removed and administrative actions will be taken.

Thanks.
[Magisk] Dekklezz:
FIXED!
[Magisk] shoey63:
Adb method works flawlessly on android 8.1 for Sony AOSP roms on X and XZ premium. The trick is to run the program in recovery (with system mounted obviously), to avoid permission issues.

Awesome tool!
[Magisk] vbajs:
Thank you, works like how it really should work :)
[Magisk] AvisAile:
I can't wait for this tool to become compatible with Android P :)
[Magisk] enolovedays:
I've tried to patch my oppo usng adb, convert using fullmic. all doesnt work for me.

would someone kindly help to gave a hint?

or help to patch my service.jar? thank you

https * //drive google.com */open?id=1Sb-RUcwUmPnaq1mwHSc5w-z8-VQxEd7W
[Magisk] fOmey:
Follow ADB method instructions in OP.
[Magisk] klickig:
is it possible to develope an app that does this on the device itself so there is no need to run this on an other system or connect your phone to PC?

I'm asking because I am assuming that after every system update this has to be patched again, right?
[Magisk] cmstew:
This seems to be broken again for the July 2018 update. It can't deodex the system file.

No rush to fix it, I'm just bringing awareness.

UPDATE: There's nothing wrong. Small patcher just messed up downloading the bin folder.
[Magisk] cruel91:
I have a Oneplus 5T (stock rom on 8.1). I am trying the ADB method, but it does not give me the magisk module. It just gives me adb/framework/*

Update: just to to manual redownload apktool.jar baksmali.jar smali.jar to make it working. Dont forget to boot into recovery and mount system to have proper permission
[Magisk] arvanhanzo12:
how to overcome apktool.jar, smali.jar and baksmali.jar null inside the bin folder

when it has download binary and idl status in smali patcher exe
[Magisk] cmstew:
You can download the latest version of apktool.jar manually from github. Just download it and remove the version from the name. Then replace the one in your bin folder. I'm sure you can follow a similar process for the other jar files if they fail too.

https://github.com/iBotPeaches/Apktool/releases
[Magisk] arvanhanzo12:
Thanks Nice Info
[Magisk] MisterMeJ:
Bootlooping on Dirty Unicorns 8.1 (Nexus 6P)

Tried the adb method and tried flashing using the Magisk Manager and flashing in Recovery.

This is the log from the patcher, can i provide something else?

fOmey @ XDA

Patcher Version: 0.0.2.2

adb: error: failed to copy 'system/build.prop' to 'adb\build.prop': remote open failed: Permission denied

pull: building file list...

/system/framework/: 272 files pulled. 12.2 MB/s (249835715 bytes in 19.500s)

==> Dumped framework

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

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

[INFO] 1 Dex files have been extracted in total

[INFO] Extracted Dex files are available in 'bin'

==> Extracted classes.dex

I: Using Apktool 2.3.3 on services.jar

I: Baksmaling classes.dex...

I: Copying assets and libs...

I: Copying unknown files...

I: Copying original files...

==> Patched mock location boolean

==> Patched mock location boolean

I: Using Apktool 2.3.3

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:
[MENTION=316654]MisterMeJ[/MENTION]

Is your services.jar deodex? If so, please upload your file, I will try to add 3 patches or one if you like.
[Magisk] shoey63:
Do it in TWRP recovery with /system mounted.
[Magisk] MisterMeJ:
Did that, like mentioned in OP, but still bootlooping..
[Magisk] charlonne:
help, can someone patch my service.jar with smali 2.2 please? i dont have any access to computer on my trip. LOS 15.1 on 8.1

https://drive.google.com/file/d/1zY-o7qmAcaVj7FoSS0L9aYTBHl2FI_4W/view?usp=drivesdk

thanks
[Magisk] Spartacus500:
Your services.jar is not deodex, therefore it will not give you a patch.
[Magisk] kdark:
stopped working on win 10
[Magisk] Darke5tShad0w:
You will need to post your logs you collected when this happened.

Stating it doesn't work does not help the developer especially when its working fine on my win10.
[Magisk] JobbeDeluxe:
Lineage OS not working?

Hello,

i have tryd that on Lineage OS 14.1 on my GT-P52xx (santos10wifi). It ended with the error that the rom is odex. But i tryed the rom in "SupeR's Kitchen" and that showes me that my rom is Deodexed. So what can i do?

my service .jar

http://xup.in/dl,11767869

i just want to have the locations.

Can someone help me or tell me what i do wrong?
[Magisk] Spartacus500:
[MENTION=4470350]JobbeDeluxe[/MENTION]

Patch only Mock Location, please try
[Magisk] JobbeDeluxe:
thx

worked, thx. what was wrong?
[Magisk] KataiKou:
Smali Patcher seems to crash when trying the ADB route. When trying to run against the services.jar file manually, I get this output:

fOmey @ XDA
Patcher Version: 0.0.2.2
I: Using Apktool 2.3.3 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.

Because Smali seems to have trouble downloading binary files, resulting in 0kb jars, I used the follow Jar files.

apktools.jar 2.3.3

baksmali.jar 2.4.4

smali.jar 2.4.4

Device: ChuWi Hi10 Plus on Android 5.1

I don't seem to have the ability to attach files or link files yet, so I can't provide my services.jar.

Any help would be greatly appreciated.
[Magisk] Spartacus500:
[MENTION=3808651]KataiKou[/MENTION]

Please upload your file services.jar deodex.
[Magisk] MisterMeJ:
Can someone try to patch it for me, I can't succeed this...

Trying to figure out if it's my rom or my PC...

https://drive.google.com/open?id=1vwN1tJh0YG1-zpAa7WUxvLZAuSpQHO0R

Verstuurd vanaf mijn Nexus 6P met Tapatalk
[Magisk] Spartacus500:
[MENTION=316654]MisterMeJ[/MENTION]

Done, one is with 3 patch, and two are only Mock Location ?
[Magisk] Spartacus500:
Deleted
[Magisk] KataiKou:
www dropbox com/s/d3x6550c5jua101/services.jar?dl=0
[Magisk] MisterMeJ:
[MENTION=6138728]Spartacus500[/MENTION] Unfortunately this zip is corrup. Can you try again?

Tried downloading with different browsers and laptop.
[Magisk] Spartacus500:
Which one? 3 patch or just Mock Location?
[Magisk] MisterMeJ:
Only see the service.zip attachment.

I'm already happy with just the Mock, but if you want to can you share the Mock and the 3 patch?
[Magisk] Spartacus500:
Ok, services.jar 3 patch
[Magisk] Spartacus500:
[MENTION=3808651]KataiKou[/MENTION]

Your services.jar is not properly with deodex and you can not make patches on it ?

---------- Post added at 10:00 PM ---------- Previous post was at 09:53 PM ----------

@MisterMeJ

Try this file

https://files.fm/u/k6y6ebuf
[Magisk] MisterMeJ:
**** me, but can't open your attachments..

Download them with Tapatalk, but everytime 500kb and through browser get a 404 not found error... Even tried on GF phone, same thing..

Possible to upload them on a site like Dropbox or gdrive?

Sorry for the trouble. And thanks for your time and effort..

Verstuurd vanaf mijn Nexus 6P met Tapatalk
[Magisk] Spartacus500:
[MENTION=316654]MisterMeJ[/MENTION]

Actually, you can not download, bad sizes, this is some breakdown of the xda forum. Try to download from files.fm, which I gave you.
[Magisk] MisterMeJ:
Was typing and afterwards I saw your link..

Unfortunately both files also give me bootlooping while installing them in recovery with system mounted...

Still thanks for your time!
[Magisk] fOmey:
Try patching using only mock locations and report back.

One of the patches might not be playing nice with your rom if its been heavily modified.
[Magisk] LordNaiO:
hello, my phone for some reason not working adb and mtp, only working usb connection onfasboot so what method whih i can run for my phone? can i run alternative method?
[Magisk] MisterMeJ:
Already tried this using different ways, even with the patched one by Spartacus is failing for me.

The ROM is modified with a lot of options, could that be the culprit?
[Magisk] Bwalidayni:
i need service.jar lenovo k4 note.pliss help me
[Magisk] Spartacus500:
1. services.jar 3 patch

2. services.jar 1 pach Mock Location

You try 2 ?
[Magisk] MisterMeJ:
Yes, through recovery and through magisk manager...
[Magisk] londlii:
hello i always Error: Invalid or corrupt jarfile bin\apktool.jar

!!! ERROR: Target JAR must be deodexed.

i dellete bin folder and open again but always same erorr...

please help me...

i use device redmi 4a
[Magisk] grzk:
Hy dev fOmey .. When i click patch jar, it said mock location class not found.. I used lenovo a 6000+ rom resurrection remix 5.8.5.. Please help me patch for me. Can you tell me how to fix it?
[Magisk] Spartacus500:
Is your file deodex ? If not then you must first do Rom deodex.

If your services.jar is deodex, then you had to do deodex Rom badly.
[Magisk] fOmey:
CHANGELOG ::

2.3 ::

Improved de/odex detection function - should now allow generating a module with no mods selected (debugging purposes)

Improved error checking & reports.

Download the latest release & deselect all the patch options.. try that module (generated with zero patches selected) and see if you bootloop.

Boot into recovery mode, mount /system, follow ADB method.
[Magisk] MisterMeJ:
Can you upload it somewhere else, XDA gives corrupted file at the moment..

Tried using mobile and laptop.
[Magisk] Ferreira_F10:
+1

Enviado de meu Redmi Note 5 Pro usando Tapatalk
[Magisk] Spartacus500:
Exactly, xda, each size has 0.2kb, please also upload to another server version 2.3 [MENTION=1620550]fOmey[/MENTION]
[Magisk] Firmino1919:
SmaliPatcher-0.0.2.3-fOmey@XDA.zip , i download but why extract file corrupt?
[Magisk] s.i.t.h.l.o.r.d:
Read the posts right above you.
[Magisk] Gill002:
Android 6.0

Fomey, I have a motorola G4 play, i installed the module a couple of months ago, seemed to work fine, but now for some reason, everytime im trying to create a new file, it wont let me, I have attached the deodexed services.jar and I'm hoping anyone here can help me create the smali patcher zip file so i can flash it into magisk, any help would be greatly appreciated, I've spent 2 days on this and for some odd reason still cant seem to figure it out

Also, I've tried the method of mounting the system and using the adb method, still doesnt work, with the adb method, the error always recieved is mock location not found

and with the alternative method, apk file is corrupt and also says file has target file has not been deodexed.

I'm currently using the 2.2.2 version as the new one is corrupt

If anyone can help me get the smali patcher zip file, that'll be amazing, I will attach the services.jar file to this comment

I cant attach anything until 10 posts unfortunately, not sure how to provide that file
[Magisk] kykkus:
Hi, i tried everythings:

adb method, recovery method, local method (download services.jar).

But i have always:

Error: Invalid or corrupt jarfile bin\apktool.jar

!!! ERROR: Target JAR must be deodexed.

What can i do?

I post my services.jar.

Thanks and sorry for my poor english.
[Magisk] Dantalionblood:
Hello, before i report my trouble i wan't to say thanks first,

My service.jar is already patched with smali patcher 0.0.2.2, for the first time i open the app(like pogo), no problem and it work, but after several minute, the app show notification "please disable allow mock location", i open the developer setting and it keep disable, but if i open developer setting in notification the app, developer option are enable and mock location is enable, i think the application can detect the status of mock location are enable, my device is asus Z00SD Android 5.1 with deodexed framework only. Thanks for the answer and sorry for my english bad.
[Magisk] yaz69:
help...

can anyone upload 2.2 version or 2.3 ? coz on OP file is corrupted :( please...
[Magisk] DonnyWhite:
At first i was confused why i got error patchong with adb & deodexed services.jar till i deleted bin folder and it downloaded a new bin files. My conclusion is, apktool.jar that been downloaded from the server is corrupted. So if someone have succeeded the process could post the bin files here for me to flash mine, i would be thankful for the help. ?
[Magisk] fOmey:
Re-uploaded.
[Magisk] pahlawanto:
Still wait v2.3
[Magisk] draqkin:
"apktool.jar" "smali.jar" "baksmali.jar" are corrupted (0 byte). I replaced them and worked for me.
[Magisk] DonnyWhite:
Still, i got apktool.jar - smali.jar - baksmali.jar at 0kb. :(
[Magisk] fOmey:
Run as admin.
[Magisk] Gill002:
I've ran it as admin and I've also turned off the firewall, also dont have any antivirus, the problem still keeps happening.

I tried it on 2 different computers. I also tried it multiple times by deleting the bin folder
[Magisk] draqkin:
Replace files with which i posted...
[Magisk] DonnyWhite:
500 Internal server error. :(

Google drive might help us

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

Nevermind. I can access the file just now, thank you.
[Magisk] Spartacus500:
https://nofile.io/f/nunve9xEZps/SmaliPatcher-0.0.2.3-fOmey_XDA.zip

https://nofile.io/f/G60pmQdSsoF/SmaliPatcher-2.2-fOmey_XDA.zip
[Magisk] draqkin:
So can anyone find a solution for rubberband issue? Or still just tin foil? I am using Huawei Mate 10 with oreo so disabling fused location is out of table ( bootloop problem)
[Magisk] fOmey:
How long do the binary downloads take to complete ?
[Magisk] Dantalionblood:
I don't know why the patch is not working for me, if in real location(spoofing app not start), mock location in developer option is not detected, but if i spoofing location(spoofing app start), mock location was detected. What happend? Patching failed or patch not work for my device? Asus Z00SD with android 5.1 deodexed framework only.
[Magisk] Spartacus500:
Do you have a bootloop when you apply the Patch Mock Location? And try to apply patches without Mock Location.
[Magisk] Dantalionblood:
Can u help me for my problem sir? Thanks before
[Magisk] draqkin:
No i did not have bootloop when i patched but it is not solving rubberband problem. If i am outside or gps reception is good where i stand, always rubberbaning. I have tried disable fused loction while patched but bootloop again.
[Magisk] MisterMeJ:
[MENTION=1620550]fOmey[/MENTION]

Even with no patches selected it gives me bootloop.
[Magisk] fOmey:
Interesting.. something isn't playing nice.

That rules out any of the patches being a issue tho, I'm out of ideas for "quick fixes"..

My only advice would be trying to deodex manually and try get a successful boot, then you can try patching. If you go down this route update me with the progress and I'll try modify whatever I can to accommodate your rom.

Can you post your full patch debug output without applying any patches.. also what android version are you running btw ?