Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.
File Modsforums, a part of the
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...
02-27-2011, 11:52 AM #1iPhone 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.
* * * *<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>
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!
03-02-2011, 08:22 AM #2
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...
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!
03-02-2011, 11:25 AM #3
That's too bad. I was hoping they had simply based it around a database and not hardcoding it.
03-02-2011, 12:42 PM #4
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..
03-16-2011, 08:23 PM #5
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
03-22-2011, 12:48 PM #6
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:
<?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>
07-11-2011, 10:17 AM #7
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 10:22 AM.