yashsingh1/xdaforums huggingface dataset:
[Magisk] inkimp:
Hey, Not sure if this is the right place for it, but I got stuck in a bootloop while trying to install smali patcher. I foolishly forgot to make a backup before installing, so I'm trying to flash stock firmware to try again. When trying to flash the factory image, get the following log. I'm getting the images from developers.google.com/android/images and I'm on a google pixel 1 on android 9.0. Build #: PPR2.181005.003

< waiting for device >

target reported max download size of 536870912 bytes

sending 'bootloader' (32384 KB)...

OKAY [ 0.791s]

writing 'bootloader'...

(bootloader) Valid bootloader version.

(bootloader) Flashing active slot "_b"

(bootloader) Flashing active slot "_b"

OKAY [ 12.210s]

finished. total time: 13.003s

rebooting into bootloader...

OKAY [ 0.037s]

finished. total time: 0.037s

< waiting for device >

target reported max download size of 536870912 bytes

sending 'radio' (57140 KB)...

OKAY [ 1.390s]

writing 'radio'...

OKAY [ 0.903s]

finished. total time: 2.294s

rebooting into bootloader...

OKAY [ 0.010s]

finished. total time: 0.010s

target reported max download size of 536870912 bytes

archive does not contain 'boot.sig'

archive does not contain 'recovery.img'

failed to allocate 2024706280 bytes

error: update package missing system.img

Press any key to exit...

Alternatively, I've tried just flashing the ota, which gets me out of the bootloop. I can reinstall TWRP just fine but once I install magisk the bootloop begins again. I just want to get smali setup properly so I would appreciate any help in getting there.
[Magisk] Didgeridoohan:
I think you took a wrong turn somewhere... This is not the thread for that kind of query.

Start by reading about your issue here:

https://xdaforums.com/apps/magisk/guide-magisk-troubleshooting-t3641417

If you have further questions you can post them here:

https://xdaforums.com/apps/magisk/mod-magisk-v1-universal-systemless-t3432382
[Magisk] fOmey:
Couldn't attach files via. PM so I decided to reply to you here...

The files you supplied made this super easy, I have attached a module generated using your stock service.jar for you to test.

I have no real way of testing beside a test app I found on github by Lanchon... however the test app is passing so I guess that's a good sign ?

Hopefully you can test this properly... please make sure you backup prior to testing the module tho ! Expect the worst.

Anyone else reading this, please do not use the module.. most likely will cause a bootloop.

Your a legend, can always count on you to steer people in the right direction.. just wanted to say thank you !
[Magisk] kacaksevgilim:
Hi.Fulmics Deodexer, Xiaomi mi4 miui9 gives the error in the picture

[IMG="ERROR"]https://i.hizliresim.com/DyOPmz.jpg[/IMG]
[Magisk] DeniTx:
Can someone help me with the patcher and service jar i am lost on how to start i did read but it is confusing me can someone please direct me or show me what i need to do step by step i would greatly appreciate this.
[Magisk] a.raul:
Works perfect on Samsung S8 + Nougat 7.0

Great job, regards
[Magisk] kacaksevgilim:
Mi4 miui9 Global 7.9.15 not working

Mi4 Shadow banned:crying:
[Magisk] angelus_kun:
wow thanks man, works for G5 plus RR nougat i only test screenshot patch
[Magisk] DeniTx:
Can someone help me I have note 4 tmobile and note 5 tmobile both rooted, I can't figure out how to get this to work
[Magisk] fOmey:
CHANGELOG ::

0.9 ::

Added new patch: signature spoofing.
[Magisk] DeniTx:
Hello fomey I sent you PM can you please let me know what I need to do I am trying to understand how to make this work

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

target a deodexed "services.jar" ??

I am not sure about this if my phone is deodexed or not there is so much info about this I an not sure where to start or what to do I have note 5 sm920t and note 4 tmobile. Please somsome help me get this done I am desperate.
[Magisk] fOmey:
If you have not flashed a custom rom, its odexed. Which means you'll need to deodex your service.jar !

I have linked a tool on the original post "fulmics deodexer", read that thread.. it includes instructions how to use it.

You need to pull the /system/framework folder from your phone, few ways to do this.. honestly the most noob friendly approach would be using a

root file explorer

and zip the entire folder.

You can then transfer the zip to your PC (usually as easy as just plugging it into the USB, drag and dropping), extract your framework zip into a folder on your desktop named "system", use fulmics deodexer to deodex and finally patch service.jar with the patcher ! It sounds like a long process, but honestly shouldn't take you any longer than 10 minutes to do and it's a one time process.. should never have to do it again if you keep backups !

In order to deodex the /system/framework contents is used..

The folder structure on your desktop should be the following, this is important!

/system/framework

Fulmics deodexer expects a certain folder layout to work correctly... so just make sure you have a main directory in this case "system" and a subdirectory named "framework" which contains the contents you pulled from your phone.

Here's mine as a example:

Hopefully this makes sense, if it doesn't you have a little reading/research to do !
[Magisk] DodoGTA:
Hi Pauly,

It looks like that you used Visual Studio 2015 in the making of this project and hardcoded the download paths for Apktool and the Magisk module template (And therefore, [MENTION=4470081]topjohnwu[/MENTION] and [MENTION=3924617]iBotPeaches[/MENTION] can make this patcher not work (probably unintentionally) :victory: ) :p

And, can you send a proper diff for the smali patches that you included in this app?

Best regards
[Magisk] fOmey:
Yeah I was a little lazy in that regard hard coding was the easiest option.. I did intend to code a fetching class but I've been lazy :p

What do you mean a proper diff ?
[Magisk] Sander9847:
Thank you so much it works great!

And I'm very sorry I could only get back to you right now but I had some real life problems.
[Magisk] DodoGTA:
Do you know about unified diffs?
[Magisk] DeniTx:
Thank You for reply now I understand better now do I have to copy the the whole system folder or just framework folder with black system folder.
[Magisk] hmartinus77:
Already tried to deodexed the services.jar twice with different tools (svadeodexer and fulmics) but still said error target jar must be deodexed...the process already decompiling classes.dex and classes2.dex.

Anyone know how to deodexed the services.jar correctly?
[Magisk] DeniTx:
I forgot to ask another thing hee it shows folder to deodex do I have to have all 3 selected app, framework & priv-app or only select framework and after this process is done what do I need to do with the deodex system folder do I have to replace the whole folder or only the service jar patched file?
[Magisk] fOmey:
Awesome, good to hear ! No dramas at all... all the best.

You can get away with copying just the framework folder.

I do, this project is geared toward people that don't want to deal with editing code... they wouldn't be hard to generate anyway considering the patches are optional.. select a single patch at a time and compare it to stock and generate your diffs that way !

Can you upload your service.jar ? Make sure your running the patcher as admin, it may not have permissions to read files on your PC so it's reporting that it's not deodexed because it simply can't read the files.

Just framework.. because were only interested in service.jar which is found in the framework directory... once the process is complete copy and paste service.jar somewhere and target it with the patcher !
[Magisk] hmartinus77:
Already tried that also still have the same error.

Here is my services.jar https://www.dropbox.com/s/60crk14m6lf5lv0/services.jar?dl=0
[Magisk] fOmey:
You can remove magisk modules from recovery mode.. you don't need any third party tools.

Boot into TWRP

Advanced -> File Manager

Navigate to: data -> adb -> modules -> module directory (in this case "fomey.smalipatcher") -> Folder icon (bottom right) -> Delete
[Magisk] GeckoHXO:
I tried with both Mock location on its own and signature spoofing on its own. ~The same error occurs, as soon as I enable a module through magisk I get no wifi connection, only 4G
[Magisk] inkimp:
I Just gave that a try, but I'm still stuck after installing magisk through twrp. I get sent into recovery mode by rescue party after a couple minutes.
[Magisk] ahuca117:
I had tried adding other modules and they worked just fine. But now, I was able to solve the problem by generating a Magisk module with only 2 options:

Mock location

High volume warning

Back then I was selecting all options except for the "Magisk reboot", so apparently this is the cause?

Cheers.
[Magisk] fOmey:
This is a odd one... :confused:

Neither one of those patches touch anything related to wifi.. very strange.

If you have removed the module, it's not related to the module. Any other installed modules you can remove?

If you have removed all the modules and you are still boot looping at this point I would suggest just starting from scratch.. restore factory images (might get away with just restoring stock boot.img), install magisk and go from there.. at least that's what I would do.

Let this be a lesson to backup before messing with anything.. sorry I can't be much more help than that.

Could be.. I've only tested that patch with a Samsung S10.. could cause some unexpected behaviour on other bases.. even so I wouldn't have thought it would be causing a error "out of space".

Really no other phones outside of the models that require magisk to be installed on the recovery partition should be using that patch anyway (S10 & S10+ from my knowledge).

Why exactly are you using the magisk reboot patch on a Sony Xperia Z1? If you require the patch, upload your services.jar I can look into making it compatible..
[Magisk] inkimp:
I have all the modules removed. I don't mind resetting to stock as this is just a spare phone with nothing significant on it. My issue here is that I'm getting errors flash the factory images. Bootloader and radio goes just fine but then I get an error when running flash-all.bat

target reported max download size of 536870912 bytes

archive does not contain 'boot.sig'

archive does not contain 'recovery.img'

failed to allocate 2024706280 bytes

error: update package missing system.img

Press any key to exit...

The errors would suggest I'm missing things, but I'm getting the images from googles website so I'm not sure what I'm doing wrong here.
[Magisk] githyanki:
The flash-all never worked for me, just do the individual files.
[Magisk] ahuca117:
Sorry I might have confused you. Currently I'm using the smali patch on a Samsung S3 I9305. The Xperia Z1 was just an example I gave to simply express that I was able to do this process before. But for now, I struggled doing the same thing for the S3 I9305.

However, like I said earlier, I was able to solve the problem by applying the patch with only 2 options selected. The reason I'm using this patch is mainly for playing Pokemon Go.

Though, I noticed that Magisk is very unstable on this S3. v18.1 and below won't even pass SafetyNet, and the latest versions have some problem with the MagiskHide feature. For v19.0 - 19.2 I was able to enable Magisk Hide in settings, but when I selected the programs to apply MagiskHide, the selection I made would just be reset the next time I load into Magisk Hide again. For v19.3 (latest) when I enable Magisk Hide in the settings, the Magisk Hide tab won't even appear at all (where it normally would be, under the "Superuser").
[Magisk] linyongzheng:
Just updated my Moto X4 to P and upgraded Smali Patcher to 0.0.5.2. Disable secure flags works for my banking apps but still doesn't work for Puzzle and Dragons (only uses secure flags in the occasional ranking/tournament mode). A minor issue but it is interesting that the disable secure flags module in Xposed works for this situation but doesn't in the Magisk module.
[Magisk] icarusrisen:
Hey guys, I'm kind of going out of my mind here, been working on this for about 12 hours now and fixed I don't know how many boot loops on my phone trying to get this working. I'm going to describe the process I'm using and hopefully you'll be able to let me know where I'm making a mistake.

I have a Pixel 3 XL and ruined a previous magisk-rooted spoofing installation I had setup that was using the Fake GPS and Routes (+aluminum foil) method of spoofing. Unfortunately, I unthinkingly downloaded an update which killed magisk's hiding and fake gps was deleted off the phone, etc. Decided to start fresh and use the new Smali Patcher method... but it's not going great.

I began by using the June version of Android 9 (9.0.0 (PQ3A.190605.003, Jun 2019)) to flash my phone back to factory. I have platform-tools downloaded and after extracting the factory images to that folder, I used command prompt and flash-all. Seemingly a success despite a few errors thrown.

I skip all installation steps with the exception of putting in a pin. Reboot to bootloader, then fastboot into TWRP 3.3.1-1 crosshatch (pixel 3xl version) using platform-tools again. No apparent issue.

After I reboot into TWRP I install the twrp zip, again no issues. This unroots the phone. I do not install the TWRP app as I reboot into the system.

As suggested in this Magisk 101 guide (I previously was getting bootloops from installing magisk incorrectly) I downloaded magisk manager 7.3.3 directly onto my phone using the apk download link provided, installed from unknown source, and proceeded to download the magisk 19.4 zip to install in TWRP. Once I reboot to system, everything seems to be correct and working.

So this is where the methods diverge. I could follow the directions in this sticky thread, but I would really like to be able to not have my phone wrapped in aluminum foil all the time.

So I begin to follow the instructions in the original better spoofing thread. After downloading Smali Patcher 0.5.2, I ended up having to download the latest version of Java to get the software to work correctly. After clicking ABD Patch, everything seemed to be working well... but then it threw an error I knew was bound to be important to what I wanted to do... Error: Mock Location class not found

I knew I was probably screwed at this point, but decided to go ahead and patch with the zip file Smali generated in TWRP. After the patch, bootloop, every time.

Am I missing something here? Is this an error with an easy fix, or even a hard fix with a guide I can find somewhere? I hope this was exhaustive enough for you guys to diagnose wtf I'm doing wrong that smali can't even find mock locations on my phone.

Thanks.

Once I'm allowed to post outside links, I can post any images you guys might need.
[Magisk] eddusilver:
I tried install on J2 Prime SM-G532MT, but always stop in bootloop, it's normal arm64 on archive my device don't have it, i try Patch "Mock locations", there something I need to do?
[Magisk] fOmey:
Right my mistake.. volume warning error is because the class is missing.

So as I said earlier unfortunately that patch is not compatible with your device.

As for magisk, I can't really help to much.. I would suggest you head to a the magisk support thread, maybe someone can help you further.

Right.. I know the secure flag patch isnt perfect yet.

Once I find a free reliable app to test on I will look into it further.. if anyone can recommend one, please do.

Post the full smali patcher log.. might be able to help further.

Post the full smali patcher log.. might be able to help out further.
[Magisk] eddusilver:
This

fOmey @ XDA

Patcher version: 0.0.5.2

==> Binary download complete

==> Unpacked binarys.

==> Detected java: 1.8.0_211

==> Dumped framework

==> Detected API: 23

==> Deodexed services.odex

==> Patched mock location boolean

==> Patched mock location boolean

==> Generated classes.dex

I: Using Apktool 2.4.0 on services.jar

I: Copying assets and libs...

I: Copying unknown files...

I: Copying original files...

I: Using Apktool 2.4.0

I: Copying tmp classes.dex file...

I: Building apk file...

I: Copying unknown files/dir...

I: Built apk...

==> Magisk template download complete

==> Generated magisk module zip file

*** Complete ***

in PC

- Copying zip to temp directory

- Installing SmaliPatcherModule-0.0.5.2-fOmey@XDA.zip

Archive: /data/user/0/com.C.MCU.wGGMB.rm3l/cache/install.zip

inflating: install.sh

inflating: module.prop

update-binary: /dev/tmp/install.sh: line 6: REPLACE: not found

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

Smali Patcher

fOmey @ XDA

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

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

Powered by Magisk (@topjohnwu)

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

- Extracting module files

Archive: /data/user/0/com.C.MCU.wGGMB.rm3l/cache/install.zip

creating: system/

creating: system/framework/

inflating: system/framework/services.jar

inflating: system/framework/services.odex

creating: system/framework/arm/

inflating: system/framework/arm/services.odex

creating: system/framework/arm64/

inflating: system/framework/arm64/services.odex

creating: system/framework/oat/

creating: system/framework/oat/arm/

inflating: system/framework/oat/arm/services.odex

creating: system/framework/oat/arm64/

inflating: system/framework/oat/arm64/services.odex

inflating: system/framework/oat/arm64/services.vdex

- Setting permissions

- Done

on device SM-G532MT in bootloop
[Magisk] mmotorock:
So, I have the Smali module added to magisk on my Pixel 3xl, but my gps is still jumping around from my fake location. Do you know what can cause this? Btw, I am using appninjas gps joystick in root mode. Thank you.
[Magisk] Phantom Thief:
Disable Indirect Mocking and read the FAQ on the 2nd post
[Magisk] bustyouup4free:
Can someone patch it for me, the newest version keeps crashing on my laptop and i have updated framework and java. so im not sure why its failing
[Magisk] fOmey:
No obvious errors in the logs.. a boot loop with no errors reported usually means something went wrong during the deodex process that the tools failed to detect.

The only thing you can do is try manually deodexing your services.jar and see if that reveals any errors (the patcher should of reported any errors during the deodex process tho).
[Magisk] frawstme:
Hi everyone,

I'm having a really hard time getting this installed. Im running factory firmware rooted with TWRP+Magisk on 7.1.1.

The PC patcher works great and generates a Magisk file for my tablet. When I put it in my downloads folder, Magisk will not allow me to install jt. It acts like it's just another folder and opens the ZIP file.

So I booted into recovery, installed it through TWRP. After reset it freezes at startup screen and will not pass it. I found out that if I delete the Smali module folder it boots fine. So I reinstalled, and moved the Smali folder down a directory. It allowed me to boot up so i used a file explorer to move it back into the modules folder. Now Magisk recognizes it as a module, and I can enable it. It says I need to reboot to activate the module. Of course, when I restart it will go back to freezing at the boot screen until I delete the Smali module again.

Any ideas how to fix? I thought about trying the manual patch but I don't have a rom to pull it from. I tried just pulling the services.jar file from the OS but it won't work, says something along the lines of "GPS Spoofing not found"

Thanks much
[Magisk] Dorian57600:
Help

someone dying to help me please my service jar is odex is i can not deodexer with my computer someone could just patch it for gps spoofing thanks in advance. https://drive.google.com/file/d/1xRgR8Zgdgt99fV4x-Qz2mtaAR71vqjW-/view?usp=drivesdk. https://drive.google.com/file/d/1-3y_74EryJ7RfKYist40RiTfCcSL5EoD/view?usp=drivesdk
[Magisk] Spartacus500:
OnePlus6TOxygen_34_1906251222 Android 9.0 Pie

services.jar only Mock location
[Magisk] Ag1leon:
Добрый день. такая проблема: после запуска	SmaliPatcher зависает на 99% загрузки бинарес!!! в чем проблемма?

Problem. After starting SmaliPatcher, loading a binary file hangs at 99%. Help!!! j5 2017 SM-J530FM
[Magisk] bustyouup4free:
hey can you do mine too please? all options except the s10, and volume notification

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

---------- Post added at 11:40 AM ---------- Previous post was at 11:39 AM ----------

mainly need for GPS spoofing but you can select all option except s10 and volume warning. ( it's s7 and volume warming already removed)
[Magisk] Spartacus500:
4 patch except S10 reboot & volume warning
[Magisk] bustyouup4free:
really appreciate your assistance. for some reason the newer smali patcher keeps crashing on my laptop and it fails after literally the last step. ok thanks a bunch!!!

---------- Post added at 02:37 PM ---------- Previous post was at 02:10 PM ----------

unfortunate i got a boot loop I'll try it on the other rom. I cant remember if I had so port or nfe port running when I loaded the services.jar. anyways one of them should work just gotta format and try both roms lol
[Magisk] frawstme:
For anyone googling this in the future, the issue was that I was using stock firmware on a Samsung (SM-t350). No stock firmware worked with Smali, I had to use a customer ROM and it fixed all of my issues.
[Magisk] fOmey:
Might have to disable dm-verity on stock roms.. otherwise you may bootloop.

EDIT:

Magisk might do this automatically.. think it depends on your device.
[Magisk] Spartacus500:
What is your exact phone model? Stock? Custom? Did you do deodex service.jar on this Rom or was it deodex?
[Magisk] bustyouup4free:
Well im actually trying to do it on a s7 exynos g930f and also my note 9 n960f. the file you did was for the s7 on sac 23 nfe port for the s7.

i tried doing my n9 services also, both adb and manually also only the services.jar. unfortunately the newer smali patcher just keeps crashing. older ver. 3.7 and 3.8 worked fine before. i updated java and netframework both are newest. also thought maybe the smali patcher zip was corrupted. but re dowloaded it and same results i will post a pic soon. but either way it just fails after magisk template download is complete its Fcs the app everytime
[Magisk] bustyouup4free:
heres a pic
[Magisk] Spartacus500:
You do patch Smali patcher by adb ?

Now I've read that you pronated. Do you have stock or custom on Note 9? The same applies to S7 or custom stock odex or deodex? If in both phones, stock, how did you do services.jar deodex?
[Magisk] bustyouup4free:
Yes tried adb and also manually taking the services.jar and patching. I didn't know the rom needs Deodex. Both phones have custom rom. Not sure if odex or deodex and not sure how to even do it. I though I can just patch any services.jar and it will work. But I can't do either way it always FC the smali patcher exe on my laptop.

Note9 Ambassibi from 4.1 for n9

S7 sac23 NFE port for s7

---------- Post added at 10:31 AM ---------- Previous post was at 10:07 AM ----------

Tried deleting smali patcher folder, redownload it and unzip. run file as administrator. still same issue. always FC after "magisk template download ccomplete" doesn't matter if I try ADB or manually. both same issue. and I've used older version 3.7 and 3.8 and 4.0 no issues. but now the old version doesn't even work (I tried) I'll post both services.jar maybe you can do both again and I'll attempt again

---------- Post added at 10:38 AM ---------- Previous post was at 10:31 AM ----------

Here is N9 services.jar from ambassidi n9 v4.1

please use all patches but NOT magisk reboot and NOT high volume warning.

Only top 4 please

Mock location

secure flag

signature verification

signature spoofing

thanks

https://drive.google.com/file/d/14A2vlFemRvL69h_Mn1zI2aKGci9OfxTE/view?usp=drivesdk
[Magisk] bustyouup4free:
now here is s7 jar please do same

https://drive.google.com/file/d/1-9BsbGEHS5AanHiV02SEpXEcckUXQden/view?usp=drivesdk
[Magisk] bustyouup4free:
please both with these option, thanks so much ( I'm going to get new harddrive and install fresh copy of windows 10 probably not till October
[Magisk] Spartacus500:
For S7