First of all, I had nothing to do with this coding, all credit goes to Tony and his blog, he provided all the code and everything, Im just trying to help others find this!

YouTube Fix for unlocked iphones (cannot connect to youtube)
Step 1

Download this zip, and unzip it somewhere.
Step 2

Get your activated iPhone ready, and connect to it via SCP or SFTP or whatever you have that lets you access the file system.

Tip: iNdependence is a wonderful program for the Mac that can install SFTP in one click.
I recommend this, and Transmit to connect to the SFTP on the iPhone (remember, user “root”, password “dottie”.)
Step 3

Navigate to /var/root/Library/Lockdown on the phone, and upload those three files you unzipped.
Overwrite the stuff on the phone.

Tip: Paranoiacs always back up.
Step 4

Navigate to /var/root/Library/Lockdown/activation_records. See that long numbered plist file that looks like “88921140141031443517.plist” or something?
The name varies, but you’ll see it. Open it up in your favourite text editor.
Step 5

Find this bit.
Illustration of the bit you need to select


Select what I have selected there.. the bit under DeviceCertificate.
Step 6

Replace that bit with the following:




<data>
LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURQekNDQX FpZ0F3SUJBZ0lLQTRC
UllCOVBRUms3NlRBTkJna3Foa2lHOXcwQkFRc0ZBREJhTVFzd0 NRWUQKVlFRR0V3SlZV
ekVUTUJFR0ExVUVDaE1LUVhCd2JHVWdTVzVqTGpFVk1CTUdBMV VFQ3hNTVFYQndiR1Vn
YVZCbwpiMjVsTVI4d0hRWURWUVFERXhaQmNIQnNaU0JwVUdodm JtVWdSR1YyYVdObElF
TkJNQjRYRFRBM01EY3dOekl6Ck1EZ3dNMW9YRFRFd01EY3dOek l6TURnd00xb3dnWWN4
TVRBdkJnTlZCQU1US0RNNE5URmhOamRqT0dFM01ETTMKTnpjek 9HWXhOVEJsTTJGaFlU
WTJOV1U1TkRFNU5tUXpOekV4Q3pBSkJnTlZCQVlUQWxWVE1Rc3 dDUVlEVlFRSQpFd0pE
UVRFU01CQUdBMVVFQnhNSlEzVndaWEowYVc1dk1STXdFUVlEVl FRS0V3cEJjSEJzWlNC
SmJtTXVNUTh3CkRRWURWUVFMRXdacFVHaHZibVV3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modification to the phone’s file, upload it to the phone.
Step 7

Reboot the iPhone — you’re done, and can watch Chocolate Rain ten times a day.


THANKS TO TONY AT Tony's Blog: YouTube Fix for unlocked iphones (cannot connect to youtube)! HE MADE EVERYTHING POSSIBLE! IT WORKED ON MY 1.1.4 Iphone!