root any BL7
I'm a courious reader of the developer section and got a lot of ideas and mods for my defy+
Thanks to all that share their wisdom with us.
Now is my turn to share my improvements in rooting a BL7 image.
Acctually I just wanted my own stock image (german) to be rooted too.
What you need:
1. an already rooted Defy (the CN or CEE 4.5.1-134 DFP-231) with Custom Recovery (take the latest that does .tar backups

e.g. use SndInit Defy 2.3) [to do a backup of your running system]
2. MotoAndroidDepacker - [to extract the system CM39.smg of your prefered SBF and more

]
3. a running linux (e.g. knoppix might do) - I prefer a virtual machine with opensuse - [to extract the system and recompress]
4. get SuperOneClick for the su, busybox binaries and Superonclick.apk
5. MD5 hash calculator
Steps:
I now just explain the steps in short to get the system (CM39.smg) rooted and on your phone.
1. do a backup of your rooted phone with custom recovery (I personally did a factory reset from within custom recovery before i did the backup - not shure if you need to do it to prevent crappy data to interfere with your upcomming firmware)
2. use MotoAndroidDepacker (there is a windows .Net and a linux Mono version) to extract CM39.SMG (system image) of your prefered SBF (I used the german 4.5.1-134 DFP-231 retail en.DE)
3. mount the CM39.SMG
Code:
sudo mount -o loop /tmp/cm39.smg /mnt/defy
4. copy all files to a temporary folder - the name must be system
Code:
cp --preserve=all -r /mnt/defy /tmp/system
5. copy
busybox and
su to
/tmp/system/bin - set permissions (I think it was chmod 755 su + chown root:10001 su)
6. copy
Superuser.apk to
/tmp/system/app - set permissions (chmod 755 Superuser.apk + chown root:root Superuser.apk)
7. create an tar archive of your work
Code:
cd /tmp
tar cvf system.ext3.tar system
8. genarate MD5 hash of the tar file
9. copy the system.ext3.tar to your custom recovery folder with the backup, edit the nandroid.md5 file and replace the system.ext3.tar hash with the new one
10. recover the backup
-> enjoy
To get all stuff out of the prefered SBF just depack the SBF with MotoAndroidDepacker, delete cm39.smg, recompile the folder to an SBF and flash the SBF with RSDlite - actually i did this task before making the backup of my old system