When last we saw our lonely hero, he was trying to figure out if it t’were possible to get the Barnes and Noble eReader software for the iPhone to recognize and display his Fictionwise library. Let us now rejoin him in his quest.
(Caveat: Neither Gear Diary nor Doug Moran encourages our readers to follow any of the following steps. Your mileage may vary. Void where prohibited. Some states do not participate. Call your dealer for details.)
So we want to, somehow, get our Fictionwise books in the right spot on the iPhone, and get the B&N ereader to recognize them. Here’s what I’ve done:
First, you have to jailbreak your iPhone. The only way to access the file system on the iPhone is to have it jailbroken, so that’s the first thing to do. A lot of people find blackra1n to be a good program to use; I neither confirm nor deny.
The reason you want to jailbreak your iPhone is so that you can gain access to the iPhone file system. There are, theoretically, two ways to do this: over the sync cable, or via wifi. The only program I’ve found that works over the sync cable is iPhoneBrowser, a fairly nifty little tool that allows you to surf the iPhone’s file system over the sync cable using a Windows-like interface. Unfortunately, it doesn’t appear to work with the latest version of iTunes (9.0.2.25) and the iPhone firmware (3.1.2), so you’re temporarily out of luck with that one. (On the other hand, maybe it just doesn’t work for me; trust me, it happens all the time.)
This leaves you with the WiFi mount option, so getting access is a two-step process: installing a secure shell (SSH) application) on the iPhone, and then accessing it (duh) with an SSH application on your desktop. As I use Windows–unfortunately–that’s what this example will contain. I have read that a similar process works just fine on a Mac.
Part the first: I use Cydia to install “jailbroken iPhone-ready” (i.e., not officially sanctioned by Apple and thus not available through iTunes) applications on my iPhone. If you don’t have Cydia or some other application on the jailbroken iPhone, you need to install it at this point.
In Cydia, install the OpenSSH package on your iPhone (you can find it by searching fairly easily). Once this package is installed and enabled, you will be able to set up a secure shell connection between your system and the iPhone.
On your system–laptop or desktop or whatever–open your SSH program of choice. In my case, I use a combination of SecureCRT (so I can execute command-line level UNIX commands), as well as WinSCP. What you use is totally up to you.
Before you continue, make sure WiFi is enabled on your iPhone.
To get into your iPhone, you must log in with the following information:
- The IP address of the WiFi connection of your iPhone. To find this out, on your iPhone go to Settings -> Wi-Fi, and tap the blue arrow next to whatever WiFi connection is active. In the table displayed will be the IP address you need to use.
- User: root.
- Password: alpine (yes, the passwords for all the iPhones are the same; how scary is that?)
Now, log on to your iPhone with the information above. Bingo bango bongo, you’re into your iPhone file system.
One note: If you are using WinSCP to access the iPhone file system, you need to keep the iPhone turned on, i.e. not in sleep mode. I open an application like MyLite that keeps the iPhone on; how you do it is up to you.
I won’t lie to you, the iPhone file system is a little tweaked. That’s what happens at the intersection of Mac people, Windows people, and the UNIX file system, I guess. But I’ve gone through this pain already, so:
All application files on your iPhone live in subdirectories of the directory /private/var/mobile/Applications/. Which subdirectory? Well, t’would appear that the names of the subdirectories are long, generated (I’m guessing) hex numbers that all look like 780C955B-AD41-4A5B-8254-E900CE307D4C. So in my case, the Barnes and Noble eReader application is in /private/var/mobile/Applications/780C955B-AD41-4A5B-8254-E900CE307D4C.
So in the case of this example, the set of book files–which for both the Barnes and Noble and Fictionwise eReaders are in PDB format–are in the directory /private/var/mobile/Applications/780C955B-AD41-4A5B-8254-E900CE307D4C/Library. In the case of your iPhone, the directory between “Applications” and “Library” will be different; you’ll just have to find it. I found it by using the UNIX “find” command, but I’m old and a UNIX dork.
The Fictionwise books have logical (as in, they make sense) names, like Shogun.pdb and Anathem.pdb, and so forth. The Barnes and Noble books have logical (as in, computerish) names like 2970000051112.pdb or 9781411432512.pdb. How these names are generated, I really have no idea.
So now we’re in the iPhone file system, we know where the Fictionwise books are, and we know where the B&N books are. If the Gods of Geekdom are kind, then perhaps all we need to do is copy the Fictionwise book files over to the B&N library directory, right?
Wrong. And that’s where your intrepid explorer is stuck.
If you look closely, you’ll see that the directory that contains your B&N ereader application files (in my case, that ugly /private/var/mobile/Applications/780C955B-AD41-4A5B-8254-E900CE307D4C/ thingee) also contains a file called ereader.db. This is a data file, likely a database file (again: duh!), and my guess is that it contains the list of books the B&N ereader application “sees”. And unless I can figure out a way to update that baby, I’m stuck.
Now, I’m still poking around on my PC to see if it’s storing an equivalent database file, and I’m frantically googling to determine if anyone else has had any success with this. But until then, fellow explorers, we’re stuck.
One final note: if you copy book files over into the B&N Library directory, and those files aren’t “seen” by the application, they are summarily deleted from that directory the next time you launch the B&N ereader app. Bummer.



Pingback: Allistair Lee
Pingback: Mon
Pingback: Queena