XPrivacy icon indicating copy to clipboard operation
XPrivacy copied to clipboard

Global settings - fake data doesn't work

Open timi35 opened this issue 8 years ago • 4 comments

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

timi35 avatar Apr 10 '16 16:04 timi35

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 avatar Apr 10 '16 16:04 M66B

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.

timi35 avatar Apr 10 '16 17:04 timi35

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.

MartinS84 avatar May 10 '16 15:05 MartinS84

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

Gitoffthelawn avatar May 10 '16 18:05 Gitoffthelawn