Jump to content


Photo

Keeping Root For Future Ics Updates --Beyond Ota Rootkeep--


  • Please log in to reply
14 replies to this topic

#1 mattlgroff

mattlgroff

    The Dark Knight

  • Developer
  • 2,298 posts

Posted 30 July 2012 - 06:52 PM

Some of you may not know, but the expert at root exploits Dan Rosenberg (djrbliss) has retired. The Atrix HD comes with a kernel that's patched for (evidently) all of our current ICS root exploits.

OTA Rootkeeper by Voodoo is a great app, but fastbooting will removed the su binary's backup unfortunately. So the ideas are starting to flow.

An idea I have for keeping it in the future is to kind of make your own backup root exploit, in a sense, using your ~/data/local/ folder [Recommend to do this right before you fastboot back, as having this all the time may effect on how your device runs normally].

Studying the Debugfs ICS root exploit by miloj and the batch by pedrotorrestfilho and kholk this is what I can figure from looking at this:

Pushing files...

Please Login or Register to see this Hidden Content



Now, looking inside the input for debugfs (cmds) we can see this:

Please Login or Register to see this Hidden Content


Key code:
"rm" = Delete directory/or file.
"mv" = rename
"cd" = change directory to
"chmod" = changing permissions of a file
"ln" = linking folders
"push" = place file into


Now, we do not want to actually run the root exploit obviously! This will be what I was thinking to do to ensure that we do not..

Please Login or Register to see this Hidden Content


And now for what we want to do for actually launching the root exploit when on the new, non-exploitable system:

Please Login or Register to see this Hidden Content


Now to test if it worked...uid and gid should both be 0.

Please Login or Register to see this Hidden Content


If it worked great the idea works! Time to clean up. If not... the idea was worth a shot!
Clean up:

Please Login or Register to see this Hidden Content


More cleanup:

Please Login or Register to see this Hidden Content


Installing busybox and superuse.apk:

Please Login or Register to see this Hidden Content


Thank you to EternityProject's easyRootICS, if this idea is proven I can turn it into a batch file :)

EDIT: Here is my batch file for testing. Steps should be obvious, if you are rooted on ICS (on a NON-Safestrap Rom, because Safestrap messes with ADB), you only run 1st_Step-Pushing.bat. USB Debugging must be enabled, drivers installed, plugged into computer, not USB Mass Storage (MTP or Camera).

Please Login or Register to see this Hidden Content


  • lownslow200sx likes this

Please do not Personal Message me for help or troubleshooting. They will be ignored. Post in threads or start one in Q&A sections.

If you feel the need to donate to me, click here.


#2 mattlgroff

mattlgroff

    The Dark Knight

  • Developer
  • 2,298 posts

Posted 30 July 2012 - 07:17 PM

For testing to see if it works this will let us know exactly:
1) Use 1st_Step-Pushing.bat on a non-safestrap rom as the above post explains.
2) Fastboot to stock 211 and do NOT wipe data. (In 1.8 or 1.81 exit instead of wiping data, when it asks after the fastboot).
3) Run the 2nd_Step-Rooting and the 3rd_Step-Testing. If there is no errors..then it worked well. You can then run the 4th and 5th step for cleanup and busybox/Superuser.apk install.

Thanks to anyone who can test this :)
  • lownslow200sx likes this

Please do not Personal Message me for help or troubleshooting. They will be ignored. Post in threads or start one in Q&A sections.

If you feel the need to donate to me, click here.


#3 HouseMD

HouseMD

    Vicodin Addict

  • Superuser
  • 294 posts
  • Twitter:DSLRVideoGuy
  • LocationCharlotte, NC

Posted 30 July 2012 - 07:47 PM

Looking at your commands its a great and simple tool. If I wasn't unrooted and on 211 I'd try it, but since I haven't fully settled in with BW's new M6 build, I would probably be able to test first thing tomorrow on my Maxx. Charging now! :D

Posted Image

If you feel the need to buy me a beer, or help pay my bills, here's the link:http://bit.ly/O4ZnLW


#4 HouseMD

HouseMD

    Vicodin Addict

  • Superuser
  • 294 posts
  • Twitter:DSLRVideoGuy
  • LocationCharlotte, NC

Posted 31 July 2012 - 05:25 AM

Posting another reply to give you updates

1. FB'ing to 211
2. Re-rooting
3. Rooted, Ran option 1 successfully, now FB'ing to 211 again (this time not wiping data since I wasn't on a non-SS ROM)
4. FB'd. Prepping to run steps 2 and 3

Snagged at 2nd step. Rooting bat doesn't work, link failed because file exists. Looking into it.

Unrooted and ran step 1

Step 2 successful. Getting ready to run Step 3.

Step three snag:

Please Login or Register to see this Hidden Content


Posted Image

If you feel the need to buy me a beer, or help pay my bills, here's the link:http://bit.ly/O4ZnLW


#5 wheelintoy

wheelintoy

    n00b

  • Members
  • Pip
  • 5 posts
  • LocationPhoenix

Posted 31 July 2012 - 07:28 AM

Steps
1. Did that no problem
2. Did that
3. Told me link failed file exists and rebooted phone
4. 2nd step rooting doesn't seem to work cause 3rd step testing did not work.

#6 mattlgroff

mattlgroff

    The Dark Knight

  • Developer
  • 2,298 posts

Posted 31 July 2012 - 11:20 AM

Steps
1. Did that no problem
2. Did that
3. Told me link failed file exists and rebooted phone
4. 2nd step rooting doesn't seem to work cause 3rd step testing did not work.

Can someone tell me using a root explorer if the files were still in /data/local/ after running 1 and fastbooting?

Please do not Personal Message me for help or troubleshooting. They will be ignored. Post in threads or start one in Q&A sections.

If you feel the need to donate to me, click here.


#7 wheelintoy

wheelintoy

    n00b

  • Members
  • Pip
  • 5 posts
  • LocationPhoenix

Posted 31 July 2012 - 11:28 AM

Crap I already reset everything maybe house can look


#8 HouseMD

HouseMD

    Vicodin Addict

  • Superuser
  • 294 posts
  • Twitter:DSLRVideoGuy
  • LocationCharlotte, NC

Posted 31 July 2012 - 11:31 AM

Crap I already reset everything maybe house can look


Starting from scratch.

Pushed files, now FB'ing to 211 without wiping data.

In my 12m folder shows the following:

Please Login or Register to see this Hidden Content


  • mattlgroff likes this

Posted Image

If you feel the need to buy me a beer, or help pay my bills, here's the link:http://bit.ly/O4ZnLW


#9 mattlgroff

mattlgroff

    The Dark Knight

  • Developer
  • 2,298 posts

Posted 31 July 2012 - 03:34 PM

Starting from scratch.

Pushed files, now FB'ing to 211 without wiping data.

In my 12m folder shows the following:

Please Login or Register to see this Hidden Content

Well hey that's great the generally idea works then! Having those file's safe in there will be good.

Please do not Personal Message me for help or troubleshooting. They will be ignored. Post in threads or start one in Q&A sections.

If you feel the need to donate to me, click here.


#10 mattlgroff

mattlgroff

    The Dark Knight

  • Developer
  • 2,298 posts

Posted 31 July 2012 - 03:48 PM

Try:

Please Login or Register to see this Hidden Content


If you get this to work you keeped the permissions
debugfs may work.

Please do not Personal Message me for help or troubleshooting. They will be ignored. Post in threads or start one in Q&A sections.

If you feel the need to donate to me, click here.


#11 Hero_Indeed

Hero_Indeed

    Android Rescue Squad

  • Members
  • PipPip
  • 173 posts
  • LocationMinnesota

Posted 31 July 2012 - 04:19 PM

Okay either Matt or House could you tell us what affects if any Dan's retirement will have on the RAZR community? Does this mean future OS's will have no "Root Crusader" to get us into our handsets? I'm just worried we are left out to dry now if you could clear some of this up that would be great.

Sent from my DROID RAZR using Xparent ICS Blue Tapatalk 2
Posted Image

#12 mattlgroff

mattlgroff

    The Dark Knight

  • Developer
  • 2,298 posts

Posted 31 July 2012 - 04:39 PM

Okay either Matt or House could you tell us what affects if any Dan's retirement will have on the RAZR community? Does this mean future OS's will have no "Root Crusader" to get us into our handsets? I'm just worried we are left out to dry now if you could clear some of this up that would be great.

Sent from my DROID RAZR using Xparent ICS Blue Tapatalk 2

I would not put it as "left out to dry", but we need to have more involved in the process behind finding and making a root exploit for devices. Dan put enormous work into his exploits and lots of users take it for-granted.

I am working with others to make our own exploit for the Atrix HD..and hopefully this can be re-used on later ICS versions, if we release it in a way in which Motorola cannot see the code we use :), like an encrypted executable or something along those lines.
  • PillClinton likes this

Please do not Personal Message me for help or troubleshooting. They will be ignored. Post in threads or start one in Q&A sections.

If you feel the need to donate to me, click here.


#13 xlightwaverx

xlightwaverx

    CrackFlasher

  • Superuser
  • 409 posts
  • Twitter:xlightwaverx
  • LocationEast Coast
  • Current Device(s):XT912, Kindle Fire HD

Posted 31 July 2012 - 06:37 PM

I'm down with the sickness.

X

Sent from my DROID RAZR using Tapatalk 2

GTalk/Email: xlightwaverx[@]gmail.com | Android Development | CrackFlasher Downloads
x4_logo.png.pagespeed.ic.voMTetxHpH.png


#14 johnbrain

johnbrain

    Member

  • Members
  • PipPip
  • 101 posts

Posted 31 July 2012 - 08:53 PM

I'm down with the sickness.

X

Sent from my DROID RAZR using Tapatalk 2


fwiw. i marketed that album

#15 HouseMD

HouseMD

    Vicodin Addict

  • Superuser
  • 294 posts
  • Twitter:DSLRVideoGuy
  • LocationCharlotte, NC

Posted 01 August 2012 - 06:26 AM

Try:

Please Login or Register to see this Hidden Content

If you get this to work you keeped the permissions debugfs may work.


Please Login or Register to see this Hidden Content

Please Login or Register to see this Hidden Content


Posted Image

If you feel the need to buy me a beer, or help pay my bills, here's the link:http://bit.ly/O4ZnLW





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users