+ Reply
Results 1 to 7 of 7

Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.


Thread: iPhone 4 Missing from CoreTypes.bundle

is a discussion within the

File Mods

forums, a part of the

iPhone Modding

section;
I noticed yesterday that my iPhone 4 goes by a default computer icon when using Netatalk to do filesharing over AFP. After searching around I found that CoreTypes.bundle in OS
...
  1. #1
    What's Jailbreak?
    Join Date
    Feb 2011
    Location
    SoCal
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default iPhone 4 Missing from CoreTypes.bundle
    I noticed yesterday that my iPhone 4 goes by a default computer icon when using Netatalk to do filesharing over AFP.

    After searching around I found that CoreTypes.bundle in OS X contains no entry in its Info.plist for the iPhone 4, only the iPhone 3GS and below in addition apple has yet to provide an iPhone 4 system icon. I went a head and added an entry for it in the plist and tossed an icon in the resources folder but sadly it's turning out to not be that easy.

    Code:
    * * * *<dict>
    * * * * * *<key>UTTypeConformsTo</key>
    * * * * * *<string>com.apple.iphone</string>
    * * * * * *<key>UTTypeDescription</key>
    * * * * * *<string>iPhone 4</string>
    * * * * * *<key>UTTypeIconFile</key>
    * * * * * *<string>com.apple.iphone-4.icns</string>
    * * * * * *<key>UTTypeIdentifier</key>
    * * * * * *<string>com.apple.iphone-4</string>
    * * * * * *<key>UTTypeTagSpecification</key>
    * * * * * *<dict>
    * * * * * * * *<key>com.apple.device-model-code</key>
    * * * * * * * *<array>
    * * * * * * * * * *<string>N90AP</string>
    * * * * * * * * * *<string>iPhone</string>
    * * * * * * * * * *<string>iPhone3,1</string>
    * * * * * * * *</array>
    * * * * * *</dict>
    After some further investigation I suspect I'm getting the broadcasted " Model " name wrong from the device but I can't for the life of me find where that is in the iPhone's system files that would be held.

    In short I'm wanting to know if any one has had any luck getting their iPhone 4 to show up correctly in Finder, or where in the Netatalk config files or IPhone system files I can find something to do with the Device ID that AFP broadcasts over Bonjour.

    Thanks in advance everyone!

  2. #2
    Livin the iPhone Life iNT3Rv3NTiONZz's Avatar
    Join Date
    Feb 2010
    Location
    Cambridge, U.K
    Posts
    1,512
    Thanks
    57
    Thanked 123 Times in 101 Posts

    Unfortunately this wont work.. Reason being is because the program does this:
    Determines which device is connected to the computer, then.
    If iphone 3gs display 3gs.png (displays appropriate picture for that phone) problem is there wont be an if/else statement for the iphone4 so it wont be looking for the property or picture youre trying to add...
    See?


    Sent from my iPhone using ModMyi

    iPhone4 16gb black - 4.1 Limera1ned
    iPhone 3G 16gb white - 3.1.2 jailbroken
    Blackra1ned
    THANKYOU ONCE AGAIN GEOHOT!

  3. #3
    What's Jailbreak?
    Join Date
    Feb 2011
    Location
    SoCal
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    That's too bad. I was hoping they had simply based it around a database and not hardcoding it.

  4. #4
    Livin the iPhone Life iNT3Rv3NTiONZz's Avatar
    Join Date
    Feb 2010
    Location
    Cambridge, U.K
    Posts
    1,512
    Thanks
    57
    Thanked 123 Times in 101 Posts

    Lol i didnt mean to sound so certain, but im pretty sure thats whatll be done, because it also needs to know what they actually mean, so they need to be specified elsewhere..

  5. #5
    stm
    stm is offline
    What's Jailbreak?
    Join Date
    Oct 2010
    Posts
    5
    Thanks
    0
    Thanked 1 Time in 1 Post
    Quote Originally Posted by iNT3Rv3NTiONZz View Post
    Unfortunately this wont work.. Reason being is because the program does this:
    Determines which device is connected to the computer, then.
    If iphone 3gs display 3gs.png (displays appropriate picture for that phone) problem is there wont be an if/else statement for the iphone4 so it wont be looking for the property or picture youre trying to add...
    See?


    Sent from my iPhone using ModMyi
    Youre wrong

    I got it to work. There is SOME way to make it show the i4 icon without breaking the other icons.
    BUT: I have no idea how. I managed to add an entry for the i4 in the CoreTypes Info.plist. Did not change anything...
    UNTIL I replaced my MacBook, installed from TimeMachine Backup and voilá, there it was, a shiny i4 icon.
    Unfortunately, I could not get it work using a fresh install.
    My guess is, that this has something to do with Apple signing system files. OR there is a routine during the system installer that creates the appropriate links.

    If you find out, tell me
    Regards
    Stefan

  6. #6
    stm
    stm is offline
    What's Jailbreak?
    Join Date
    Oct 2010
    Posts
    5
    Thanks
    0
    Thanked 1 Time in 1 Post
    Okay, here's an addition to my previous post:

    I just installed the latest Snow Leopard Update (10.6.7) and - buff - there it is. iPhone 4 icon is now shown. 10.6.7 adds an icon itself. Nothing to do for you yourself.

    The plist entry is this one:
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    	<key>UTTypeConformsTo</key>
    	<string>com.apple.iphone</string>
    	<key>UTTypeDescription</key>
    	<string>iPhone 4</string>
    	<key>UTTypeIconFile</key>
    	<string>com.apple.iphone-4-black.icns</string>
    	<key>UTTypeIdentifier</key>
    	<string>com.apple.iphone-4</string>
    	<key>UTTypeTagSpecification</key>
    	<dict>
    		<key>com.apple.device-model-code</key>
    		<array>
    			<string>N90AP</string>
    			<string>iPhone</string>
    			<string>iPhone3,1</string>
    		</array>
    	</dict>
    </dict>
    </plist>

  7. #7
    Green Apple
    Join Date
    Jul 2008
    Posts
    37
    Thanks
    7
    Thanked 3 Times in 3 Posts

    I just updated to 10.6.8 and no iPad 2 icon. I wonder if it'll ever come. Does Apple have any legitimate reason to include iOS devices in coretypes?

    Also, no iphone-4-white. I see now that the iphone-4-black was added Jan 10, 2011, six months after release, or at least a black differentiator was added then. I wonder if anyone knows if the iPad 2 and white iPhone are in Lion?
    Last edited by robogobo; 07-11-2011 at 09:22 AM.

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts