• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root D2 "ezSBF" 2.3.4/4.5.621 with magic md5 root option

themib

Android Expert
Jul 25, 2011
778
165
South Dakota
tinyurl.com
updated many times see change log

[ROOT] Framaroot, a one-click .apk to root
I have verified it works with these Motorola devices running android 2.3.4
Droid 2 (a955), Droid 2 Global (a956), R2D2 (a957), & Droid X (MB810)

Just download, allow unknown sources, install, open, select top root method (Gimli), reboot phone, done

no pc needed.



----------------------------------------------------------------------------------

[Video] How to ezSBF plus Root the Droid 2 on android 2.3.4-Tomsgt123

download from here
https://docs.google.com/document/d/1hCPt64in4qqy459FvqBy_CKVqNlYXwj8yq2P6QQOLjQ/edit#
for current links

created by phifc modified by bhigham

3 options
Multi-Device Root (54mb)
Droid2_621_SBF-and-RootCD.iso (213mb)
Droid2_R2D2_A957_2.3.4_SBF_and-or_RootCD.iso (250mb



How this works
Originally Posted by phifc
There's an exploit in loadpreinstall.sh. It compares md5 sum files of preinstalled apps and if they're different, copies the md5 to the local cache. The preinstall just has an empty file in app/ so it will parse the md5 for it. Instead of an md5 sum, it contains a local.prop that allows adb root shell. So the system thinks it's copying the md5sum to the cache when it bounces off the symlink and overwrites the /data/local.prop, giving adb root on next reboot

what is ezSBF?
original [TOOL] ezSBF (not for 2.3.4)

Don't let the word Linux scare you, this is just a cd you burn, nothing installs to your pc. Once you burn this CD you are ready to SBF flash anywhere you have a computer, no net connection needed to download any files.

This is an .iso file. It is a complete Linux operating system that you will download, burn to CD (or USB) then boot your pc from CD or USB, this allows your pc to reboot into a different operating system.

Instructions (Mac):
Download .iso
Use Disk Utility (built in) to burn iso file to a CD (instructions)
Shut computer down
Hold c key, push power and hold c until you see the Linux OS start
Hit enter at the yellow "boot baby... boot" screen
You will see yellow dots for 3-5 minutes then the script will start

Instructions (Windows):
Download .iso
Burn iso image to a disk (Instructions, Windows 7 - Vista and XP) or (Load to a USB flash drive)
Reboot PC
Hit F12 (sometimes F8 or esc) during boot to go to boot menu (possibly google search how to boot your specific pc from CDROM)
Select boot from CDROM (or USB if you used a flash drive)
Hit enter at the yellow "boot baby... boot" screen
You will see yellow dots for 3-5 minutes then the script will start

Live USB Instructions (Windows):
(Instructions from pendrivelinux.com)(thanks)
Download
UNetBootin for Windows
Download your favorite Linux ISO
Double click the Unetbootin Executable to start the program
(1) Click the Diskimage radio box
(2) browse to select your ISO
(3) Set your target USB drive
(4) click OK to start the creation

unetbootin-live-usb-iso.png


(5) After the USB drive is done select reboot.
(6) During boot enter the boot menu and change USB to boot first, save and reboot.
(7) When booting from UNetbootin select SliTaz


________________________________________________

You will now be in the script and ready to flash.


select D2 for multi device root cd or /select root for the Droid2_621_SBF-and-Root CD
don't use numbers on right side of you keyboard, just use the ones above qwerty

turn phone on, connect to pc with usb cable

on phone check usb debugging (settings/apps/development)
on phone select charge only usb mode

on pc press continue
program will use adb to push
Code:
data/local.prop /data/preinstall_md5/magic.md5
manually reboot phone to bootloader
program will flash repacked sbf (less than 50mb)
program will reboot twice, very important (reboot just replaces the local.prop, but the old local.prop is still in memory, till second reboot)
adb pushes su,superuser, and busybox
program will reboot to recovery,
manually press both volume buttons when you see !, triangle, & android andy
manually select wipe cache
manually select reboot
rooted

error info
when running program you may see these errors
rm failed for /data/preinstall_md5/magic.md5 no such file or directory
no root.img.gz no such file or directory
rm failed for /data/preinstall_md5/magic.md5 read only file system


that is fine, it will still work



if you plan on creating nandroid backups or flashing roms read
[HOW TO] Install/Use Droid 2 Bootstrap




Older Methods see instruction by phifc below
windows Batch file (uses rsd lite)
Linux batch file (adb and sbf_flash)
Linux manual (adb and sbf_flash)

original thread New root method for stock 2.3.4 (621/622) found (Droid2, R2D2) - Droid 2 / R2D2 / Milestone 2 / Droid 2 Global - RootzWiki
Posted by phifc (OP)

This is for original Droid2 and Droid R2D2. If you have issues b
ooting after root, check the end of this post.

I've been working on root for a few days after having to flash stock 621. I've tested this with my R2D2 running 621.

7/25/2012 - Thanks to beh for putting together an EzSBF cd for this! Just burn, boot from CD and follow the directions. It can flash to the stock 621 update for those that want the stock Gingerbread image, then gives you the option to root if you like. You can also create a bootable USB stick with the iso using UNetbootin - Homepage and Downloads

Droid 2 621 EzSBF with root option
The MD5 is
e50bc7914c4852ca32e9f08f7744c056

The instructions below work, but beh's EzSBF is far superior.

If you want to use CyanogenMod 7.2 after root with this method check this post.

I've been working on root for a few days after having to flash stock 621. I've tested this with my R2D2 running 621.

Windows
Install Motorola drivers and RDS Lite.
Get RootDroid2 file, extract folder, run RootDroid2.bat and follow the instructions.
You'll have to flash the phone as part of the process.

Linux (Easy way)
You'll need adb and sbf_flash.
1) Download the RootDroid2 file, extract it wherever you like.
2) Using adb enter
Code:
adb shell ln -s /data/local.prop /data/preinstall_md5/magic.md5
3) Flash using sbf file in download.
4) Reboot
5) adb shell will now be root

Linux (Long way)
What you need: Stock SBF (thanks to droid-developers.org), custom preinstall.img, adb (from android sdk), and sbf_flash

1) Enable USB debugging on your phone and send this adb command:

Code:
adb shell ln -s /data/local.prop /data/preinstall_md5/magic.md5

2) Unpack the custom preinstall file, then reboot your phone into flash mode by holding the up arrow on the keypad. Then send the custom SBF file with sbf_flash:
Code:
sbf_flash -r --preinstall preinstall.img <stock sbf filename>

(For example, I used 1FF-p2a_droid2_cdma_droid2-user-2.3.4-4.5.1_57_DR4-51-120117-release-keys-signed-Verizon-US.sbf so the command is "sbf_flash -r --preinstall preinstall.img 1FF-p2a_droid2_cdma_droid2-user-2.3.4-4.5.1_57_DR4-51-120117-release-keys-signed-Verizon-US.sbf")

3) Wait for phone to boot after flashing, then reboot again one final time.
4)
Code:
adb shell
should give you a root prompt (# instead of $)

5)Send superuser utils from Superuser

Code:
adb shell mount -o remount,rw /dev/block/system /system
adb push su /system/bin/su
adb shell chmod 4755 /system/bin/su

Code:
adb push Superuser.apk /system/app/Superuser.apk
adb shell chmod 644 /system/app/Superuser.apk
adb shell mount -o remount,ro /dev/block/system /system

Thanks to Dan Rosenberg (djrbliss) and those that helped him researchhttp://vulnfactory.o...ng-the-droid-3/ for ideas :)

for basic SBF and RSD lite info read The DROID Wiki

First, where do i download all these tools like motorola drivers and RSDlite? Do i put them on my phone or my PC?
use pc, links are baked into text just click on name of file
moto drivers USB and PC Charging Drivers - Motorola Mobility, Inc. USA
...Where do i enter this adb command?...
abd in command prompt start/search cmd.exe
...What version of software will be on my droid 2...
same version, rooting alone doesn't change that, rooting just gives you access to change system files/settings



My Links
Magic MD5 Root 2.3.4 for D2, R2D2, D2G, DX and 2.3.5 for DX2 - Google Docs

sd_shadow's [Collection] of Links: FAQs, Guides, Rooting, SBFs, ROMs... - Google Docs



edit
10 oct 2012 totally reorganized post/ added info and links
17 oct 2012 added D2 to title
26 oct 2012 added mirror
02 dec 2012 changed download links
09 Dec 2012 major rewrite
26 April 2013 added Framaroot link
 
  • Like
Reactions: Raley
You will see yellow dots for 3-5 minutes then the script will start
select D2
turn phone on, connect to pc with usb cable
check usb debugging, select charge only usb mode
press continue

At the "press continue" is where my experience breaks down. I see 4 options, to flash, to root, and other things. There is no continue to speak of.
I have tried doing both the flash and root and from what I can grasp in the screen that flashes afterwards is there are a few lines that say "bad number". So what is going wrong?

I used the boot from CD method. The phone was previously rooted, but I'm guessing the OTA broke root. This is my wife's phone so I don't mess with it unless I have to.
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones