D2 "ezSBF" 2.3.4/4.5.621 with magic md5 root option
updated many times see change log
root created by
phifc modified by
bhigham
3 options mirror links posted
Magic MD5 Root 2.3.4 for D2, R2D2, D2G, DX and 2.3.5 for DX2 - Google Docs
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
(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
program will prompt you to
manually reboot phone to bootloader, To put your D2G(/D2) in bootloader mode, power down and power on while either holding both volume buttons, or the up arrow on the keyboard.
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
by bhigham -One item of note with this CD, it does require at least 1GB of RAM in order to work properly. Also, if you only have 1GB of memory, and you need to both SBF and root your phone, it will be necessary to reboot the computer after flashing the .629(or .621)SBF. If you are unsure of the amount of RAM that you have, go ahead and reboot to be on the safe side.
Also, I noticed that I neglected to put instructions for putting your phone in bootloader in the SBF Step. To put your D2G(/D2) in bootloader mode, power down and power on while either holding both volume buttons, or the up arrow on the keyboard.
if you plan on creating nandroid backups or flashing roms read
[HOW TO] Install/Use Droid 2 Bootstrap
Using Oracle VM VirtualBox, and Magic MD5 root iso
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)
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
edited:
02 Oct 2012 added mac info
10 Oct 2012 added error info
19 Oct 2012 total reorganized post
26 Oct 2012 added mirror
05 Nov 2012 added 622 sbf
09 Dec 2012 major rewrite of instructions