Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Thread Closed

[HOWTO] Root any Atrix after .sbf flash

OP brandon15811

2nd March 2009, 03:14 AM   |  #1  
OP Member
Thanks Meter: 14
 
45 posts
Join Date:Joined: Dec 2008
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.
Last edited by jug6ernaut; 26th July 2011 at 02:13 AM.
The Following 9 Users Say Thank You to brandon15811 For This Useful Post: [ View ]
24th June 2011, 02:59 AM   |  #2  
Retired Recognized Developer
Thanks Meter: 333
 
227 posts
Join Date:Joined: 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, 16648 views)
Last edited by eval-; 18th July 2011 at 02:41 PM.
The Following 49 Users Say Thank You to eval- For This Useful Post: [ View ]
24th June 2011, 02:59 AM   |  #3  
kennethpenn's Avatar
Retired Forum Moderator / Retired Recognized Developer
Flag Washington, D.C.
Thanks Meter: 3,801
 
2,701 posts
Join Date:Joined: Nov 2006
Donate to Me
More
Woohoo! 10 char!
Last edited by kennethpenn; 24th June 2011 at 03:02 AM.
The Following 3 Users Say Thank You to kennethpenn For This Useful Post: [ View ]
24th June 2011, 03:01 AM   |  #4  
cranch's Avatar
Senior Member
Minneapolis
Thanks Meter: 45
 
350 posts
Join Date:Joined: Mar 2011
More
Love you long time! Congrats on figuring this out!
24th June 2011, 04:24 AM   |  #5  
Senior Member
Ottawa
Thanks Meter: 156
 
1,330 posts
Join Date:Joined: Oct 2007
More
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?
24th June 2011, 05:57 AM   |  #6  
Member
Sydney, AUS
Thanks Meter: 1
 
43 posts
Join Date:Joined: Aug 2009
More
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!
24th June 2011, 06:18 AM   |  #7  
Senior Member
Thanks Meter: 11
 
501 posts
Join Date:Joined: Jan 2008
Quote:
Originally Posted by neotekz

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?
24th June 2011, 06:39 AM   |  #8  
Senior Member
Thanks Meter: 11
 
501 posts
Join Date:Joined: Jan 2008
bump

Anyone else figure out how to root? Is this only for gingerbread?
24th June 2011, 06:41 AM   |  #9  
Sinful Animosity's Avatar
Senior Member
Flag Spring Hill fl
Thanks Meter: 117
 
1,088 posts
Join Date:Joined: Jun 2011
More
-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?
24th June 2011, 06:44 AM   |  #10  
OP Member
Thanks Meter: 14
 
45 posts
Join Date:Joined: Dec 2008
Quote:
Originally Posted by airbillion

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: [ View ]
Thread Closed Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes