Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,736,395 Members 48,189 Now Online
XDA Developers Android and Mobile Development Forum

[HOWTO] Root any Atrix after .sbf flash

Tip us?
 
brandon15811
Old
(Last edited by jug6ernaut; 26th July 2011 at 01:13 AM.)
#1  
Member - OP
Thanks Meter 13
Posts: 45
Join Date: Dec 2008
Default [HOWTO] Root any Atrix after .sbf flash

See 2nd post for International users and Fastboot rooting.


For ATT users only:
What this is:
This is a full clean SBF of 2.3.4 or 1.8.3 WITH the BL unlock and rooting built in to /preinstall.

Flashable SBF: Full 2.3.4 with preinstall root and pudding bootloader unlock, full sbf
Flashable SBF: Full 1.8.3 with Bootloader unlock and preinstall root. It's over 9000 (600mb DL service sbf)

1. Flash with RSDLite 5.3.1 or sbf_flash

2. Root your phone from adb
Code:
  adb shell
  /preinstall/restoresu
3. If you don't have superuser.apk do this as well
Code:
/preinstall/restoresu all

Apparently I am a terrible scripter, so follow eval-s instructions from here:
Quote:
type in adb ("adb shell") or terminal emulator, exactly:
Code:
/preinstall/dosu
/bin/mount -o remount,rw /system
cp /preinstall/su /system/bin/
chmod 6755 /system/bin/su
PATH=/system/bin:$PATH pm install /preinstall/Superuser.apk
The last step is optional (and next-to-last *should* be unnecessary), as you can install Superuser however you like. In fact, if you've installed it, simply typing "/preinstall/su" is another way to root, and you could then mount /system read-write and copy it into /system/bin.
4. Enjoy

Lastly, you can make your own preinstall pretty easily, include any kind of mod you want P_ROM etc. For instance when I reinstall I always want to install wget and crond, turn off tomoyo permissions and disable the usb plugin sound. You can put apps in /preinstall/app then make a md5sum file in /preinstall/md5 and apks will get loaded on reboot every time you flash. This is more of a fyi for those of you out there cooking up sbfs. you've got a huge partition to play with so I'm sure people out there can come up with creative ways of using it.
The Following 8 Users Say Thank You to brandon15811 For This Useful Post: [ Click to Expand ]
 
eval-
Old
(Last edited by eval-; 18th July 2011 at 01:41 PM.)
#2  
Retired Recognized Developer
Thanks Meter 331
Posts: 227
Join Date: Sep 2008
Hi guys.. here is a useful little /preinstall for you (attached)

Put phone in fastboot mode, then:
Code:
fastboot flash preinstall preinstall.img
fastboot reboot
(older versions maybe need "fastboot -i 0x22b8")

after fastboot & reboot, type in adb ("adb shell") or terminal emulator, exactly:
Code:
/preinstall/dosu
/bin/mount -o remount,rw /system
cp /preinstall/su /system/bin/
chmod 6755 /system/bin/su
PATH=/system/bin:$PATH pm install /preinstall/Superuser.apk
The last step is optional (and next-to-last *should* be unnecessary), as you can install Superuser however you like. In fact, if you've installed it, simply typing "/preinstall/su" is another way to root, and you could then mount /system read-write and copy it into /system/bin.

Many thanks to Brandon & The2d for brainstorming this out in a crazy "there's no way it could be possible" rooting session. There were a lot of harder ways... who knew we'd be so lucky! And thanks to Edgan for the great "dosu" =)

You can find fastboot here: http://forum.xda-developers.com/show....php?t=1138092
Attached Files
File Type: zip preinstall.zip - [Click for QR Code] (7.98 MB, 15775 views)
The Following 49 Users Say Thank You to eval- For This Useful Post: [ Click to Expand ]
 
kennethpenn
Old
(Last edited by kennethpenn; 24th June 2011 at 02:02 AM.)
#3  
kennethpenn's Avatar
Retired Forum Moderator / Retired Recognized Developer
Thanks Meter 3793
Posts: 2,702
Join Date: Nov 2006
Location: Washington, D.C.

 
DONATE TO ME
Woohoo! 10 char!
The Following 3 Users Say Thank You to kennethpenn For This Useful Post: [ Click to Expand ]
 
cranch
Old
#4  
cranch's Avatar
Senior Member
Thanks Meter 45
Posts: 350
Join Date: Mar 2011
Location: Minneapolis
Love you long time! Congrats on figuring this out!
 
neotekz
Old
#5  
Senior Member
Thanks Meter 156
Posts: 1,330
Join Date: Oct 2007
Location: Ottawa
i just unlocked my phone and wanted to root, i installed the img but when i try to enter /preinstall/dosu it gives me file path not found. do i need to reboot or something after flashing the img?
 
Fausty
Old
#6  
Member
Thanks Meter 1
Posts: 43
Join Date: Aug 2009
Location: Sydney, AUS
Worked a treat with gingerbread! Thanks a lot guys!
For some reasons, could not adb to go, so had to do it with the terminal but it's all good!
 
airbillion
Old
#7  
Senior Member
Thanks Meter 11
Posts: 500
Join Date: Jan 2008
Quote:
Originally Posted by neotekz View Post
i just unlocked my phone and wanted to root, i installed the img but when i try to enter /preinstall/dosu it gives me file path not found. do i need to reboot or something after flashing the img?
I am having the same problem, path not found. What can i do?
 
airbillion
Old
#8  
Senior Member
Thanks Meter 11
Posts: 500
Join Date: Jan 2008
bump

Anyone else figure out how to root? Is this only for gingerbread?
 
Sinful Animosity
Old
#9  
Sinful Animosity's Avatar
Senior Member
Thanks Meter 117
Posts: 1,082
Join Date: Jun 2011
Location: Spring Hill fl
-eval, would we just push that SuperUser app to our phone through ADB if we already have Gingerbread on it? Or do we just flash that through fastboot?
 
brandon15811
Old
#10  
Member - OP
Thanks Meter 13
Posts: 45
Join Date: Dec 2008
Quote:
Originally Posted by airbillion View Post
bump

Anyone else figure out how to root? Is this only for gingerbread?
This will work for any firmware version

The Following 2 Users Say Thank You to brandon15811 For This Useful Post: [ Click to Expand ]
THREAD CLOSED
Subscribe
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes