Step 1: Presuming your device is running unrooted Gingerbread, you’ll need to ask for a rooted gingerbread userdata partition image (aka CG37), with a modified local.prop file and USB Debugging enabled.
Step 2: Next, you’ll need to alter the value of ro.sys.atvc_allow_all_adb from 0 to 1.
Step 3: Then, create a userdata partition image by typing the following in the shell (with root access)
dd if=/dev/block/userdata of=/sdcard/CG37.smgStep 4: Once your CG37.smg is on the SD card, you’ll need to boot into linux
busybox dd if=/dev/block/userdata of=/sdcard/CG37.smg
Step 5: In Linux, you’ll need to extract the contents of the folder found in this .zip, after which, you should also copy CG37.smg and your original, non-rooted SBF into that same folder.
Step 6: Start terminal (with root permissions), and type in:
cd <folder>(instead of <folder>, write the location of the folder we made in Step 5)
Step 7: Resize that partition to 200 Mb, by typing the following:
efsck -f CG37.smgThen, type
resize2fs CG37.smg 200M
chmod +x sbf_flashStep 8: Start your Motorola phone into bootloader and connect it to your PC before typing:
./sbf_flash -r –userdata CG37.smg ORIGINAL.sbf(change "ORIGINAL" with the name of your SBF)
Step 9: Once the device has booted up, type:
bash finishroot.shAnd that’s it. If you followed all of the steps correctly, your Motorola smartphone should be rooted on Gingerbread!