[Xposed Framework Modules] Marlowguy:
Introduction

Hide Mock Location is Xposed Module, which hides information about 'Allow mock locations' setting enabled or Fake GPS app running to chosen applications.

User can choose between two modes of blocking: WHITELIST MODE or BLACKLIST MODE.

In WHITELIST MODE all apps see 'Allow mock locations' setting as disabled, except for apps chosen by user, which are immune to setting spoofing.

In BLACKLIST MODE all apps see 'Allow mock locations' true setting, except for apps chosen by user, which see 'Allow mock locations' setting as disabled.

Application works in on-fly mode, which means it doesn't need to reboot phone or restart apps to apply change of settings.

Usage

You can choose one mode at time (BLACKLIST or WHITELIST)!

If you leave switch in WHITELIST MODE, BLACKLIST MODE checks doesn't matter and If you leave switch in BLACKLIST MODE, WHITELIST MODE checks doesn't work.

Enable module and reboot phone, Open Hide Mock Location app, set switch in mode of your choice, then just select apps to block/allow.

Example:

To spoof Pokemon Go:

WARNING: Pokemon Go has not been working on rooted phones since v. 0.37. To use Xposed with Pokemon Go, you need to find a way to resolve this problem.

Enable Hide Mock Location module in Xposed Installer and reboot phone. Go to Android Settings -> Developer options -> turn on 'Allow mock locations' setting (if you have Android 6.0+ select your Fake GPS in options instead), open Hide Mock Location app and set mode to BLACKLIST and check Pokemon Go or set it to WHITELIST and check just your Fake GPS app, minimize or close Hide Mock Location, set Location option in Android to GPS only, open Fake GPS, spoof location, minimize it, then open Pokemon Go. I was using it with Fake GPS, which uses Road spoofing (https://play.google.com/store/apps/details?id=ru.gavrikov.mocklocations).

If you have GPS signal not found error, your Fake GPS isn't working, try to change location settings, check Fake GPS app or change it for other app.

If you have Failed to detect location error, you wrongly configured Hide Mock Location app.

If your GPS position is moving/jumping from place to place, read this: http://xdaforums.com/showpost.php?p=67865611&postcount=78

Screenshots

[IMG="View example"]http://i.imgur.com/kfPX7dF.png[/IMG]

Source

https://github.com/marlowww/HideMockLocation

Changelog

1.3: Adds Hide launcher icon and whitelist Google Play Services mode, fixes problem with checking 'Allow Mock Locations' options in developer settings, repairs right-to-left layout, minor changes in detecting Xposed part of app. Thanks to [MENTION=7271684]Xhatry[/MENTION] [MENTION=7150737]Yudh[/MENTION] [MENTION=6833437]masterlight[/MENTION] [MENTION=6116070]voidiov[/MENTION]

1.2: Adds app search, repairs BLACKLIST mode - it works now with all apps and devices, fixes splash screen issue that was responsible for app crashes (entirely new splash screen code), adds new hook methods for future, new horrendous icon. Thanks to [MENTION=2476451]romracer[/MENTION], [MENTION=4689523]kenzolo[/MENTION], [MENTION=2269097]alienmonkey[/MENTION] for reporting/testing.

1.1: Removes bug, which occurs on certain ART devices. It was preventing application from detecting Xposed Module (via self hook), which was reason of invalid "Xposed module disabled" view in application. Thanks to [MENTION=7592122]Nomaan1234[/MENTION] for testing.

1.0.1: Fixes log spamming with ClassNotFoundException

1.0: Initial release

Download

http://repo.xposed.info/module/com.github.marlowww.hidemocklocation

Attachment

XDA Labs

TO DO

If you need new feature post your idea.

Applications, which want to check for 'Allow mock locations' setting may try to set test location provider. If they don't get SecurityException, they will know that 'Allow Mock Locations' is turned on. We need to provide a new hook for blocked apps, which throws SecurityException after setting mock provider.

Notes

Be aware that unskillful usage of Fake GPS (e.g. frequent 'teleportations') will get you banned in Ingress or Pokemon GO. Use Road GPS Spoofers for own safety.

I don't take responsibility for possible bans.

Hide Mock Location needs to be on internal storage! Xposed modules doesn't work on external SD cards.

App works perfectly with every Android version newer then 4.0.3, including Android Lollipop.

I know that there is MockMockLocations module, but it wasn't updated for long time (till this week) and was lacking features (e.g. no apps choice), also it wasn't working for apps which I needed e.g. Pokemon GO. So I started to develop my own module with new features that fulfill my needs.

Hide Mock Location is not associated with Hide Mock Locations app available on Google Play. Its entirely different project.

Please report bugs in this thread or Github Issues. Remember to attach your Xposed Installer logs!

Application was tested on Android 4.4 and 6.0.1.