Fuck Location

Stars Release Download Channel GitHub license GitHub Workflow Status

A simple xposed module that helps you fully control your location.

一个可以帮助你完全控制位置授权的模块

Currently, you may return custom location to specific apps.

目前,你可以对特定的应用返回自定义位置信息。

Early Alpha version / 早期版本

This module is still in early developement stage. No guarantee whether it will works or not.

该模块处于早期开发阶段。不保证它一定按预期工作。

Targeted in Android 12. Previous versions (like Android 11, 10 and 9) are supported only in theory.

适配 Android 12。以前的版本(如 Android 11、10 或 9)仅仅制作了理论上(即未经真机测试)的支持。

What's working / 目前已经实现

  • Custom WiFi information / 自定义 WiFi 信息
  • Custom cell tower information (over LTE / Nr) / 自定义基站信息(LTE 或 Nr 网络制式)
  • Custom location provider (like GPS) information / 自定义基于 LocationProvider 返回的位置信息(如 GPS)
  • Custom location information coming from requestLocationUpdates / 自定义从 requestLocationUpdates 返回的位置信息

Plan / 待实现

⚠️ DO NOT urge any features that are listed below. They will coming soon in future. / 请不要催更下面的特性。它们将在合适的时间到来

  • Remove root requirement / 移除对 root 权限的需求
  • Better app selection page (Search, Organized by alphabets...) / 更好的应用选择页面(搜索、按字母排序...)
  • Implement test settings page / 实现设置测试
  • Fix issues that some apps still not working / 修复部分应用仍不能用的问题
  • Support custom values of cell tower. / 支持自定义基站的返回值
  • Support custom values of WiFi, etc. / 支持 WiFi 等信息的自定义
  • Support individual settings for apps / 支持对应用单独进行设置

Usage / 使用方法

  1. Download & activate this module, then restart. 下载并激活该模块,并重启手机

  2. Select applications that you want to take ownership. 选择你想要接管权限的应用

  3. Customize the information you want to return to these apps. 设置你想要给这些应用返回的自定义信息

  4. That's all. No reboot required. 完成。不需要重启,实时生效。

Q & A / 常见疑问解答

After reboot, this module still crash unexpectedly. / 在重启后,模块依然意外闪退。

Look at your log. If anything related to:

Crash unexpectedly: java.lang.NoClassDefFoundError

appears, please deactivate all your module (except Fuck Location) temporary and reboot your phone to see if it works.

If it works, then something went wrong on your side. Check if any incapable modules were activated.

If it still not work, file an issue.

请查看你的日志。如果有任何类似于:

Crash unexpectedly: java.lang.NoClassDefFoundError

的字样,请先临时禁用除 Fuck Location 以外的模块,并重启手机。

如果它能正常运行,问题出在这里。请检查所有潜在的不兼容的模块。

如果依然出现崩溃问题,请发 issue。

Will this module implement mock location? / 该模块是否会适配模拟位置信息?

No. It is too easy to be detected. / 不会。它太容易被检测到了。

About cell tower information? / 关于基站信息?

Do NOT ask us. Find for yourself or leave it empty. / 请不要问。有能力自己找,没能力留空。

Something went wrong on Fuck Location side! / Fuck Location 有问题!

Please report this issue with detailed logs. / 请携带详尽日志文件发 issue。

Scope / 作用域

You should only select / 你只应选择:

  • Android (android)
  • Phone (com.android.phone)

Choose anything other than that would not bring you any extra benefits. 选择不是上述的两个应用不会给你带来额外的好处。

Package

fuck.location

Authors

Mikotwa

Releases

v.1.2.13

Release type: Stable

4/8/2022, 11:18:42 AM

Support Android 12 based MIUI 13.

支持基于 Android 12 的 MIUI 13.

v1.2.11

Release type: Stable

3/12/2022, 1:24:58 PM

Experimental support for Android 11~12 based MIUI.
Fix a bug in Android 10 #28 (Thank you @LeafStative 🚀!)

对基于 Android 11~12 的 MIUI 进行了实验性支持。
修复 Android 10 的问题 #28(感谢@LeafStative 🚀!)

⚠️ 我没有基于 Android 12 的 MIUI 测试机。因此,对于该版本 MIUI 的适配是理论上的。如果这部分代码无法在你的机器上正常工作,请携带详尽日志文件发 issue。
⚠️ 不支持没有“模糊定位”功能的 MIUI 系统(但模块本身不依赖于 MIUI 内置的“模糊定位”功能),也暂无适配这类 MIUI 的计划

v1.2.9

Release type: Stable

2/18/2022, 1:04:23 PM

Prevent the fused location provider to be registered in Android.
Fix the capabilities for Android 10 and below.

阻止融合定位服务器被注册到系统内。
修复对 Android 10 及以下系统的兼容性。

⚠ 本次更新,可能可以解决部分国产 ROM 虚拟定位无法生效的问题,但会使得系统整体的定位速度减缓(融合定位服务被模块禁用导致。系统理论上将回落到传统的 GPS、网络等定位手段)。由于技术限制,暂时无法找到更好的方案。将在后续版本里添加对该情况的缓解措施

v1.2.8.2

Release type: Stable

2/17/2022, 12:37:13 PM

Fully support Android 10 and below.
Support Nr (aka 5G) network type.
Randomize config folder name to avoid stat detection.
Void config folder should not crash the whole module.

完全支持 Android 10 及以下的系统。
支持 Nr(5G)网络类型。
随机化设置文件夹名称(防止模块配置被 stat 检测)。
虚无态的配置文件夹不再能击溃整个模块。

v1.2.8

Release type: Stable

2/16/2022, 4:52:02 AM

⚠️ You may need to uninstall previous version before installing this. Sorry for any inconveniences. / 你可能需要卸载以前的版本,以安装该新版模块。给您带来的不便,敬请谅解

Customizable cell tower information (over LTE) for whitelisted apps
Fix a UI bug #19 (Thank you @LeafStative! 🚀)

支持对白名单内应用返回自定义基站信息(LTE 网络)
修复 UI 问题 #19(感谢 @LeafStative! 🚀)


⚠️ Due to the potential legal reason, we will NOT provide you:

  • The meaning of each value
  • How to find these values
  • The effect after changing these values

If you do not know what to do, leave it EMPTY. Thank you.

⚠️ 由于潜在的合规原因,我们不会向您提供:

  • 每个值对应的具体含义
  • 找到这些值的方法
  • 改变这些值的效果

如果你不知道填什么,就空着。模块的良性发展需要保持有限的自由与适当的边界。感谢您的理解。

v1.2.7 (Fixed version)

Release type: Stable

2/7/2022, 6:33:10 AM

Whitelisted apps will no longer get the raw GNSS data.

白名单里的应用将不再能获得原始的 GNSS 位置信息

v1.2.6.1

Release type: Stable

2/5/2022, 2:58:20 PM

Completely rewrite custom location to fully support general location requests' modification.
App search in selection page & performance improve #13 (Thank you again @LeafStative! 🚀)
Minor code cleanups #16
Fallback to English when there is no available translation.
Add Vietnamese support #18 (Thanks @ThePrimalPea! 🚀)

完全重写了自定义位置部分,以完全支持一般情况下的位置信息修改。
应用选择页有了搜索器 & 性能提升 #13(非常感谢 @LeafStative 的提交!🚀)
一些不起眼的代码清理 #16
没有可用翻译时,程序将回落到英文
增加越南语支持 #18(感谢 @ThePrimalPea!🚀)

v.1.2.5

Release type: Stable

2/3/2022, 5:17:37 AM

Fix a bug that whitelisted apps on Android 11 or below will get the genuine location.

修复一个会导致 Android 11 或以下版本的白名单应用仍能得到真实位置信息的 bug。

v1.2.4

Release type: Stable

2/3/2022, 3:49:12 AM

Fix some issues will result app in crash.
Improve the quality of custom location.

修复了部分情况下程序会崩溃的问题。
提升了自定义位置的质量。

v1.2.3.5

Release type: Stable

2/1/2022, 1:04:34 PM

Fresh installation will no longer crash the whole module.
Better app selection page #11 (Really AWESOME implement! Thank you @LeafStative 🎉 )
requestLocationUpdates will be currectly handled.
Support custom WiFi information for Android 10 and below.
Update contributor information.

全新安装不再会崩掉整个模块。
更好的应用选择页 #11(非常棒的实现!感谢 @LeafStative 🎉)
requestLocationUpdates 将被正确处理。
对 Android 10 及以下的系统支持自定义 WiFi 信息返回。
更新贡献者信息。


该版本对 GNSS 定位模拟的重大缺陷进行了修复。你可以升级并查看该模块的自定义效果是否有所改善。

⚠️ 自 v1.2.2 开始,本模块对配置文件部分进行了不兼容改动。如果你是从更旧的版本升级上来,请注意阅读 这里 提及的升级提示!不这么做将导致程序停止工作,甚至崩溃!

v1.2.3.4

Release type: Stable

2/1/2022, 12:00:12 PM

Fresh installation will no longer crash the whole module.
Better app selection page #11 (Really AWESOME implement! Thank you @LeafStative 🎉 )
requestLocationUpdates will be currectly handled.
Support custom WiFi information for Android 10 and below.

全新安装不再会崩掉整个模块。
更好的应用选择页 #11(非常棒的实现!感谢 @LeafStative 🎉)
requestLocationUpdates 将被正确处理。
对 Android 10 及以下的系统支持自定义 WiFi 信息返回。


该版本对 GNSS 定位模拟的重大缺陷进行了修复。你可以升级并查看该模块的自定义效果是否有所改善。

⚠️ 自 v1.2.2 开始,本模块对配置文件部分进行了不兼容改动。如果你是从更旧的版本升级上来,请注意阅读 这里 提及的升级提示!不这么做将导致程序停止工作,甚至崩溃!

v1.2.3.3

Release type: Stable

2/1/2022, 11:22:44 AM

Fresh installation will no longer crash the whole module.
Better app selection page #11 (Really AWESOME implement! Thank you @LeafStative 🎉 )
requestLocationUpdates will be currectly handled.

全新安装不再会崩掉整个模块。
更好的应用选择页 #11(非常棒的实现!感谢 @LeafStative 🎉)
requestLocationUpdates 将被正确处理。


该版本对 GNSS 定位模拟的重大缺陷进行了修复。你可以升级并查看该模块的自定义效果是否有所改善。

⚠️ 自 v1.2.2 开始,本模块对配置文件部分进行了不兼容改动。如果你是从更旧的版本升级上来,请注意阅读 这里 提及的升级提示!不这么做将导致程序停止工作,甚至崩溃!

v1.2.3.1

Release type: Stable

2/1/2022, 6:37:00 AM

requestLocationUpdates will be currectly handled.

requestLocationUpdates 将被正确处理。


该版本对 GNSS 定位模拟的重大缺陷进行了修复。你可以升级并查看该模块的自定义效果是否有所改善。

⚠️ 自 v1.2.2 开始,本模块对配置文件部分进行了不兼容改动。如果你是从更旧的版本升级上来,请注意阅读 这里 提及的升级提示!不这么做将导致程序停止工作,甚至崩溃!

v1.2.2

Release type: Stable

1/31/2022, 2:17:52 PM

Completely remove the usage of root.

完全移除了模块对 root 权限的调用。


⚠ 该版本对白名单配置有不兼容修改!如果你打算从旧版本升级,请一定要看完下面的内容,否则修改白名单的操作会无效!

由于在最新的代码中移除了 root 权限调用,因此本模块后面所有的文件调用者身份都将变更为 Android 框架。

👉 因此,烦请在升级完成之后,手动定位到 /data/system/fuck_location_test 目录,将内含两个文件的所有者从 root(0) 变更为 system (1000)。

该应用的配置文件不位于应用数据里,因此常规的重装将不能解决该问题。

⚠ 再次提醒:不这么做将会导致白名单修改操作无效!


⚠ This release has incompatible modifications to the whitelist configuration! If you plan to upgrade from an older version, be sure to read the following content, otherwise the modification about the whitelist will not work!

Due to the removal of the root privilege in the latest code, the identity of all file callers behind this module will be changed to the Android framework.

👉 Therefore, please manually locate the /data/system/fuck_location_test directory after the upgrade is complete and change the owner of the two files contained therein from root(0) to system (1000).

The application's configuration file is not located in the application data, so a regular reinstallation will not resolve this issue.

⚠ Again: fail to do so will prevent you from making further edits to the whitelist!

v1.2.1.1

Release type: Stable

1/27/2022, 11:17:28 PM

Support negative coordinate #9
Bump dependencies version

支持负坐标 #9
升级依赖库

v1.1.0

Release type: Stable

1/16/2022, 11:50:48 AM

Custom WiFi information support for Android 11 (or above).
For now, the value is written in code (you may found them at xposed log). Editing these values are currently not supported.

对 Android 11 及以上的设备支持自定义 WiFi 信息返回。
目前还不支持更改返回的自定义 WiFi 信息(你可以在日志里找到返回的具体数值)。后期将逐步加上

v1.0.6.1

Release type: Stable

1/13/2022, 7:05:48 AM

Fix crash in settings.

修复了设置在某些情况下会闪退的问题

v1.0.5

Release type: Stable

1/13/2022, 3:45:12 AM

Add About page

增加关于页

v1.0.4

Release type: Stable

1/12/2022, 11:52:30 PM

English translation.