Skip to content
This repository has been archived by the owner on Sep 6, 2019. It is now read-only.

Global settings - fake data doesn't work #2343

Open
timi35 opened this issue Apr 10, 2016 · 4 comments
Open

Global settings - fake data doesn't work #2343

timi35 opened this issue Apr 10, 2016 · 4 comments

Comments

@timi35
Copy link

timi35 commented Apr 10, 2016

Hello,

I've set all fake data in global settings, especially fake GPS.
If I now check the faked GPS location with an Wheather app, it still get my current location.
Only if I set the fake data in the app self, I get the faked location.

I would like to have faked data for more than one app and it is a lot of work to set it in all single app.

That's why my question: is this a bug?
For what are the fake data settings in global section and why doesn't work it globally?
How can I fake more than one app?

Thanks.
Tim

@M66B
Copy link
Owner

M66B commented Apr 10, 2016

Global settings just work and can be overridden by application specific settings.

Restricting locations is tricky, since many applications acquire a location through Play services.
You can restrict locations for Play services, but you will restrict for all applications using this route.

Also take into account caching.

This is more a question, so please use the XDA XPrivacy forum for follow up questions.
See also here: https://github.com/M66B/XPrivacy#support

@M66B M66B closed this as completed Apr 10, 2016
@timi35 timi35 changed the title Global fake data issues doesn't work Global settings - fake data doesn't work Apr 10, 2016
@M66B M66B added the question label Apr 10, 2016
@timi35
Copy link
Author

timi35 commented Apr 10, 2016

Hi M66B,

The override function is clear. I'll explain it on an example:
App wetteronline is completely restricted except GPS:srv_isProviderenabled. Without this the app show a warn message that the location services are not available.

With this seeting and the global fake data, I get still my actual position.
If I now set the fake data in the settings of this single app, the fake location works.

I don't understand this. Why have I to set it separate? Why are globals not enough? It is the same function?

Thanks a lot again.
PS: I'm PRO user since a while and the app really is great.

@M66B M66B reopened this Apr 10, 2016
@MartinS84
Copy link
Contributor

MartinS84 commented May 10, 2016

I don't understand this. Why have I to set it separate? Why are globals not enough?

The global settings don't determine whether the item is restricted or not, but what kind of data is returned.
Randomize on boot, randomize on access or always return the same value (you can fill it in or generate a random one). This is a bit confusing and took me a while to understand.
So if you dont restrict GPS:srv_isProviderenabled it shouldn't be restricted at all.
If you restrict it, then the global settings for a random data will be used, unless you have specific settings for the app.

If I now set the fake data in the settings of this single app, the fake location works.

Did you also restrict GPS:srv_isProviderenabled?
Because if you didn't, there shouldn't be a fake location. If you did then the global vs specific settings determine what kind of fake location is returned to the app.

@Gitoffthelawn
Copy link
Contributor

@MartinS84 Maybe you can add your info to the FAQ in the README?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants