yashsingh1/xdaforums huggingface dataset:
[Magisk] Kimizuer:
Make sure you have successfully installed all needed drivers (specially adb drivers)

check your "Device Manager" to check if there is any missing drivers and if the computer is recognizing the phone (try to listen to plug in and plug outs)

Also make sure you're using a data transfer usb cable, because its normal for some cheap cables now-a-days only have charge funcion and not data transfer!

I had issues once to find the right driver for one of my phones :)
[Magisk] zzzhead:
Still unable to downgrade app :(
[Magisk] qood:
I am a beginner at all of this, and am having trouble. I'd like to use stock firmware on my Moto X Pure XT1575, and am not sure where to find my services.jar. I've found a copy of my device's firmware, running android 6.0, and downloaded the zip file. There is no system folder inside of it.

update: I have tried copying the system folder to my sd card using the root browser app on my phone, then copying the folder to my computer. However, I could only copy about 1/3 of the folder before the app got stuck copying the folder, so I tried to work with that. I had to manually search for and find services.jar and add it to the parts of the system folder that I did manage to copy, putting it in the correct 'framework' folder. I was able to finally get Fulmics to work. However, after that finished, the Smali Patcher said that my services.jar is not deodexed.

Can anybody help, please?

Update: I used Root Browser, and carefully copy/pasted every folder one-at-a-time to my SD card (it gave errors when I tried the whole /system/ folder at once). I got it on my PC, and the deodex worked, and the smali patcher made a zip. The Smali Patcher now shows up in modules. For others with Moto X Pure XT1575, I'd like to share the zip to save the hassle. Message me for a link (I can't share links yet on these forums).
[Magisk] fOmey:
I'll upload a version that supports marshmallow and above.
[Magisk] ckiddtilley:
What units are the distance steps in the settings? Meters?
[Magisk] firozpatel:
Going to test it, any luck on the patcher for screenshotting apps yet?
[Magisk] firozpatel:
I have tried your spoofing apk, not working on marshmellow still hrtting the error message
[Magisk] fOmey:
Na haven't had time to look into it. It's on the back burner for now.

Meters.

Let me re-upload, might of uploaded the wrong file.

Make sure your downloading the spoofer from the original post yeah ? 0.2 version.
[Magisk] qood:
After some hassle, I've gotten the services.jar to deodex, and got the Smali Patcher to work. I installed the module in Magisk, rebooted, and now Smali Patcher shows up in my modules list.

Is there some way to check that I did it right, and that the module is working? Or should the fact that it's in the modules list be proof enough?
[Magisk] firozpatel:
I can say the apk works, i need some help on how to use the spoof

So i chose a location, then how do i move around in pokemon go?, i dont see a joystick

[MENTION=1620550]fOmey[/MENTION]

Let me re-upload, might of uploaded the wrong file.

Make sure your downloading the spoofer from the original post yeah ? 0.2 version.[/QUOTE]
[Magisk] fOmey:
If the module is activated, its active.

You just tap on the map and it sets your location, if you long tap it will activate stepping/walk mode. Simple ! Yes 0.2.
[Magisk] firozpatel:
I long pressed the map nothing shows up, also no map is showing on your app and pokemon go, i have set mock locations to your apk in developer options too, any ideas?
[Magisk] fOmey:
Try zooming out.. that screenshot doesn't look right at all.

If you have two dots on the screen something isn't working correctly.. you'll need to provide a logcat.

The two dots represent your GPS location and the mock location, they should be the same spot..
[Magisk] firozpatel:
To get the red dot i did what you had said to long press on to the map, i dont get a joystick or anything
[Magisk] mrceli:
tried the spoof app, it's so good ?nice for walking ?but, it will be "gps signal not found" when doing raid, battle, seeing dex, or other things the likes. yet no rubber banding. ?
[Magisk] fOmey:
That's right.. as I said before if the dots don't overlap each other there is something wrong.

Provide a logcat.
[Magisk] vu45:
My circles are one but I get failed to detect location error (12)
[Magisk] xNotta:
Is it normal to get this message?

W: Could not find resources

The module flashed and is running fine.

Full log:

fOmey @ XDA
Patcher Version: 0.0.0.8
==> Binary download complete
I: Using Apktool 2.3.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 signature verification function
I: Using Apktool 2.3.0
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Building apk file...
I: Copying unknown files/dir...
[COLOR="Red"]W: Could not find resources[/COLOR]
==> Magisk template download complete
==> Generated magisk module zip file
*** Complete ***

I missed these features since I got away from Xposed. Signature and Secure Flag mods were two of my must haves.

Thank you for making them available again AND for doing it systemless-ly!
[Magisk] fOmey:
Is the module installed & activated ? :confused:

My pleasure, absolutely normal.. nothing to worry about.
[Magisk] vu45:
Yeah it is up and running according to Magisk. I just get the error. Might be something to do with my phone since I hear the Moto Z Play doesn't play well with GPS spoofing apps.
[Magisk] fOmey:
Sorry I can't be much more help.. but that's abnormal behaviour.
[Magisk] Kimizuer:
Hm, now that you mention it, i tried now....

fresh rom...

running smali 4.0 with just the mock locations...

installing Magisk and installing the module zip....

...

same effect, the phone freezes on the boot logo...

so the patcher is doing something wrong right?
[Magisk] fOmey:
Post the output of the patcher & upload the generated module.

Yeah, I think you're right about the checkbox.. it would require a additional patch and the patch would be outside the services.jar anyway.. all the included patches are constraint to the services.jar at this stage.

EDIT: Also the patch would be pretty elaborate, you would need to hook into the function that returns a given setting value (which is used for all the settings most likely), verify its looking up the mock location setting and modify the returned value. The concept sounds easy on paper, but can be a pain in the ass to track down.

For legacy support, its to much work.. if you have a option to upgrade to a newer android version I suggest you go that route.
[Magisk] Kimizuer:
File used: SmaliPatcher-0.0.4.0-fOmey_XDA\SmaliPatcher.exe

fOmey @ XDA
Patcher Version: 0.0.4.0
==> Binary download complete
==> Unpacked binarys.
==> Detected Java: 1.8.0_201
system/build.prop: 1 file pulled. 0.4 MB/s (8125 bytes in 0.019s)
pull: building file list...
/system/framework/: 258 files pulled. 15.8 MB/s (249887371 bytes in 15.086s)
==> 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 ***

Print of the patcher (mock location checkmark only) http://prntscr.com/mnn0ck

Generated module link: https://we.tl/t-ByO6USsd5p

(still cant upload to forum posts, so here's a WeTransfer link, hope it helps)

I wait your reply,

Many thanks!
[Magisk] lepas33:
Hi there,

First a big thanks for this dev. Works fine with pokemon go on two of my phones (Samsung A8 & Redmi note 4, rooted via magisk).

However I have a problem with the last one. It's a sony z1c with ... locked bootloader (and allowed = no which means I even can modify this parameter). It was a pain to root, create a custom sysapp and unroot it to make the game playable (I succeded via Kingroot from a PC). I wanted to use smali patcher but it needs ... magisk. And I tried a lot of different things but I didnt find the way to do :

- Cannot install Magisk via a custom recovery (bootloader locked) ;

- Cannot use Magisk Manager to modify a stock boot.img : sony boot image needs another xda tool which works only with an unlocked bootloader

- Cannot use Magisk Manager to modify a custom kernel img : to flash it back it needs to be a stock one

My question : what can I do to use smali patcher ?
[Magisk] fOmey:
Looks normal to me.. hmmm..

Use the patcher and don't select any patches, this should simply deodex and generate a module with zero patches applied... install that and see if you bootloop.

Obviously backup before back so you can recover.

If you can generate a module, you can extract services.jar from it and manually overwrite the original. You don't need to use magisk per se.
[Magisk] TheUndertaker21:
@ fOmey, any luck on a real disable verification for pie ?

still no alternative.

seems pie killed that feature :(
[Magisk] Playersidhu:
Plz help guys i want to play pokemon go. :crying::crying:
[Magisk] YukiTheGreat:
Quote:

Originally Posted by fOmey

OK.. that sounds like its having issues decompiling.. which would explain the bootloops.

Can you send me a link to the rom your using at the moment?

EDIT: Definitely a issue with deodexing, your absolutely right the file size isn't the same. (I based my testing off a rom I found in the tab A section of XDA).

Could be a bug with baksmali.. it's not spitting out any errors.

If it's the same android version, it should be fine.

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

Hi f0mey. I've used 3 different roms so far. 1) The rom that came with the device when I first bought it 2 months ago, 2) Russian Rom from https://www.theandroidsoul.com/samsu...ab-a-firmware/ Under Galaxy Tab A 8.0" 2017 --> SM T380 Feb 7 2018 7.1.1 Android nougat. The smali magisk module that got me into bootloop is from 1) and 2). For 1) I don't remember the file size, and for 2) My smali magisk module size was 7174 KB whereas the reddit user who was helping me had 13,759 KB for his smali magisk module with the US rom which is the link below. He says he was successful with his smali magisk module on his end.

3) A reddit user sent me a Samsung T380 US version 7.1.1 rom from https://samfrew.com/es/download/GALA.../T380XAR1ARB3/ The website is in Spanish but the file is the US version. This one I need to wait 7 days for OEM unlock. The website also offers a Canadian one and I doubt that one will need to wait 7 days for OEM unlock. But I'm currently on the US one.

If my smali issues were caused by deodexing, how can I bypass this? I downloaded baksmali 2.2.6.jar and smali 2.2.6.jar from https://bitbucket.org/JesusFreke/smali/downloads/ and fulmics deodexer from https://xdaforums.com/and...r-1-0-t3512081

Also from XDA forum, which rom did you use?
[Magisk] Kimizuer:
Don't need backup, i always restore the fresh rom via odin3 (only takes 5min) to avoid any error.

I've tried with no checkmarks on smali patcher and returns with an error:

fOmey @ XDA
Patcher Version: 0.0.4.0
==> Detected Java: 1.8.0_201
system/build.prop: 1 file pulled. 3.9 MB/s (8125 bytes in 0.002s)
pull: building file list...
/system/framework/: 258 files pulled. 16.3 MB/s (249887371 bytes in 14.632s)
==> Dumped framework
==> Detected API: 25
==> Deodexed services.jar
I: Using Apktool 2.3.4
brut.directory.DirectoryException: java.io.FileNotFoundException: tmp (The system cannot find the file specified)
!!! ERROR: Compile failed - services.jar not found.

If i try to run it with all checkmarks or only 1 (no matter where) it runs smoothly, generating the module.zip... (tested 1 by 1, all successful, just fails when there are no checkmarks)

Is it suppose to run with no checkmarks?

btw, smali is generating a long name file on the smali\com\android\server\

check this picture: https://prnt.sc/mnt5iu

this causes the Windows to be unable to delete the file or folder.... im using this on C:\smali\... i cant delete this folder even with a process unclocker...

Can you fix this? :eek:
[Magisk] Phonegasm:
First of all, great job on making this possible!

Now my issue: System UI isn't responding errors constantly.

02-19 00:10:59.127 18427 18427 E AndroidRuntime: FATAL EXCEPTION: main
02-19 00:10:59.127 18427 18427 E AndroidRuntime: Process: com.google.android.gms.persistent, PID: 18427
02-19 00:10:59.127 18427 18427 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause

EDIT:

Temporarily fixed the issue by wiping Dalvik Cache and Cache....
[Magisk] fOmey:
It use to be able to run without a patch selected, I'll look into that.. I might of changed something up preventing it.

You might of found the problem tho!

From my knowledge baksmali/smali should truncate the file names if it they exceed 255 characters... you can try this if your keen enough: https://betanews.com/2016/05/29/long-paths-windows-10/

Otherwise select a patch and rerun the patcher, it will clean up after itself and should remove that file.

EDIT:

Seems to run fine here without a patch selected... might have something to do with the long ass file name.

EDIT 2:

I take that back, if it needs to deodex it won't run without a patch selected.. hmm

EDIT 3:

This will be fixed in the upcoming version.

Next time it happens provide a full log: 02-19 00:10:59.127 18427 18427 E AndroidRuntime: DeadSystemException:

The system died; earlier logs will point to the root cause
[Magisk] fOmey:
No.. any fatal crashes should be marked as "E" surely!

When this crash happens does your phone restart or do you just get the force close dialog popup?
[Magisk] Phonegasm:
Nothing crashes, just slows everything down for 10 seconds.

I'm going to do a full reinstall once I get back to my windows computer.
[Magisk] fOmey:
Right.. not sure bud. That log tells us nothing unfortunately.

EDIT: Maybe post a full log without any filtering.. might reveal some more info.
[Magisk] Phonegasm:
Thanks for responding! I will update / reinstall and reset everything and post again if the error returns.
[Magisk] KalenJr:
Hello Guys, I tried to install the smali patcher with only mock location enable and I could created the zip file. My issue is when I try to install the module via magisk the installation got failed message

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

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

Failed!

! Installation failed

Can you help me? What am I doing wrong?

I'm trying flashing on TWRP, failed again...

Thank you
[Magisk] YukiTheGreat:
Soooo... f0mey there is currently no answer for smali patcher to work with Samsung tablet running on 7.1.1?
[Magisk] fOmey:
It's not deodexing correctly, as I said earlier its probably a issue with smali/baksmali.

Take a read of this post, check and see if you have the same long filename? Might be linked to your problem: https://xdaforums.com/showpost.php?p=78949321&postcount=2382

My only suggestion is to try deodex manually, contact active devs that work with your specific device.. they might know of a work around or something.

All I know is for whatever reason your services.jar is not deodexing, I don't know why..
[Magisk] Kimizuer:
I'll look forward for the upcoming version mate! i'm glad i'm helping in some way.

So... about the detoxing.... nothing can be done right now for this phone? Will the upcoming patcher help me?

There is this kind dude that suggested to change my OS and your patcher will work... If you don't have a soon to come solution, i will try this.... ->

Anyways, hope i can be of any more help if you need. Just ask :)

Keep the good work, your next beer is on me!
[Magisk] sobirin90:
Refer point 5.
[Magisk] MisledMew:
I run into bootloop in OnePlus 6T everytime I try to install from magisk. My phone is on Oxygen OS 9.0.12 with Jan 2019 security patch.
[Magisk] lordlord6:
xiaomi mi max 2 another try

fOmey can you help me?

i got this log now, i have try now version 4.0 smali patcher

fOmey @ XDA

Patcher Version: 0.0.4.0

==> Binary download complete

==> Unpacked binarys.

==> Detected Java: 1.8.0_201

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

pull: building file list...

==> Dumped framework

==> Detected API: 25

I: Using Apktool 2.3.4 on services.jar

I: Copying assets and libs...

I: Copying unknown files...

I: Copying original files...

!!! ERROR: Target JAR must be deodexed.
[Magisk] 0ddj0b7:
New forced update? I just got locked out and failed to get game data message and my device wasn't compatible.

Ive been running MotoG5s plus with L0S16 with magik, magik hide, smalli patcher, and incorporate apps fake gps pro no problem.

All the sudden while im out playing legit with 2 accounts I noticed on my Iphone X Palkia appeared a lot larger on screen like the aspect had been changed. I got the error on my MotoG5s about incompatible device and failed to get game data from server. thinking my account was banned i quickly signed into the account on my Iphone X and everything was fine.

So my question is did Pogo have a forced update today? or was it google play services? Not sure what to do right now I had been on the latest version of pogo 0.135.0 for a few days but the new update for iOS hasnt been released to the app store yet so with the new Palkia scaling i noticed and the issues with a rooted device it leads me to believe there was a forced update that has added security and spoofing right now may not be so safe

edit to add details
[Magisk] fOmey:
The upcoming version will do nothing to fix your problem.

The problem you're having is with one of the dependency's. It's not something I can just go in and fix unfortunately.. it's not a project I manage or am familiar with on a source level basis.

If your keen enough to use the patcher, enable longer filenames on your system using the guide I linked above and see if that makes any difference.

Otherwise visit the the baksmali/smali github and open a issue there, hopefully sometime in the future they will implement a fix.

Try deodex manually, contact active devs that work with your specific device.. they might know of a work around or something.

Sorry I can't be much more help.
[Magisk] 0ddj0b7:
No worries and no need to apologize! I think you are awesome and i wont to donate to you for creating this. I got it straightened out I think. I might have spazed out a bit there for a second and my apologies
[Magisk] lepas33:
[MENTION=1620550]fOmey[/MENTION]

1) I created a module from a services.jar I had to deox.

I had to use the 0.0.4 version to bypass a template error.

2) I replaced the system/framework/services.jar with the module one.

GPS is still working.

However when i use the GPS app with the pogo game, i get the error 12 meaning the game detects the fictive position allowed parameter (android 5.1.1).

Where am I wrong ?

Thanks !
[Magisk] rawika:
I can tell you what the problem is. His patch is only designed to work with android 6 and upwards.

It looks for "setIsFromMockProvider" which it should find two times but it doesn't.

And here is the function that differs:

public void setTestProviderLocation(String paramString1, Location paramLocation, String arg3)
{
if (!canCallerAccessMockLocation(???)) {
return;
}
MockProvider localMockProvider;
StringBuilder localStringBuilder;
synchronized (this.mLock)
{
localMockProvider = (MockProvider)this.mMockProviders.get(paramString1);
if (localMockProvider == null)
{
paramLocation = new java/lang/IllegalArgumentException;
localStringBuilder = new java/lang/StringBuilder;
localStringBuilder.<init>();
paramLocation.<init>("Provider \"" + paramString1 + "\" unknown");
throw paramLocation;
}
}
Location localLocation = new android/location/Location;
localLocation.<init>(paramLocation);
localLocation.setIsFromMockProvider(false);
if ((TextUtils.isEmpty(paramLocation.getProvider())) || (paramString1.equals(paramLocation.getProvider()))) {}
for (;;)
{
long l = Binder.clearCallingIdentity();
localMockProvider.setLocation(localLocation);
Binder.restoreCallingIdentity(l);
return;
int i = Binder.getCallingUid();
localStringBuilder = new java/lang/StringBuilder;
localStringBuilder.<init>();
EventLog.writeEvent(1397638484, new Object[] { "33091107", Integer.valueOf(i), paramString1 + "!=" + paramLocation.getProvider() });
}
}

And this is how it looks on android 5 (your services.jar):

public void setTestProviderLocation(String paramString, Location paramLocation)
{
checkMockPermissionsSafe();
Object localObject2;
synchronized (this.mLock)
{
localObject2 = (MockProvider)this.mMockProviders.get(paramString);
if (localObject2 == null)
{
localObject2 = new java/lang/IllegalArgumentException;
paramLocation = new java/lang/StringBuilder;
paramLocation.<init>();
((IllegalArgumentException)localObject2).<init>("Provider \"" + paramString + "\" unknown");
throw ((Throwable)localObject2);
}
}
long l = Binder.clearCallingIdentity();
((MockProvider)localObject2).setLocation(paramLocation);
Binder.restoreCallingIdentity(l);
}
[Magisk] sobirin90:
Refer point 4.

---------- Post added at 04:59 AM ---------- Previous post was at 04:58 AM ----------

Refer point 5.
[Magisk] fOmey:
To solve this, you would need to patch: Settings.Secure.ALLOW_MOCK_LOCATION to return false.

By doing that you would break spoofers most likely because they expect it to return true to verify they can operate correctly.

This is precisely the reason why I haven't bothered with legacy android..
[Magisk] lepas33:
Thanks guys ! Then I'll look forward for an os update (marshmallow) but with my unlockable bootloader hope is very slim.
[Magisk] Playersidhu:
Bro please upload your patch file iam unable to do it.
[Magisk] monster_fire:
I am using Samsung Galaxy Tap 10.1

I am using Samsung Galaxy Tap 10.1, Is that mean this module will have problem cause bootloop on this device?

---------- Post added at 03:38 PM ---------- Previous post was at 03:34 PM ----------

"SAMSUNG TAB A IS CURRENTLY NOT SUPPORTED, THE GENERATED MODULE WILL CAUSE BOOTLOOPS. DO NOT PROCEED! "

I am using Samsung Galaxy Tap 10.1, Is that mean this module will have problem cause bootloop on this device?
[Magisk] seb_131:
Here is the file for Poco :)

No need to switch the Dev mode and to change anything in there. Just load it as module in Magisk.

I have reseted my phone after having generating it in order to play fornite* and haven't activated the dev mode.

* there is a bug in the Poco (with MIUI at least), if the dev mode has been activated once then de-activated, Bank apps (or fornite) still detect it. It is probably also detected as such by Pogo... so it may be safer to do a reset as I have done if you think you have enabled the mode in the past
[Magisk] rawika:
So the the spoofer also needs a patch I guess.

I tried to look for Settings.Secure.ALLOW_MOCK_LOCATION but couldn't find it.

I think you safe yourself some time by mentioning that everything below android 6 is not supported.

Anyway thanks for the patcher! (I also own a device that is not legacy which works well with your patcher)
[Magisk] lepas33:
Just done with my sister Samsung Note 8 in 2mn. Quick and clean. I won't stop to thank you [MENTION=1620550]fOmey[/MENTION].
[Magisk] KaitoXD:
How you resolved that? same problem
[Magisk] andrew2432:
Aww man @f0mey the h0mey been absent for um....months bit when the update messed up you know where I'm coming!

And check it outtttt good stuff thanks thanks thanks. My ROM GPS doesn't work at all so...big for everything not just that dumb game we love.