yashsingh1/xdaforums huggingface dataset:
[Magisk] amg314:
Errors or WARNINGs? Please upload BatchApkTool *.log file

What is your API (84 command in BatchApkTool)

For example, my API is 26 for Android Oreo 8.0.
[Magisk] pawwaap:
Is it really reliable method to deoex really every system? Especially this XperiaXZ Oreo eXistenz (which is basically lightly modified and debloated stock Oreo 8.0)?

Does it dedex whole system on device?

Does it mean it needs to PERFECTLY choosing 84 commands (parameters) ans what if just one mistake?

But this is how to apply SmaliPatcher in a regular way. Does it mean doing patching with SmaliPatcher after deodexing will bring better results?

XperiaXZ F8331 Oreo eXistenz debloated
[Magisk] amg314:
I succesfully used this method on my arm64 tablet running under Oreo 8.0.

I patched my /system/framework/services.jar for signature spoofing while using microG.

But as I know, BatchAPKTool may deodex all files at /system directory.

As for SmaliPatcher, it can't deodex *.jar

Please note that my deodexed services.jar was 126B long, after deodexation - 3M. (See Picture 1, Picture 2 show us my odexed services.jar, composed of 4 files)

What should do SmaliPatcher if services.jar is 126B long?

As for choosing your API (84 commands) - it is the only but necessary tuning before deodexation.
[Magisk] TheUndertaker21:
mine was pie

84 then 28

and got like 84 errors

do i copy the whole framework folder or what's inside it
[Magisk] amg314:
2. Copy /system/framework from your device to BatchApkTool373 _system directory.

You can use ADB plugin for Total Commander (the easiest way) or adb pull /system/framework in TWRP or USB flash, etc.

You need copy ALL /system/framework directory from your Android device to _system directory at ApkBatchTool on your PC.
[Magisk] pawwaap:
And about other folders?

You've mispelled, wanted to say odexed, don't you?

And maybe have you looked into the file content? Looks like before deodexation it is binary, and after text like, human readeable?

Do you suggest SmaliPatch does purely nothing without deodexing?

XperiaXZ F8331 Oreo eXistenz debloated
[Magisk] TheUndertaker21:
Only one error but smali still ssay not deoxed
[Magisk] pawwaap:
And you can do it also by copying to the sdcard first:

cp /system/framework /sdcard1

(In TWRP or AndroidTermEmulator in your rooted system, but first run "su" command. Path to sdcard might vary on different devices or systems.)

and afterwards usually copy from your device to PC, by usual USB file transfer.

XperiaXZ F8331 Oreo eXistenz debloated

---------- Post added at 05:24 PM ---------- Previous post was at 05:18 PM ----------

It's strange, in XperiaXZ Oreo (eXistenz) without deodexing services.jar is 3.8MB of size.

XperiaXZ F8331 Oreo eXistenz debloated
[Magisk] amg314:
What file are you trying to deodex?
[Magisk] TheUndertaker21:
Service. Jar
[Magisk] amg314:
Your services.jar is originally deodexed))

You can patch it using SmaliPatcher.

See Screenshot to see my odexed services.jar composed of 4 files)))
[Magisk] pawwaap:
So no point of deodexing the system folder (other files than services.jar)? Any gain of doing it?

BTW Please where have you downloaded ADB plugin for TotalCommander? Looking on the site ghisler.com however seems not providing it.

XperiaXZ F8331 Oreo eXistenz debloated
[Magisk] amg314:
https://www.ghisler.ch/board/viewtopic.php?f=6&t=34980&start=570

I do not know your needs))

I patched my services.jar for signature spoofing in microG.

Spoofing is OK!

---------- Post added at 05:59 PM ---------- Previous post was at 05:42 PM ----------

What error, please explain.
[Magisk] 13thbugs:
Thank you, i will try this method and report asap
[Magisk] amg314:
No problem!
[Magisk] pawwaap:
In my XperiaXZ Oreo there is always some problems with over-"security". For instance, no Xposed nor edXposed wants to cooperate (system booting breakes).

Is it relevant to odexing, maybe?

Does it mean no Xposed module is needed anymore for microG?

And does downgrading by reinstalling an app work for you now?

XperiaXZ F8331 Oreo eXistenz debloated
[Magisk] amg314:
Yes! Xposed is no needed for signature spoofing after deodexation + SmaliPatching of services.jar!
[Magisk] pawwaap:
And does reinstalling-downgrade work too?
[Magisk] fOmey:
You make it all sound very simple haha, It's not planned at the moment unfortunately.. if all you want to do is downgrade a app, why don't you use magisk to replace it?

Have you accepted the USB debugging permission popup on your phone?

I've tested the patcher on my own S10 and it works perfectly fine.

EDIT:

Try this release.. you'll be able to see the raw output of ADB.

CHANGELOG ::

4.8

Display command line window until inbuilt patcher status updates are fixed to prevent user confusion.
[Magisk] lestatab:
Hola, qué configuración tienes en tu gps? no logro hacerlo funcionar en Pie
[Magisk] MikeJumpObv:
I used the smali in a Galaxy s5 (sm-g900m) with android 6.0.1, at first everything was great, but a day later I rebooted my device and, the gps started jumping like crazy, I use applications to alter my location, the real problem was that despite uninstalling the smali my gps was damaged, the location jumped like crazy, I had to reinstall all the OS, I do not understand that damaged this precious module, I hope someone can explain what happened, I want to try again but I I will inform more
[Magisk] pawwaap:
Well, want to have full freedom of REinstalling applications, like eg. InstallerOpts Xposed module provided. (XperiaXZ Oreo refusues to boot with Xposed)

And couldyou say specifically what SmalliPatch does?

You're saying Magisk can be directly used to reinstal apks? How?
[Magisk] amg314:
To copy /system/framework from your Android device to Your_Path\BatchApkTool_3.7.3\_system use BatchApkTool:

Select 13 command - pull > and then type 3 = All files from /system/framework (

in 15 seconds

/framework will be copied to _system)))
[Magisk] Johnny Eng:
Smali Patcher 4.8 having issue with spoofing in pokemon go.

Just update.

After perform clean flash using magisk module.

All settings are correct, in game getting Error 12 : failed to get location

Revert back to Smali 4.6, working as charm.
[Magisk] jimbo77:
Are you disabling completely fused location by any chance?
[Magisk] Sn4ke-:
Same issue since the last update with PGO + Fake Gps Joystick by Ninja Apps

I'll try to revert back to Smali 4.7.
[Magisk] lestatab:
Where are the previus versions? i have the 4.2 and 4.8 but PGO + Fake Gps Joystick by Ninja Apps + Pie dont work

Edit

After a few hours, setting to 'Permissive' mode the SELinux works ok
[Magisk] jimbo77:
@f0mey I can confirm what others are stating. I updated to 4.8 same setup on my phone and Pogo says Error 12. It's the same that shows when fused location is fully disabled. Reverting back to 4.7 fixes it and works as intended.
[Magisk] MikeJumpObv:
I confirm that the 4.7 and 4.8 cause problems with pokemon go, particularly the 4.7 damaged my OS, the gps bounced crazy, at least on Android 6.0.1.
[Magisk] jimbo77:
4.7 is working fine. I'm using S10plus with Android Pie
[Magisk] MikeJumpObv:
Maybe for that version, it worked fine at the beginning, I just restarted my device once and the errors started
[Magisk] Fre$h:
[MENTION=1620550]fOmey[/MENTION] : I tested with an underversion of smalipatcher 0.0.4.7+ lineage 16 with april security patch, but it messup totaly the services.jar so that a lot of things doesn't work correctly as I already stated here :(

I thought it can comes from the security patch itself, but a friend of mine with a O+ and april patch hasn't any issue with 0.0.4.7

BTW, I tested the 0.0.4.8 too, and like other buddies here, error 12 with GPS Joystick too ;)
[Magisk] lestatab:
Try to set to 'Permissive' mode the SELinux
[Magisk] newxda85:
Yeah,me too.. i am using Mi5 with LOS 16.1 Last build. Smalipatcher 4.8 didnt work...all apps still detected Mock apps ..revert to 4.7 and it work like a charm again..

There's something wrong with smalipatcher v4.8
[Magisk] fOmey:
CHANGELOG ::

4.9

Fixed a crash when applying magisk reboot patch to a already patched target.

Improved magisk reboot patch, removed the potential to not reboot back into magisk.

Redirect output for certain binary functions with working status indicators.

Fix mock location patch that I broke in the most stupid way possible.. if you're updating from 4.8,

make sure you disable/remove any installed smali patcher magisk modules before updating

.
[Magisk] Johnny Eng:
Thx you da man!!!

Will try it out ?
[Magisk] Fre$h:
Tested and approved !!!

You fix the 0.0.4.8 issues we all have here

Nothing better for Los 16+april patch unfortunately

Huge Ty [MENTION=1620550]fOmey[/MENTION]
[Magisk] Johnny Eng:
Nope, 4.8 is having issue. Is fixed on 4.9.
[Magisk] helcurt2ne1:
help

please someone help me to make patch 4.9 for me?? urgent :'(
[Magisk] Sn4ke-:
You're the King. Thank you a lot man :good:
[Magisk] ahse0w:
hi.. i am trying to download the file on the first page. but the picture seems to get in the way.

the link could not be clicked at all.
[Magisk] alphandi6:
yes the link is gone, or nginx. please fix the link. or may be there is an alternative link?

---------- Post added at 04:01 AM ---------- Previous post was at 03:56 AM ----------

oh there is an alternative way to download it. just scan the QR code.. haha...
[Magisk] DiegoKcrz:
Hello, everyone, do the deodex process, have my file "service.jar" but I try to run it in smali and I get that error "magisk module template download failed solution" that I have seen that several of them pass, could someone support me, I would appreciate it very much

https://drive.google.com/file/d/1zCuc9k1k36zMfKe1_7-A_k3d6zNnHWJu/view?usp=sharing

Thanks for the support, I have been looking for a solution for several weeks :(
[Magisk] amg314:
I have tried to download your services.jar with no result: Access denied((
[Magisk] Jug324:
Not working

I have LG V20 rooted with Oreo. I am able to install smali patcher v4.9 module with magisk 19. I am using GPS Joystick with all settings uncheck and set my mock location with set in developer. When I open pogo I get error 12 like smali isn't working.
[Magisk] Sn4ke-:
Hello, try this package. : Package Smali
[Magisk] fOmey:
The patch included in smali patcher only patches signature verification, so any apps (mostly system apps) that require a specific signature to run will continue to do so after you modify them.

The patch your talking about is a package manager patch, this is not included in smali patcher at all.

You can use a magisk module to replace the base APK.. a example of this is youtube vanced.

Use the latest release.. sounds like you're using a outdated version of smali patcher.
[Magisk] DiegoKcrz:
Hello, thanks for answering, it's strange that I do not have permissions, but I solved it, downloaded the latest version of smali and ran, something slow but it worked and thanks to its tutorials I managed it

Sn4ke

Thanks for the file, but I managed to fix it: D
[Magisk] Nekstuce:
Hello, thanks for this topic, but I have Error 12 on PoGo

Do you have on idea please ?

I have crDroid / Android 9.0 / OP5T

Thanks you
[Magisk] GTDarthYoda:
did you actually enable the module in magisk? or just run the app??
[Magisk] lestatab:
i had the same problem, just used the 0.0.4.6 version and works ok... and i have SELinux permissive too
[Magisk] MisledMew:
Where did you find the older version? Can you provide link please?
[Magisk] wurstherpes:
https://drive.google.com/open?id=1yfUHBM-Yczq7DE1J8M4QjcMnBn-znw7C
[Magisk] fOmey:
Make sure your not generating a module with a smali patcher module enabled.
[Magisk] Klotzi86:
Latest Smali Patcher

Hello

I use smali patcher 4.9 with Magiskversion 19. But I don't know what is going wrong with my settings. Can you help me?

Android 9 Pie

Root

Samsung S8

h ttps://youtu.be/s16OoEcM4cQ

I recorded my settings on video
[Magisk] shoey63:
Magisk Manager > settings - repackage with a random name.

GPS Joystick > settings - turn everything off including system mode. (you can only leave distance info and prevent screenshots on)

Developer options - select GPS joystick as mocking app.

Reboot and try again.
[Magisk] shu151:
today I updated magisk to 19.1 and smali patcher no longer slowdown the device. I only activated the mock location and it still works ?
[Magisk] huntingdog5:
I checked on this thread since there was a magisk update so i could update the module from 4.7 to 4.9 but when I clicked on the download link but I get an error for the download saying that the file is gone.
[Magisk] elwholo:
Hello I just wanted to say that in a previous version the patch decreased my performance (4.5) but now at 4.9 its much more smoother to a point I think that the lag is gone for good I'm using OnePlus 5t OxygenOs 9.04

---------- Post added at 02:55 AM ---------- Previous post was at 02:41 AM ----------

Hello make sure to disable indirect mocking in gps joystick it's enabled by default on devices running Android 6 and further versions
[Magisk] ColdShadow80:
File not found when downloading Smali Patcher 4.9
[Magisk] s.i.t.h.l.o.r.d:
Download still works fine but here's the same archive a 2nd time
[Magisk] MasterchiefX:
Can anyone, please upload smali patcher zip for " max pro m1" with mock location. The smali patcher exe. Is force closing on my laptop.
[Magisk] Austcool:
Will there be a Java version of this I use linux and mac and don't have access to windows.
[Magisk] fOmey:
That's good to hear.

No sorry, wasnt thinking of linux & mac users during the conception of the patcher... you'll have to install a windows virtual machine.
[Magisk] shoey63:
See post #2805
[Magisk] whalesplaho:
I just updated to April update and tried patching my deodexed services.jar but got stuck... Please help op!

Thanks.
[Magisk] MitycalCreature:
Update

Hi guys, great work!

Today magisk update to ver. 19.1. I still run an old small version, 3.7, and it works flawlessly. Should I update it due to magisk update?
[Magisk] Phantom Thief:
I didn't bother to. I also use 3.7 and it's working fine. Is there even any difference between the versions of smalipatcher fOmey? Always thought at most each version would improve/fix anything wrong with the program to generate the module and that despite the version the generated result would be the same.
[Magisk] fOmey:
Check the changelogs, If I modify the patches in any way I will definitely mention it there.. most of the time they remain the same.

I did update some of them recently tho..

On another subject, I've standard coding in the foundation to allow multi-file patching.. meaning eventually this will allow patches outside services.jar and open the door for new patches. I never considered this when initially starting this project (amateur mistake).. the bulk of the existing functions need to be adapted for the change.

I don't have any new patches in mind at the moment.. A user recently requested the ability to overwrite apps with older versions - that might be a good place to start. We shall see...
[Magisk] Phantom Thief:
Yeah on some version the Changelog mentioned compatibility with magisk 19. But I was stubborn to test if the old one still worked without updating and seems fine. Anyways let me congratulate you for the amazing you've done job!
[Magisk] Blurgz:
Smali isn't working for PKMN Go

Failed to detect location. (12) even with Smali Patcher + GPS Joystick Ninja

My phone is LG V20 using a rooted stock Oreo rom.

I've correctly followed the instructions for Smali patcher.

I've turned off all the settings in Ninja's GPS Joystick app

I've enabled mock settings on Developer Options

I've hid Magisk Manager

I've set the Location to Device Only

I've paused the Location History for Google

I've turned off "Find My Device"

I've enabled Magisk Hide on Google Play Services, Pokemon GO, and GPS app.

I've turned on privacy mode and generated a new app under a different name

I've even removed PKGO, Smali, and GPS app and reinstalled everything

Please tell me what to do. I've done literally everything there is to think of trying to get rid of the "Failed to detect location (12)" error. I spent hours trying to figure this out and it's stressing me the hell out.
[Magisk] abieofficial:
mas awakmu driver grab ya?
[Magisk] fOmey:
Have you enabled the module?

You're using the latest release? Make sure you're not generating the module with any existing smali patcher modules are enabled.
[Magisk] Blurgz:
I have. Core mode is off too. The module should be fully functional. I'm thinking it might be an issue regarding the Oreo stock rom I downloaded here
[Magisk] fOmey:
Post your magisk log.. we can try verify if the module is being loaded.
[Magisk] Blurgz:
Ah shoot. I would but I just gave in and flash Lineage 16. Everything works again. Thanks for the quick reply!
[Magisk] JasontheKep:
*EDIT FIXED*

Okay, so I figured it out. It turns out for some reason when I "Hid Magisk" the new apk Magisk creates wasn't functioning correctly at all, it wasn't recognizing root requests, and it wasn't accepting modules. I have to go figure that out now, but the problem obviously isn't with the Smali patcher zip.

I have an S7 Edge on 9.0 Pie. The zip file worked fine before the upgrade. Now when trying to flash in TWRP it says "Updater process ended with error: 1 error installing zip file." I tried redoing the entire process pulling the services.jar from the phone and patching it, it compliles the .zip file but when I flashed it I got an "error: 2 error installing zip....." Anyone know what's going on?

Also, if i try to load it as a module in Magisk it says installation failed.

Here is the log from Magisk

- Copying zip to temp directory

- Installing SmaliPatcherModule-0.0.4.9-fOmey@XDA.zip

update-binary[46]: setup_flashable: not found

update-binary[49]: mount_partitions: not found

update-binary[52]: api_level_arch_detect: not found

update-binary[55]: boot_actions: not found

update-binary[55]: recovery_actions: not found

update-binary[62]: unzip: not found

update-binary[64]: abort: not found

update-binary[66]: .: /dev/tmp/install.sh: No such file or directory

! Installation failed
[Magisk] seb_131:
Also looking for this.

Can someone post it?

Thanks very much.

:)
[Magisk] ultimatepichu:
Hi! Can I ask a quick question: does this work when I'm outside? Somehow I still get gps signal and caused rubberbanding.
[Magisk] DenyDarko:
Hey guys,

I've just downloaded the recent 4.9.

Unfortunately it stucks at 99% while it downloads Magisk template.

fOmey @ XDA
Patcher Version: 0.0.4.9
==> Detected Java: 1.8.0_211
==> Dumped framework
[INFO] Processing 1 file(s) from bin\services.vdex
[INFO] 1 out of 1 Vdex files have been processed
==> Extracted classes.dex
I: Using Apktool 2.4.0 on services.jar
I: Baksmaling classes.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
==> Patched mock location boolean
==> Patched mock location boolean
==> Patched secure flag function
==> Patched secure capture function
==> Patched secure capture function
I: Using Apktool 2.4.0
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Building apk file...
I: Copying unknown files/dir...
I: Built apk...
W: Could not find resources

Image attached.

Any clues?
[Magisk] amg314:
Processing 1 file(s) from bin\services.vdex

You are patching odexed file services.vdex

You need to deodex services.vdex first and receive services.jar.

https://xdaforums.com/showpost.php?p=79399590&postcount=2812
[Magisk] DenyDarko:
The problem is related to the magisk template download, not the patching process.

(I don't use the signature spoofing either way)
[Magisk] Phantom Thief:
Try to disable any antivirus/firewalls you have enabled and give it another try. That means it's your connection and so on. I've just tested and it only takes a few seconds for me on a fresh extracted folder :good:
[Magisk] fOmey:
This is bad information..

The patcher automatically deodex's if its necessary during ADB method.. that's precisely what its doing in the log.

Only time you ever need to manually deodex is if your device requires some specialised deodex process... otherwise the patcher should handle it just fine.
[Magisk] DenyDarko:
Found the issue.

codeload.github.com was blocked by one of adblock blacklists.

[MENTION=1620550]fOmey[/MENTION] maybe smali patcher should handle a connectivity error case rather than just getting stuck? :confused:
[Magisk] fOmey:
You're not wrong.. it definitely should and it will.. one day. :p

The truth is the connectivity side of things needs a lot of work and error handling.. I'll get around to it eventually.
[Magisk] amg314:
Why the deodexation process is not indicated in the log when the program is working?

Output of this information to the log was not provided?
[Magisk] shu151:
Hi [MENTION=1620550]fOmey[/MENTION] I have installed the module with secure flag but then i am not able to take screenshots in netflix app. I'm on OP6t oxygenos 9.0.13
[Magisk] fOmey:
It is:

fOmey @ XDA
Patcher Version: 0.0.4.9
==> Detected Java: 1.8.0_211
==> Dumped framework
[B][INFO] Processing 1 file(s) from bin\services.vdex
[INFO] 1 out of 1 Vdex files have been processed
==> Extracted classes.dex[/B]
I: Using Apktool 2.4.0 on services.jar
I: Baksmaling classes.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
==> Patched mock location boolean
==> Patched mock location boolean
==> Patched secure flag function
==> Patched secure capture function
==> Patched secure capture function
I: Using Apktool 2.4.0
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Building apk file...
I: Copying unknown files/dir...
I: Built apk...
W: Could not find resources
[Magisk] camiloxt:
cuando termina de descargar binarys con el movil conectado le doy en adb patch y sale ERROR: no ADB devices found. ayuda no la e podido crear

Mod edit: English translation

"when it finishes downloading binarys with the connected mobile I give it in adb patch and it leaves ERROR: no ADB devices found. help I could not create"
[Magisk] Phantom Thief:
Try to go on TWRP, mount system and try to patch that way.
[Magisk] Izlud:
Guys, don't forget to do that :

Set device only in location method settings (Settings -> Location -> Location method).

After 2 days of searching the answer was under my nose
[Magisk] wurstherpes:
Yes, that's in the second post.
[Magisk] Chaaartz:
Still having rubberbanding

Hi!

I just installed Smali Patcher v0.0.4.9 in a Motorola Z with Android 7.0 and Google Play Services v16.0.91. The problem is that I am still having GPS issues, rubberbanding is so high just like when you don't have a previous version of the Google play services, I can see that the module is correctly installed and activated, and also I set gps mode to Device Only, it is supposed to be working with that configuration, right? so, what other information can I provide in order to be helpful?

Thanks!
[Magisk] linyongzheng:
Just installed v0.0.4.9 on a Moto X4. Disable Secure Flags only seems to work on some Apps. Are there multiple locations where disabled secure flags can be set? If so, what are the chances for the disabled secure flags to be updated to work for all apps?
[Magisk] Bilge656:
Hi! I consulted the faq and searched, but could not find the answer.

Does this tool allow for signature spoofing on Android 9 roms? If not, are there plans to add it?

Thank you!