udevsharold / locsim

Simulate GPS location system-wide
GNU General Public License v3.0
105 stars 15 forks source link

locsim persists after respring #3

Open roenthomas opened 1 year ago

roenthomas commented 1 year ago

locsim started New apps given location permissions after locsim started These apps cannot determine true location, even after locsim stopped and uninstalled. Only when rebooting, losing jailbreak, and then resetting location settings, do these apps gain true location.

However, after re-jailbreaking, these apps once again lose true location.

Old apps with location pemissions given before locsim installed work fine, however, they do not release simulated location upon locsim stop command. They do reflect new gps coordinates when subsequent locsim start command used.

iPad Pro 10.5", iOS 16.5, rootless jb.

udevsharold commented 1 year ago

That's expected, it's just how iOS works and it'll takes sometime before iOS receive updated new geofenced notification. It'll revert back to original location eventually, I think it will revert back quicker if you open Apple Maps and tap on the compass arrow on the top right. There's nothing locsim can do. Unless you're on rootful jailbreak where you could use -f flag (I don't think it works in rootless).

roenthomas commented 1 year ago

When I tap the compass arrow, it repeatedly returns "Location cannot be determined". Only after rebooting and resetting Location settings does the compass arrow return true location.

Once I rejailbreak, even if I don't re-install locsim, the compass arrow only returns "Location cannot be determined"

udevsharold commented 1 year ago

It will take minutes before original location being reverted. I can't personally test/debug this on rootless as I don't have the compatible device, but that's how they works on rootful. It should behave the same in rootless, but I can't guarantee that. Respring won't affect locsim, it doesn't hook on anything. Only a respawn of locationd or userspace reboot will have instant effect.

roenthomas commented 1 year ago

The userspace reboot doesn't change anything, Maps tapping the compass arrow still leads to "Location cannot be determined".

Only the power off reboot followed by resetting Location settings returns true location for Maps when tapping the compass arrow.

udevsharold commented 1 year ago

As I said, I can't personally debug this. I'll leave this issue open until it's verified.

Tam-0130 commented 7 months ago

The userspace reboot doesn't change anything, Maps tapping the compass arrow still leads to "Location cannot be determined".

Only the power off reboot followed by resetting Location settings returns true location for Maps when tapping the compass arrow.

You simulate the location to be near your actual location, and the “locksim stop” will take effect

n-WN commented 4 months ago

"Location cannot be determined".

"Location cannot be determined". I have the same problem