yashsingh1/xdaforums huggingface dataset:
[Magisk] sleepybear0815:
Can anyone help ? Patches doesn't seem to be working.

fOmey @ XDA
Patcher Version: 0.0.2.2
adb: error: failed to copy 'system/build.prop' to 'adb\build.prop': remote open failed: Permission denied
* daemon not running; starting now at tcp:5037
* daemon started successfully
pull: building file list...
/system/framework/: 391 files pulled. 17.1 MB/s (341846923 bytes in 19.105s)
==> Dumped framework
[INFO] Processing 1 file(s) from bin\services.vdex
[INFO] 1 out of 1 Vdex files have been processed
[INFO] 1 Dex files have been extracted in total
[INFO] Extracted Dex files are available in 'bin'
==> Extracted classes.dex
I: Using Apktool 2.3.3 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.3
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 template download complete
==> Generated magisk module zip file
*** Complete ***
[Magisk] fOmey:
When you say the patches are not working.. can you explain please ? What makes you think that ? What is happening ?
[Magisk] :
Cool. Disabling the module seems like an alright workaround.

I'm not overly worried, but I thought it might be handy for other people to at least be aware of, who might not understand why signature verification exists, why it's an important part of android's security model....

This looks like it could be handy for some experimentation for sure though! Thanks!
[Magisk] Dante Enoshima:
Hmm... How about enable write access to external sdcard with user confirmation ? :D
[Magisk] ZzEzZ:
1) So the location patcher has the benefit of treating mocked locations as real. Does the patcher still benefit you if you spoof location without ticking the "mock locations" developer option?

2) What is the signature verification patch used for? Can someone give me an example for what they plan to use it?
[Magisk] Dante Enoshima:
For number 2 : it's important cuz the verification makes sure that system apps only got pure updates, like from Play Store and ensures that the update that system apps will get isn't tampered
[Magisk] iPusak Gaoq™:
Your explanation is way wrong...the patch is to disable verification not enable it beside signature verification is enable by default in any android phone...that point of the patches is to disable it so you can downgrade and apps without having to uninstall the apps first...even if you disable the signature verification via this patch you can still update the apps normally using playstore....
[Magisk] Dante Enoshima:
Huh... I know it's for security purposes, but ijdk how it works xd, thanks for correction anyway xd
[Magisk] cameronkelley28:
I was starting to think that may have been the case. Thanks for taking a look and sorry for wasting your time.

His explanation wasn't completely wrong, just worded backward to where it was confusing seemingly implying the patch was enabling it. Disabling signature verification isn't only used for downgrading apps. Sometimes there are newer versions of system apps that don't have the same signature. A good example of this that I've run into would be Samsung system apps. Sometimes a system app that's extracted from a newer device (eg. Note 8) will have a different signature and fail to install even though it could technically work on an older device. In that case, disabling signature verification allows you to update to an "incompatible" version.
[Magisk] Fenny:
It's also great for modding system apps like facebook or pandora when they are included cooked into the ROM, you can just sign and install the modified version like a normal app.
[Magisk] cityneversleepz:
Would someone explain what to do after the patcher says it completed? I'm not sure where the file is at that point. I think I found it in bin, but what do I do with it? Where do I put it to install it?
[Magisk] Eng.Raman:
Whenever it is completed successfully, the tool will generate a module zip for your services.jar named "SmaliPatcher-0.0.0.7-fOmey@XDA.zip". Copy it to your phone and install via magisk manager.
[Magisk] cityneversleepz:
Thank you because now at least I found the file. I'm still stuck like noob.. Embarrassing as hell. I put it in the internal magisk manager folder with other magisk downloads and refreshed hoping it would show up in the magisk app download list but it didn't. I'm probably not putting 2+2 together here.
[Magisk] fOmey:
Open the magisk manager app, navigate to modules, click the add button, select the module ZIP

OR

Flash the zip in recovery.
[Magisk] John-W:
Can someone help me, please?

I'm not a native speaker and I have huge problems to understand the tutorial...

I don't understand the deodexer part, especially: "Extract "/system" folder from rom zip installation file to your desktop." what rom zip installation?

I have a Galaxy S6 Nougat.

Please have mercy, I learn English since 10 months now.

Edit: I actually found my services.jar on my phone and made a copy of it on my pc, when I try to copy the entire system folder it always fails ( I use root browser for it)

Now I don't know how to deodex the jar file...
[Magisk] cityneversleepz:
All that worked out. Again thank you.
[Magisk] Eng.Raman:
Follow my guide in posts #74, #78 and #84.
[Magisk] John-W:
I checked your post 78, shouldn't it be enough to just copy the framework folder and the build.prop?
[Magisk] Eng.Raman:
For Fulmics deodexer it is enough.

Use " Root Explorer " or " Es File Explorer " and grant root access then you should be able to copy anything you want. OR you can copy files using TWRP recovery → Advanced → File Manager.
[Magisk] John-W:
I managed to deodex the services.jar and put it in the smali patcher and got the zip file, but now when I try to add it with magisk it says "unable to extract zip file!, Failed!"

This is my odexed Services.Jar
[Magisk] RokCruz:
I have the same problem here, in the patcher I try all patches or one by one and I have some errors and the advice that services must been deodexed, so I try the smali/baksmali method and it shows "can't find file: services.odex"

I have a Moto G5 Plus with Resurrection Remix 7.1.2

http://cloud.tapatalk.com/s/59d67c6d81edc/Screenshot_20171004-204019.png?

This is my services jar

https://mega.nz/#!LUpWDBqS!7hTyCftH3v5D9AoG8bqOtkIse-UaJu6MrJsF5fCuUfI
[Magisk] Eng.Raman:
SmaliPatcher with all 3 patches for [MENTION=8610082]John-W[/MENTION] services.jar

If I helped hit the thanks button.
[Magisk] sleepybear0815:
I'm trying to install unsigned apks and they won't install. neither on their own or over the playstore version.
[Magisk] fOmey:
I highly recommend using magisk and replacing the apps systemless-ly for something like this. The signature verification patch is used more for system apps rather than what your trying to do.
[Magisk] langithitam:
You got me wrong, the

1st method using fulmic + smali doesnt result a smali patcher

2nd method using using adb gave a smali patcher that caused bootlop (the one that i'v attach)

Here you go, i also also attach it as text

fOmey @ XDA
Patcher Version: 0.0.2.2
system/build.prop: 1 file pulled. 0.4 MB/s (4506 bytes in 0.010s)
pull: building file list...
/system/framework/: 232 files pulled. 16.4 MB/s (242842437 bytes in 14.164s)
==> Dumped framework
==> Detected API: 24
==> Deodexed services.jar
==> Patched mock location boolean
==> Patched mock location boolean
==> Patched secure flag function
==> Patched secure flag boolean
==> Patched signature verification function
Exception in thread "main" org.jf.util.ExceptionWithContext: Exception occurred while writing code_item for method Landroid/net/INetd$Stub$Proxy;-><init>(Landroid/os/IBinder;)V
at org.jf.dexlib2.writer.DexWriter.writeDebugAndCodeItems(DexWriter.java:825)
at org.jf.dexlib2.writer.DexWriter.writeTo(DexWriter.java:268)
at org.jf.dexlib2.writer.DexWriter.writeTo(DexWriter.java:246)
at org.jf.smali.Smali.assemble(Smali.java:130)
at org.jf.smali.AssembleCommand.run(AssembleCommand.java:96)
at org.jf.smali.Main.main(Main.java:99)
Caused by: org.jf.util.ExceptionWithContext: Error while writing instruction at code offset 0x0
at org.jf.dexlib2.writer.DexWriter.writeCodeItem(DexWriter.java:1098)
at org.jf.dexlib2.writer.DexWriter.writeDebugAndCodeItems(DexWriter.java:821)
... 5 more
Caused by: org.jf.util.ExceptionWithContext: Unsigned short value out of range: 72686
at org.jf.dexlib2.writer.DexDataWriter.writeUshort(DexDataWriter.java:116)
at org.jf.dexlib2.writer.InstructionWriter.write(InstructionWriter.java:348)
at org.jf.dexlib2.writer.DexWriter.writeCodeItem(DexWriter.java:1058)
... 6 more

==> Generated classes
I: Using Apktool 2.3.3 on services.jar
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
I: Using Apktool 2.3.3
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 ***
[Magisk] Escape86:
this is my service.jar

https://drive.google.com/file/d/1GIw8QouPInCMRN7xNLWz39_h0m7ucjUE/view

this is my log smali patcher tool
[Magisk] fOmey:
Definitely a error there.. which is why your bootlooping.

Try using just mock locations patch and see if that exception error still comes up.

Hmm your PC is struggling to allocate enough resources for the patch.... which is why there is an error.

Close anything running in the background and try again.. if that still fails the PC your running the patcher from fails to meet the minimum requirements.. really not much I can do about that I'm sorry.
[Magisk] Escape86:
I ask for you to make module smali patcher from service.jar that I have uploaded, because I've tried several times to make it still error, Please..
[Magisk] Eng.Raman:
Your file need permission to access.
[Magisk] Escape86:
sorry i do not know how to change the permissions on google drive because i upload it through device, this i give link through mediafire, thanks for been willing to help me

https://www.mediafire.com/file/k86ztvcv4rc4er9/services.jar/file
[Magisk] Eng.Raman:
Your patched module zip.

You are welcome bro. :)
[Magisk] Escape86:
Thank you for your kindness ?
[Magisk] a12ka24:
help me

i cant patch my service.jar

my device is Xiaomi Mi A1 (8.1) resurrection remix rom,,

somebody can help me
[Magisk] Eng.Raman:
Do you followed the ADB method in the first post?

If you don't have a windows PC to patch your services.jar, just zip and upload the 3 files mentioned in my post #1081 ( step 5 ).
[Magisk] langithitam:
thanks for the response,

i've tried just using mock location and it still produce the same error...
[Magisk] Eng.Raman:
Zip and upload your framework folder bro.
[Magisk] a12ka24:
Thank's for response

this is my zip

http://www.mediafire.com/file/ttkvhtunantm6lo/MI_A1.zip/file
[Magisk] Eng.Raman:
Deodexing and generating the smali patched module for your Xiaomi Mi A1 ( 8.1 ) services.jar. :)
[Magisk] MenyaMenye:
Hello everyone, i'm on rr rom android 7.1.2 just flashed the module but the disable signature verification patch seems not working, i'm still unable to install an unsigned apk file.
[Magisk] fOmey:
What exactly was the problem here ?
[Magisk] fOmey:
Your services.jar isnt playing nice with apktool for what ever reason.. Try decompiling manually and see how you go: https://ibotpeaches.github.io/Apktool/documentation

If you cant decompile/recompile manually yourself, the patcher won't be able to either.. diagnosing these type of faults is outside the scope of this thread.
[Magisk] sofsamu:
If I update the ROM, do I need to do the whole procedure again?
[Magisk] langithitam:
Here you go bro : https://drive.google.com/open?id=1yynfs8Z71KeTXAeVUCXhV5ky2gCn-S3r

thanks for your effort bro [MENTION=5818781]Eng.Raman[/MENTION]
[Magisk] Eng.Raman:
Deodexing ( using baksmali code ) and generating the smali patched module for your Moto C Plus ( 7.0 ) services.jar. :o
[Magisk] Eng.Raman:
Almost if your android security patch updated then yes.
[Magisk] adi7bello:
Can u help me? I use lenovo A7000-a Plus. Thanks

hxxps://drive.google.com/file/d/1H1yvpRxGEnJvlAt-4rB7HvrctAJGPRO1/view?usp=sharing

Please change xx to tt on https. Thanks a lot dude :)
[Magisk] langithitam:
thanks mate, it works! wondering why the hell it always get me error when i did it... :eek:
[Magisk] Eng.Raman:
Deodexing ( using LBD2.5 tool ) and generating the smali patched module for your Lenovo A7000-a Plus ( 5.0.2 ) services.jar. :)
[Magisk] fOmey:
If you keep spoon feeding people they will never learn.. Sometimes you need to say no for the greater good!
[Magisk] Eng.Raman:
You are right, but i try to help those who have tried as hard as they can, but they have not succeeded or encountered mistakes they can not solve or who don't own a PC.
[Magisk] fOmey:
I appreciate what you are doing, I just hope the people you go out of your way to help do also! I feel like people take advantage of generosity.
[Magisk] Ndutslonely:
sir help me.

my phone is infinix note 3 pro, and i already use fullmics for deodex the services jar, and succes.

but the problem is smalipatcher said the services jar is not deodex.

can you tell my mistake ?

thanks

regrads,
[Magisk] opz187:
hey bud I don't have access to a computer with those tools to deodex & whatnot. I know you've been talking request after request, so I feel a bit guilty asking.. but is there anyway you could help me out?

https://www.dropbox.com/s/y3fass53i53o6u4/Angler%20AICP.zip?dl=0
[Magisk] langithitam:
Hy [MENTION=5818781]Eng.Raman[/MENTION]

LBD2.5 tool stand for JoelDroid Lollipop Batch Deodexer.

And what does (using baksmali code) stand for? Using adb method? Or Using Fullmic and deodex it?

Nevermind i've read your previous post #869 thanks :)
[Magisk] saciladh:
Thanks for your hardwork sir

One question, is it possible for this module to work with spoofing fused provider service?

When i try to spoof fused provider service with iTroll app (downloaded from playstore), it get detected that my location is being spoofed
[Magisk] PrimateaEu:
smali patcher.exe worked, creating the zip, but no way to install/flash it. alway "/data/adb/magisk.img mount failed...

Error: 1

i have a maze alpha 4g/64 android 7.0

magisk 16 and twrp 3.2.1
[Magisk] Didgeridoohan:
Logs? Device? ROM? Magisk version? Details, details, details...
[Magisk] PrimateaEu:
added the log

my build is MAZE_Alpha_v08_20171228,

Mediatek MT6757 (arm A-53)

kernel version 4.4.15+ armv8I

Android version 7.0

Api 24.

magisk 16 and twrp 3.1.2
[Magisk] yourmate:
I've done it by the book and it works flawlessly, thank you.

However, I just realised when reading the thread that actually you can use a different spoofer than OP's one.

Could you recommend one which is capable of doing the following two things:

- you can search for places (preferably UK postcodes)

- you can store Favorites (places you would revisit)

Many thanks,
[Magisk] chipol:
Could you help me too , for deodexing , i have Limitations hardware of OS for NET frmework

hereby my framework.zip

thanks
[Magisk] fOmey:
Your absolutely right, I just posted my bare bones personal spoofer.. your welcome to use any GPS spoofer on the playstore tho !

If you spoof GPS location it should be fed into fused provider anyway as its treated a legitimate location update.

I don't see any problems spoofing the fused location provider tho.. just needs to be spoofed by creating a mock provider.. not via fusedlocation api.
[Magisk] yourmate:
Thanks for your work!

Yes, I realized that, thanks. But as it has tons of spoofers the question was if anybody knew one in which:

- you can search for places (preferably UK postcodes)

- you can store Favorites (places you would revisit)

Cheers guys ;)
[Magisk] cognitivedissonance:
Hi there, I'm sure I'm asking a silly question, but please bare with me here. I'm trying to determine which method I should use (adb vs alternative.) My belief is that my phone is likely NOT deodexed, and thus I should try the adb method.

I'm using a Pixel 2 XL (Google edition) on stock the 8.1 March OTA, rooted with Magisk 16.0, using Magisk Manager 5.7.0, and I'm running the Flash kernel.

Can someone verify I'm thinking correctly?

One other question: do either the adb method or the alternative method install anything to my computer, or does it all run self-contained? I'm assuming it's just downloading stuff directly to the folder it's contained in and then running command line stuff in the background without placing files elsewhere or installing anything, right?

Thanks guys!
[Magisk] Inotamira:
Google Pixel (Sailfish 128GB Direct from Google)

I'm not sure what I'm doing wrong here, it's installed through Magisk, it's the latest v16, and it was working until I opted into the beta then reverted back. After reverting back from the Android P beta, it now jumps between my real location and the fake location. I have even made a new module several times and reinstalled everything a number of times completely from "stock" (I flashed stock then restored a backup from the cloud), and it's still bouncing between my true location and the mock location. Can anyone tell me what's going wrong, is the beta the problem and I need to replace the boot loader or kernel or something?

Edit: I figured out what the issue was, so I'll post it here in case it helps someone else. Turns out it was a combination of setting the options for my spoofing app incorrectly, and how I wiped the device with the stock image. For flashing the stock image, what was never explained to me, and keep in mind I've been doing this for a long time, is that only having ADB and Fastboot is no longer sufficient. You have to have mk2FS and basically everything else in the android platform tools available to the batch file, I have them setup to run in a command prompt without the need for directory changing or having them in the immediate directory.

Basically the result would be an incomplete flash and I was dirty flashing everything, causing the instability and magisk to act up as well as the system itself. Then for my spoofing app, I'm using FakeGPS Route (paid), but it's not exactly behaving correctly and I'm not sure if it's the app or smali.

Edit 2: After some expirimentation, it was the app, essentially if the update interval is too low, GPS based games won't accept being pinged with data that frequently. I still get the issue where it stops moving every now and again, but if I bring the app back in focus and back out, it'll start working just fine again, so next is to have it keep focus.

Edit 3: After setting the update interval to 1000 and then leaving the app in focus for over 2 minutes, it was spoofing with routes without issues what so ever
[Magisk] F1ct:
Driver Signature

driver signature does'nt work for nougat and oreo. how to solve?
[Magisk] fOmey:
Good to see you figured your issue out, good job updating your post so other users can benefit from your findings also.

This is a copy & paste from the FAQ on post 2 of this thread, not sure if you have tried any of the following:

MOCK LOCATION RUBBER BANDS TO REAL LOCATION ::

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

Disable improve location accuracy settings (Settings -> Location -> Improve accuracy).

If you plan to play Pokemon GO also disable Google location history (Settings -> Location -> Google location history).
[Magisk] PrimateaEu:
Any tips?
[Magisk] Didgeridoohan:
Yes (but it's gonna make me feel like a broken record): Provide logs and details about your device.
[Magisk] a12ka24:
help

i cant deodex my services.jar

devices is oppo a1601 lolipop

i have no computer

this my services.jar :

http://www.mediafire.com/file/0t78y1bntrsnfem/services.jar/file
[Magisk] PrimateaEu:
I did last week, but updated the comment. My error, sorry

---------- Post added at 08:42 PM ---------- Previous post was at 08:41 PM ----------

Patcher Version: 0.0.2.2

==> Binary download complete

==> Unpacked binary.

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

pull: building file list...

/system/framework/: 168 files pulled. 17.0 MB/s (254602938 bytes in 14.291s)

==> Dumped framework

==> Detected API: 24

==> Deodexed services.jar

==> Patched mock location boolean

==> Patched mock location boolean

==> Patched secure flag function

==> Patched secure flag boolean

==> Patched signature verification function

==> Generated classes

I: Using Apktool 2.3.3 on services.jar

I: Copying assets and libs...

I: Copying unknown files...

I: Copying original files...

I: Using Apktool 2.3.3

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

Quote:

- Copying zip to temp directory

- Installing modulo_Magick_mock.zip

- Mounting /system, /vendor

Archive: /data/user/0/com.topjohnwu.magisk/cache/install.zip

inflating: config.sh

inflating: module.prop

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

Smali Patcher

fOmey @ XDA

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

Powered by Magisk (@topjohnwu)

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

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

Creating filesystem with parameters:

Size: 67108864

Block size: 4096

Blocks per group: 32768

Inodes per group: 4096

Inode size: 256

Journal blocks: 1024

Label:

Blocks: 16384

Block groups: 1

Reserved block group size: 7

Created filesystem with 11/4096 inodes and 1294/16384 blocks

- Mounting /data/adb/magisk_merge.img to /dev/tmp/magisk_img

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

Failed!

! Installation failed
[Magisk] jackyhk02:
Thanks OP for the great work, it is working great on my Samsung Galaxy Note 5 + Nougat.

Would like to ask is it possible to add the feature forcing FLAG_ACTIVITY_NEW_TASK to true, which simulates what the below Xposed module does?

https://xdaforums.com/xposed/modules/mod-activityforcenewtask-t2646504
[Magisk] Nanda51:
So, just to have it clear. Using this patcher will avoid rubberbands?
[Magisk] initial_P:
i have done
[Magisk] fOmey:
This is a little tricky, because I can patch for ALL tasks to be considered new which could cause issues when they are not if that makes sense..

Writing a universal mod that checks if tasks are launched from the same app and blah blah blah is alot more work and I need to make sure the patch is compatible across all android versions.

It's absolutely possible, just more work than I'm prepared to do at this stage.. maybe some day in the future.
[Magisk] People11:
Is it possible to support Android P?
[Magisk] MisterMeJ:
Keeps bootlooping on both ways mentioned in OP and provided by Raman.

Tried every option on and off, same result.

Know issue on 8.1.0 or need any logs?

Dirty Unicorns 8.1.0 on 6P.
[Magisk] Andypaijox:
Somebody help me, how to make smali patcher at samsung note 4 (g910h). give me some tutorial please.
[Magisk] s.i.t.h.l.o.r.d:
The tutorial is in the first post. Please try reading at first.
[Magisk] Atexrudess:
Working good for a few times. But since yesterday the patch has been detected by the app,could you please help me..?
[Magisk] SamGuy2020:
Best module ever works flawlessly with my S6

with my S7 Oreo, mock Location and signature spoofing seem to go through but it's not finding secure flag class. I made the module without it.
[Magisk] hmd90:
Hi, I need help.why after deodex my rom 8.1.0 using batch apktool ,my phone is laggy I tried 3 custom rom still same problem.any solution? I use redmi 3s with custom rom
[Magisk] Dr.Nero:
I think it's bad

I think there's something wrong. I go to the system folder and i don't have framework folder. I don't think this is good doesn't it? How can i fix it?
[Magisk] sasa94:
Where i can find the app Fake GPS Joystick & Routes Go 1.6.1??
[Magisk] Dante Enoshima:
One question : Signature spoofing won't be added ever again?