|
|
|
@ -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
|
|
|
|
|
|
|
|
|
|