[LG V30 Guides, News, & Discussion] Wildcat2083:
This guide is for fixing a GPS Problem when attempting to use spoofing apps, in particular games that require your actual location.

For Example Pokemon GO among others, over time the original exploit to mock location was patched by certain companies when playing their games so now the only reliable way to do this is with root (for several reasons).

So Even with apps like GPS Joystick I found at times the real location was still getting acquired, I attempted to manually disable location services, using the built in features like "AGPS-Reset" still the actual GPS would lock on (obviously not as much in larger buildings) still I wanted to go outside and only mocking location be seen by the apps/games with no actual location working

I figured it out and thought I would share

First things first, You MUST be rooted. If you do not have root and own a V30 variant their are guides to convert and root.

It doesn't work without it, don't ask

For other phone models your mileage may vary (we are looking for a file "gps.conf")

Second, MAKE A BACKUP of the files that will be changed later, if you do not. Then you will most likely have to re-flash or have non-functional GPS and if you do need it you would be boned.

Third, You will need a few tools Ex. ( Terminal Emulator, Systemize [Masgik Module] , GPS Spoofing app I personally use the GPS Joystick Pokemon GO, Root file Explorer of some sort, the game of choice, and a system app or service disabler, like Titanium backup etc)

Now to the fun stuff

Make a backup of /vendor/etc/gps.conf

Install spoofing app (if equipped generate new name for GPS app and then delete the original)

After backing up gps.conf to SD or through adb, delete the original gps.conf in a root file manager then create a blank file in the same location (/vendor/etc) named gps.conf

In effect you just replaced the original with a blank copy, you could manually delete the contents as well but that's more work.

use the appropriate app disabler and disable anything with GNSS, location services, Qualcomm IZAT, Fused Location and anything else that is location service related

Open Terminal Emulator

type in "su"

grant su permissions if asked, make sure you have a # in the prompt

type in "systemize" (Gotten from magisk module download)

convert GPS spoofing app or generated app to a priv-app in the system (It cant be just /system/app)

then exit the systemize app and type "exit" a few times to close the terminal

Make sure when you do change the GPS settings in the actual android menu that you choose GPS only and that WiFi and Bluetooth settings are unchecked, obviously ensure the main GPS switch is enabled but that the rest aside from GPS only is not checked and or enabled

Then reboot your phone THIS IS A REQUIREMENT, for several reasons, it actually disables the location related services as well as the GPS via the gps.conf file and will also make your new spoofing app a priv-system app and it will appear

By now you should have location services aforementioned disabled, gps.conf blank, settings to GPS only with no other location "extras", a systemized gps spoof app. From here i disabled indirect mocking in the spoofing app, make sure System mode IS enabled AGPS-reset isn't needed and being we disabled location services manually, I suppose you could un-check that too but i left it checked

I modified the walk speed to the limits of the game I play, rebooted one more and its a safe idea to double check everything is set correctly

You DO NOT need to add the said mocking app to Developer Mock locations as it is a system app and some spoofer(s) offer that mode after making it an system app

At the end of the day you will now have a GPS Mocking app running where you can set your location and play without ever having the real location ping and rubber-banding you or otherwise messing up the whole concept of spoofing the GPS

As a disclaimer the GPS is a safety feature but some would rather not be tracked so this can technically work this way too

Some may ask well if you are just turning off GPS can't you just turn off the switch in Location Settings, that does not work as GPS technically has to be on for the spoofing app to function. Deleting gps.conf vs making a blank file causes the spoofing app to state the GPS isn't on (even if the on/off switch is toggled under the Phone Settings)

To reverse simply restore the original gps.conf to "/vendor/etc" (You did make a backup? Right)

re-enable the previously disabled location related services

reboot the phone

and if you'd like you can tick the gps and networks, WiFi, Bluetooth scanning and qualcomm IZAT option

or go with just GPS

either case this should enable the real location, I always test with a weather app

If you play Pokemon GO,Adventure Sync doesn't work (while location services disabled/frozen) I suspect because one of the "Location Services" Google Fit Depends on, however being you can walk as much as you want its a mute point, if you want Adventure sync back you have to reverse the process

Anyway this is what I have come up with, it works for me, after its tested by others, I am planning on writing a app that does this all in one shot. For now here is the manual way

Have Fun, Hope it works

If you have any questions or modifications to the post I am open to suggestions

If their is an easier way or something I missed or could Improve on, again comments are welcome

Last thing This technically violates TOS for some games and is increasingly hard to successfully pull off, so try your best to use every tool available to hide both the GPS spoofer and root from said games, don't teleport to far without waiting the proper amount of time before running the game , read up on the walking limits or how the game works if needed to fine tune everything

:):D:cool: