yashsingh1/xdaforums huggingface dataset:
[Motorola Atrix 2] Michael443:
Hello guys! the instructions are very easy if you do the steps correctly.

This is my first post in the development section.

First, go to market and download OTA Rootkeeper

Second, open the app, Select Create SU Backup.

Third, Select Temp UnRoot(with backup)

Fourth, uninstall Superuser, if you have superuser elite uninstall it also! and uninstall OTA Rootkeeper(dont worry it will not delete UR Backup!)

Fifth, Download and install the OTA.

After it is done and reboot, do a power cycle.

and the last step, go to market, install superuser and ota rootkeeper.

Launch OTA Rootkeeper and Select RestoreRoot, accept the superuser permission, and reboot!

AND ur back with rooted 2.3.6!

Michael

Alternate method! This is Jim's method(Thanks jim for this other way)

To do the 4ever root hack do the following:

1) open root explorer or ew file manager etc...

go to /system/bin

find the file named mount_ext3.sh

touch and hold the file name until the menu appears, go to open in text editor.

Add the following line to the VERY bottom of the file, after the fi

chmod 4755 /system/bin/su

chmod 4755 /system/xbin/su

chmod 644 /system/app/Superuser.apk

2) SAVE!!!! the file.

3) Do the OTA update.

4) You should still have root after the update, now.

Jim

Enjoy, Hope this helps!
[Motorola Atrix 2] seraphielx:
I missed step 3 and 4 this is why it did not work for me :)
[Motorola Atrix 2] Zoide_:
Does this work if coming from SuperCharged V4, or only if coming from stock 2.3.5?

Thanks
[Motorola Atrix 2] Iggys Pop:
I don't know but as soon as I get home I'm going to check and see... Just got another A2 today, its going to be a good lil Guinea Pig... (insert evil grin here)
[Motorola Atrix 2] jimbridgman:
The easier way to do this, is just do the 4ever root that was done for the bionic.

Just add these lines to the bottom of the /system/bin/mount_ext3.sh files with the text editor in root explorer, or through adb.

chmod 4755 /system/bin/su

chmod 644 /system/app/Superuser.apk

Do that BEFORE the OTA update, and you will not have any issues with OTAs ever again and loosing root. but if you did not do the update maually, and you used the one-click you might need to add the following line as well....

chmod 4755 /system/xbin/su

Jim
[Motorola Atrix 2] Michael443:
cant tell you, i didnt had a custom rom on it while i tried :( but if i am correct the update will work with stock only. wait till Iggis Pop do the test before attempting.
[Motorola Atrix 2] BLWedge09:
I just used OTA Rootkeeper normally and it worked fine for me. Backed up root, temp un-rooted, downloaded and applied the update, then restored root from OTA Rootkeeper after the update finished. I have root back just fine...

Did this not work for others?
[Motorola Atrix 2] tmease1:
I must of did something wrong because this did not work for me. I followed the steps to a T and it didn't take.
[Motorola Atrix 2] Michael443:
be carefull, the update brings a new security environment and new security patches that google just released. the update over writes parts of the system data. the safest way that i tested is this method. be careful with ever root
[Motorola Atrix 2] 09CarreraS:
Jim,

I have a question about running a Deodexed rom. Will I have a problem upgrading or do I have to SBF back to stock? I also have the 1 percent mod that I love. How can I keep this. My understanding is this only works for deodexed roms.
[Motorola Atrix 2] Michael443:
can you tell me step by step what ou did so i can help you! ;)
[Motorola Atrix 2] extide:
x2 I used this method and it works fine. No messing around with OTA rootkepper, no need to uninstall superuser/etc.

ever root is arguably SAFER than your method. All it does is make the system change the permission on the files on every bootup. It's not rocket science.
[Motorola Atrix 2] farshad525hou:
I'm not Jim but I do have the answers to your questions! ;)

You should flash the fkz's (sbf) files before you update, just a good idea to remove any oddities or potential problems. :) Also most modifications do relay on a deodexed ROM , so my guess is that it won't work with the new update yet. My personal recommendation would be to wait until lfaber06 incorperates this update into a nice little cwm flashable zip (around this weekend, or next), that will already contain root, as well as the 1 percent mod and the updated theming!
[Motorola Atrix 2] 09CarreraS:
Thanks for the answer! Hey I'm from Ma as well.
[Motorola Atrix 2] bimmerd00d:
well that's what i get for not reading here first. My coworker was demo-ing an app to our CEO and the update notification came in. A few minutes later he comes back and says he hit download then install when it came up. When i got it it was flashing in recovery already :(
[Motorola Atrix 2] toastthemost:
Well, this definitely bricked my phone.
[Motorola Atrix 2] JRW 28:
Are you sure you followed the instructions and put the files in the right directory? I havn't had any problems using this exact method as for a few others.
[Motorola Atrix 2] mtnlion:
No way if it was done correctly that it bricked your phone.correctly can be accomplished by navigating to the proper file then copy pasting the code in order.the only thing you are modifying is superuser.
[Motorola Atrix 2] extide:
You probably edited the ext3 mount script incorrectly then, that could easily softbrick the phone.
[Motorola Atrix 2] toastthemost:
Not sure, I just pasted those two lines under "fi" or whatever was on the last line. Checked it. Saved it. Rebooted. Boot loop.
[Motorola Atrix 2] RickNY1971:
If I didn't take any of these steps prior to the OTA, is there any way to regain root short of pushing the Fastboot files and starting from scratch?
[Motorola Atrix 2] farshad525hou:
That was not a smart move... Currently, there is no way to root with 2.3.6, and DO NOT TRY TO FLASH THE FKZ! It will not work with 2.3.6 it will soft-brick your phone! If you are feeling adventurous there is a work-around for people in the same situation as you. It involves editing the fastboot xml's though and if a mistake is made while editing the results will NOT be good!

http://xdaforums.com/showpost.php?p=20987662&postcount=102
[Motorola Atrix 2] RickNY1971:
I'm feeling adventurous.. Can you point me to where I can find more info on this workaround?

Thanks,

Rick
[Motorola Atrix 2] farshad525hou:
http://xdaforums.com/showpost.php?p=20987662&postcount=102
[Motorola Atrix 2] :
Jim, I added the above exactly as you have it, saved and exited root explorer. rebooted the phone, and then did the OTA update. While Superuser is still on my phone, Titanium Backup indicates root is no longer active, though I can navigate with Root Explorer.

To be clear - should the above be input BELOW all other content in the mount_ext3.sh file?
[Motorola Atrix 2] mtnlion:
Should look like this
[Motorola Atrix 2] farshad525hou:
To confirm root open terminal emu and type "su" and if you get permision denied, you no longer have root.
[Motorola Atrix 2] guapinoy:
how to get those 2.3.6 files out of your phone or does anybody have it?
[Motorola Atrix 2] :
Sigh, this doesn't match what I input because this is not what Jim had said above.

Permission denied.

Great.

Any ways to get root back now? Figured I was safe doing the "this will absolutely work through all OTAs" method.
[Motorola Atrix 2] mtnlion:
Better view
[Motorola Atrix 2] :
I thought I did it the way the op said but I had to of missed a step. It was me. When I get time I'll go back to 2.3.5 and start over. No biggie. Thanks though
[Motorola Atrix 2] jimbridgman:
Yeah I got a leaked version..... I am one the 2 devs in this forum.... ota root keeper is not the safest way since it moves the su file out of the way.... if security is changed and /system get locked read only and su is not in /system/bin you may not get root back.. both the bionic and razr have had the same updates that we are getting and 4ever root is the safest because su stays put.

Jim
[Motorola Atrix 2] armyengineer51:
So what is the difference between this (with the added second line) and what Jim originally posted?
[Motorola Atrix 2] d.cortez:
Just so I don't make a mistake,

1. Flash the FBz file

2. Apply one-click root

3. modify mount_ext3.sh to add the following 3 lines after "fi":

chmod 4755 /system/bin/su

chmod 4755 /system/xbin/su

chmod 4755 /system/app/Superuser.apk

4. Copy modified mount_ext3.sh to /system/bin folder

5. Install OTA update

6. Power cycle, reboot

7. After reboot confirm root via terminal app

Thanks in advance to those who respond.
[Motorola Atrix 2] RickNY1971:
Where can I find the cdt.bin, lbl, and device_tree.bin from 55.13.25 to replace them in the zip? Sorry for such a newbie question.
[Motorola Atrix 2] cogeary:
That is correct! Note that if you are using ADB and pulling it/editing it/pushing it, you should not do this on a Windows computer. It will mess up the file (if I understand correctly Windows has a default end line character than linux/android) unless you use certain apps... I'm not sure but you should look into Notepad++ or gVim. I recommend you just edit the file on your device.
[Motorola Atrix 2] mtnlion:
you can add the lines to mount_ext3.sh through root explorer or es file explorer etc.
[Motorola Atrix 2] toastthemost:
Welp, I missed one line because the earlier poster forgot to mention it, and I didn't know "at the bottom of the file" meant that there was a line between "fi" and "chmod...".

Maybe that will help someone stay away from brick, idk. I just hope it's an easy soft brick... Downloading FXZ files now, because someone wasn't clear on something so significant that a line could be the difference between success and brick.
[Motorola Atrix 2] mtnlion:
no idea. The lines i added are straight from p3droid off droidmodder x bionic website.I ran them by jim first and he confirmed them so idk.

edit: jim has much kung fu. with his mad linux skills i dare say he knows more than one way to skin a cat.

edit2 : or maybe he was at an office party and his typing skills were a little fuzzy:p
[Motorola Atrix 2] jimbridgman:
In my earlier post I did not include /system/xbin/su, becuase My su is in /system/bin.... Sorry, I did not think... most of you used the oneclick which I think puts su in /system/xbin....

Do what mtnlion has in his post, I just gave you what I did on my device, I have mine so customized since I do everything the hard way.... :)
[Motorola Atrix 2] extide:
It must have gotten corrupted somehow. I pulled the file onto my pc, edited it there, (if using windows you need to use an editor that supports unix line breaks!!) and then put the file back. There was actually a walkthrough somewhere that has all the exact commands to run thru adb if you need them.

Here

That has exact instructions for Root Explorer OR adb
[Motorola Atrix 2] matt99017d:
when i try to do this, it wont let me open it up.

a window pops up and say's "script file" "this is an executable script file. What action would you like to perform?

view>execute>cancel.

it does not give me an option to edit....what am i missing?
[Motorola Atrix 2] mtnlion:
If you're using a root explorer type app make sure you enable the root features and mount system r/w.in es file explorer they are at the bottom of the settings menu.

Example:
[Motorola Atrix 2] matt99017d:
thank you for the fast reply.

i did make sure that it is written as R/W

i have not tried es file explorer.

i will give that a shot.
[Motorola Atrix 2] mtnlion:
In es tap the file then from the options it gives open as text, simple as can be :)
[Motorola Atrix 2] :
So is there any way to resolve the root issue for those of us who entered the information as Jim had originally put it?
[Motorola Atrix 2] armyengineer51:
Hmm.. Went through the process but after the phone reboots I get an error message "The software update failed!" Running the stock ROM, rooted, and the webtop mod is the only other change I've made (besides freezing some apps). Any ideas?
[Motorola Atrix 2] mtnlion:
No apps can be frozen or it will fail also the webtop mod may be a deal breaker too
[Motorola Atrix 2] farshad525hou:
Unfreeze the apps and try again. If that doesn't work, you will probably have to flash the fkz's and than retry.
[Motorola Atrix 2] JRW 28:
You're gonna have to unfreeze all apps that you have frozen, the update looks for certain apps and if they arent there it fails
[Motorola Atrix 2] rymenigmatic:
I have taken all the steps to maintain root. I am running supercharged v4... I have downloaded OTA thru the system updates under about phone in settings..ready to install.. should I install on top of supercharged ROM?
[Motorola Atrix 2] farshad525hou:
NO!!! Flash the fkz's first to get back to stock than root and 4ever root! Than you can update :)
[Motorola Atrix 2] matt99017d:
well poop, i edited the mount_ext3.sh file and now it wont boot past the moto screen....
[Motorola Atrix 2] farshad525hou:
You have to flash the fkz's and try again! :)

I suggest using adb to pull the file edit DOUBLE CHECK and than push it back. That way you'll be sure you made no mistakes.
[Motorola Atrix 2] slightee:
Did the OTA update without following any these instructions. Lost root now. Is there an option to get root without going back to 2.3.5?
[Motorola Atrix 2] rymenigmatic:
So if I take these steps and end up with 2.3.6. Then I can't rock the supercharged ROM as it is 2.3.5? Don't wanna give up overclock and notification toggles...:(

Might wait for some 2.3.6 goodness from ifaber06 or Jim...
[Motorola Atrix 2] farshad525hou:
That's why I am waiting until lfaber06 releases the SC rom with the update included, so all you will have to do will be flash a zip from bootstrap.

---------- Post added at 10:28 PM ---------- Previous post was at 10:27 PM ----------

Unless you go back to 2.3.5 (by editing fastboot xml's) there is no way to gain root on 2.3.6 as of now.
[Motorola Atrix 2] rymenigmatic:
So now my phone is prompting me every hour to install update ...how can I stop this.. where did the update download to?
[Motorola Atrix 2] farshad525hou:
Now that's what I was wondering...
[Motorola Atrix 2] Iggys Pop:
As per my post from earlier I was going to flash lfaber06's supercharged V4 then roll with the update but I realized I had misread earlier. Realized this was an OTA update.... No wonder I wasn't getting the push on my reg device because I'm running lfaber06's ROM... When applying an OTA update you should always accept the update when the phone is in as close to stock as you can get it to prevent update failures/issues. That said, I would definitely be

careful applying an OTA update with a custom ROM, could cause issues. As to preserving root after the update....unless your pretty familiar with LINUX and the Android OS, I would wait until they develop a workaround for the loss of root issue or until this update is incorporated into one of our custom roms that a few people mentioned earlier... Tis better to be safe than sorry lol...and always remember just because its an "official" update think about who its coming from, At&t and Motorola, they aren't always as awesome as they sound...patience is a virtue.
[Motorola Atrix 2] moofree:
Should be Blur_Version.55.11.16.MB865.ATT.en.us.zip under the /cache/ directory

Deleting or moving it will cause the update to fail.

Just FYI if anyone is having trouble restoring with rootkeeper after updating-

try running /system/su-backup from a terminal. That's where ota rootkeeper keeps the su binary.

A user here pm'd me after having trouble restoring with ota rootkeeper after updating, but he was able to get su using /system/su-backup and just followed the tail end of manual method afterward.
[Motorola Atrix 2] matt99017d:
Hooray! I'm back I'm back!

Now to try it again!
[Motorola Atrix 2] elite67:
soft bricked my phone using the chmod method.... just letting people know I quadruple checked what I was doing. Now I'm stuck at red M logo. going to find a way to restore my phone.
[Motorola Atrix 2] cogeary:
How exactly did you edit the file? If you used adb to pull it, then edited it in Windows, then pushed it, you might get a bootloop because of how Windows handles new lines in files... I used Notepad++ in Windows to edit it and then pushed it through adb and it didn't bootloop.

The only way you can fix the softbrick is by flashing the fxz... sorry :(
[Motorola Atrix 2] rob219:
really theres no way to root on 2.3.6? strange, i got my a2 two days ago and it was on 2.3.6. thing is i rooted it installed the bootstap and flashed supercharge v4 (which took me back to 2.3.5) with no problems. except now im being asked to update it to 2.3.6, but i definetly rooted it on 2.3.6 i checked what i was running before i rooted and flashed anything.
[Motorola Atrix 2] moofree:
You might have been on an earlier build of 2.3.6. Zerg rush worked at least till 55.13.16 which was 2.3.6 as well.

IIRC 55.13.20 might have been the first build with this exploit patched...
[Motorola Atrix 2] matt99017d:
yup me too!

I'm refllashing again.

oh well, I'm kinda getting good at it now. lol

this time I'm gonna wait till one of our wonderful devs figure out some better options.

not that what we have is bad, its that I'm just to dumb to figure it out!

I'm geeting there
[Motorola Atrix 2] rob219:
i see, well i didnt go as far as looking at the build, just the version 2.3.6) i was lazy and used one click root also.
[Motorola Atrix 2] jstrayy:
Is there any quick way to undo the webtop mod? I really do not want to flash to stock, reroot, do the webtop mod, and the hotspots mod all over again and restore ALL my information. Any help is appreciated
[Motorola Atrix 2] d.cortez:
hit a bootloop with this method as well, now reflashing and will try one more time to get the phone to boot with this change.

EDIT: Used OTA Rootkeeper instructions from first post and i'm rooted on 2.3.6.

EDIT2: Got lazy and restored data from my CWM backup... so far no issues. :-|
[Motorola Atrix 2] elite67:
Looked like the phone failed to update with OTA then it rebooted and got stuck at red M.
[Motorola Atrix 2] ari197:
strangely, I use one-click root and my "su" is in "/system/bin" :P
[Motorola Atrix 2] RickNY1971:
Just wanted to report back that I was able to successfully use this method to go back to 55.11.16.

Thanks to you - it was successful.

This is what I did:

1) Since I no longer had the update package, I did a Google search on Blur_Version.55.11.16.MB865.ATT.en.US.zip -- downloaded the update and extracted cdt.bin, device_tree.bin, and lbl from the zip.

2) Extracted the contents of the FKZ from http://xdaforums.com/showthread.php?t=1415336 to a separate folder.

3) Replaced the cdt.bin, device_tree.bin, and lbl with the files from the update that I extracted in step 1

4) Edited the InlineFlashing_edison_5.5.175.16_cfc_p3_APBP_CID285.xml in Notepad++ with the following changes:

- Removed the two lines for step operations for boot and recovery

- Replaced the MD5 hashes in the XML file for cdt.bin, device_tree.bin and lbl with the correct hashes for the files I extracted from the update.

5) Saved the file, and re-zipped the whole thing again.

6) Booted into Fastboot mode, and used RSD Lite 5.6, browsed to the rebuilt zip, and de-compressed first.

7) Flashed and prayed.

Anyway, it all worked.. Now I'll re-root and use the 4eva root.

Thanks again for the help!

Rick
[Motorola Atrix 2] iB4STiD:
Hey rick you should up load that zip might help someone out here... nice job btw
[Motorola Atrix 2] moofree:
Here it is if anyone needs it

Blur_Version.55.11.16.MB865.ATT.en.US.zip

edit: I guess you're asking if he could upload the zip he created.
[Motorola Atrix 2] RickNY1971:
I'll be more than happy to if someone has someplace to host it..
[Motorola Atrix 2] mtnlion:
If it hung there during the update something else was changed. Did you change your bootanimation ,have apps frozen ,webtop mod? If you'll watch during the update process if it runs into an issue right before it reboots a triangle with an exclamation point comes up quickly push both volume up and down and it will show what the error is.
[Motorola Atrix 2] iB4STiD:
ya, the one rick created... but thanks good to have just n case

---------- Post added at 05:51 AM ---------- Previous post was at 05:50 AM ----------

I think 4shared might be a good place to upload it, not sure how big the zip is or what there limit is...
[Motorola Atrix 2] Michael443:
Do not try to downgrade your device to 2.3.5, you will brick your device using stock files.

Follow RickNY1971 instructions on how to do it.
[Motorola Atrix 2] Michael443:
glad id helped you! ;)
[Motorola Atrix 2] ccbeam:
Where's the update?

Yesterday I was getting the update alert every hour.

I had time today to get the phone back to original factory settings.

I have everything ready to preserve root, but when I check for update, it says there is is no update available at this time.

Are the updates sent out in phases, so I'll have to wait my turn again?

Thanks.
[Motorola Atrix 2] Michael443:
It is rolling out in phases!
[Motorola Atrix 2] jimbridgman:
That is absolutely 100% incorrect!!!

There is a way to go back to 2.3.5 with the fxz. It is in the fxz thread.

I advidse you to do reasearch before posting things like this and telling people things that are incorrect.

Link to the fxz, there is a way to go back to 2.3.4 in this thread.

http://xdaforums.com/showthread.php?t=1415336

Take a look at post number 102, int the thread above, here is the link to that post:

http://xdaforums.com/showpost.php?p=20987662&postcount=102
[Motorola Atrix 2] RickNY1971:
Apparently you didn't read my post a few posts up -- I detailed how I did it successfully, which was based on the information in the links that farshad525hou and Jim referenced. I went into more detail about exactly how I did it.

You can look at Post 73 in this thread for the full details:

http://xdaforums.com/showpost.php?p=22123805&postcount=73
[Motorola Atrix 2] Michael443:
Ok, i was saying about downgrading with stock files without modding the recovery and boot files of 2.3.5
[Motorola Atrix 2] Corporate Dog:
Me three. And while my *nix skills are a little rusty, I'm reasonably sure I didn't screw up the chmod commands.

It also wasn't a Windows text formatting issue, as I edited the file directly on my phone with ES File Explorer.

Must've had something to do with the fact that I originally rooted it with the one-click method.

Ah well. Reflash to the rescue (once I get a chance to do it).

EDIT: Not to completely derail this thread, but I took a look at the one-click root batch file for grins, and the only difference I can see between it and the manual method, is the creation of a symbolic link for su (which is actually put in /system/xbin).

chmod SHOULD follow the symbolic link, and set permissions on the actual file, shouldn't it?

Regards,

Corporate Dog
[Motorola Atrix 2] jlvanvleet:
I was just wondering where you find the MD5 hashes for cdt.bin, lbl, and device_tree.bin that you transferred into the InlineFlashing_edison_5.5.175.16_cfc_p3_APBP_CID28 5.xml?
[Motorola Atrix 2] Zoide_:
You can calculate them yourself with a program such as WinMD5 Free (http://www.winmd5.com/).
[Motorola Atrix 2] darocks1999:
update failed

Followed your steps. back up root uninstall super user and ota root backup.. the did the ota download ..but it keeps failing..once its download and boot phone shows its installing and then rebooted the phone and message comes up update failes and shows 5.11 version not 5.13
[Motorola Atrix 2] Michael443:
Wich steps you followed, mine or Jim's 4ever root way?
[Motorola Atrix 2] Calundle:
I'm confused. What you refer to as the update is the same thing as the FKZ. I went to 2.3.6 and lost root.

---------- Post added at 05:57 PM ---------- Previous post was at 05:29 PM ----------

Got it.

10char
[Motorola Atrix 2] Deliberate:
Is it possible to make a flashable zip do all that for you?
[Motorola Atrix 2] thekurrgan:
I put the three lines in mount_ext3.sh to preserve root, and for whatever reason the OTA fails.

DOesnt break the phone, just doesn't update it either.

The only other mods to the phone are the build.prop tweaks from the thread in dev section, and the CarIQ disable.

Any thoughts?

trying log cat during the upgrade to see if it gives any info..