MobileInstallation patch for iPhone 2.2.1 Firmware

1st Download MobileInstallation 2.2.1 pached.
2nd Download WinSCP

Step 1
Open BossPrefs or SBSettings and Enable the SSH and WiFi if disabled.
Write down the IP Adress.
Boss Prefs or SBSetings has a few switches — SSH is probably already turned on, but
open it just to make sure.  WiFi may show as off (even if turned on), go ahead and flip the
switch to ON, your IP address will be shown in parenthesis next to the WiFi switch. 
WRITE DOWN THIS NUMBER, you will need it to connect to the iPhone/iPod in the next
few steps.
Step 2
Set Auto-Lock to Never
SSH / SFTP sessions require that the phone be connected to WiFi.  When the phone
locks, in order to save battery, it temporarily shuts off the WiFi connection.  Because of
this we’ll disable Auto-Lock on the phone for the duration of our session.  You might
want to re-enable it after you’re done transferring files.
To do this on your iPhone or iPod Touch goto Settings>>General>>Auto-Lock>>Never

Step 3
SSH into your iPhone/iPod Touch
Now open WinSCP(Win) or Cyberduck(Mac) on you computer

Host/Hostname/IP:  Your IP Adress from Step 1 (example: 192.168.2.34)
Username: root
Password: alpine

navigate to the folder:
“/System/Library/PrivateFrameworks/MobileInstallation.framework”

Step 4
Backup the file MobileInstallation, just rename it to “MobileInstallation.bak”
or copy it to your computer

Step 5
Copy the MobileInstallation patch file to “/System/Library/PrivateFrameworks/MobileInstallation.framework”

Step 6
Set the permissions/CMOD of the file to 775
NOTE: CHECK AGAIN THAT ITS 775 NOT 755
NOTE: CHECK AGAIN THAT ITS 775 NOT 777

Step 7
Navigate to “/private/var/mobile/”

Step 8
Set permissions to the folder “Applications” to 777
NOTE: Make sure reclusive is checked (meaning it sets all files within the folder to 777)

Step 9
Navigate into the “/private/var/mobile/applications/” folder

Step 10
Create a “Documents” folder in the “/private/var/mobile/applications/” folder

Step 11
Set the permission to 777

Step 12
Navigate to the root level

Step 13
Navigate into the “/Applications/” folder

Step 14
Create a “Documents” folder in the “/Applications/” folder

Step 15
Set permissions to 777

Step 16
Reboot iPhone/iPod Touch