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://forum.xda-developers.com/showpost.php?p=67865611&postcount=78
Screenshots
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
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 @Xhatry @Yudh @masterlight @voidiov
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 @romracer, @kenzolo, @alienmonkey 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 @Nomaan1234 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.
Won't load for me.
Code:
07-14 20:57:44.104 E/Xposed ( 1455): de.robv.android.xposed.XposedHelpers$ClassNotFoundError: java.lang.ClassNotFoundException: com.github.marlowww.hidemocklocation.MainActivity
07-14 20:57:44.104 E/Xposed ( 1455): at de.robv.android.xposed.XposedHelpers.findClass(XposedHelpers.java:64)
07-14 20:57:44.104 E/Xposed ( 1455): at de.robv.android.xposed.XposedHelpers.findAndHookMethod(XposedHelpers.java:253)
07-14 20:57:44.104 E/Xposed ( 1455): at com.github.marlowww.hidemocklocation.XposedModule.handleLoadPackage(XposedModule.java:82)
07-14 20:57:44.104 E/Xposed ( 1455): at de.robv.android.xposed.IXposedHookLoadPackage$Wrapper.handleLoadPackage(IXposedHookLoadPackage.java:34)
07-14 20:57:44.104 E/Xposed ( 1455): at de.robv.android.xposed.callbacks.XC_LoadPackage.call(XC_LoadPackage.java:61)
07-14 20:57:44.104 E/Xposed ( 1455): at de.robv.android.xposed.callbacks.XCallback.callAll(XCallback.java:106)
07-14 20:57:44.104 E/Xposed ( 1455): at de.robv.android.xposed.XposedInit$3$1.beforeHookedMethod(XposedInit.java:135)
07-14 20:57:44.104 E/Xposed ( 1455): at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:314)
07-14 20:57:44.104 E/Xposed ( 1455): at com.android.server.SystemServer.startBootstrapServices(<Xposed>)
07-14 20:57:44.104 E/Xposed ( 1455): at com.android.server.SystemServer.run(SystemServer.java:268)
07-14 20:57:44.104 E/Xposed ( 1455): at com.android.server.SystemServer.main(SystemServer.java:168)
07-14 20:57:44.104 E/Xposed ( 1455): at java.lang.reflect.Method.invoke(Native Method)
07-14 20:57:44.104 E/Xposed ( 1455): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
07-14 20:57:44.104 E/Xposed ( 1455): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
07-14 20:57:44.104 E/Xposed ( 1455): at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:102)
romracer said:
Won't load for me.
Click to expand...
Click to collapse
So It looks like that I have jumped the gun a bit with my module . There was minor code problem, which I missed. Suprisingly module was working on my test phone without a scratch. I reuploaded apk to Xposed Repo and attached new version to Thread. Can you test it again?
Hello, thanks for the mod. But it doesnt work me (Pokemon). I choosed "FakeGps spoofer" to the whitelist and Pokemon to Blacklist. If i change my position at Fakegps , i switch shortly in to this position and come back to my real place. "your location could not find"
wow thank you very much his works, and is better than the other hide mock location module which makes u pay after 24h ;D
my mock mock location need to buy full version buddy?
you have the full version of it?
I have an option in my phone, allow mock location. Can I know what it exactly does if enabled.
Akuji52 said:
Hello, thanks for the mod. But it doesn't work me (Pokemon). I choosed "FakeGps spoofer" to the whitelist and Pokemon to Blacklist. If i change my position at Fakegps , i switch shortly in to this position and come back to my real place. "your location could not find"
Click to expand...
Click to collapse
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.
To spoof just Pokemon Go: set mode to blacklist and check just Pokemon Go, minimize or close Hide Mock Location, set Locations option in Android to GPS only or High Accuracy (check which works better with your Fake GPS app), 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) but other will work to.
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.
I added these instructions to thread.
kryshnakishore said:
I have an option in my phone, allow mock location. Can I know what it exactly does if enabled.
Click to expand...
Click to collapse
It allows Fake GPS apps to spoof your locations. Also some games and apps check if 'Allow Mock Locations' is enabled, and if so they block their usage, until you disable it. My program let you spoof GPS (with any location spoofer app) in those apps and games.
Module won't enable
After enabling the module and rebooting the phone when I click on the module it shows only two things 1. Hide mock location is disabled to use it, please enable the module and reboot the phone.
2. Donate
I have enabled the module n rebooted my phone why isn't this module working please make it work .......I'm using moto g2 xt1068 lollipop v5.0.2
Marlowguy said:
So It looks like that I have jumped the gun a bit with my module . There was minor code problem, which I missed. Suprisingly module was working on my test phone without a scratch. I reuploaded apk to Xposed Repo and attached new version to Thread. Can you test it again?
Click to expand...
Click to collapse
Thanks. Its not spamming my log now. Maybe it was loaded before, but see my response to the next quote.
Marlowguy said:
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.
To spoof just Pokemon Go: set mode to blacklist and check just Pokemon Go, minimize or close Hide Mock Location, set Locations option in Android to GPS only or High Accuracy (check which works better with your Fake GPS app), 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) but other will work to.
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.
I added these instructions to thread.
Click to expand...
Click to collapse
I can't get these directions using the blacklist to work for Pokemon Go. If I set it to whitelist mode and check off Floater Fake Location, then this works for Pokemon Go. But I can't get it to work in reverse (blacklist mode, checking off Pokemon Go). Maybe Pokemon is using maps or some other app in addition?
i get it one time working. But now my location switch quickly to the place where i am and where i want to be. Im using mock location and make the steps as you describe. i get not a warning message that the gps oder my location couldnt find or something else. Only the fast switching. I want to fight in a arena but i couldnt :s
Akuji52 said:
i get it one time working. But now my location switch quickly to the place where i am and where i want to be. Im using mock location and make the steps as you describe. i get not a warning message that the gps oder my location couldnt find or something else. Only the fast switching. I want to fight in a arena but i couldnt :s
Click to expand...
Click to collapse
It happens because your Fake Location app probably doesn't spoof WLAN (WiFi) / Mobile Network. Pokemon GO probably get your fake location from GPS and true from WLAN/Mobile, so it switch form one to another. There are couple solutions:
1. Disconnect from WLAN and check results with High Accuracy Location mode.
2. If 1 doesn't work, change Location option to GPS only and check results (you can use WLAN to get internet connection in this case).
3. If 2 doesn't work, change Fake GPS application to another.
Nomaan1234 said:
After enabling the module and rebooting the phone when I click on the module it shows only two things 1. Hide mock location is disabled to use it, please enable the module and reboot the phone.
2. Donate
I have enabled the module n rebooted my phone why isn't this module working please make it work .......I'm using moto g2 xt1068 lollipop v5.0.2
Click to expand...
Click to collapse
Are you sure that you have rooted phone with Xposed Framework installed? Did you enabled module in Xposed Installer? If you did so and you still have problem, please send me your Log from Xposed Installer (search for sections with hidemocklocation names).
Nomaan1234 said:
After enabling the module and rebooting the phone when I click on the module it shows only two things 1. Hide mock location is disabled to use it, please enable the module and reboot the phone.
2. Donate
I have enabled the module n rebooted my phone why isn't this module working please make it work .......I'm using moto g2 xt1068 lollipop v5.0.2
Click to expand...
Click to collapse
Are you sure that you have rooted phone with Xposed Framework installed? Did you enable module in Xposed Installer? If you did so and you still have problem please send me your Log from Xposed Installer (search for sections with hidemocklocation names).
how do you correctly mock location with pokemon without getting banned? Like can i teleport a couple miles away and just hang out there? Can I simulate driving by repeatedly spoofing my location say a quarter-mile at a time?
I have all the requirements to make this module work on my cel
Yes I have rooted my phone with exposed framework installed I use others modules too and I have hide my mock location enabled
---------- Post added at 11:15 PM ---------- Previous post was at 10:52 PM ----------
07-16 04:25:36.562 I/Xposed ( 333): Loading modules from
07-16 04:25:36.920 I/Xposed ( 333): Loading class
I can't send u the exact log XDA shows me an error saying
The following errors occurred with your submission:
To prevent spam on the XDA forums, ALL new users prevented from posting outside links in their messages. After approximately 10 posts, you will be able to post outside links. Thank you for understanding!
---------- Post added at 11:21 PM ---------- Previous post was at 11:15 PM ----------
This is my email id [email protected] message me here so I can send u the images as well
---------- Post added at 11:25 PM ---------- Previous post was at 11:21 PM ----------
Marlowguy said:
Are you sure that you have rooted phone with Xposed Framework installed? Did you enable module in Xposed Installer? If you did so and you still have problem please send me your Log from Xposed Installer (search for sections with hidemocklocation names).
Click to expand...
Click to collapse
I have all the requirements to make this module work on my cel
Yes I have rooted my phone with exposed framework installed I use others modules too and I have hide my mock location enabled
---------- Post added at 11:15 PM ---------- Previous post was at 10:52 PM ----------
07-16 04:25:36.562 I/Xposed ( 333): Loading modules from
07-16 04:25:36.920 I/Xposed ( 333): Loading class
I can't send u the exact log XDA shows me an error saying
The following errors occurred with your submission:
To prevent spam on the XDA forums, ALL new users prevented from posting outside links in their messages. After approximately 10 posts, you will be able to post outside links. Thank you for understanding!
---------- Post added at 11:21 PM ---------- Previous post was at 11:15 PM ----------
This is my email id [email protected] message me here so I can send u the images as well
hackaveli said:
how do you correctly mock location with pokemon without getting banned? Like can i teleport a couple miles away and just hang out there? Can I simulate driving by repeatedly spoofing my location say a quarter-mile at a time?
Click to expand...
Click to collapse
If you don't want to be banned then do not teleport, do not jump around while P.Go is running. Think of how that looks.
Only jump to a different spot while P.Go is completely shut down. And never jump farther than you would be able to reach by car in the time since P.Go was last open.
Still might get a ban. With ingress they did mass bans in waves, not right away. To prevent people from knowing when or what exactly they did to alert the server of cheating.
Presume that you will meet a ban at some point.
@Marlowguy
Good work man:good::good:
Your module works like a charm
Im Using it for P.Go game
from past 2hrs without any problem :laugh:
My device: Galaxy S5 G900H
Os: Stock Deodex MM 6.0.1
romracer said:
Thanks. Its not spamming my log now. Maybe it was loaded before, but see my response to the next quote.
I can't get these directions using the blacklist to work for Pokemon Go. If I set it to whitelist mode and check off Floater Fake Location, then this works for Pokemon Go. But I can't get it to work in reverse (blacklist mode, checking off Pokemon Go). Maybe Pokemon is using maps or some other app in addition?
Click to expand...
Click to collapse
same here,whitelist is ok but I can't get pokemon go working using blacklist mode
Related
Allow only broadcasts you want for each app.
With this app you could prevent apps to receive broadcasts, e.g. "SD-card inserted" oder "W-Lan connected".
All with Android-18 shipped broadcast actions are integrated. Others will be collected from time to time and marked with an exclamation sign in the app.
Technical limiation: Actions wich are only sent and not received by any app could not be found.
Changed settings are applied after a reboot. For BOOT_COMPLETED please use the app BootManager.
To restrict system apps you have to donate. The key of "BootManager" is recognized by this app too!
Important:
This app needs the Xposed Framework. The framework requires root access for installation. Don't forget to enable the module in Xposed. You can grab it here: Xposed Installer
Donation:
No self-promotion in the app.
System apps could also be selected
Sorting by action, not only by app name
You support this app and further development!
Website: http://tinyurl.com/pkos9om
Play Store: http://tinyurl.com/p3dqxj2
Xposed Repository: http://tinyurl.com/q9u2l8o
Changelog: http://tinyurl.com/njov9yd
My personal intension to create this app:
There was no app which could do this
Translation:
You could find here a interface to translate the english strings: http://tinyurl.com/okycacj
A free account of www.oneskyapp.com is required to edit. Additional, please attach your email address or send it via PM
Kudos to you! This is great for development purposes!
However, you must warn the user that disabling Broadcast for some app just because he[user] thinks that might be a good idea is bad and user should think twice, as disabled Broadcast can result in a vary of results - from no effect to system crash.
For example, your favorite launcher is listening for the broadcast for call state. You're thinking - Ah-ha, it's spying on me! And you disable the broadcast. And then you are surprised, why does Phone app icon stopped displaying missed calls.
great thanks for that :good:
Dr.Alexander_Breen said:
However, you must warn the user that disabling Broadcast for some app just because he[user] thinks that might be a good idea is bad and user should think twice, as disabled Broadcast can result in a vary of results - from no effect to system crash.
For example, your favorite launcher is listening for the broadcast for call state. You're thinking - Ah-ha, it's spying on me! And you disable the broadcast. And then you are surprised, why does Phone app icon stopped displaying missed calls.
Click to expand...
Click to collapse
I'm not sure about wich i should warn, potentially are all dangerous to disable.
eg the brodcasts to update a widget are useless for you if you don't use a widget of the app. But you should not disable it if you are using the widget...
And some actions i do not even know, because the ReceiverStop collects them if you are using your apps...
Btw, the release of today shows a logfile with newly added actions.
defim said:
I'm not sure about wich i should warn, potentially are all dangerous to disable.
eg the brodcasts to update a widget are useless for you if you don't use a widget of the app. But you should not disable it if you are using the widget...
And some actions i do not even know, because the ReceiverStop collects them if you are using your apps...
Btw, the release of today shows a logfile with newly added actions.
Click to expand...
Click to collapse
No, you must not warn out every broadcast. Virtially, there is infinite set of them, as I can create my own broadcast as easy as 1-2-3. Just show the warning at the start that it's better not to meddle with the system app's broadcasts and that even user-installed apps can cause side effects without some broadcasts.
Dr.Alexander_Breen said:
No, you must not warn out every broadcast. Virtially, there is infinite set of them, as I can create my own broadcast as easy as 1-2-3. Just show the warning at the start that it's better not to meddle with the system app's broadcasts and that even user-installed apps can cause side effects without some broadcasts.
Click to expand...
Click to collapse
Warn about all? Good point
I'm wondering where's the best place. At startup is the changelog shown (if updated) and a message about xposed, if not installed/active. So it could be nothing is been read...
defim said:
To restrict system apps you have to donate.
Click to expand...
Click to collapse
How to donate? I click the bottom part within the module - no reaction whatsoever...
Edit: ok, that was through the website. I donated and received the key file! :good:
But... why "Maps" is not is the list of apps...?
Thanks...
Looki75 said:
How to donate? I click the bottom part within the module - no reaction whatsoever...
Edit: ok, that was through the website. I donated and received the key file! :good:
But... why "Maps" is not is the list of apps...?
Thanks...
Click to expand...
Click to collapse
Hi, i've planned to put donator apps for each app to the market, but had not time yet.
If a app is not shown, no receivers are detected for it unitl now. You could do:
1) show all apps by enable in settings. Then you have only the option to "diable all, even unknown"
2) or open (in this case) Maps and wait. If it gets a broadcast ReceiverStop adds it to internal list and 1) is not needed
Adding new receiver actions are always logged, independet if logging of allowed/denied is enabled
Dr.Alexander_Breen said:
No, you must not warn out every broadcast. Virtially, there is infinite set of them, as I can create my own broadcast as easy as 1-2-3. Just show the warning at the start that it's better not to meddle with the system app's broadcasts and that even user-installed apps can cause side effects without some broadcasts.
Click to expand...
Click to collapse
I've added a warning dialog in the latest version
defim said:
Hi, i've planned to put donator apps for each app to the market, but had not time yet.
Click to expand...
Click to collapse
How will then work the donation I made? Is there a possibility for me to appear like I bought the donation app?
This way, in case I wipe the phone, I can download from play store the donation app and don't need to bother you with e-mails "hey give me again the license file..."...
And will the donation app work as well for both "bootmanager" and "stopreceiver"?
defim said:
If a app is not shown, no receivers are detected for it unitl now. You could do:
1) show all apps by enable in settings. Then you have only the option to "diable all, even unknown"
2) or open (in this case) Maps and wait. If it gets a broadcast ReceiverStop adds it to internal list and 1) is not needed
Adding new receiver actions are always logged, independet if logging of allowed/denied is enabled
Click to expand...
Click to collapse
Strange... I did "show all apps" and Maps is here. This is OK.
But the yellow "!" appears side to it... doesn't it mean that receivers were used?
But at the same time, when I click on Maps, there is only the "stop all" line... that sounds not consistent...???
Maybe a sign of a bug?
Anyway, very good job! THANKS!!!
@Looki75:
I'm not sure yet of the donation apps. But i think it should be again 1 app for the 2.
On the 1st view are packages shown, system apps have a "!" -> could be more dangerous to change sth
On the 2nd view with the receivers of each app, evere action which is a custom action (= not listed in broadcast_actions.txt of Android platform-18 sdk) has a "!". These non-default actions have to be collected by the app.
So it's consistent Maybe not the same icon for both would be better...
Are you sure Maps receives broadcasts? I tried to get Manifest.xml by the apk, but apktool failed -.-
defim said:
@Looki75:
I'm not sure yet of the donation apps. But i think it should be again 1 app for the 2.
On the 1st view are packages shown, system apps have a "!" -> could be more dangerous to change sth
On the 2nd view with the receivers of each app, evere action which is a custom action (= not listed in broadcast_actions.txt of Android platform-18 sdk) has a "!". These non-default actions have to be collected by the app.
So it's consistent Maybe not the same icon for both would be better...
Are you sure Maps receives broadcasts? I tried to get Manifest.xml by the apk, but apktool failed -.-
Click to expand...
Click to collapse
Ok... I think I understand... your module is about BROADCASTS... I'm not a dev and not familiar with these... but is it the same than Autostarts (https://play.google.com/store/apps/details?id=com.elsdoerfer.android.autostarts)?
My dream is to have the exact same functions than Autostarts in an Xposed module.
You might wonder why... well as strange as it sounds, I have Xposed framework but I am un-rooted. So I can use modules, but I can't use Autostarts for example...
I thought your module would be this "similar", but there are more stuff shown in Autostarts than is your module...
You talk about "broadcasts" and Autostarts or similar (root toolbox for example) talk about "receivers for certain events"... is there a difference?
Is it a big deal to expand the scope of your module to equal Autostarts functions?
Thanks for your help!
@Looki75:
After talking a look at the screenshots of Autostarts, it seems that these are all broadcast receivers, so the apps should do the same (with other methods: root/xposed). My app has no nice-names for the action names. So i wonder how Autostarts shows receiver names which a apps creates by its own? Which actions did you miss exactly in my app? Maybe they are not related to broadcats.
I think extending ReceiverStop is not so a good idea, because it's only for intercept receiving broadcasts of app. But maybe a seperate app. I used LBE some time and I didn't like that it has much things i did not need.
defim said:
@Looki75:
After talking a look at the screenshots of Autostarts, it seems that these are all broadcast receivers, so the apps should do the same (with other methods: root/xposed). My app has no nice-names for the action names. So i wonder how Autostarts shows receiver names which a apps creates by its own? Which actions did you miss exactly in my app? Maybe they are not related to broadcats.
I think extending ReceiverStop is not so a good idea, because it's only for intercept receiving broadcasts of app. But maybe a seperate app. I used LBE some time and I didn't like that it has much things i did not need.
Click to expand...
Click to collapse
When you look at these:
http://forum.xda-developers.com/showpost.php?p=35634745&postcount=11040
http://forum.xda-developers.com/showpost.php?p=29420959&postcount=7059
it seems that MAPS has much more than that...
However, I just installed Autosarts on my phone and it shows nothing, just like in your module...
So I guess we're ok.
Thanks!
Looki75 said:
When you look at these:
http://forum.xda-developers.com/showpost.php?p=35634745&postcount=11040
http://forum.xda-developers.com/showpost.php?p=29420959&postcount=7059
it seems that MAPS has much more than that...
However, I just installed Autosarts on my phone and it shows nothing, just like in your module...
So I guess we're ok.
Thanks!
Click to expand...
Click to collapse
I don't know what this other app does. Maybe it shows sometimes simply all recevers for every app.
But I know that ReceiverStop shows per app the specific actions.
There is now a donation app available in Play Store for this app. (1 donation for both, ReceiverStop+BootManager)
I'm looking for a way to disable SMS and missed calls notifications from appearing on the stock (clock) lock screen widget on my rooted Note 3 (running 4.3). Could this tool acheive this and if so, how?
The following entries were logged when not answering a call and a call notification is shown on the lock screen:
[ReceiverStop] 2013-11-22 15:07:20 handle not: com.sec.android.SimpleWidget - android.intent.action.USER_PRESENT
[ReceiverStop] 2013-11-22 15:07:20 handle not: netgenius.bizcal - android.intent.action.USER_PRESENT
[ReceiverStop] 2013-11-22 15:07:20 handle not: netgenius.bizcal - android.intent.action.USER_PRESENT
[ReceiverStop] 2013-11-22 15:07:20 handle not: netgenius.bizcal - android.intent.action.USER_PRESENT
[ReceiverStop] 2013-11-22 15:07:20 handle not: netgenius.bizcal - android.intent.action.USER_PRESENT
[ReceiverStop] 2013-11-22 15:07:20 handle not: com.umang.dashnotifier - android.intent.action.USER_PRESENT
[ReceiverStop] 2013-11-22 15:07:20 handle not: com.roymam.android.notificationswidget - android.intent.action.USER_PRESENT
[ReceiverStop] 2013-11-22 15:07:20 handle not: com.sec.android.app.controlpanel - android.intent.action.PACKAGE_RESTARTED
Would I simply be able to disable android.intent.action.USER_PRESENT in the SimpleWidget app to disable the SMS being displayed in the lock screen?
What is the risk of trying this out?
Happy to donate if this will do the above.
Thanks,
Eddie
@sireddie:
I think android.intent.action.USER_PRESENT is not the right action.
From http://developer.android.com/reference/android/content/Intent.html:
Broadcast Action: Sent when the user is present after device wakes up (e.g when the keyguard is gone).
Click to expand...
Click to collapse
Just open ReceiverStop and look which actions are listed for the app. I'm using "SMS Unread Count" widget, which has only android.appwidget.action.APP_WIDGET_UPDATE, so this could be the right. (I've blocked APP_WIDGET_UPDATE for all apps i'm using, but without widget)
Risk? I think it's low. It could be that something does not anymore what you expected To be save, do a android backup - i've never needed one
I've just added strings for translation to the first post. If you attach here a translation, please send me you email address via PM.
Notice to @kalashenicof @jzak1083 @vipa
Dear friend!
The receiver "android.provider.Telephony.SMS_RECEIVED" is blocked
But receiver "android.provider.telephony.SMS_RECEIVED" is constantly being allowed
("Telephony" vs. "telephony")
Please fix it! Viber application is listening to both of them!
katada1 said:
Dear friend!
The receiver "android.provider.Telephony.SMS_RECEIVED" is blocked
But receiver "android.provider.telephony.SMS_RECEIVED" is constantly being allowed
("Telephony" vs. "telephony")
Please fix it! Viber application is listening to both of them!
Click to expand...
Click to collapse
Yes, Viber could receive both. ReceiverStop collects all receiver actions it could get on your device. If you open the GUI it build a list of apps and their receiver. If one receiver is missing, it was never been seen on your device. So it should not be a problem. Btw, if you select "deny all", this will also handle never seen before receiver.
Does you know which app should send this misspelled "android.provider.telephony.SMS_RECEIVED"?
Xposed app firewall.
This app is an firewall for the installed apps. Only apps with permission "android.permission.INTERNET" are
shown. IPv4 and IPv6 are supported together with TCP and UDP. You could configure outgoing and incomming
connections independent from each other.
The rules could be applied for each network: W-Lan, local network, mobile, roaming, unknown.
Logging is configurable for incomming/outgoing and allowed/denied connections.
Colors:
Blue: Template is used.
Yellow: Custom settings.
Green: The app is trusted.
Red: The app is blocked.
Features:
No iptables required, the kernel doesn't need to support it.
The firewall is active when Android starts, no startup data leak.
The rules are always active, no re-apply on connection change is needed.
Limitiation:
Host names in the log file are PTR entries.
Works only for Android (Java), not the native (Linux) part
Donation:
No self-promotion in the app.
You could trust or block an app (Menu/ActionBar)
You could use a template for not configured apps
Additional (experimental) networks: Bluetooth, WiMAX, Ethernet
Tasker support, per App
You support this app and further development!
Permissions:
ACCESS_SUPERUSER: apply iptables rules
This app does not connect itself to any websites or hosts!
Important:
This app needs the Xposed Framework. The framework requires root access for installation. Don't forget to enable the module in Xposed. You can grab it here: Xposed Installer
Website: http://tinyurl.com/l5bpv23
Play Store: http://tinyurl.com/ome2pvc
Xposed Repository: http://tinyurl.com/ksc6plz
Changelog: http://tinyurl.com/n8gsqja
Why this app? No firewall for Xposed exists yet
Translation:
You could find here a interface to translate the english strings: http://tinyurl.com/okycacj
A free account of www.oneskyapp.com is required to edit. Additional, please attach your email address or send it via PM
Insane.. I was looking for something like this about 12 hours ago.. its almost like you read my mind and made it just for me!.
I like your style. Nice and simple and keeping it in line with your others.
Sent from my GT-I9300 using Tapatalk
Downloading now.
Sent from my SCH-I535 using XDA Premium 4 mobile app
shivadow said:
Insane.. I was looking for something like this about 12 hours ago.. its almost like you read my mind and made it just for me!.
I like your style. Nice and simple and keeping it in line with your others.
Sent from my GT-I9300 using Tapatalk
Click to expand...
Click to collapse
Maybe you head me thinking loud 6 weeks after starting this app: "i will release today, if there are still error, i'll fix them later"
Am I correct in assuming this is not open source?
I got a question about incoming/outgoing connections, maybe somone else want to know:
Incoming connections are used by less than 1% of all apps. This is used if the app is a "server", like BubbleUPnP. So most time incoming conections could be blocked, i think for mobile network 100%.
An outgoing connection is like a phone call: You call someone (outgoing connection), and can talk (send "data") and hear (receive "data")
Wifi Internet and Network:
If you want to control eg your local tv-receiver, xbmc device or avm router (with FreetzMobil), only connections to the local network are required. This prevents app to send data to the internet.
The "local network" are all "private" IPv4 and IPv6, they will not be forwarded by internet routers. Additionally, if you use "public" IPs they are local if it is in the same subnet as a ip of your device. Uncommon for IPv4 usage, but public IPv6 are the common usage (public IPv6 for every device)
an0n981 said:
Am I correct in assuming this is not open source?
Click to expand...
Click to collapse
As usual i send source only to people i know
I took this mod for a quick test drive, a little feedback:
-Is it not possible to restrict kernel?
-Could it be that apps that use native libraries to connect to the internet cannot be restricted? Firefox and Mega (both use native libraries) were able to connect even when completely restricted.
Also a little cosmetic issue com.android.process.gapps showed completely green at all times. However restrictions were applied properly
an0n981 said:
I took this mod for a quick test drive, a little feedback:
-Is it not possible to restrict kernel?
-Could it be that apps that use native libraries to connect to the internet cannot be restricted? Firefox and Mega (both use native libraries) were able to connect even when completely restricted.
Also a little cosmetic issue com.android.process.gapps showed completely green at all times. However restrictions were applied properly
Click to expand...
Click to collapse
Yes, see OP: "Limitiation: ... no native binaries." This is because the design of Xposed
Isn't it "com.google.process.gapps"? Onyl this one app has the wrong colors? Has it a green dot for "trusted app"? What did you configured for it?
Yes I meant com.google....
I set it from template to custom, blocked everything, however in the app overview it still showed as all green. When it was restricted GCM was blocked and the log showed blocked connections to mtalk.google.com:5228. Then I unrestricted outgoing mobile and wifi and GCM was available and the log correctly showed allowed connections but the colors in the app overview didn't change
Version 1.0.1 uploaded
- fix "incoming" thx @w0rinal
- also an error related to coloring, @an0n981 can you check if it fixes your problem? Toggling options could be required
defim said:
- also an error related to coloring, @an0n981 can you check if it fixes your problem? Toggling options could be required
Click to expand...
Click to collapse
Sorry the bug is still present
Also 1 more questions. Do you see any problem running this along side AFWall?
The bug affects any app that starts end ends with <>. <android.media> and <org.mozilla.firefox.sharedid> also always revert back to displaying completely green once the app is reloaded
an0n981 said:
Also 1 more questions. Do you see any problem running this along side AFWall?
Click to expand...
Click to collapse
No, should work without problems. The one created iptables rules other hooks the connection methods - if one fails, the other does it
an0n981 said:
The bug affects any app that starts end ends with <>. <android.media> and <org.mozilla.firefox.sharedid> also always revert back to displaying completely green once the app is reloaded
Click to expand...
Click to collapse
The "<>" entries are not real apps (.apks) with a package name, they are uids. At app start i load all installed apps with internet-permission and hide apps which are no more installed / have not any longer the permissions -> the uid items are not in the list of installed apps (obviously)
Will be fixed in next release
EDIT: Uploaded
This is awesome ?
A few questions:
- is there a way to edit template? I couldn't find it anywhere in settings- am I missing something?
- Can you add multiple selection? For example, someone has lots of apps and wants to block roaming to them etc. etc. without having to change it manually for each app.
- filtering or sorting apps? perhaps something simple like the way afwall , or a more thorough filter like XPrivacy has?
Sent from my Nexus 5 using Tapatalk
defim said:
The "<>" entries are not real apps (.apks) with a package name, they are uids. At app start i load all installed apps with internet-permission and hide apps which are no more installed / have not any longer the permissions -> the uid items are not in the list of installed apps (obviously)
Will be fixed in next release
EDIT: Uploaded
Click to expand...
Click to collapse
Confirmed fixed
jaibar said:
This is awesome ?
A few questions:
- is there a way to edit template? I couldn't find it anywhere in settings- am I missing something?
- Can you add multiple selection? For example, someone has lots of apps and wants to block roaming to them etc. etc. without having to change it manually for each app.
- filtering or sorting apps? perhaps something simple like the way afwall , or a more thorough filter like XPrivacy has?
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
The template is used for all "blue" apps, which where are not configured by user. Modifying template is part of the donator options (see OP).
Btw, next planned feature: detection of VPN connections
defim said:
The template is used for all "blue" apps, which where are not configured by user. Modifying template is part of the donator options (see OP).
Btw, next planned feature: detection of VPN connections
Click to expand...
Click to collapse
Nice feature !
I dry tested this app (i.e. not checked in the Xposed module on my device) and already saw that the VPN was missing. Now I use AFWall+ which is good and has more profiles. I block all Google apps with it with a 'limited internet' profile and every time I download something from Play, I load another profile which allows 'Google Play services' and 'Google Play store' internet connection and after download/update I revert to 'Limited internet'.
On my Mac I have 'Little Snitch' firewall which has the ability to let it prompt for certain apps which I don't want to be connected permanently (such as the Mac App Store), but only when I do e.g. an OSX update. In that case I let it prompt and say 'only this time'.
A similar approach on LightingWall should be very welcome. E.g. a notification that the Play store wants to connect with internet and when one wants to download / update an app, say 'only this time' and not permanently.
mermaidkiller said:
Nice feature !
I dry tested this app (i.e. not checked in the Xposed module on my device) and already saw that the VPN was missing. Now I use AFWall+ which is good and has more profiles. I block all Google apps with it with a 'limited internet' profile and every time I download something from Play, I load another profile which allows 'Google Play services' and 'Google Play store' internet connection and after download/update I revert to 'Limited internet'.
On my Mac I have 'Little Snitch' firewall which has the ability to let it prompt for certain apps which I don't want to be connected permanently (such as the Mac App Store), but only when I do e.g. an OSX update. In that case I let it prompt and say 'only this time'.
A similar approach on LightingWall should be very welcome. E.g. a notification that the Play store wants to connect with internet and when one wants to download / update an app, say 'only this time' and not permanently.
Click to expand...
Click to collapse
Xprivacy implements a similar thing, allowing the user to be informed when one of the restrictions are asking for access of that permission, including internet permissions(no distiction between lan or vpn), i would also welcome an on demand prompt feature for this app, its one faeture i wished afwall had, but believe it cant because of the nature of iptables i believe,
Saying that im also kinda worried that this might conflict, two apps essentially fighting for control to "pause" the system, hope im wrong, maybe if the two devs of the two respective apps co-orporated in implementation,it might be resolved, if there is an issue, i dont know........... but im getting ahead of myself here, defim has not even stated that he'll implement this, still, no harm in discussing possibilities, slim or not
@banderos101 @mermaidkillerIf you want to be informed if an app is allowed or denied to access some hosts, you could get it with Tasker. Just with a simple message box or more enhanced things Tasker can do. It should not be a problem using this app wiht Xprivacy, AFwal etc. If you block a connection with one app, it could be that the others can't see/log it. This depends on the order of the apps, An iptables firewall should be the last the connection is passing.
A per host filter is not planned, if you want to stop connection to some (tracking, malwar, adware) hosts a hosts file filter could be used, like my UnbelovedHosts
defim said:
As usual i send source only to people i know
Click to expand...
Click to collapse
Too big a risk to take for security software like this. Post your work up on Github under a reasonable license.
I'm not seeing a big advantage over the GPL AFWall+ anyway.
I wonder if there is a way to simulate NO GPS signal without going in the basement. As if you were inside a tunnel or under the earth surface. I am not talking about location mocking. I wonder if we can leave the GPS turned on but prevent application from getting a GPS fix.
I'm thinking turning mock locations on and not providing any data but curious if there is a better way myself!
---------- Post added at 12:58 AM ---------- Previous post was at 12:05 AM ----------
Actually turning mock locations on won't be enough, you also want to register a MockLocationProvider and then don't mock anything.
btw. If you are familiar with the "geo fix" terminal commands I have wrote an app you can run on a device that listens on port 5554 and mocks locations *only* when a "geo fix" or "geo nmea" command is received so you could give it a shot and simply don't send any commnads: MockGeoFix (source code and APKs here: https://github.com/luv/mockgeofix)
edit: grammar
Hello luv. I already found, installed and tried your app! The problem is, you need to enabled location mocking in developer settings. I don't want this because I don't want other apps to know that But thank you for the source code.
OK I assume you don't want to use xposed "mock mock locations" plugin to hide that the location mocking is enabled because xposed is a pretty drastic hack?
luv. said:
OK I assume you don't want to use xposed "mock mock locations" plugin to hide that the location mocking is enabled because xposed is a pretty drastic hack?
Click to expand...
Click to collapse
Yes, that's too drastic. Maybe I could do something like take away permissions from gpsd service (reuquires root of course). Do you think that could help me achieve desired behaviour? Or maybe you have a similar idea?
Not sure, give it a try
Another idea (on galaxy s4, cm11):
Code:
chown root:root /dev/socket/qmux_gps/qmux_connect_socket
Introduction:
Fake My GPS allows you to select a custom GPS location that will be seen by apps of your choosing. This module simulates location using the device's built-in location providers and does not require the "mock locations" setting.
Possible uses for this module include:
-Setting your exact location in an area with poor satellite visibility.
-Increased privacy by not sending your exact location to apps that request it.
-Save battery life by reducing polling to the GPS radio.
-And more!
NOTE: You must enable location services to use this module. All location providers are supported (network, GPS, fused)
This module also requires Google Play Services for the maps engine and place picker.
Features:
App blacklisting support (don't send Fake GPS to specified apps)
Doesn't run in the background
Persistent notification message (option to disable it)
Place picker with full text search
Store up to 10 frequently used locations*
Customize map view for either normal, satellite, hybrid or terrain
Altitude faking**
Joystick overlay to simulate live movement in fake location
*You can add a favorite by long-pressing the address info card. Favorites can also be renamed by long-pressing on the favorite item in the list.
**Altitude is calculated using the selected GPS location's elevation data. Essentially, this sets your fake altitude to ground level relative to sea level) for that particular location.
If you like my work, please consider making a donation!
LATEST VERSION: Fake My GPS v3.2.1
XDA:DevDB Information
Fake My GPS - Xposed , Xposed for all devices (see above for details)
Contributors
zzpianoman
Xposed Package Name: com.fakemygps.android
Version Information
Status: Stable
Current Stable Version: 3.2.1
Stable Release Date: 2016-09-11
Created 2016-08-20
Last Updated 2018-03-02
Reserved
Best fake GPS app I've ever used. But I have a problem, there is reboot loop problem. galaxy s5 g900f 4.4.2 . Thanks.
Nice module! :good:
I also seem to be getting a reboot loop on the Nexus 5 on my second reboot after enabling the module (first reboot was fine).
One suggestion: Would it be possible to have an option to emulate a real GPS's inaccuracy by shifting the reported coordinates around slightly inside a small cicular area around the set coordinate? Maybe also do the same for altitude by shifting the value by maybe 1-2 meters at most?
Posted an update with a fix for the reboot issue. Let me know if it works!
my bad, figured it out!
zzpianoman said:
Posted an update with a fix for the reboot issue. Let me know if it works!
Click to expand...
Click to collapse
Working
Thanks Dev , works great.
Thanks Dev , works great.
But I used pokemon and I thinh that was incorrect coordinates (I copy from google map. Ext 37.788898, -122.410667)
Idea to fake the GPS imprecisions
singsang said:
Nice module! :good:
One suggestion: Would it be possible to have an option to emulate a real GPS's inaccuracy by shifting the reported coordinates around slightly inside a small cicular area around the set coordinate? Maybe also do the same for altitude by shifting the value by maybe 1-2 meters at most?
Click to expand...
Click to collapse
I think the best way to implement this is making a diff option!
In the moment a user chooses a spot in the map, "Fake my GPS" would read the instant GPS and wifi location values and calculate the latitude, longitude and altitude difference from the fake spot to the real one. After that the fake position would always be a difference between the real position to the values calculated!
I don't know how hard would it be to be implemented, but I can't think any other better way to really fake position (no apps would know the position is fake) because the GPS imprecision and variations would be real.
PS. No reboots on my Nexus 4, 5.1.1
luismenon said:
In the moment a user chooses a spot in the map, "Fake my GPS" would read the instant GPS and wifi location values and calculate the latitude, longitude and altitude difference from the fake spot to the real one. After that the fake position would always be a difference between the real position to the values calculated!
Click to expand...
Click to collapse
For lat/long, I could see a variance option for a variance radius that takes a value in meters and then chooses a random spot each time the coordinates are updated, within the radius of the chosen point.
Oh, and I too can confirm that reboot loops are fixed. Thanks!
luismenon said:
I think the best way to implement this is making a diff option!
In the moment a user chooses a spot in the map, "Fake my GPS" would read the instant GPS and wifi location values and calculate the latitude, longitude and altitude difference from the fake spot to the real one. After that the fake position would always be a difference between the real position to the values calculated!
I don't know how hard would it be to be implemented, but I can't think any other better way to really fake position (no apps would know the position is fake) because the GPS imprecision and variations would be real.
PS. No reboots on my Nexus 4, 5.1.1
Click to expand...
Click to collapse
Thanks for all the feedback!
Actually, I had thought about implementing this exact feature. I've had to take a short break to work on my other Xposed modules, but I plan on working on a new release very soon!
Please add more favorite. I need save 100 place favorites for work.
UPDATE:
Fake My GPS v2.0
CHANGELOG:
✓ Added joystick to simulate live movement in fake location
✓ Bug fixes and improvements
V2.0 doesn't seem to work for me. Using v1.5.2 again
EDIT: Just to clarify, the gps doesn't move in v2.0 as compared to v1.5.2 where it really locks to the correct place
virseph said:
V2.0 doesn't seem to work for me. Using v1.5.2 again
EDIT: Just to clarify, the gps doesn't move in v2.0 as compared to v1.5.2 where it really locks to the correct place
Click to expand...
Click to collapse
If your device doesn't have an actual GPS fix, it may not report the correct faked location as this module works by replacing the high powered GPS location with coordinates that you specify.
I'm currently working on a way around this - possibly having it work without GPS being enabled, but for now the only way to accomplish location spoofing without using the mock provider is to replace an already fixed location.
Dear developer,
This tool almost works perfectly except when I use joystick to move around on a google map, it doesn't actually move, I have to switch out of the google map app, and switch back in to reflect the location change.
I am running cyanogenmod cm-12.1-20160918-NIGHTLY-trltetmo.zip on my galaxy note 4 t-mobile.
Could you please let me know if there is any solution to this?
Thanks!
EDIT: by the way, I have tried both enable and disable "allow mock locations", and use both "high accuracy" and "device only" GPS mode, no luck in any case.
lonewy2005 said:
Dear developer,
This tool almost works perfectly except when I use joystick to move around on a google map, it doesn't actually move, I have to switch out of the google map app, and switch back in to reflect the location change.
I am running cyanogenmod cm-12.1-20160918-NIGHTLY-trltetmo.zip on my galaxy note 4 t-mobile.
Could you please let me know if there is any solution to this?
Thanks!
EDIT: by the way, I have tried both enable and disable "allow mock locations", and use both "high accuracy" and "device only" GPS mode, no luck in any case.
Click to expand...
Click to collapse
Google Maps is tied to the Play Services location API, so you must make sure that Google Play Services is not excluded from location spoofing in order to fake your location in Google Maps.
zzpianoman said:
Google Maps is tied to the Play Services location API, so you must make sure that Google Play Services is not excluded from location spoofing in order to fake your location in Google Maps.
Click to expand...
Click to collapse
Thank you for the response. If you mean don't exclude Google Play Services from the Fake My GPS app, then that is already set that way, I didn't check any apps in the exclusion list of the spoofing app.
Is there anything else that could go wrong?
Thanks.
lonewy2005 said:
Thank you for the response. If you mean don't exclude Google Play Services from the Fake My GPS app, then that is already set that way, I didn't check any apps in the exclusion list of the spoofing app.
Is there anything else that could go wrong?
Thanks.
Click to expand...
Click to collapse
The only other thing I can think of relates to one of my previous posts about needing a real GPS fix before spoofing can work. The spoofing actually replaces the real location it receives from the GPS radio so if there is no GPS fix, there is no updated location, and no faked location.
Make sure your device has an actual GPS fix before using spoofing features.
So for ages now ive been using Xposed modules and such like Fiddler to bypass SSL Pinning.
Its worked 70% of the time, but that 30% it doesnt work is really frustrating.
Im trying to SSL Unpin "SUBWAY UK" By AltaineApps.
I managed to decompile the APK, go to smali_classes2/com/square/okhttp/CertificatePinner.smali and patch out near line 155 (simple return-void would work here according to: https://github.com/square/okhttp/bl...va/com/squareup/okhttp/CertificatePinner.java)
It recompiled fine (I had to zipalign) and it opened and went fine but it still wasnt showing up in fiddler with fiddler as system proxy (with its cert installed).
This actually occurs a lot where it doesnt send data to fiddler.
What I usually do in this instance is run "Packet Capture" and it would usually pick it up.
But lots of apps now block if you are using a VPN or Proxy so that might be the reason that isnt working either.
Any recommendations or is there anyway to just log the Response.smali's stuff as text files?
(The request that is ssl pinned is the login request and among others when your logged in, im trying to get the one for the subway map stuff inside when logged in, you can test easier by just attempting a login since that is pinned too)