[Defy Android Development] shamo42:
As there seems to be a bit of confusion about Froyo, maybe this quick step by step guide will help. I can't guarantee it will work on your Defy and I'm not responsible for bricked devices.

IMPORTANT: If your flash doesn't work before flashing this rom, you need to flash UK 2.21 ROM via RSD lite, wipe data and cache (VOL Down + Power Boot; click right corner) and do a factory reset (settings-> privacy). Now your flash should work and you can precced with this guide. Don't install any other cam apps as they may brick your flash.

Video of Quadrant benchmark:

http://www.youtube.com/watch?v=lIHFivjrM7w

Video of Market and Flashlight working:

http://www.youtube.com/watch?v=viyxqVLtZE4

Advantages of this guide:

+stable and fast Froyo with ROOT (~1200@800Mhz)

+Camera works (no fix needed)

+Wifi works (no fix needed)

+Market works (no fix needed)

+Recovery works

+Everything deodexed

+Bloatware removed (optional)

+Black Notification Bar (optional)

Disadvantages:

-Not for Defys with 2.51

-Only 2 languages

-All your apps and settings will be gone

-You need to manually add your APN

-Guide not for beginners

UPDATE 19.Jan.2011

-It may cause problems to install google apps AFTER rooting. Guide updated.

-Minor update on point 8. Make sure "USB Connection" is set to "None".

-Added point 13 for people who suffer from the Flash bug.

UPDATE 20.Jan.2011

-Added point 14: miscellaneous tweaks.

UPDATE 21.Jan.2011

-Updated point 8 and 13.

-Fixed search_fix from point 9.

UPDATE 22.Jan.2011

-Added info about baseband switcher app to point 14.

UPDATE 22.Jan.2011

-Updated point 7 and 13

UPDATE 30.Jan.2011

-Updated point 12 with theme files for UK Froyo

1)

First Backup using Tenfar's recovery!!

2)

Download the official 2.2 ROM. Here is a mirror from Sorensiim(Thanks!)

3)

Turn on your Defy by holding VOL-UP + POWER, connect it to your PC and flash the ROM using RSD lite 4.9

4)

After flashing, turn your defy off and turn it on again by holding VOL-DOWN + POWER. When you've reached the screen with the exclamation mark, press the bottom right corner of your screen. WIPE everything.

5)

Boot into Froyo. When you've reached the red screen, click on the Chinese text in the center and choose ENGLISH. Press the menu button, click at the bottom right and skip creating a Motoblur account. Froyo might still feel slow. This is normal.

6)

Download google apps update.zip and save it on the root of your sdcard.

Start your phone holding VOL-DOWN + POWER. Press the bottom right corner of your screen again. Flash the update.zip on your sdcard and wipe everything again (this was the last time).

7)

Reboot. Turn usb debugging on. Set USB Mode to Moto Phone Portal.

Download SuperOneClickFor2.1.zip from this thread and root your device.

8)

Reboot. Download HIGGS's deodexed files from this thread. Extract system to the root of your sdcard. Make sure "USB Connection" is set to "None".

enter the following adb commands:

adb shell
su
stop
mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system
cp /sdcard/system/app/* /system/app/
cp /sdcard/system/framework/* /system/framework/
rm /system/app/*.odex
rm /system/framework/*.odex
mount -o ro,remount -t ext3 /dev/block/mmcblk1p21 /system
reboot

Note: after typing "su" for the first time, on your phone the app "Superuser" should pop up with a notification asking for root permissions. It's important to allow this.

9)

Optional: At this point "google search" was FCing. To fix it download the search_fix.zip attachement, extract it to the root of your sdcard and use adb:

adb shell
su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
cp /sdcard/QuickSearchBox.apk /system/app/QuickSearchBox.apk
reboot

10)

Now everything should be working. Switch to the other keyboard (or install a new one). I recommend to uninstall Bloatware. Make sure to install a new Launcher before uninstalling "BlurHome.apk"! I uninstalled the following apps using adb:

adb shell
su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
rm /system/app/AdService.apk
rm /system/app/Alipay.apk
rm /system/app/ArcPhotoworkshop.apk
rm /system/app/ArcVideoEditorLite.apk
rm /system/app/AudioEffectSettings.apk
rm /system/app/BatteryManager.apk
rm /system/app/BingClient.apk
rm /system/app/BlurEmail.apk
rm /system/app/BlurHome.apk
rm /system/app/Dianping.apk
rm /system/app/DLNA.apk
rm /system/app/Dock.apk
rm /system/app/EventReminder.apk
rm /system/app/FileManager.apk
rm /system/app/Firewall.apk
rm /system/app/FMRadio.apk
rm /system/app/FMRadioService.apk
rm /system/app/Gobang.apk
rm /system/app/HomeSyncWizard.apk
rm /system/app/Landlord.apk
rm /system/app/MagicSmokeWallpapers.apk
rm /system/app/Mobee.apk
rm /system/app/MotoImeTutorial.apk
rm /system/app/MotoPhonePortal.apk
rm /system/app/MotoSmartHandWriting.apk
rm /system/app/MSExchangeService.apk
rm /system/app/Mynet.apk
rm /system/app/Palmebook.apk
rm /system/app/PerformanceManager.apk
rm /system/app/PhotoWidget.apk
rm /system/app/PicoTts.apk
rm /system/app/PimBackup.apk
rm /system/app/Pinyin.apk
rm /system/app/Protips.apk
rm /system/app/QQ.apk
rm /system/app/QuickContactWidget.apk
rm /system/app/QuickOffice.apk
rm /system/app/Shop4Apps.apk
rm /system/app/SimContactAdapter.apk
rm /system/app/SinaWeatherWidget.apk
rm /system/app/SinaWeibo.apk
rm /system/app/SocialShare.apk
rm /system/app/SpellingCheckService.apk
rm /system/app/StatusWidget.apk
rm /system/app/StickyNoteWidget.apk
rm /system/app/Stk.apk
rm /system/app/StraightFlush.apk
rm /system/app/Sudoku.apk
rm /system/app/Tilemaze.apk
rm /system/app/ToggleWidgets.apk
rm /system/app/VisualizationWallpapers.apk
rm /system/app/WindowsLiveClient.apk
rm /system/app/WorldClockWidget.apk
rm /system/app/WorkContacts.apk
rm /system/app/YoudaoDict.apk
rm /system/app/YoukuHD.apk
exit

11)

Optionally install Tenfar's recovery, choose "Install Recovery System", give it root access and finally boot into recovery. REMEMBER to deactivate usb debugging before booting into recovery or it won't work!

12)

Optional: Black Notification Bar. Download froyo_theme_files.zip and extract it to the root of your sdcard. For UK Froyo you need other files!!

adb:

adb shell
su
stop
mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system
cp /sdcard/framework-res.apk /system/framework/framework-res.apk
cp /sdcard/services.jar /system/framework/services.jar
reboot

13)

Optional: If your cam flash shouldn't work, try wiping camera data using titanium backup. If this still doesn't help. Install 2.21 UK via RSD Lite, wipe everything and do a factory reset (in settings -> privacy). Your flash should work again.

14)

Minor tweaks:

-To remove the Chinese text in your call history, go to Settings > Call Settings > Number Attribution Settings and deselect "Location"

-Install "autokiller" (it's NOT a task killer) from the market and set it to "ultimate" (as the Defy has plenty of RAM). Once you've done this, no need to ever open the app again (make sure "autokiller" is set to "apply at boot" though). For me this improves performance and battery life.

-If you should have problems with 2G or 3G, this app might help: ItfunzBaseBandSwitcher.apk

You need root. For T-Mobile usa:美版基带 For EU: 欧版基带 Click and reboot your phone.