Open thehesiod opened 11 years ago
btw, I found that I can get the launch'd PID like so: self.send('qLaunchSuccess') self._socket.sendall('vCont;c')
self.send('\x03')
pid = self.send('qC')
with elif response.startswith('QC'): return int(response[2:], 16)
and killing like so: self.send('vAttach;' + str(pid)) return self.send('k')
and it seems pretty stable.
Is there any chance apple.py could be extended to support specifying a device to use (e.g. it's UDID), rather than just using the device most recently connected?
I added a --device-id argument.
Awesome, thanks. works great.
python apple.py -get /var/mobile/Media/jailbreak.log .
Waiting for a device...
Connected to device with UDID: ae23586414f4d0d70c88fe9566e6de34c5ba95b8
Traceback (most recent call last):
File "apple.py", line 1155, in
why?
I've been working on apple.py to support automation however one critical feature missing is the ability to figure out which applications are currently running so you don't try launching the app while the old one is shutting down (bad things happen). I know its possible since Instruments does it, and I know that to figure out what the command is one would have to look at the plists that lockdownd is sending to the device. i was able to use socat to look at the data on usbmuxd however one would have to deconstruct the data and dump the plist data (no time for this now). Anyone have anything up their sleeves for doing this? Also, how should I send my contributions? I could email what I have. I suppose I could just fork this but aren't there enough forks? :)
Here's what I've added so far: