fix: remove the location assign (invalidService)

main
Khiem Ton 2 years ago
parent e16b51db74
commit 2eb2e7d1b0
Signed by: th4tkh13m
GPG Key ID: 4D9CF147DCADD05D

@ -10,7 +10,6 @@ class Device():
self.lockdown = LockdownClient()
self.mounter = MobileImageMounterService(self.lockdown)
self.diagnostics = DiagnosticsService(self.lockdown)
self.is_mounted = False
self.location = None
def mount_image(self, image_path, signature_path):
@ -24,12 +23,11 @@ class Device():
self.mounter.upload_image(image_type, image, signature)
self.mounter.mount(image_type, signature)
self.is_mounted = True
self.location = DtSimulateLocation(self.lockdown)
return True
def spoof_gps(self, destination):
self.location = DtSimulateLocation(self.lockdown)
if self.location is None:
self.location = DtSimulateLocation(self.lockdown)
self.location.set(destination.latitude, destination.longitude)
return True

Loading…
Cancel
Save