iOS 4.0 Building Custom 4.0 Firmware?

Discussion in 'iOS Jailbreak & Cydia' started by that1guy123, Jul 23, 2010.

  1. that1guy123

    that1guy123 New Member

    Joined:
    Jun 22, 2010
    Messages:
    9
    Likes Received:
    0
    Device:
    2G iPod touch
    I have taken the 4.0 firmware downloaded from Apple and extracted it into a folder on my desktop. I downloaded vfdecrypt and ran this in command prompt:
    Code:
    cd (path)
    vfdecrypt.exe -i 018-5533-585.dmg -o decrypted.dmg -k d88fa434f6a8c50fd49cd0923879da5c3079c59c0e534cff521a9cecbcad48d84b4daef0
    
    Apparently it isn't working, because when I try to open it, TransMac told me: "No Mac HFS volumes found." I got similar results from HFSExplorer and PowerISO. Apparently it isn't in HFS format, and Windows tells me it's a Mac Disk Image File (dmg).

    What do?
  2. b-mac 39

    b-mac 39 Well-Known Member

    Joined:
    Dec 15, 2009
    Messages:
    5,809
    Likes Received:
    60
    Device:
    iPhone 4S (White)
    Might I ask why you're building a custom firmware?
  3. peebrian202869

    peebrian202869 Banned

    Joined:
    Nov 28, 2009
    Messages:
    2,061
    Likes Received:
    1
    Device:
    3G iPod touch
    Why do you need a custom firmware, I thought you couldn't restore to them any way?
  4. shamrock

    shamrock Member

    Joined:
    Apr 3, 2010
    Messages:
    392
    Likes Received:
    1
    Device:
    4G iPod touch
    u can restore to them, using ih8sn0w's ibooty. whats the point of creating custom firmware when you can do it with sn0wbreeze?
  5. that1guy123

    that1guy123 New Member

    Joined:
    Jun 22, 2010
    Messages:
    9
    Likes Received:
    0
    Device:
    2G iPod touch
    It's so I can delete all the daemons and language packs I don't need and want. If you spent as much time deleting all of them as I have (each time you restore, it puts it back), you'd get sick of it...
    ------------------double post merged------------------
    It's also to permanently remove apps like stocks and weather. Plus it's a fun weekend project. Any ideas on why it isn't recognizing my decrypted file as an hfs volume?
    ------------------double post merged------------------
    I have another question: do I need to convert the decrypted .dmg to an .iso, so that I can mount it on a disk then edit the files from there? Would I be able to reconvert the edited file to .dmg?

    I think I'm just going to try it, then post my results.
    ------------------double post merged------------------
    I found out that vfdecrypt isn't compatible with Windows 7. Oh the joy of old software.
  6. that1guy123

    that1guy123 New Member

    Joined:
    Jun 22, 2010
    Messages:
    9
    Likes Received:
    0
    Device:
    2G iPod touch
    I guess my version of W7 is special; others tell me that vfdecrypt works on it.
  7. Bluefire101

    Bluefire101 Member

    Joined:
    Jul 10, 2008
    Messages:
    94
    Likes Received:
    0
    Device:
    iPhone 4 (Black)
  8. that1guy123

    that1guy123 New Member

    Joined:
    Jun 22, 2010
    Messages:
    9
    Likes Received:
    0
    Device:
    2G iPod touch
    Okay, I got my key, but vfdecrypt STILL (sigh) isn't working. I checked to see if it compiled correctly, but here's what I got:
    Code:
    timothy@timothy-laptop:~/Desktop/iOS 4$ gcc vfdecrypt.c -o vfdecrypt -lssl
    vfdecrypt.c: In function ‘dump_v2_header’:
    vfdecrypt.c:138: warning: format ‘%lu’ expects type ‘long unsigned int’, but argument 3 has type ‘uint32_t’
    
    What does this mean? Because the output file I get when I try to decrypt the file system is 0 kbs big... :/
    ------------------double post merged------------------
    I've discover that I had to take out an "l" in line 138 of the code.

    Plus, vfdecrypt on ubuntu can only decrypt it if you have the output file as a .img. Ugh, it's been a long three days... Now I have to figure out how to mount and open the files.
  9. that1guy123

    that1guy123 New Member

    Joined:
    Jun 22, 2010
    Messages:
    9
    Likes Received:
    0
    Device:
    2G iPod touch
    Has anybody else been researching this?
  10. cjainy

    cjainy New Member

    Joined:
    Jan 13, 2009
    Messages:
    122
    Likes Received:
    0
    Device:
    iPhone 4 (Black)
    What OS are you using? I'm using Windows and I didn't run into that problem, but I didn't use what you did either, lol.

    Code:
    vfdecrypt -i 018-5533-585.dmg -k fcada08311f553b2d7194c97922e01c821b632bf62e64500056ea37e56343e6131a9839b -o dec.dmg
    output in console:
    
    keyDerivationAlgorithm      0
    keyDerivationPRNGAlgorithm  0
    keyDerivationIterationCount 0
    keyDerivationSaltSize       0
    keyDerivationSalt
    
    
    blobEncryptionIVSize        0
    blobEncryptionIV
    
    
    blobEncryptionKeySizeInBits 0
    blobEncryptionAlgorithm     0
    blobEncryptionPadding       0
    blobEncryptionMode          0
    encryptedBlobSize           0
    encryptedBlob
    
    My firmware was decrypted and is now changeable.

Share This Page