/irecovery

console client for 2.x (and probably 3.x) iboot/ibss.

Primary LanguageCGNU General Public License v3.0GPL-3.0

== What is iRecovery? ==

iRecovery is a libusb-based commandline utility for Mac OS X and Linux (perhaps windows too but I'm not developing/testing under windows). It is able to talk to the iBoot/iBSS in Apple's iPhone/iPod touch via USB.

It's completely open-source, the source-code is released under the terms of the GNU General Public License version 3.
The full license text can be found in the LICENSE file.

It currently connects to 0x1281 (iPhone, iPhone 3G, iPod touch, iPod touch 2G: Recovery Mode/iBSS), 0x1227 (iPhone, iPhone 3G, iPod touch: WTF Mode; iPod touch 2G: DFU Mode).

== Usage ==

	./iRecovery -s 						starts a shell.
	./iRecovery -r 						usb reset.
	./iRecovery -f <file>			uploads a file.
	./iRecovery -c "command"	send a single command.
	./iRecovery -l <file>		sends a set of commands from a file (one per line).
	
Changes made 29/04/2010 by harmn1:

  * fixed console mode to work correctly on 3.x iBoots (e.g. 3.1.2 3GS)
  * updated -l script parser to allow iRecovery commands to be automated (i.e. send /upload command in a script)
  * added support for comment lines in scripts (starting //)
  * added '/reset' command to allow USB reset from within a script
  * added file upload progress indicator
  * made commands which are typed into the console echo into log file