yashsingh1/xdaforums huggingface dataset:
[Magisk] Hogwart91:
Services.JAR Deodexing

Hi

Currently running a rooted galaxy s5, and as of last night was forced to update my POGO app, of course im a spoofer hence this post. I found my way here through suggestions from another post on social media. So let me get down to the nitty gritty, in a nut shell could someone deodex my services.jar, or teach me how to do so please?
[Magisk] basti3888:
I don't know what to do anymore. I tried everything but I can't get rid of the message, that my device is not compatible with PoGo.

I flashed my phone (S7 edge) a dozen times with no success. I will now write down, what my steps are. I would be thankful, if you could check what I could have missed in the procedure.

TWRP --> wipe data, wipe system & cache

TWRP --> install lineageos 15.1 & opengapps 8.1 nano --> REBOOT

configuring new OS install, google login, deactivate google location service

deactivate google location history, deactivate "find my device"

activate android debugging

install magisk manager 7.0.0 apk from sd card --> open --> download magisk v18.1 zip file

TWRP --> install magisk v18.1 zip from internal storage --> REBOOT

hide magisk manager

connect to PC via usb cable

start smali.exe as admin --> idle --> adb patch --> idle

copy created zip file to internal storage

install GPS joystick (app ninjas) from play store

magisk --> module --> + --> smalipatchermodule-0.0.3.7-fOmey@XDA.zip (a big Thank You to fOmey!)

flashing... --> REBOOT

generate copy from GPS joystick app --> uninstall original app

configure GPS joystick copy --> uncheck everything

delete magiskv18.1.zip & smali-zip from internal storage

TURN OFF phone & remove sd card --> BOOT

install Po Go from play store

magisk --> hide --> check everything

check preserve force encryption & preserve AVB 2.0

safetynet --> everything alright!

start GPS joystick copy --> start Po Go

--> device not compatible!

Please help!
[Magisk] Hogwart91:
unable to upload my services.jar.

Phone Info:

Samsung galaxy S5

LineageOS 15.1 Oreo 8.1

Rooted with Magisk 18.1

Magisk Manager 7.0.0

Any Help would be massively appreciated

TIA
[Magisk] Rooble88:
Issues with Patcher

Attempting to get an app called FakeGPS and Routes up and running again and their FAQ lead me here. New to Smali, so sorry if I'm missing something basic.

Galaxy Tab A (SM-T550) running Android v7.1.1. Currently have TWRP recovery, Magisk Manager v7.0.0, Magisk v18.1. I've tried to run a few variations of the SmaliPatcher.exe options, but here's just the Mock Locations:

fOmey @ XDA

Patcher Version: 0.0.3.8

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

pull: building file list...

/system/framework/: 240 files pulled. 12.9 MB/s (244310394 bytes in 18.035s)

==> Dumped framework

==> Detected API: 25

==> Deodexed services.jar

==> Patched mock location boolean

==> Patched mock location boolean

==> Generated classes

I: Using Apktool 2.3.4 on services.jar

I: Copying assets and libs...

I: Copying unknown files...

I: Copying original files...

I: Using Apktool 2.3.4

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

After installing the generated .zip via Magisk Manger, I get stuck in a reboot cycle. Do I need to use the alternative method? If so, can someone give me quick tutorial of deodexing a service.jar.

Will provide any necessary details to anyone willing to help. Tried searching the thread, but most of the recommendations seemed to be resolved by deselecting signature spoofing.

Thanks!
[Magisk] jhonathantanada:
My version is miui 10.0.4 android 8.1
[Magisk] Spartacus500:
Please upload you file folder framework & file build.prop on a Google or Mega server and give a link to the file.
[Magisk] Hogwart91:
Managed to get the files sorted this end now, and learnt how to deodex them, double win i suppose. Got another issue with POGO app saying device not compatible dont quite know if this is related to the smali patch
[Magisk] shoey63:
Attention Reddit guys.

Incompatible device when playing Pogo is a Magisk issue (randomly failing safety net).

If you want to Spoof and don't care about root, extract the services.jar from the generated module and push it to /system/framework. Then uninstall Magisk and you are good to go.
[Magisk] RJrodriguez:
rom deoxed to rom stock base

Android 6.0.1

moto g xt1543

bootloader unlocked

magisk 18.1

safetynet: true / true

I tried to do the procedure as an administrator, but I get: error framework directory not found any solution?
[Magisk] stdhan:
any chance you could also do the V10.2.2.0 PEJMIXM as well?

Would be much appreciated :good:

Couldnt get the jar file deoxed for the life of me.
[Magisk] ethan817:
Can someone please manually deodex this for me? It's from (Pie) OOS 9.0.3 on OnePlus 5. I am so confused on how to do it exactly. I appreciate it.

This is probably my favorite Magisk module btw!
[Magisk] fOmey:
Upload the module generated, I'll take a look.
[Magisk] nutzlos:
Thanks, that worked.

I copied the services.jar within TWRP to /system/framework overwriting the "old" services.jar.
[Magisk] fOmey:
If you go down this route, backup first.

You may have to delete services.odex/services.vdex files also depending on version/rom your using.
[Magisk] aroblu94:
You don't need to manually deodex, just plug your device into a PC with Smali Patcher and click "ADB PATCH". It will do everything and create the magisk module
[Magisk] Tal26:
can someone help me? tried on 3 different computers.
[Magisk] shu151:
[MENTION=1620550]fOmey[/MENTION]

on new version of oxygenos 9.0.12 the phone goes into bootloop. I also tried to create a new module on 9.0.12 but same thing

any suggestion?
[Magisk] Rooble88:
Attempting to. I seem to have lost the attachment button when attempting to post in this thread.
[Magisk] BajaBlast4Life:
fOmey @ XDA
Patcher Version: 0.0.3.8
==> Binary download complete
==> Unpacked binarys.
I: Using Apktool 2.3.4 on services.jar
I: Baksmaling classes.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
==> 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: Building apk file...
I: Copying unknown files/dir...
I: Built apk...
W: Could not find resources
info: read 'tmp\dist\services.jar'
info: read 'bin\sigspoof_7.0-9.0.dex'
info: type 'com.android.server.pm.PackageManagerService': method '<init>():void': (PackageManagerService.java:28): implicit ignore of trivial default constructor
info: write 'classes'
0 error(s), 0 warning(s)
==> Merged patch: sigspoof_7.0-9.0
info: read 'tmp\dist\services.jar'
info: read 'bin\sigspoof_core.dex'
info: type 'com.android.server.pm.GeneratePackageInfoHook': method '<init>():void': (GeneratePackageInfoHook.java:35): implicit ignore of trivial default constructor
info: write 'classes'
0 error(s), 0 warning(s)
==> Merged patch: sigspoof_core
==> Magisk template download complete
!!! ERROR: Magisk module template download failed.

I thought I try the new Smali Patcher 3.8, but I get "Magisk module template download failed." :confused: It works fine with the old version Smali Patcher 3.1, so I don't see why it shouldn't with the newest version. I am able to flash the zip in Magisk 18.1 without any bootloops on Oreo Rom, but I can't figure out the Error 12 in the game. I wanted to see if the newest 3.8 would make a difference or not.
[Magisk] CtrlAltDeplete:
For those of you who previously had a systemized GPS spoofing app and are switching to a non systemized version with the smali patcher, make sure you re-enable fused locations BEFORE you delete your systemized app. Otherwise it will seem like your spoofing isn't working even though all your settings appear to be correct.
[Magisk] Dylan10126:
3.8 not working

Currently running 2 Samsung S5's with Magisk 18.1

2 Separate computers in 2 completely different locations, each running windows 10

Patcher version 0.0.3.8 (Patcher version 0.0.2.7 was also attempted, as I managed to do a successful run with that version before, alas no luck this time)

.NET version 4.7.2

Java version 1.8.0_201-b09

Patching attempts were done with internet speeds over 100mb down, with smali patcher made an exception to windows firewall, and having windows firewall off completely. Also was done with running as Administrator

fOmey @ XDA

Patcher Version: 0.0.3.8

system/build.prop: 1 file pulled. 0.8 MB/s (9754 bytes in 0.012s)

pull: building file list...

/system/framework/: 126 files pulled. 5.0 MB/s (42453459 bytes in 8.054s)

==> Dumped framework

==> Detected API: 23

I: Using Apktool 2.3.4 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

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: Building apk file...

I: Copying unknown files/dir...

I: Built apk...

W: Could not find resources

info: read 'tmp\dist\services.jar'

info: read 'bin\sigspoof_4.1-6.0.dex'

info: type 'com.android.server.pm.PackageManagerService': method '<init>():void': (PackageManagerService.java:27): implicit ignore of trivial default constructor

info: write 'classes'

0 error(s), 0 warning(s)

==> Merged patch: sigspoof_4.1-6.0

info: read 'tmp\dist\services.jar'

info: read 'bin\sigspoof_core.dex'

info: type 'com.android.server.pm.GeneratePackageInfoHook': method '<init>():void': (GeneratePackageInfoHook.java:35): implicit ignore of trivial default constructor

info: write 'classes'

0 error(s), 0 warning(s)

==> Merged patch: sigspoof_core

==> Magisk template download complete

!!! ERROR: Magisk module template download failed.
[Magisk] sobirin90:
just had the same problem on 0.3.7 version, managed to generate patch 7phones before, which is Pocophone F1 (MI Globe 9.1.24 - Android Pie), Mi Max (MIUI 10.1.1.0 Global Stable - Nougat), Redmi 5 Plus (MIUI 9.6.5 Global Stable - Oreo), Redmi 5 Plus (MIUI 10.0.4.0 - Oreo), Samsung Note 5 Duos SM-N9208 (Stock ROM NRD90M.N9208XXS5CRH1 - Nougat), and Lenovo P2 (Ported MIUI 10 EU 8.7.12 - Nougat), Mi Max 2 (MIUI EU ROM, sorry phone not with me can't recall the build and android version).

Is this some kind of server issue because I tried with 0.3.8 version and still have the same problem, its weird it just happened this morning. Last phone I generate the patch is around 12 hours ago which is for the Redmi 5 Plus MIUI 10 one.

---------- Post added at 11:34 AM ---------- Previous post was at 11:26 AM ----------

Had this problem with my Samsung before, I solved it by revoke the USB Debugging access, and then grant it back.

Hope this helps.
[Magisk] teorix:
!!! ERROR: Magisk module template download failed.

Hi, somebody please patch my services.jar?

thanks
[Magisk] fOmey:
CHANGELOG ::

3.9 ::

ADB error checking: verify a single ADB device is connected before proceeding.

Added few more status updates to assist error checking.

Updated magisk template & URL.
[Magisk] sobirin90:
will give it a try, thanks a bunch.

---------- Post added at 12:47 PM ---------- Previous post was at 12:23 PM ----------

works for Poco F1 and Mi Max, somehow it doesn't work with Lenovo P2, it will return No ADB Devices found, although I sure that I had respective drivers installed. I can even give out command using the ADB Toolkit.

Any workaround?
[Magisk] fOmey:
Make sure usb debugging is enabled, instructions first post.
[Magisk] sobirin90:
I already checked, it is enabled.

Just test it with the last 0.3.8 version, no issue in detecting my Lenovo P2, it just prompt Error Download Magisk Template failed only. Not sure how to fix this. Any idea what should I try?
[Magisk] xioxxio:
!!! ERROR: Magisk module template download failed.

There must be server issue at the moment,

I have tried it on ;

Samsung S7

Nexus 5

Nexus 5x

all have the above error message.

Has anyone been successful today?
[Magisk] sobirin90:
Bro, try the latest 0.3.9 version. It should work.
[Magisk] fOmey:
Can you type the following command in CMD: "adb.exe devices" and post the output.

EDIT:

Do this with the phone plugged into your PC that is not being detected.
[Magisk] sobirin90:
As requested. See the picture I attached.
[Magisk] corntoh93:
unable to download new version nor create magisk zip

unable to download version 0.0.3.9, error 410. magisk template download kept failing.
[Magisk] xioxxio:
Thanks, 3.9 works great. It was 3.8 falling over
[Magisk] fOmey:
Thank you for doing that.. give this a try:

CHANGELOG ::

4.0

Modified ADB error checking function to increase device compatibility.
[Magisk] sobirin90:
Now this works like a charm. Nice work and thanks.
[Magisk] ptballer:
After flashing smali patch im stuck in boot loop even if flagging dm no verity patch first. 2017 Samsung tab A
[Magisk] Azazelbishop:
i have a problem can someone help

fOmey @ XDA

Patcher Version: 0.0.3.8

system/build.prop: 1 file pulled. 1.1 MB/s (4174 bytes in 0.003s)

pull: building file list...

/system/framework/: 107 files pulled. 21.5 MB/s (199058814 bytes in 8.815s)

==> Dumped framework

==> Detected API: 25

I: Using Apktool 2.3.4 on services.jar

I: Baksmaling classes.dex...

I: Copying assets and libs...

I: Copying unknown files...

I: Copying original files...

==> 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.4

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

info: read 'tmp\dist\services.jar'

info: read 'bin\sigspoof_7.0-9.0.dex'

info: type 'com.android.server.pm.PackageManagerService': method '<init>():void': (PackageManagerService.java:28): implicit ignore of trivial default constructor

info: write 'classes'

0 error(s), 0 warning(s)

==> Merged patch: sigspoof_7.0-9.0

info: read 'tmp\dist\services.jar'

info: read 'bin\sigspoof_core.dex'

info: type 'com.android.server.pm.GeneratePackageInfoHook': method '<init>():void': (GeneratePackageInfoHook.java:35): implicit ignore of trivial default constructor

info: write 'classes'

0 error(s), 0 warning(s)

==> Merged patch: sigspoof_core

==> Magisk template download complete

!!! ERROR: Magisk module template download failed.
[Magisk] sobirin90:
Please use latest version. 3.8 is buggy
[Magisk] agplugged:
Any way someone could upload the binaries for 4.0? For some reason whenever I fire the patcher up it always gets stuck at 99%. Currently running 3.8, are there any benefits in installing 4.0?
[Magisk] sobirin90:
Most people having problem on 3.8 in generating magisk module. The last part of the process is failed.
[Magisk] agplugged:
I didn't have that problem, right now 3.8 is running well, I just saw that 4.0 has some optimizations so I thought I should update the module but, as I wrote, I can't seem to download the binaries...
[Magisk] ptballer:
fOmey @ XDA

Patcher Version: 0.0.4.0

==> Binary download complete

==> Unpacked binarys.

==> Detected Java: 1.8.0_201

This adb server's $ADB_VENDOR_KEYS is not set

Try 'adb kill-server' if that seems wrong.

Otherwise check for a confirmation dialog on your device.

This adb server's $ADB_VENDOR_KEYS is not set

Try 'adb kill-server' if that seems wrong.

Otherwise check for a confirmation dialog on your device.

This adb server's $ADB_VENDOR_KEYS is not set

Try 'adb kill-server' if that seems wrong.

Otherwise check for a confirmation dialog on your device.

This adb server's $ADB_VENDOR_KEYS is not set

Try 'adb kill-server' if that seems wrong.

Otherwise check for a confirmation dialog on your device.

!!! ERROR: Framework directory not found.

any help as to how to get this to work on samsung tab a sm-t385?

---------- Post added at 10:41 AM ---------- Previous post was at 10:33 AM ----------

fOmey @ XDA

Patcher Version: 0.0.4.0

==> Detected Java: 1.8.0_201

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

pull: building file list...

/system/framework/: 246 files pulled. 17.5 MB/s (256492769 bytes in 13.977s)

==> Dumped framework

==> Detected API: 25

==> Deodexed services.jar

==> Patched mock location boolean

==> Patched mock location boolean

==> Generated classes

I: Using Apktool 2.3.4 on services.jar

I: Copying assets and libs...

I: Copying unknown files...

I: Copying original files...

I: Using Apktool 2.3.4

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

got it after revoke and re enable usb debug

---------- Post added at 11:01 AM ---------- Previous post was at 10:41 AM ----------

fOmey @ XDA

Patcher Version: 0.0.4.0

==> Detected Java: 1.8.0_201

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

pull: building file list...

/system/framework/: 246 files pulled. 17.5 MB/s (256492769 bytes in 13.977s)

==> Dumped framework

==> Detected API: 25

==> Deodexed services.jar

==> Patched mock location boolean

==> Patched mock location boolean

==> Generated classes

I: Using Apktool 2.3.4 on services.jar

I: Copying assets and libs...

I: Copying unknown files...

I: Copying original files...

I: Using Apktool 2.3.4

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

got it after revoke and re enable usb debug
[Magisk] basti3888:
This method did not work on my S7 Edge, but indeed for my S5!

How can that be?
[Magisk] ptballer:
still boot loop with patch though
[Magisk] fOmey:
I just tested the patcher and it seems to download the binaries fine.. make sure its not being blocked by a firewall or anything.

The last log looks like it worked fine.

What didnt work exactly? You might have to also delete "services.vdex" or "services.dex" also on your S7.

Make sure you backup before messing with these files tho.

Upload a generated module with just mock locations patch enabled.
[Magisk] Tal26:
please delete it. he helped himself.
[Magisk] bustyouup4free:
I'm on note9 Exynos, exe ran fine and flashed patcher, but now cts profile doesn't pass safety net... should I uproot after flashing? Do I install GPS spoofed to system so I can spoof... trying to use on Pokemon Go ... thanks
[Magisk] sobirin90:
What ROM are you using? I would several magisk modules to help you pass the safety net. Please state your current version of magisk also.

It's weird safety nets is much stricter on my Poco. On my other devices I don't even need to apply those modules to pass it. Strange.
[Magisk] mioramoe:
fOmey @ XDA

Patcher Version: 0.0.4.0

==> Binary download complete

==> Unpacked binarys.

==> Detected Java: 1.6.0_26

!!! ERROR: No ADB devices found.

get this, phone is in usb debugging, ABS crashes and says:

roblem signature:

Problem Event Name:	APPCRASH

Application Name:	adb.exe

Application Version:	0.0.0.0

Application Timestamp:	34f534d5

Fault Module Name:	adb.exe

Fault Module Version:	0.0.0.0

Fault Module Timestamp:	34f534d5

Exception Code:	40000015

Exception Offset:	00011425

OS Version:	6.1.7601.2.1.0.256.1

Locale ID:	2057

Additional Information 1:	1530

Additional Information 2:	15303ce904106e73688f015395307c00

Additional Information 3:	81d3

Additional Information 4:	81d3b2acffefd550df7ddc65c06fe106

Edit:

Phone is Galaxy S8+

tried CMD command as saw in previous post ADB crashed:

C:\SmaliPatcherModule-0.0.3.1-fOmey_XDA\bin>adb.exe devices

List of devices attached

* daemon not running; starting now at tcp:5037

error: cannot open 'C:\Users\ADMINI~1.SHI\AppData\Local\Temp\adb.log': Permissio

n denied

This application has requested the Runtime to terminate it in an unusual way.

Please contact the application's support team for more information.

could not read ok from ADB Server

* failed to start daemon

error: cannot connect to daemon
[Magisk] perm1perm:
code error "!!! ERROR: Magisk module template download failed."

My phone: samsun galaxy s7 edge exynos,oreo 8.0 security 01.01.2019

windows 7 x64

framenetwork 4.72

java 8

debug in fone on

magisk safetynet ok

smali patcher 3.9 send message: !!! ERROR: Magisk module template download failed. No zip file it install to magisk module ;[

help me? i want pokemongo spoofing.
[Magisk] ptballer:
Samsung tab a sm-t385 still gets boot loop after the patcher is installed via magisk or twrp. What potentially am I doing wrong? have done chmod 755 and ticked mount system

samsung tab a warranty void:0x1 (ox30c)

perhaps why?
[Magisk] sobirin90:
Maybe you should properly check your ADB drivers. You can start by checking the device manager. If you had used ODIN before, your PC should have proper ADB drivers. But there is no harm to check.

---------- Post added at 12:09 PM ---------- Previous post was at 12:07 PM ----------

You might want to properly check your ADB drivers. You can start by have a look at device manager while connecting your phone. If you had used ODIN before, the ADB drivers should be configured already. But there is no just to check.

---------- Post added at 12:11 PM ---------- Previous post was at 12:09 PM ----------

Try latest version. 4.0.
[Magisk] mioramoe:
Odin detects fine and I rooted ok :s

[IMG="odin"]https://i.imgur.com/ApvFANc.png[/IMG]
[Magisk] fOmey:
Run as administrator.. make sure virus scanner isnt blocking.. UAC etc.

You don't have permissions to write to adb.log.

Mate I've told you 3 times now, upload the generated module so I can diagnose.
[Magisk] mioramoe:
Have been running as administrator, went into both abs and smali exe and change permissions on all user accounts and admin accounts to full access also and still gives me same error

p.s. I don't have virus scanner active and running I disabled already:

Device is using CFW: G955FXXU4CRJ5_CL14483965_QB20117232_REV00
[Magisk] basti3888:
Now the "device not compatible error" does not appear after deleting those two files, but there is an authentification fail. Any suggestions?
[Magisk] aufartm:
LINK DEAD.

please update the patcher link, i cant download both of them.

Thank you.
[Magisk] ptballer:
here it is
[Magisk] Chilled26:
Were you able to get it working?
[Magisk] ptballer:
boot loop for me too on samsung tab a sm-t385
[Magisk] sobirin90:
You ought to try diagnose with this tool and see you can give out command via ADB or not

https://xdaforums.com/showthread.php?t=2703972
[Magisk] mioramoe:
Clicked ADB device:

* daemon not running. starting it now on port 5037 *

* daemon started successfully *

List of devices attached

ce04171449f820900d device

and successfully took a screen shot of device too

https://i.imgur.com/B4PyYrF.png

As I said in my original post abs.exe crashes when I try patch; running windows 7 sp1 64bit
[Magisk] shu151:
it worked on the old oxygen. I tried the 3.9 and at the first reboot no bootloop but it was as if it was not active.

restarted again without doing anything and it seems to work
[Magisk] Fatcat90:
Sadly, my phone cannot be found: Xiaomi Redmi Note 4X Snapdragon 4/64

Got this error.

Wanna play Pokemons! Asking for help, please :)
[Magisk] Chilled26:
It's good to know it's working, now I can update to OOS 9.0.12.
[Magisk] basti3888:
EDIT:

I flashed lineageos15.1 --> installed magisk --> created smali.zip --> extracted the services.jar from the zip --> moved it to system\framework --> deleted services.odex/.vdex --> unistalled magisk completely

Still my device is not compatible. I thought it was a magisk issue?
[Magisk] shu151:
Let me know how it goes ;)