<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Abort, Retry, Hack? &#187; itunes</title>
	<atom:link href="http://marcansoft.com/blog/tag/itunes/feed/" rel="self" type="application/rss+xml" />
	<link>http://marcansoft.com/blog</link>
	<description>[ marcan&#039;s blog ]</description>
	<lastBuildDate>Tue, 22 Dec 2009 16:26:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Using Amarok and other iTunesDB compatible software with the iPhone 2.x</title>
		<link>http://marcansoft.com/blog/2009/01/using-amarok-and-other-itunesdb-compatible-software-with-the-iphone-2x/</link>
		<comments>http://marcansoft.com/blog/2009/01/using-amarok-and-other-itunesdb-compatible-software-with-the-iphone-2x/#comments</comments>
		<pubDate>Fri, 02 Jan 2009 19:52:31 +0000</pubDate>
		<dc:creator>marcan</dc:creator>
				<category><![CDATA[Hacks]]></category>
		<category><![CDATA[iPhone on Linux]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[fairplay]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[itunes]]></category>
		<category><![CDATA[stupid]]></category>

		<guid isPermaLink="false">http://marcansoft.com/blog/?p=22</guid>
		<description><![CDATA[With newer iPods and the iPhone 2.x firmware, Apple decided to implement a new hash scheme for iTunesDB to prevent third-party apps from managing the iPod database. Stupid. They decided to make it part of the FairPlay codebase, including its obfuscation. Very Stupid. But just in case that weren&#8217;t enough, then they went ahead and [...]]]></description>
			<content:encoded><![CDATA[<p>With newer iPods and the iPhone 2.x firmware, Apple decided to implement a new hash scheme for iTunesDB to prevent third-party apps from managing the iPod database. Stupid. They decided to make it part of the FairPlay codebase, including its obfuscation. Very Stupid. But just in case that weren&#8217;t enough, then they went ahead and tried to take down the <a href="http://bluwiki.com/go/Ipodhash">iPodHash</a> project which was attempting to reverse engineer the (annoyingly obfuscated) algorithm. Completely Stupid.</p>
<p>I had previously patched the check out in the MusicLibrary binary, and forgot to write it up. However, I just looked at it again, and it turns out that you can get it to work just by changing a simple XML file. I guess they didn&#8217;t really care if jailbroken iPhone users used third-party software.<br />
<span id="more-22"></span><br />
Here&#8217;s how: Edit <b>/System/Library/Lockdown/Checkpoint.xml</b>, find the <b>DBVersion</b> key, and change its value from <b>4</b> to <b>2</b>. Save and reboot. Voila! I haven&#8217;t tested this extensively, but it seems to work at least on 2.1 and 2.2. You can then use Amarok or any other libgpod app to transfer data to the device (using the usual sshfs mount trick which is documented elsewhere for 1.x iPhones)</p>
<p><b>Update</b>: abu from <a href="http://forums.winamp.com/forumdisplay.php?forumid=69">ml_ipod</a> pointed out that DBVersion 3 also works. This version includes the old hash which was already present in older versions. I have tested this to work on version 2.1 of the iPhone software.<br />
<b>Update 2</b>: DBVersion 3 works only on some devices, better stick with DBVersion 2.</p>
<div class="wp-caption aligncenter" style="width: 330px"><img alt="MobileMusicPlayer synced via Amarok" src="http://marcansoft.com/uploads/images/iphone-musicdb.png" title="MobileMusicPlayer synced via Amarok" width="320" height="480" /><p class="wp-caption-text">MobileMusicPlayer synced via Amarok</p></div>
]]></content:encoded>
			<wfw:commentRss>http://marcansoft.com/blog/2009/01/using-amarok-and-other-itunesdb-compatible-software-with-the-iphone-2x/feed/</wfw:commentRss>
		<slash:comments>40</slash:comments>
		</item>
	</channel>
</rss>
