yashsingh1/xdaforums huggingface dataset:
[Magisk] Ikkegwn:
I keep getting errors (oneplus 5 android 8.1)

without services.jar:

!!! ERROR: Framework directory not found.

with services.jar:

I: Using Apktool 2.3.4 on services[1].jar

I: Baksmaling classes.dex...

I: Copying assets and libs...

I: Copying unknown files...

I: Copying original files...

!!! ERROR: Mock location class not found.

what am i doing wrong?
[Magisk] Tal_Star:
Smali Error

I seem to be having an issue says trying to decomplie and errors out. Have Java 8 Update 202 (Tried with 201) (x64 & x86) and also installed have .net 4.7 installed Rom is Linage 15.1 (also tried on 14.1)

Any help would be great or guidance on a bacon rom that might work if that's the issue.
[Magisk] fOmey:
Anyone who is experiencing crashes and unexpected behavior, use the latest release and report back.

Hopefully it reveals more information about these crashes certain users are experiencing so I can finally fix them.

[MENTION=1497987]jaewon223[/MENTION] [MENTION=4911498]Tal_Star[/MENTION] [MENTION=7717138]superhappyfun[/MENTION] [MENTION=9721192]Destio[/MENTION] [MENTION=9723256]_JBtje_[/MENTION]

CHANGELOG ::

3.6 ::

Added some more error checking.

3.5 ::

Verify Java is installed & detected before proceeding.

Rename "services[1].jar" to "services.jar".
[Magisk] u8myfoood:
Is it just me or are all the download links for the patcher dead?
[Magisk] katerpanne:
Hi together, I have got the version 0.3.4 from a link in these topics. It is working fine on xiaomi mi8 explorer.

But a link to the newer version e.g. 3.6 I cant find too...
[Magisk] paperheart:
The download link seems to be down.

In case anyone needs it. I have tested this version and works great on Android version 6 and 7

SmaliPatcher-0.0.3.4-fOmey_XDA.zip - https://drive.google.com/open?id=1YABbGPpGNbJpg17PIDkrCzeHoLLw8PK5
[Magisk] atdino:
Hi, may I know how you solve this? I also has the missing to MIUI jar

Thank you.
[Magisk] marco9496:
Hi guys, please I can not find the 3.6 version download
[Magisk] _JBtje_:
[MENTION=9639903]marco9496[/MENTION] the 3.6 version is on the first page, topic post

[MENTION=1620550]fOmey[/MENTION]

Thank you for version 3.6. The message I got:

!!! ERROR: Java not detected.

I installed the Java "JDK-11.0.2", which should include te JRE, but... did not work somehow. I rebooted my PC, still nothing.

So I installed "jre1.8.0_202" and running "java -version" in the terminal does return that version -> java is thus reachable.

2 Notes:

In version 0.0.3.6 I STILL get the message

!!! ERROR: Java not detected.

However, in version 0.0.3.4 I get the message

...
==> Merged patch: sigspoof_core
==> Magisk template download complete
==> Generated magisk module zip file
*** Complete ***

Meaning that all works fine now.

I think that the Java check in 3.6 is not working properly. Please mention me if you want me to test a newer version, to see if the java check passes on my PC as well.

Best regards, and thank you for your great work!
[Magisk] dlwhdrlf:
Hi I'm using Oneplus 5T Android Pie.

The 3.4 crashes on me during decompiling after hitting ADB Patch, and the 3.6 says java not found after hitting the ADB Patch button.

I do have Java, and .net fame installed.

Any help? thanks.

Update:

I was able to use 3.6 after installing java not from the link that's on the first page.
[Magisk] _JBtje_:
[MENTION=5711528]dlwhdrlf[/MENTION]

open a console type in (cmd/powershell)

java -version

does it give an error? Then java is not installed. Make sure to install the JRE

8.202 worked for me

ww w.orac le.c om/technetwork/java/javase/downloads/jre8-downloads-2133155.html

Note: Remove the spaces in the URL... I cannot post links yet

Note2: see above post. 3.4 worked for me after installing java properly, while 3.6 still doesn't
[Magisk] JasonBjorn:
!!! ERROR: Java not detected.

How do i fix this?
[Magisk] fOmey:
OK, this looks promising.. the java detection might need a little tweaking tho.

I've updated the link for java on the first post.. should work for most/all users.

You need to install java, link on the first post.

Can you copy & paste the output of "java -version" and also try: "java.exe -version" to see if it spits out a error (it shouldn't).
[Magisk] _JBtje_:
[MENTION=1620550]fOmey[/MENTION]

PS C:\WINDOWS\system32> java -version
java version "1.8.0_202"
Java(TM) SE Runtime Environment (build 1.8.0_202-b08)
Java HotSpot(TM) 64-Bit Server VM (build 25.202-b08, mixed mode)

PS C:\WINDOWS\system32> java.exe -version
java version "1.8.0_202"
Java(TM) SE Runtime Environment (build 1.8.0_202-b08)
Java HotSpot(TM) 64-Bit Server VM (build 25.202-b08, mixed mode)

Except for the .exe, both are the same.

Also no different output between powershell and CMD
[Magisk] Ikkegwn:
But i never renamed anything, so what how and where?
[Magisk] fOmey:
I'm telling you to not use special characters in the file name of services.jar.

So if it has "[1]" in the filename, remove it.

OK.. just so I'm clear if you attempt to use version 3.6 it not detecting java?
[Magisk] Ikkegwn:
But there isn't anything in there, i just deodox it, than just go ahead with smali
[Magisk] JasonBjorn:
lol [MENTION=1620550]fOmey[/MENTION] i have reinstalled java 3 times now and still nothing, rebooted my PC each time. Is there a specific version i need?
[Magisk] _JBtje_:
Affirmative.

Redownloaded latest version 3.6 from page 1.

fOmey @ XDA
Patcher Version: 0.0.3.6
==> Binary download complete
!!! ERROR: Java not detected.

3.4 working though

[MENTION=9600118]JasonBjorn[/MENTION] run "java -version" in cmd or powershell. What does it output?

Also try using 3.4....

ufile.io/iwqv3
[Magisk] fOmey:
In the log you posted initially you can see it was named "services[1].jar".

Besides just use the ADB patch.. not sure why your using external tools to deodex.

Here is your message:

No it might be a issue with the java detection, hopefully this fixes it.

Everytime I add something to fix one issue, it breaks something else... argh!

Give this a try..

CHANGELOG ::

3.7 ::

Modified java detection.
[Magisk] _JBtje_:
fOmey @ XDA
Patcher Version: 0.0.3.7
==> Binary download complete
==> Unpacked binarys.
pull: building file list...
/system/framework/: 397 files pulled. 15.0 MB/s (272065954 bytes in 17.262s)
==> Dumped framework
I: Using Apktool 2.3.4 on services.jar
I: Baksmaling classes.dex...
I: Baksmaling classes2.dex...
I: Baksmaling classes3.dex...
I: Baksmaling classes4.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.4
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: Checking whether sources has changed...
I: Smaling smali_classes3 folder into classes3.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes4 folder into classes4.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 ***

Man, the beer prices in AUS are ridiculous! Have a (partial) beer on me! You made me really happy!
[Magisk] fOmey:
Hahaha dam right they are, you're too kind. Cheers
[Magisk] Ikkegwn:
[IMG="It isn't special, just normal"]https://i.imgur.com/rdUri91.png[/IMG]

Seriously though, i am not renaming anything and not seeing any special characters in the names. nothing, nowhere.

check the picture
[Magisk] deszczuXS:
i can't download. Error 410 Gone
[Magisk] mr sp0ck:
Hi.

I tried smali patcher only for mock location, and it worked after a few tries. But as soon as the module is active and pokemon go and spoofing app is running, phone gets really slow and laggy. Also the phone is getting really hot until it reboots automatically.

I'm running an galaxy s9+ on android 8.0.0

I also wiped cache and dalvik cache after installing the patch within the magisk app.

I hope someone can help me.

Greetings mrsp0ck
[Magisk] UnnA^:
Works flawlessly! Thanks mate. When I want to use my actual GPS for driving in google maps etc. How do I disable it to function correctly?
[Magisk] aNGERY:
fOmey @ XDA

Patcher Version: 0.0.3.7

==> Binary download complete

==> Unpacked binarys.

system/build.prop: 1 file pulled.

* daemon not running; starting now at tcp:5037

* daemon started successfully

pull: building file list...

/system/framework/: 149 files pulled. 3.6 MB/s (192630881 bytes in 50.383s)

==> Dumped framework

==> Detected API: 22

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

at org.jf.dexlib2.DexFileFactory.loadDexFile(DexFileFactory.java:120)

at org.jf.baksmali.DexInputCommand.loadDexFile(DexInputCommand.java:149)

at org.jf.baksmali.DisassembleCommand.run(DisassembleCommand.java:162)

at org.jf.baksmali.Main.main(Main.java:102)

==> Deodexed services.jar

!!! ERROR: Mock location class not found.

even with 3.7 i'm getting this error

---------- Post added at 08:18 AM ---------- Previous post was at 08:14 AM ----------

ah damn i'm thinking it's because it's on Lollipop
[Magisk] Ikkegwn:
[YOUTUBE]https://www.youtube.com/watch?v=JFqVhRdRQZE[/YOUTUBE]

I used this video, seems to work. Dunno how, but suddenly it did

---------- Post added at 02:31 PM ---------- Previous post was at 02:23 PM ----------

How does one use normal gps with the patch in place?
[Magisk] shu151:
it is not possible to convert deodexed jar after having modified it?

thank you very much anyway
[Magisk] Alucard1989pl:
I've solved this problem, just upgrade Java RDE and should work great :good:. Don't worry about missing 2 MIUI jar files.
[Magisk] Shagrath82:
Smali works great! I love it. Does someone know a solution for the lags? My Oneplus 5t is laggy with the active module.
[Magisk] fOmey:
Definitely possible for standard DEX files, although I don't believe back to CDEX.

But I don't think standard DEX files to be the issue.

The fact were forced to convert VDEX/CDEX to DEX seems more likely the cause of the slow down.. VDEX/CDEX is a optimized version of DEX so it makes total sense.

If anyone has anything worth while to add on this subject, please tag me in the post.. for now I don't believe it to be possible (I could be wrong?).
[Magisk] lordlord6:
Xiaomi mi max 2

Anyone here playing po go, having install smali patcher on xiaomi mi max2?
[Magisk] aerselev:
Play store problem

Hello, I can't find the same problem or solution norwhere

But when I have my Smali patcher module enable (everything works perfect),

I can't use the Play Store, it crash every time I want to install an app from it

do someone have the same problem?
[Magisk] JasonBjorn:
[MENTION=1620550]fOmey[/MENTION] can confirm this new version 0.0.3.7 did work i just fell asleep and forgot to let you know
[Magisk] Destio:
[MENTION=1620550]fOmey[/MENTION]

New patcher worked great. Got everything working, does your GPS spoofer have a joystick function?

Was trying to use appninja's but I get rubber banding. I don't with yours.

Thanks!
[Magisk] fustyler:
Tried I stalling the zip module into magisk app but getting an error saying not a valid magisk module. Using oneplus6 on 9.0.3.
[Magisk] rexsmith9886:
fOmey @ XDA

Patcher Version: 0.0.3.7

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

pull: building file list...

==> Dumped framework

==> Detected API: 24

Error: Invalid or corrupt jarfile bin\apktool.jar

!!! ERROR: Target JAR must be deodexed.

Getting this on ADB as well as with extracted services.jar from the system.

EDIT:

I think the issue is I am unable to download binaries in one shot. It stops at some %age and I have to restart the tool to download it.

http://prntscr.com/mgb0sq

Maybe this is the problem? I tried deleting bin dir and started tool but Download stops around 50-55% always. Starting app again will complete it.

If possible can anyone send me the bin directory archive?
[Magisk] Bob_Lazar_13:
I have been trying everything to get this to work, I keep getting Framework directory not found !!!

Can someone please help, I can't find a solution.

Galaxy A520W running TWRP and Magisk no problem.
[Magisk] _JBtje_:
You might need to change the name of the app, using the Privacy Mode (Home page in the app)

You need to turn OFF every setting in appninja (only autostart is on for me)

In development options, under select Mock location app, you need to select appninja.

From what I read, it is not required to put the app in the system folder (though, I did)

Have fun.

[MENTION=5446278]fustyler[/MENTION]

What steps did you take? What version of Magisk are you running?
[Magisk] ajdroid270:
Make sure that you have [these](https://imgur.com/gallery/HB0RQ5K) settings.
[Magisk] sin4life:
i still keep getting a bootloop if i have mock locations and sig proof both checked. if i have just mock locations, i get error 12 in pogo. android 7.0 lg v20.
[Magisk] WANTES:
Thanks! Its Work
[Magisk] Zeprus:
Error on Miui 10.2

Hello fOmey thank you for the excellent tool. It has worked on a lot of different devices and Android versions but I ran into a problem with the following software now.

photos.app.goo.gl/mS96Yexr74Pyy3Dr6

photos.app.goo.gl/pLUgn6MzQ7vfBoG1A

The framework is available here if you need it.

drive.google.com/file/d/1q_spl9k3_SnVMXUwqySivhwSKJ7i9w4b

And here is the adb folder created by your patcher.

drive.google.com/file/d/1zWS99UDY5f-uIigRlW2amJxJUD752AMY

Thank you in advance!
[Magisk] Spartacus500:
[MENTION=7588035]Zeprus[/MENTION]

Please upload you build.prop.
[Magisk] fustyler:
[MENTION=5446278]fustyler[/MENTION]

What steps did you take? What version of Magisk are you running?[/QUOTE]

Hi,

I downloaded the zip file on my phone (SmaliPatcher-0.0.3.7-fOmey@XDA.zip)

Then opened magisk manager on the phone and tried to install it from there, and it says module is not a valid magisk module.

I am running magisk v18.
[Magisk] neokragu:
Hi,

I downloaded the zip file on my phone (SmaliPatcher-0.0.3.7-fOmey@XDA.zip)

Then opened magisk manager on the phone and tried to install it from there, and it says module is not a valid magisk module.

I am running magisk v18.[/QUOTE]

Are you installed the file downloaded from the OP, if yes you did wrong.

1. Download the zip in PC and extract the files.

2. Make sure you PC have installed latest .net framework and JRE.

3. Run the smalipatcher.exe with admin rights

4. Connect your mobile with PC through data cable

5. Make sure USB debugging configured properly and enabled.

6. Select your required patches and click patch jar

7. Now your magisk module is ready inside smali patcher where you have extracted.

8. Copy this module to mobile and flash through magisk.

Good luck
[Magisk] Phantom Thief:
You don't install that zip on the phone. You extract on your pc and run it there. Then it will generate a magisk module :good:
[Magisk] fustyler:
I am running a mac, how do I generate it?
[Magisk] Phantom Thief:
You can't by default. You need a windows machine. Though maybe running a virtual machine could do the trick such as Boot Camp. Not sure
[Magisk] mastashake:
Halp?

Ok figured something out, for anyone having the same issue, I just replaced the adb.exe and .dll's within the smali pathcer folder with ones from the most recent version of the SDK

I keep getting the following error:

"adb server version (39) doesn't match this client (40); killing

could not read ok from ADB Server

*failed to start daemon

I had minimal fastboot and adb installed, was able to connect to my device fine through regular CMD. I thought it might be conflicting adb's so i uninstalled all android SDK and adb related things, but no luck

Any ideas?
[Magisk] elwholo:
You don't need to use the joystick as a system app with the patcher you need to add the generated module to magisk modules and later select the joystick at mock locations disable all options such as indirect mocking or system mod
[Magisk] yacal:
Link looks to be down... Pls solve it
[Magisk] jvaz87:
Good afternoon, I generate the .zip file quietly, but when I go through the magisk it gives me an error. my magisk is v16 because v18 is not running on snap710, somebody help me to solve please rs

imgur.com/0zHyePT

imgur.com/FqgJuJZ
[Magisk] lordlord6:
Xiaomi mi max 2

I did all the step, when i click ADB patch, i got ERROR Target JAR should be deodexed. Help.

I am on global beta 8.3.29.
[Magisk] Lucho505:
Ive read reports that android 9 isnt supported by smali. Can anyone confirm this?

Im on a xiomi mi a2 with android one 9.0
[Magisk] Spartacus500:
Make copies of the entire framework folder and build.prop file, I will try to do a patch for services.jar for you.
[Magisk] fOmey:
So your saying your able to connect using ADB through CMD... but not the patcher even tho you replaced the files? I don't understand, I'm sorry.

If that's not what you did: what you want to do is replace the files in the folder named bin with the working SDK version.

You can use a magisk v16 module template and downgrade the smalipatcher module if your forced to use v16. Just compare the files and read the instructions on the module template page.

Post smalipatcher logs & adb folder.

Should be fine..
[Magisk] Lucho505:
Here you go, thanks a bunch dude

I uploaded to MEGA because I cant seem to find any upload/attach button in the reply window, sorry if thats an inconvenience
[Magisk] Bootloop74:
ROM updates

If I install an OTA I have to reinstall Smali Patcher?
[Magisk] Lucho505:
I kept getting crashes in the decompiling phase with 3.4, and now with 3.7 I keep getting java not installed errors (and im positive I have it installed). Any ideas? I have W10, .net 4.7.2 and JDK 11.0.2

Thanks in advance for all the support!
[Magisk] jvaz87:
How do I proceed? I managed to generate the zit of smali 3.7 and 2.7 but both give this same failed installation error. How do I proceed to fix this failure and complete the installation of zip?
[Magisk] fOmey:
Open a cmd window type "java.exe -version" post the output.

Well, you need to educate yourself on magisk module creation for v16.. transfer the contents of the generated magisk module to your downgraded v16 one.

Start off by visiting the magisk module template github page.

EDIT: Here you go, if you modify these two files inside the module zip it should solve your problem - the contents should look like the left hand side for v16: https://github.com/topjohnwu/magisk-module-template/commit/9be59108731c2237a5c4626e2af633262e2b1920
[Magisk] jvaz87:
I can not copy the build.prop gives me an error, and I have magisk correctly installed, why will it?
[Magisk] Lucho505:
nvm, I updated to 1.8.0_201 and it worked, built the module and installed it flawelessly. Now im testing to see if it works with mock locations enabled. Ill post back with results
[Magisk] jvaz87:
i'll try
[Magisk] Lucho505:
[MENTION=1620550]fOmey[/MENTION] it works perfectly dude, have a beer on me
[Magisk] jvaz87:
i can not, if i have how to try to do for me i will be very thankful, follows the model of the module i use and the right that is the systemizer, and follows the module that i generated from your smali that is giving the error, if you can do this downgrade for me i will be very grateful

filefactory.com/file/1guahlu1slrt/terminal_app_systemizer.zip

filefactory.com/file/3sdyy972iibt/SmaliPatcherModule-0.0.3.7-fOmey%40XDA.zip
[Magisk] BeastBoyy:
Sorry for sounding like a total noob. But when i run smali and run the adb patch after it said idle.

It gives the error Framework dictionary not found.

How can i fix this?
[Magisk] illo1987:
spoofer

Cheers,

Honorable mention to [MENTION=5818781]Eng.Raman[/MENTION], who has been kind enough to patch service.jar's for tons of users who lack the knowledge to deodex (despite my best efforts of writing out clear instructions!)... the smali patcher user base thanks you for your service![/QUOTE]

^^^ I have followed all the instructions and even videos online. Nothing worked, except when I downloaded the apk for the gps spoofer above. only downside is that has no joystick. any ideas why it works with the spoofer above but not Fake GPS and Joystick or the GPS Joystick ones by appninjas? :/
[Magisk] negroxxx:
[MENTION=1620550]fOmey[/MENTION]

excellent work, running S6 android 8.1; S7 android 8.0 and S8 android 9.0.

Playing Pogo using Gps Joystick without problems thank you very much
[Magisk] fOmey:
Try following the instructions on the first post.
[Magisk] Damian992:
Smali patcher problem

Smali patcher module activated

Xiaomi mi max 2

Android 7.1

GPS joystick ninja app

Without GPS joystick It works

when i activated false position pogo give me device not compatibile

Till Yesterday was working with new magisk doesnt i trucchi even creating the module again nothing.

Any tips?
[Magisk] shoey63:
Turn off system mode and all other options. Just set the joystick as the mock location app in developer options.
[Magisk] Damian992:
Done nothing changed :(
[Magisk] jvaz87:
Good morning, I was on android 9 so I came back now to 8.1 to see if it worked out and nothing yet, so I saw some videos on the internet the smali compatible with my magisk v16 is version 0.0.2.2 however when I try to generate the zip me of a Deodexing error, then I saw a tutorial from FulmicsDeodexer and I'm trying to do, I copy the framework folder and the build.prop file from the smali and baksmali jar but it gives me a bootclasspath error not found! what am I doing wrong? can you help me to generate this zip through version 0.0.2.2 of smali? then I think I'll install on my magisk v16

EDIT:

I built my folder framework, my build.prop file and smali 0.0.2.2 on google drive, if someone can generate the smali .zip for me to flash in the magisk I will be very grateful

drive.google.com/open?id=1carN8sKyZq9RLqAdGsnMVCfjOVqgLNY8
[Magisk] Zeprus:
drive.google.com/file/d/1QClmjRJnkiGS6XBA9dZbzhdUgZWXUWn0/
[Magisk] Spartacus500:
[MENTION=7588035]Zeprus[/MENTION]

Services.jar file 4 patch for You ;)
[Magisk] Spartacus500:
[MENTION=9671873]jvaz87[/MENTION]

Services.jar file 4 patch Smali patcher 0.0.3.7 & services.jar file 3 patch Smali patcher 0.0.2.2 for You ;)
[Magisk] jvaz87:
Thanks, but it did not work out here, my magisk is v16 so the zip module needs to be generated by the version of smali 0.0.2.2, otherwise it fails to install the module! = [

I try to generate the module by version 0.0.2.2 but it gives a Deodexing error ... =[
[Magisk] Spartacus500:
[MENTION=9671873]jvaz87[/MENTION]

Try again version 0.0.2.2
[Magisk] jvaz87:
drug also gave error in 0.0.2.2 :crying::crying::crying::crying:
[Magisk] Spartacus500:
[MENTION=9671873]jvaz87[/MENTION]

Copy file services.jar patch to system/framework & give permissions & reboot.
[Magisk] jvaz87:
cp "/sdcard/services.jar" "/system/framework" process ended with ERROR:1

copy file: failed

EDIT: I installed zip for twrp and it worked! thank you very much!
[Magisk] wosard:
how flash smalypatcher in twrp ?
[Magisk] seb_131:
Working fine on Poco F1 MIUI10 V10.2.2.0 with Magisk 18.1
[Magisk] Zeprus:
Thank you, out of interest, have you manually deodexed it and then patched it? :)
[Magisk] Damian992:
Looks like smali patcher isnt hiding the fake GPS app, pls someone help!
[Magisk] Spartacus500:
Yes :)