"Get a copy of the iPhone root filesystem"

Discussion in 'iOS Development' started by mohitd2000, Jul 21, 2010.

  1. mohitd2000

    mohitd2000 Member

    Joined:
    Jul 6, 2009
    Messages:
    231
    Likes Received:
    0
    Device:
    3G iPod touch
    How can I obtain a copy of the iPhone root filesystem. I have an iPod touch, by the way, so I can't just copy directories over SSH. Is there a tarball/zip file with the iPhone root filesystem? Or I have heard of people decrypting the dmg that comes with the iPhone 4.0 firmware. I want to do this so I can compile the iPhone toolchain.
  2. lauNchD

    lauNchD Well-Known Member

    Joined:
    Jan 27, 2008
    Messages:
    1,844
    Likes Received:
    261
    Device:
    iPhone 5 (Black)
    What the hell makes you think you can't copy directories over SSH/SFTP if you have an iPod touch?
    Is it because you're trying to build the iPhone toolchain?

    Please Register or Log in to view images


    Everything of importance for the toolchain, the binaries, frameworks and libraries, is exactly the same.
    Just think of calling it the "iOS Toolchain."
    Nevertheless, I recommend you not to copy your jailbroken iPod's filesystem, because jailbreaking changes it, partly in 'fundamental' ways.

    No. (except if you've gotten it illegally somewhere)

    That's probably the most viable solution, even though I think it's illegal in the US (nobody seems to care, though; it's just for personal use). To do so, you need to unzip the IPSW and run vfdecrypt (google it) on the largest DMG file, which is the root FS. The keys can be found on the iPhone Wiki.
  3. Tommm

    Tommm Member

    Joined:
    Jul 14, 2009
    Messages:
    752
    Likes Received:
    0
    Device:
    4G iPod touch
    To decrypt the dmgs:

    1. Rename the ipsw to a zip
    2. Take out the largest dmg file
    3. Its encrypted to you have to use vfdecrypt to get at it
    ---- I can't remember the exact command line you have to use to run vfdecrypt but its something like:
    ---- vfdecrypt -i INPUT_DMG_GOES_HERE.dmg -o OUT_NAME_GOES_HERE.dmg -k KEY_GOES_HERE
    ---- keys for firmware can be found on iphwn.org wiki

    vfdecrypt download: http://code.google.com/p/iphone-elite/downloads/detail?name=vfdecrypt.zip&can=2&q=
  4. mohitd2000

    mohitd2000 Member

    Joined:
    Jul 6, 2009
    Messages:
    231
    Likes Received:
    0
    Device:
    3G iPod touch
    I only found the 8A306 Build (iOS 4.0.1) for iPhone 3GS. So what key should I just? Should I just use the iOS 4.0 key for iPhone 3GS?
  5. lauNchD

    lauNchD Well-Known Member

    Joined:
    Jan 27, 2008
    Messages:
    1,844
    Likes Received:
    261
    Device:
    iPhone 5 (Black)
    No, you can't. You have to get the 4.0.1 key or the 4.0 firmware.
  6. mohitd2000

    mohitd2000 Member

    Joined:
    Jul 6, 2009
    Messages:
    231
    Likes Received:
    0
    Device:
    3G iPod touch
    About how long does decrypting the dmg take?
  7. lauNchD

    lauNchD Well-Known Member

    Joined:
    Jan 27, 2008
    Messages:
    1,844
    Likes Received:
    261
    Device:
    iPhone 5 (Black)
    Look at it this way: Your iDevice has to decrypt it every time you restore. Your computer is 3-10x faster than your iDevice.

    On my MBP, decrypting a DMG takes about 30 secs. No big deal.
  8. mohitd2000

    mohitd2000 Member

    Joined:
    Jul 6, 2009
    Messages:
    231
    Likes Received:
    0
    Device:
    3G iPod touch
    VFDecrypt does not seem to work. It just stalls there at the blinking insertion point. Here is my command:
    Code:
    vfdecrypt -i 018-7319-141.dmg -o decrypted.dmg -k 5d79765bc3233cbee58727c17a9487e5dc1e38400c2a98c30997bb02d00e97ae3ce5fab8
  9. Tkf1

    Tkf1 Community Development Staff Member

    Joined:
    Oct 12, 2009
    Messages:
    17,397
    Likes Received:
    2,488
    Device:
    iPad mini
  10. mohitd2000

    mohitd2000 Member

    Joined:
    Jul 6, 2009
    Messages:
    231
    Likes Received:
    0
    Device:
    3G iPod touch
    I have already tried using the keys in that article, Tkf1. Would it be against the rules of this forum to post a link to a pre-decrypted dmg? If so, I apologize deeply. If not, then could someone, in their spare time, please decrypt the iPhone 3GS 4.0 filesystem and post a link? Thanks in advance! Or is only certain parts of the filesystem needed, Library/, System/, etc folders? In which case I could copy them over scp.

Share This Page