1. ChrisHale's Avatar
    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!
    2011-02-27 07:52 PM
  2. iNT3Rv3NTiONZz's Avatar
    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!
    2011-03-02 04:22 PM
  3. ChrisHale's Avatar
    That's too bad. I was hoping they had simply based it around a database and not hardcoding it.
    2011-03-02 07:25 PM
  4. iNT3Rv3NTiONZz's Avatar
    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..
    2011-03-02 08:42 PM
  5. stm's Avatar
    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
    2011-03-17 04:23 AM
  6. stm's Avatar
    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>
    2011-03-22 08:48 PM
  7. robogobo's Avatar
    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; 2011-07-11 at 06:22 PM.
    2011-07-11 06:17 PM
LINK TO POST COPIED TO CLIPBOARD