You are on page 1of 6

[GUIDE] All-in-One Defy Beginner's guide - xda-developers

http://forum.xda-developers.com/showthread.php?t=1216982

5,355,788 MEMBERS

51,105 NOW ONLINE

Remember Me?

Forgot your password?

> Motorola Defy > Defy General > [GUIDE] All-in-One Defy Beginner's guide

Page 1 of 70

MOST THANKED IN THIS THREAD


Tweet +1
Tip us?

[GUIDE] All-in-One Defy Beginner's guide


Zephyrot

Like

ALL-TIME

RECENT

13th August 2011, 11:59 PM (Last edited by Zephyrot; 9th September 2013 at 02:20 PM.) Reason: All dead links working again, Small corrections :)

#1

1 1 1

(quote) Use framaroot to root. hotdog125 2013-Nov-24 1:13

[GUIDE] All-in-One Defy Beginner's guide

(quote) Yup ! seemed strange to me SandeepRoy 2013-Nov-07 9:17

Senior Member - OP Thanks Meter 669 Posts: 458 Join Date: Dec 2008 Location: Stuttgart

(quote) Some time back I sent the OP TJKV 2013-Nov-07 9:13

TRENDING IN THEMER...

About this guide In this guide you will find all the information regarding the Motorola Defy. Ill try to explain as best as I can how this phone works, how to root, install SBFs, and most important: how this stuff actually works so you dont screw up your phone installing incorrect versions of Roms. Ill try to cover the eFuse system found in this phone as well as other Moto phones and how it actually works, this is fundamental to understand why you cant go back to old stock Roms once updated. **NOTE** I AM NOT responsible for any kind of damage your phone can suffer**NOTE**

Index

I just bought a Defy, now what?! Red, Green, Plus. What can I and can not do Facts Custom Recovery eFuse SBFs Fixed SBFs CG Versions Official SBFs RSD Lite Rooting How to flash CM7, MIUI, Various Custom Roms and going back to Stock Common Problems

I just bought a Defy, now what?!

Congratulations on your new phone! Now you need to know what defy you have! If you got a Defy+ then this part doesnt apply to you, so you can jump to the next one. If not, keep reading. If you got a new Defy, you could have a SOC or Bayer Defy, the difference between both Defy's is pretty much only the Camera Module, there is really no other difference. At first it was easy to determine which Defy model you had by just checking the Lens color, RED color meant Bayer module, Green Lens meant SOC Defy; sadly it appears not to be so easy to know which one you have now, since there are SOC Defys with Red Lens. The Camera Module is the responsible for receiving the "information" from the lens and then translating that into machine data. The Bayer module is capable of 720p video Recording and can take better pictures than the SOC module. At the moment is not known if the SOC module is actually capable of making 720p Recordings or if it is just a Driver issue; but for the time being there is no 720p recording for SOC Module. Almost all SOC Defys will have a Green lens; therefore you will find almost all ROM threads labeled compatible or not compatible with Green Lens. Usually a different installation or a patch is needed to make these roms work on Green Defys. The are a few ways to check which Module your Defy has, the best one and more accurate one though, is installing Catlog, starting it up and then start the camera. After starting the camera, go back to Catlog app, pause the logging, and search for "camera". There should be a couple entries, one of them should say either SOC or Bayer. Red, Green, Plus. What can I and cannot do With the 3 versions on the market, there is some extra caution to be taken. Green Defy users have to be careful when installing custom Roms since it may not be compatible without doing extra steps like patching or installing extra files. Defy+ must be very careful to what they flash on the phone. As of today there is no a full SBF** for the Defy+ (found here). This full SBF is a new CG Version**, with Android 2.3.6. You wont be able to go back to your Stock Defy+ Rom, but at least you wont kill it if something goes wrong. Most of this Guide is made only for the Defy, either Green or Red lens, and although the Defy+ is pretty much a Red lens Defy, a few things are NOT made for Defy+ users:

CM7, MIUI, Various Custom Roms and going back to Stock*** Common Problems*

Stuff in this list should be read even for Defy+ owners, but they cannot be applied yet to the Defy+s. *Not all of them apply to the Defy+ **explained later in the Guide. *** You CAN install CM7 and other Android Versions, the basics explained on this guide just do not apply to Defy+, as well as Downgrade to Stock.

1 of 6

12/2/2013 9:03 PM

[GUIDE] All-in-One Defy Beginner's guide - xda-developers

http://forum.xda-developers.com/showthread.php?t=1216982

Facts So, lets start doing a small sum up of what this phone can do. At first the Defy was presented as a low /med end phone. With 800 MHz CPU, no GPU, 2 Points hardware limited screen. It is well known nowadays that the Defy actually has a PowerVR 530 GPU, TI OMAP 3630 CPU and a screen supporting 10 Point multitouch. The Defy+ is basically a rebranded Defy, with Gingerbread, 1700mah Battery (instead of 1540mah) and its default CPU speed is 1GHz. It has the same internals as the original: Same CPU/GPU, Memory, Screen and so on. Defy+ comes always with a Bayer camera module, and so far there are no Defy+ variations. LOCKED Bootloader, what does this means? For some people is hell, for others (normally non advanced users) is a pretty cool insurance for their phone. This locked Bootloader thing means there is no (so far) way to rewrite the Stock Bootloader or the Stock Recovery. When the phone turns on the Bootloader basically starts all the hardware and make your phone come alive. Then we have the Stock Recovery, this little part of your phone is also locked and cannot be removed or changed from your phone, it will allow you to make Recovery stuff like Full Wipe (Data and Cache) and install Update.zip files. At first this became a problem, because with a locked Bootloader there is no way to install a Custom Recovery like ClockworkMod or install a new Rom. Here is where 2nd Init comes to play, this little awesome app kicks in right after the Bootloader and allows the Defy to load a different, non-Stock Android. With this, you can also install a Custom Recovery, which runs from the Internal Memory, and is not ran from the Recovery Partition (remember: locked, not accessible) what does this means? That even screwing up your phone, deleting all your stuff, or screwing /system partition the phone can still get into Recovery, be recognized by RSD Lite in Bootloader Mode and be flashed with a Stock or modified Rom (more on this later) and it will come back to live normally. Thanks to this locked Bootloader, is really, really hard to Brick your Defy. Most of the issues seen on the Forums are NOT Bricks, just incorrectly flashed SBFs (more on this later ). With brick one mean the phone has no access to the Bootloader or cant initialize its hardware, requiring you to use a JTAG to directly reprogram the phone (which Im not sure is possible on the Defy). Custom Recovery A custom recovery is a special "App"** that comes in a separate partition in your phone. This "App"** allows Android Phones to do recovery tasks, like deleting data, installing recovery Zips and so on; The tasks you are allowed to do with Stock Recovery are pretty basic. Here is where Clockwork Mod comes into play. CWM is a Recovery that allows you to not only do basic tasks but also create Nandroid Backups, Restore Them, Fix Permissions and quite a lot of other useful stuff. Normally a Custom Recovery is installed by flashing the Recovery Partition in your Android Phone with a Custom Image, but since our Defy comes with a Locked Bootloader, this is not possible. Leaving us without many options to proceed. And that's why we have 2nd Init, this application is what actually installs CWM in the Defy, it does it by installing it in your internal memory and not in your Recovery Partition and then pointing the Android system to it right after the Stock Recovery boots. **Is not actually an App, is more like a Linux Console with UI so you can recover. eFuse Here comes a really important part on how the flashing works and why is problematic for some people, it is not explained anywhere. It actually took me more than a month before I started modifying my Defy because this information is really scattered around the web and I dont like to do things I do not understand So, to the eFuses; this Technology was developed by IBM, is a really cool tech that allows some chips to actually change their internal wiring, and reprogram themselves. How is this used on the Defy (and the Droid too)? Well, see this system as a bridge, each time you flash a new update to your phone you burn a bridge, the information went to the other side, but there is no coming back. Here comes most of the issues we have with the Defy, once you update to a higher version of your Android, there is no way to come back. (There are some tricks, explained later). This lead us to the next part of the Guide, where I will explain you WHY you cant go back and how this actually works. SBFs SBF is how Motorola packs all the information to be Flashed on your phone. Inside this package are a lot of other files, each of these files named with CGXX where XX is a number. So when you Flash a Full SBF, it takes the phone memory, format it, create the partitions and then copy the information inside these partitions. Each partition corresponds to a CGXX file. Here is where the eFuse thing kicks in. There are a couple of CG files containing the version number of the Android you are flashing. So lets say you are on clair Stock, first version, no updates no nothing. This version has a Version 1 number. When the phone gets updated, this version changes to Version 2 for example. Each Android version has each own ID, once you go up, you CAN NOT go back, and this version is in CG31 AND CG39 files inside the SBF.

FIXED SBFs Is a modified SBF without the CG31 and CG39 files, thus allowing to move between Android Versions freely. Since the Fixed SBF creates all partitions but /System (CG39) and CDT (CG31), we need to copy System data using a Nandroid Backup or the phone will probably not work using the existing /System. Nandroid Backup This is just a .zip file flasheable with a Custom Recovery, this will Delete/Copy all the files in the /System and other partitions (depending on the Nandroid) without formatting or remaking the partition thus not modifying the system layout, eFuse or stuff; this is almost harmless, meaning you CANT brick your phone doing it, though you can make Android not boot and a new SBF or Nandroid would need to be installed. CG Versions With that explained lets get to business with versions: CG Version 2: SBF 2.21 / 2.34 / Chinese (clair) (Defy) CG Version 3: SBF 2.51 (clair) (Defy) CG Version 4: SBF 3.4.2 (Froyo) (Defy) CG Version 5: SBF 4.5.0 / 4.5.1 (Gingerbread) (Defy) CG Version 6: SBF 4.5.1 (Gingerbread, 2.3.5, (Red lens Defy/Defy+) ) CG Version 7: SBF 4.5.1 (Latests Gingerbreads, 2.3.6, (Red lens Defy/Defy+) ) If you try to flash a lower ID version than the one already on your phone, you will just get a Black screen after booting or a screen telling you to flash an official rom. So, with this in mind, you can now hop between Android versions without screwing up your phone. If you have an clair Defy and would like to keep the ability to downgrade to it, you should ONLY install FIXED SBFs of the Android Version you want to install, and then use the corresponding Nandroid Backup for that Fixed SBF. For a full list of Roms and their respective CGs go here Official SBFs Here is a list of all the Defy Official SBFs and Defy+ Official SBFs that means that they come with ALL CGs, these SBFs put your phone like Motorola sold it to you, just need to keep in mind that going UP in versions with FULL SBFS <WONT> I repeat, <WONT> allow you to go back to an older version. Knowing this you should be able to test every single Android version out there and being able to go to Stock without issues. Just be sure to understand how CG versioning works and you should be fine.

2 of 6

12/2/2013 9:03 PM

[GUIDE] All-in-One Defy Beginner's guide - xda-developers

http://forum.xda-developers.com/showthread.php?t=1216982

RSD Lite RSD Lite is an App used by Motorola to Flash Smartphones. It can revive mismatched Nandroid/Fixed SBFs, Black Screens, failed flashes etc. Even though is really, really hard to completely brick a Defy, it is possible; a corrupted SBF, power failure on a critical part of the formatting, or some weird issues while creating partitions can lead to a Bricked Defy. If you can, always flash your Defy from a laptop so the power is not an issue, use good cables, and be sure the PC doesnt go to sleep when is not being used. Also, when flashing SBFs, is normally advised to put your SBF in your PC Root directory (C:/ ) or whatever it is in your PC and rename it to a short name like Defy.sbf, why? Because sometimes the Path name is just too long and RSD Lite throws errors not allowing the phone to be Flashed. Rooting So, whats rooting and why everyone talks about it. Phones come locked , this means users can only do basic usage of their phones, installing/uninstalling apps, wallpapers and basic stuff. You can see but not touch any System file, or change the actual behavior of Android. Rooting just means you have access to your phone like an Adinistrator, meaning you can access and change system files, delete/create files and folders and so on. To be able to install Apps like 2nd Init that need to access Android System files your phone needs to be able to write and acess these files. Thankfully, rooting the Defy is a rather simply and usually harmless task. How to Root: (NOT for BL7) 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. Get SuperOneClickRoot Get and Install Motorola [Drivers ] Reboot your PC Turn USB Debugging ON (Settings -> Applications -> Development on your Defy) Connect your Defy to the PC Wait for the PC to install any missing Drivers Click on Root Let it work, then it will ask if you want to install BusyBox, hit YES After it finished it will ask to make a test, click cancel and just Reboot your Defy Done, Defy rooted

How to Root BL7: 1. 2. 3. 4. 5. Enter Recovery, Wipe Data/Cache Download this SBF and Flash it Enter Recovery, Wipe Data/Cache Download Part1 and Part2 SBF and Flash it Enter Recovery, Wipe Data/Cache

How to Flash Ok! Now that we understand how a lot of stuff works, its rather easy to get a new Android version installed on your phone. For any full SBF the same steps must be always done, just be sure to know what SBF are you flashing and keep always in mind your CG Version to keep the possibility to downgrade in case you need your warranty. Requirements

Get the SBF you want to flash - Full SBF: No Nandroid backup needed, always keep CG versioning in mind. - Fixed SBF: You might need a matching Nandroid Backup. Get and Install RSD Lite v4.9: There are reports of other versions working, but this one is what I have used. Get and Install Motorola [Drivers ]

Now to Business: To Flash full SBFs, here is the standard procedure:

1. Open RSD Lite: Click on [ ] Button and select your .SBF (Remember to rename to a short name and put it on root of your PC) and click Open. 2. Boot your phone into Bootloader Mode (check last section if you dont know how to do it). 3. Now connect your Defy to your PC 4. The START button on RSD Lite should be available now, click and wait.

For Fixed SBFs a slightly different method is needed, it's basically the same but you need to Wipe Dalvik Cache and Data before flashing. Then after flashing you need to enter immediately to Recovery and restore the matching Nandroid Backup. I wont write a specific way to do it here, since most of these versions require different steps (for Example CM7 or MIUI), so is better to check a specific guide for your Custom ROM or Android version. CM7, MIUI, Various Custom Roms and going back to Stock. Now, if you want to go to CM7 or MIUI Roms, there are good tutorials on how to do it. I will just explain here how the procedure works so you know what you are doing and not only follow step 1, 2 and 3, which usually leads to issues if anything goes not exactly as written. There is no way to flash a full SBF with CM7 or another rom. What is being done in these cases, is just use a base Android, be it CEE, Localized EU, clair, whatever. Quarx recommends using JRDNEM_U3_3.4.3-11_BLUR_SIGN (not anymore, old) 3.4.2-179 CEE Deblur SBF. But this is not NEEDED; Im running CM7 with German 3.4.2.177-3 and is running perfectly. Then, restore a Nandroid Backup of a CM7; it will copy all the new stuff into your partitions and wont remake them, keeping all the signatures, security and stuff intact. Here is a good Guide to install CM7: How to Flash CM7 To downgrade from any of these Roms all you need to do is install a Full Stock SBF (remember to check CG Versions!) and done, phone back to Stock. There is another way to install a lower version of Android without using a full SBF, and it is installing a Fixed SBF of a lower Android version, then restoring its matched Nandroid Backup. Common Problems/Questions

Black Screens when booting up: (!) Tried to install a version of Android with a lower CG Version than the one currently on the phone. Weird behavior after installing a Fixed SBF: Install a matching Nandroid backup with your SBF, and remember to clear Cache/Dalvik Cache using Recovery. Installed full Gingerbread SBF and cant go back to another rom: (!) aha! We have a issue here!, latest Stock Gingerbread full SBFs comes with a Version 5 of the CG, meaning until not long ago you were pretty much screwed. But wait, there is hope! A one kind clair has been found in China Defys that comes with Version 5 CG!. How to fix it: Method 1:

1. Download this SBF and Flash it

3 of 6

12/2/2013 9:03 PM

[GUIDE] All-in-One Defy Beginner's guide - xda-developers

http://forum.xda-developers.com/showthread.php?t=1216982

2. 3. 4. 5. 6. 7. 8. 9.

Root your Phone Download 2nd Init 1.4.2 and Install ClockworkMod Recovery Download and install this Nandroid Backup << File is Back, thanks Ichibanme again!>> Enter Recovery, Wipe Data/Cache After wiping, turn off your phone Turn it on and get immediately into Bootloader mode Flash this Fixed SBF Delete Data/Cache again and reboot.

**NOTE*: I just rephrased the original post since it can be a bit confusing, it is linked as source below. **NOTE2**: If you are using a non-Chinese defy, DO NOT USE THE CAMERA FLASH while on the Chinese rom, it WILL kill your LED. Source: ((Original post here))[ Method 2: (BIG thanks to Jebrew again for this one) NOTE: You are going to need CM7 for this one. CM7 Stable version recommended.

1. 2. 3. 4. 5. 6. 7. 8. 9. 10.

Download this SBF and Flash it. Root your phone. Download 2nd Init 1.4.2 and Install ClockworkMod Recovery. Reboot to CMW recovery, and wipe Data/Cache. Install CM7 then install Google Apps. Reboot an go into Stock Recovery (using the vol- button, not from Bootmenu). Do a Data/Cache Wipe or you won't have any space when you're done. Flash this Fixed SBF Reboot into your nice new rom. Do not Wipe Data anymore or you will have to start again.

You WONT be able to install full SBFs of any clair or Froyo since these Androids have lower CG Versions. How to Install CM7 after Installing a Full Gingerbread SBF: (!) Ok, first of all do all the steps above on "Installed full Gingerbread SBF and cant go back to another rom"

1. 2. 3. 4.

Root your Defy (Using SuperOneClick 1.7 and not 1.9). Install SystemRecovery from GoAPK. If you install 2nd init, you'll just get into a boot loop and have to start over. Reboot to recovery. Do a factory wipe, then do the cache wipe. Install CM7 .Zip and then gapps zip file. DO NOT wipe again, you'll just go back to 2.2.2 CEE (if you accidentally do this, you can pick up again from step 3). 5. profit!

Thanks jebrew for the info. I installed a Full SBF/installed CM7/other Android version and need my warranty: (!) Ok, this pretty much depends what have you installed and on which zone you are. Try to keep ALWAYS your phone ability to downgrade to whatever version is supported in your region. For example I have a German Defy, we have SBF 3.4.2 (Froyo) officially deployed, this means all I need to do to go back to Stock and claim my warranty is download the Stock 3.4.2.177-3 version and Flash the full SBF. If your zone only has clair officially deployed then you should never ever flash Full SBFs with anything higher than clair, only Fixed SBFs, then in case you need your warranty, just Flash your zone full SBF and done, back to Stock and hi2u Warranty. Full Stock SBFs will put your phone to the state Motorola sells that Android Version. If you install the same SBF you had, it will be like new. How do I enter Recovery Mode?!: With the Phone off press VOLUME DOWN then, while still pressed, power up the phone and leave VOL key pressed until you see a Yellow triangle, once you see this you are in Recovery now press Vol Up and Vol Down at the same time (if you are in Froyo) and the menu will appear, if you are on clair the menu should appear without having to press anything. How do I enter Bootloader Mode: With the Phone off press VOLUME UP, then while still pressed power up the phone. Keep the Vol key pressed until a black screen with some white letters appear. This is the Bootloader. After Upgrading to Froyo my Defy is laggy, slow or reboots: (!) This is a common issue when coming from Eclair to Froyo. If this happens to you, just do a full wipe (Delete Data/Delete Cache on Stock Recovery), after that your phone should work correctly. Stock Froyo sometimes lags and/or freezes the phone: (!) Its caused by the VM consuming all memory, all you need to do is adjust the amount of MB the VM should leave free. There are a few ways to do it:

Use a terminal emulator, or use GScript Lite to run this:


Code:

su; vm.min_free_kbytes=8192;

(Not permanent, need to be ran every time you reboot) Get Sysctl and change vm.min_free_kbytes to 8192. Get SetVSel and tap on increase vm.min_free_kbytes to 4096.

How do I make/restore these Nandroid Backups everyone is talking about?: Nandroid backups are made using Clockworkmod (CWM). Enter the Custom Recovery, go to Backup and Restore and create your Backup. To restore use the same method but Restore instead of Backup :P I downgraded from CM7 to Stock / Installed a new SBF but I'm having bootlops: (!) If this is happening to you, after flashing the Stock SBF, enter in Stock Recovery and do a full wipe (Data/Cache) and reboot. I have issues with my Battery Readings / Battery charge suddenly Drops: This issue is caused by a cheap battery reading implementation. If you want to know more about it, and how to get more accurate readings on your Defy, please go to: Defy Battery Drops Explained. Thanks jusid for the detailed explanation! (!) NOT for Defy+

If you find this Guide useful, please remember to click the Thanks button
ATTACHED THUMBNAILS

The Following 570 Users Say Thank You to Zephyrot For This Useful Post: [ Click to Expand ]

vap_66

14th August 2011, 12:27 AM

#2 .

Thank you for putting all this useful information together. It should be made sticky

4 of 6

12/2/2013 9:03 PM

[GUIDE] All-in-One Defy Beginner's guide - xda-developers

http://forum.xda-developers.com/showthread.php?t=1216982

Senior Member Thanks Meter 506 Posts: 790 Join Date: Jun 2011

The Following 2 Users Say Thank You to vap_66 For This Useful Post: [ Click to Expand ]

kidrobot52

14th August 2011, 04:53 AM

#3

Wish I would've found this post three days ago. But you learn from trial and error. Made alot of errors but looking good now. Sent from my MB525 using XDA App Sent from my None powered android device. iPad 2- Jailbroken absinthe iphone- stock (wifes) Sprint Galaxy Nexus Baked with BlackBean3 Asus Nexus 7 (stock and unlocked) Eye for an eye makes the world blind. -ghandi

Senior Member Thanks Meter 37 Posts: 149 Join Date: Oct 2010 Location: NYC

The Following User Says Thank You to kidrobot52 For This Useful Post: [ Click to Expand ]

djc151084

14th August 2011, 09:48 AM

#4

This made a very good read thanks for compiling all this information. djc

Senior Member Thanks Meter 42 Posts: 230 Join Date: Aug 2011

scottie1973
Member Thanks Meter 11 Posts: 87 Join Date: Jun 2011

14th August 2011, 12:13 PM

#5

great guide,i agree it should be "sticky".

zakoo2

14th August 2011, 01:59 PM

#6

yeah, it definitely needs to be a sticky, would make a lot of defy newbies' life easier
Google Nexus 4 [16GB] | CyanogenMod 10.2 | franco kernel [JSS] Morotola Defy

Senior Member Thanks Meter 351 Posts: 1,258 Join Date: Mar 2011 Location: Budapest

juried
Senior Member Thanks Meter 52 Posts: 216 Join Date: Jan 2011

15th August 2011, 03:35 AM

#7

Thanks!!! (button pressed) Sticky +1

gramps50
Member Thanks Meter 10 Posts: 86 Join Date: Feb 2011

15th August 2011, 04:38 AM

#8

Great Guide, wish it would have been around when I decided to flash my Defy. Sure it will help those is the future. Thanks for taking the time to put all this information is one place. I to would say +1 for Sticky

THBlurism
Member Thanks Meter 10 Posts: 42 Join Date: Jul 2011 Location: Chiangmai

15th August 2011, 05:17 AM

#9

This's the great work, it's easier for the beginner Thanks

Zephyrot

15th August 2011, 08:06 PM

#10

5 of 6

12/2/2013 9:03 PM

[GUIDE] All-in-One Defy Beginner's guide - xda-developers

http://forum.xda-developers.com/showthread.php?t=1216982

Nice to see people has found usefull my Guide, would be awesome if it became Sticky >< If you have suggestions, more important information to add, send me a PM and I'll fit the info in there.
Senior Member - OP Thanks Meter 669 Posts: 458 Join Date: Dec 2008 Location: Stuttgart

Sorry I didn't post it before hehe, took me like 5 days to write everything and make it as simply and understandeable as possible.

The Following 11 Users Say Thank You to Zephyrot For This Useful Post: [ Click to Expand ]

TAGS
beginner's guide, defy cm7, defy guide, defy rooting

Page 1 of 70

> Motorola Defy > Defy General > [GUIDE] All-in-One Defy Beginner's guide

Previous Thread | Next Thread

XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality. Are you a developer?

More Info: Contact | Rules | Change Log | Suggest Content | Privacy Policy | XDA App
Copyright xda-developers. Powered by Searchlight 2013 Axivo Inc.

6 of 6

12/2/2013 9:03 PM