This procedure is obsolete. Please head to our new procedure here instead.
I. Before You Begin
1. The only real reason to unroot is if you need to send the phone in for warranty or if you want to just start from scratch.
2. This will erase most things on your phone, so as a precaution. please backup your contacts and your SD card contents.
II. Restore Phone To Original State with RSDLite
1. Download RSD Lite, the Motorola Drivers, and the .sbf firmware files for your phone and extract them to your computer.
2. Install RSDLite by double clicking the RSD Lite.msi file you just downloaded.
3. Once RSD Lite is installed, copy the pst_flash.ini file you downloaded with the RSD Lite install file and paste it into C:\Program Files (x86)\Motorola\RSD Lite OR C:\Program Files\Motorola\RSD Lite depending on where your computer put it when installing. Allow it to overwrite the existing pst_flash.ini file.
3. Unzip the drivers folder you downloaded (32 bit OR 64 bit), then double click the Motorola Consumer Driver Installer application and install the drivers.
4. Plug in your phone to the computer via USB cable and pull down the notification bar and choose USB connection as PC Mode.
5. Open the RSDLite program by right clicking it and selecting Run As Administrator.
6. Click on the “…” button next to the filename box and select the DROID2_X6_2.2.20_SHADOW_BP_C_01.09.05P_P2_USERBLD_SECURE.sbf file you downloaded earlier.
7. Once it is selected, hit Start and wait for it to finish flashing the phone.
8. Once it is done, click on the “…” button next to the filename box again and this time select the BL_D235_cdma_droid2_Consumer_replacer_HSPart.sbf file you downloaded earlier.
9. Once it is selected, hit Start and wait for it to finish flashing the phone.
10. Once both have been flashed, your are back to the stock Android 2.2 firmware.