Get string from phone for iSync November 13, 2006 at 10:21 am
Apparently the software update for the Sprint V3m last week changd the string the phone sends, and so my previous post didn’t work for everyone. In fact, I tried re-doing my steps again to make sure, and found I couldn’t add back my own phone anymore because I’d updated the software (so if it was added to iSync before the update, iSync continued to work even with the updated string).
For those that haven’t seen, the new string is:
<string>Motorola CE, Copyright 2000+Motorola V3m-Sprint Phone</string>
I wrote up a quick shell script that will help you get the string from any V3* razr now (and change the grep for v3 to anything else, like k1 to get other model’s strings).
Script is getbtstring.sh For those not all that unix/Terminal savy.. save to your home directory, open a terminal, run:
chmod +x ./getbtstring.sh
I used sudo to do the few things that require root access, so just type in your password and it should work as is… it’ll pause and tell you to open iSync and try to add the phone, after you get the “iSync does not support his phone” hit return in the terminal, and it’ll print out what the string should likely be. it’ll also print out the raw data that you can share with me or others out there if the <string> bit doesn’t work.
For the REALLY poor terminal people.. you can update the file with the following steps:
(Note that \n means hit return)
1. Save the MetaClasses.plist file with the proper string in your homedir as MetaClasses.plist
2. run: vim /Applications/iSync.app/Contents/PlugIns/ApplePhoneConduit.syncdevice/Contents/PlugIns/PhoneModelsSync.phoneplugin/Contents/Resources/MetaClasses.plist
3. Press the ‘j’ key 3 times and the cursor should be on the first <dict> in the file…
4. Press the ‘o’ key and you should see “– INSERT –” on the bottom of the terminal.
5. Press the ‘esc’ key and the “– INSERT –” should go away.
6. Press the following keys in order: :set noai\n
7. Press the following keys in order: :r /Users/<your username>/MetaClasses.plist
You should now see the updated V3m part added to the file.
8. Press the following keys in order: :wq\n
The file should now have saved and quit.
In #7 above, replace <your username> with your username on the mac… if you’re not sure what it is, on the terminal command line, type id and hit return.. it’ll show your name.. mine is mmarion, id for me shows:
uid=501(mmarion) gid=501(mmarion) groups=501(mmarion), 81(appserveradm), 79(appserverusr), 80(admin)
You might need to reboot now (or try killing the SyncServer process if you know how).. open iSync again and try adding the phone again.
Update (11/16/2006 2:32PM): Oops.. guess I can’t link inside comments… here’s the getbtstring2.sh file for people.
Update (9/27/2008): Anyone that asked about the script with Leopard… download the script again (getbtstring.sh) and give it another shot. Unfortunately I can’t really test it because I have completely downed the Apple Kool-aid and got an iPhone 3G a month or so ago.. and can’t find the RAZR.. I know it’s still around here somewhere, but I’m not sure where. :-/ If it doesn’t work, Mail me the /tmp/blued.trace file the script outputs and I’ll see if I can get how it’s dumping the info from dtruss. It should be in there.. just might be different.
Update (minutes after last): Apparently Apple supports the V3m now so the above is likely unecessary anymore.