yashsingh1/xdaforums huggingface dataset:
[Atrix 4G Android Development] lostinbeta:
You lost your root. You will need to revert back using the stock 4.1.26 SBF restore file, re-root using aRoot and then do this process.
[Atrix 4G Android Development] tacginc:
The point is if phone has to go back to AT&T (for whatever reason - especially the voice quality issue). It's a lot easier to UnRoot with DG's batch file than to reflash with SBF and take back.

So his question is very relevant. So, I'll ask it for him again. After updating to x.57, can we use DG's UnRoot to unroot phone?
[Atrix 4G Android Development] itguy28:
try this

ok i got it to work after i flash 1.2.6 again, then i ran aroot, i checked to make sure i have root then restarted my laptop and THEN plugged in my phone with ubs debugging enabled and it worked for me. i updated to 1.5.7 and now i have root!!!!!!
[Atrix 4G Android Development] clstengel:
Factory Reset?

Rooted with 4.1.57 successfully. If I do a factory reset will I get root back by running 'the three commands' or will I have lost the backup?
[Atrix 4G Android Development] N1CWIKI:
Okay.. so I read through this thread for a minute. I followed the steps ... ran beforeupdate.bat.....updated OTA.......ran afterupdate.bat (was unable to get past the second command--Permission Denied). Here is the problem, I ls -l in the shell for /osh/sbin/frozenfish and permissions seem to be correct... -rwsr-sr-x root root 26264 date frozenfish. In the shell I am not able to su or to chmod frozenfish.

I have been running the original stock ROM and used SuperoneClick to root. Will someone please tell me why root was not kept intact.
[Atrix 4G Android Development] Raginggoat:
This got it working for me as well.
[Atrix 4G Android Development] tacginc:
ntwrkwizard,

If we have already re-root with updates before your notice here, can we just start a ADB session and issues those 2 commands? Or is there somthing else that has to be done first like SU?
[Atrix 4G Android Development] Pirateghost:
i already wrote up all the adb commands

http://xdaforums.com/showpost.php?p=12506713&postcount=88
[Atrix 4G Android Development] quordandis:
I followed these instructions to the letter last night and it worked perfectly! Also, didn't lose free wifi tether. I originally rooted with SuperOneClick - and was fine, but then re-rooted with aRoot which was a little cleaner. Then followed these steps before & after installing OTA update. Thanks! :D
[Atrix 4G Android Development] N1CWIKI:
Would you mind posting the thread link for aRoot.
[Atrix 4G Android Development] djkinetic:
Excellent glad we have root back, now for the roms to be updated =)
[Atrix 4G Android Development] N1CWIKI:
Since I have not retained root after the update, I will need to ............So just to confirmation on what I think I will have to do anyway..... 1st I will have to flash back to the original ROM......... 2nd then use aRoot to root ......3rd run the commands in the shell before the update.....4th UPDATE...... 5th run commands in the shell after the update and then presto!!!! Is that correct?

Edit: Figured out what I was doing wrong.
[Atrix 4G Android Development] ntwrkwizard:
Yes and No.

You can do this as long as you make sure that the file systems are mounted as RW. To make make sure you have RW on system do:

adb shell

su

mount -o rw,remount /dev/block/mmcblk0p12 /system

mount -o rw,remount rootfs /

sed -i '$ a busybox chmod -R 755 /system/etc/init.d' /system/etc/install-recovery.sh

sed -i '$ a /system/bin/logwrapper /system/bin/busybox run-parts /system/etc/init.d' /system/etc/install-recovery.sh

This should work.

NW
[Atrix 4G Android Development] N1CWIKI:
1up to Shawnbuck!!!!!!!
[Atrix 4G Android Development] tacginc:
Thanks, did it by hand and rebooted. First time a got an error about authorization. Rebooted again and it did not show the 2nd time.
[Atrix 4G Android Development] cosmotrkr:
W00t

New to the forums and the atrix. worked without a hitch!

Nice job to those involved
[Atrix 4G Android Development] sprinkles:
sorry. i'm not following here. what is "beforeupdate again" mean exactly?

i re-ran superoneclick to root my atrix and didn't see that message.

my apologies...i'd like to get this sorted.
[Atrix 4G Android Development] ntwrkwizard:
To test do your reboot and then do this:

adb shell

su

mount | grep system

Your output should show your system mount as RW and not RO.

Nw
[Atrix 4G Android Development] zen kun:
wasnt working root for me idk why :s ( i reflash sbf and update 3 times @@)

perhaps i take a look to script and i did manually on my computer and now i have root:

nice :D
[Atrix 4G Android Development] yokozuna82:
im new at this .... how do i do the commands .... is adb.exe suppose to come up automatically ...if not how do i get to adb to type the three commands in?
[Atrix 4G Android Development] zen kun:
wow i just rooted but i cant sideloading :S i already try aRoot script

anyone has sideloading???
[Atrix 4G Android Development] Ririal:
No, don't use superoneclick. NOBODY at this point should be using superoneclick for root. It's messy. Use aRoot or GladiAtrix scripts.

Just run beforeupdate.bat again. It asks you "Are you already rooted? [y/n]" to which you should just say no. It will root you, remove the superoneclick mess, and continue with preparation for the update.
[Atrix 4G Android Development] mayerr2:
I followed the steps very carefully and everything worked with no issues. I can still sideload as well. Haven't done anything differently, was rooted using aRoot before I did this, no ROMS, themes, etc.
[Atrix 4G Android Development] psychephylax:
Well, I am at 1.5.7 with root...Thumbs up for that!

Here's something that was missed and probably needs to be added to the script...

Sideloading is gone (Can't install Amazon Marketplace)

Wi-Fi hotspot capability disabled again

Those are the two ones that I noticed after trying to reinstall my Amazon Market apps.

root is definitely still there so it should be a breeze to modify aRoot.bat to just change those parameters but i am not saavy enough to do it.

Forgot to add...aRoot has the older su binary while the new script has a newer binary.
[Atrix 4G Android Development] yokozuna82:
ok i did everything to the t....flashed sbf for a fresh start got root using aroot and beforeupdate.bat nothing happened so i updated...then made sure that usb debugging was on and it was then click afterupdate.bat nothing happen again just a quick flash of the screen... when and how do i use the 3 commands ....i have superuser icon but no superuser power....i do however have sideloading enable somehow.....what do i got to do
[Atrix 4G Android Development] chriscerv:
Worked great thanks. :D
[Atrix 4G Android Development] Mav3481:
aRoot Thread

If you are rooted with SuperOneClick, you can run this over the top.
[Atrix 4G Android Development] sprinkles:
thanks. trying this out and will let you know how it goes. i had no clue that superoneclick would do this...then again, i'm not a dev.

much appreciated!
[Atrix 4G Android Development] krkeegan:
Manual Option Using Terminal Emulator on the Phone - No Computer Necessary

First, thank you for working up this solution.

I decided to take the scripts and distill them down to a set of instructions that I could run in terminal emulator on the phone. The result is an update process that does not require any computer and can be accomplished in 5 minutes. I rooted my phone using aRoot a while ago. I do not use Gingerblur, a deodex rom, nor the webtop hdmi hack.

Prerequisites:

-4.1.26 with root. I used aRoot previously.

-A terminal emulation app on the phone - I used terminal emulator(free)

After downloading, but before installing the update, I ran the following in Terminal Emulator:

su (allow superuser in popup)
whoami (confirm that it says root)
mount -o rw,remount /dev/block/mmcblk0p12 /system
cp /system/bin/su /osh/sbin/frozenfish
chmod 06755 /osh/sbin/frozenfish
cd /osh/sbin
ls froz* (you should see frozenfish listed)

I then installed the update

After the update rebooted, I ran the following n Terminal Emulator::

/osh/sbin/frozenfish (alert "superuser permissions have been allowed")
mount -o remount,rw /dev/mmcblk0p12 /system
cp /osh/sbin/frozenfish /system/bin/su
chmod 06755 /system/bin/su
cd /system/bin
ls s* (you should see su)
mount -o remount,ro /dev/mmcblk0p12 /system

These are just the commands removed from the automatic script. I was not the creative genius behind this.
[Atrix 4G Android Development] roybens:
can`t update

Tried several times removed webtop as stated here

still getting status 7 when trying to apply the update ( after running the before script) i attach the txt files from the printdirs script

please help!!1 :-)

thanks

roy
[Atrix 4G Android Development] Redspeed93:
Thanks! Worked like a charm! :)
[Atrix 4G Android Development] yokozuna82:
just do a fresh SBF
[Atrix 4G Android Development] corboto:
Easy as pie

Worked like a champ for me. Many thanks!
[Atrix 4G Android Development] thebigfantastic:
I just tried it, worked perfectly. I was back up and running with my phone updated and rooted in 10 minutes. Thanks for the work on this guys!
[Atrix 4G Android Development] LancerV:
Got ginger blur working on mine :hs:
[Atrix 4G Android Development] jimmer411:
I kept getting the device not detected when trying to run beforeupdate.bat at first, then after putting all of the files in C:/ my phone was detected and everything went fine.

I updated, ran afterupdate and then manually typed in all of the commands that nickwizard posted and rebooted. Worked perfectly.
[Atrix 4G Android Development] roybens:
Thanks yoko

though i rather not take the risk of flashing, but use the scripts any idea?
[Atrix 4G Android Development] Ririal:
There's something installed on your phone preventing the update. If you are deodexed (that means running custom ROMs), or have webtop mods the update will fail. You either need to uninstall those mods, or reflash your phone to 1.2.6
[Atrix 4G Android Development] veuro:
works great!!! thanks
[Atrix 4G Android Development] roybens:
thanks again

how can i know what are my deodexed files (is applanet a rom?) i unistalled the webtop apps and removed the .bak from the originals
[Atrix 4G Android Development] humjaba:
Worked for me :)
[Atrix 4G Android Development] Grisha777:
Somebody help me please. Its only my 2nd week with android. I did everything according to the steps and everything went smoothly. Now Im trying to admin. run afterupdate.bot, but when the black box pops up I can write any commands in, instead right away it writes the 3 commands itself, and tells me press any key to continue...

and then it says " 'cmd' is not recognized as an internal or external command operable program or batch file"

"echo is off"

"press any key" and finito, nothing happens.

Please some help!... Many thanks in advance!
[Atrix 4G Android Development] djkinetic:
worked like a charm, then ran a tibu backup i had b4 the update and now i have all my apps and data in less than 10 min =)
[Atrix 4G Android Development] schwiing:
Worked (n00b)

Got it to work and I've never messed with my phone aside from using Superoneclick.

I'm not taking any credit for any of the steps I used during my n00b errors, of course, just re-posting.

After starting, it couldn't detect my phone (adb). I moved the files to the C:\ drive (no folder, just in root) and then it worked

Woot!

Thanks so much to the dev who made this script. You are amazing!
[Atrix 4G Android Development] humjaba:
Is there a way to restore your apps without having to go through clicking "Install" for each one? That's kind of annoying...
[Atrix 4G Android Development] schwiing:
You shouldn't have to reinstall anything...
[Atrix 4G Android Development] RC325:
Didn't work for me.

Running the last two commands gave me Pemission denied.

I was rooted on 4.1.26... sigh.

RC325
[Atrix 4G Android Development] joemommasfat:
Dont type "cmd", unless you are in the start menu of windows. If you are at the black panel with white text you are already at the cmd prompt. Just type the three lines it tells you to type.
[Atrix 4G Android Development] Grisha777:
Thats the problem, it does not let me type. Instead when black box pops up it writes those commands itself then tell me "press any key to continue..." and then it follows with the "cmd" error. It does not let me type anything (( and already tried restarting my phone, my computer, and all retainroot files are in C:
[Atrix 4G Android Development] hotleadsingerguy:
Worked perfectly for me! Thanks!
[Atrix 4G Android Development] shawnbuck:
Main post updated!

This doesn't root the phone, only preserves it during the update. If you need to root, grab DG's aRoot.
[Atrix 4G Android Development] danilo2k:
Yesssssssssssssssssssss!!! Thanks for this!
[Atrix 4G Android Development] kennethpenn:
This is going to be a nightmare every time I want to install/reinstall a ROM. Freaking Moto! :mad:
[Atrix 4G Android Development] AmesCell:
Does it matter if I'm rooted with SuperOneClick? Or should I apply aRoot over the top of one click?

I'll give this a try in a couple of hours.
[Atrix 4G Android Development] shawnbuck:
Run aRoot before using this. It shouldn't matter, but DG was bricked previously due to the way SuperOneClick rooted his phone.
[Atrix 4G Android Development] darkamikaze:
you should apply aRoot first considering superoneclick messes up doubling sqlite and xbin etc.

tl;dr : -- do aRoot
[Atrix 4G Android Development] LayzeeEyez:
Just clicked beforeupdate and superuser didn't do anything. I tried it with the screen grabber app and it came up so its still there. I just continue?
[Atrix 4G Android Development] OrangesOfCourse:
I'm in the process right now. I have run beforeupate.bat but didn't get a superuser prompt. I checked the superuser app log but nothing asked for su rights. Am I missing something?

Checking for update right now but it's taking it's sweet time.
[Atrix 4G Android Development] Ronaldo_9:
so how can i root if i flashed sbf, aroot doesnt do anything
[Atrix 4G Android Development] untilcomplete:
Just ran everything. It was a no go for me. Checked Titanium Backup and failed.
[Atrix 4G Android Development] Akira459:
Can I UnRoot using DG's method in aRoot after installing the OTA update?
[Atrix 4G Android Development] shawnbuck:
Run this batch file from the same directory as the scripts, and post the two result files.

Chances are it worked if you've allowed adb su acces, but lets double check.
[Atrix 4G Android Development] txtsd:
I'm running 4.1.52

I'm guessing it won't work with it, so I'll have to flash back to 4.1.26, run aroot and then do the update?
[Atrix 4G Android Development] OrangesOfCourse:
Had the same problem. Uploaded the two files.
[Atrix 4G Android Development] LayzeeEyez:
Here's mine
[Atrix 4G Android Development] UncleCemka:
Didn't work

I named my new su samu, and now I get permission denied trying to execute the samu. It does appear to have the correct permissions:

$ ls -l /system/bin/samu

ls -l /system/bin/samu

-rwxr-xr-x root shell 26264 2011-03-29 17:02 samu

$ /system/bin/samu

/system/bin/samu

Permission denied
[Atrix 4G Android Development] dLo GSR:
then what's the point?
[Atrix 4G Android Development] gravewormx:
Sorry for the noob question. am i supposed to run the beforeupdat.bat file while on usb debugging or do I extract them to the phone and run them? since I can't seem to get them to work through USB debugging... thanks...
[Atrix 4G Android Development] shawnbuck:
It looks like the remount didn't take properly. I'm editing the scripts again, they'll be back up in a few minutes.
[Atrix 4G Android Development] shawnbuck:
I've put a v2. Check to see if the part one for this script works. I think it may to be copied off of /system to work properly.

Also, hold off on the upgrade until we can confirm the script works.
[Atrix 4G Android Development] amnigo:
Worked perfectly! Thanks guys
[Atrix 4G Android Development] jimmer411:
type CD.. until your at C:/ instead of C:/window/system32 or whatever it starts at. you have to be in the folder that the files your trying to execute are in.
[Atrix 4G Android Development] mjsztainbok:
Could someone who has done the steps to root the phone from 4.1.26 try tarring the output using the command 'tar cvfz oldsu.tar.gz /osh' and send me the oldsu.tar.gz file to try out?

I should in theory be able to extract the tar which restores the permissions and then execute the old su command to get root access again in my 4.1.57 build without needing to reflash to 4.1.26 first.
[Atrix 4G Android Development] godwin1981:
i have changed some contents of webtop script which released by DG in order to make it work for new firmware 4.1.57.Now you can get webtop mod again without dock.link is below

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

My idea is from this thread of Shawnbuck and based on shawnbuck's root.

Thx shawnbuck for your hard work and other XDA members.

Have fun
[Atrix 4G Android Development] marhodges:
I flashed to sbf 1.2.6, used aRoot, used the beforeupdate and was going to do the update, but after several reboots and battery pulls I have NO DATA. If I try to check the APN settings I get Sorry the application Settings (process com.android.settings) has stopped unexpectedly. Please try again. Under Phone status, the network is unknown and Service state is Radio Off.

Help!

ANYONE?

The H+ flashes on occasionally then goes off. The SIM worked fine after the aRoot before the before update.
[Atrix 4G Android Development] Grisha777:
Sorry, Im a little new to all this, but where do I type CD..? all my retainroot files are in C:/ already.
[Atrix 4G Android Development] climo:
Can someone confirm this method works? Seems a little easier working directly off the phone than using pc.
[Atrix 4G Android Development] PhillyBlunt474:
Worked great! Updated with root! Thanks a ton!!
[Atrix 4G Android Development] marhodges:
OK. So I reflashed to SBF 1.2.6 and the data is working fine now.

Any ideas?

(FYI, I rooted shortly after launch date and have been on GingerBlur 6.5, 7 then RC1 before I flashed back to SBF to do the update)
[Atrix 4G Android Development] CodeBrain:
Okay, so I used beforeupdate.bat and i get this error after I say yes (y) for being already rooted:

./data/local/tmp/backupsu.sh: 3: cp: not found

But this probably because i ran this twice, figuring I need to do it again because the update did not successfully install.

And what I mean by that is when the update is installing, it gets to about one third of the bar, then immediately goes to the android warning triangle sign. The phone is frozen, the Power button/Up volume button combo does nothing. I have to take out the battery and put it back in, and the phone still works. It still remains on 1.2.6 however.

Any idea why my phone is freezing?

Phone: Motorola Atrix 4G (Model MB680)
[Atrix 4G Android Development] Shinj1EVA:
Thanks for the script. Was able to update and maintain root manually the other day when your script was offline. It seems init.d is no longer called because the update overwrote /system/etc/install-recovery.sh as well. Easy fix is to just re-add this to the shell script --

Really it was just to get it so that 00remount would run and place system as rw instead of ro.
[Atrix 4G Android Development] sprinkles:
ok, ran beforeupdate.bat

not getting that message. im getting a cannot find device message.

ran ARoot. said it was removing the mess from superoneclick.

tried installing the update.

didn't work.

anything i should know?
[Atrix 4G Android Development] biggins1870:
Scripts worked perfectly.

Great work to all who contributed.
[Atrix 4G Android Development] motoatrix:
Hope you all can help me. Flashed back to 1.26 SBF and proceeded with 1.57 update. Ran afterupdate :

Adb.exe shell

$ /osh/sbin/frozenfish

/osh/sbin/frozenfish

/osh/sbin/frozenfish: not found

$

I'm not sure why it say file not found, I downloaded retainroot.7z and extracted everything in the folder.
[Atrix 4G Android Development] tacginc:
This is what I got:

/dev/block/mmcblk0p12 /system ext3 ro,noatime,nodiratime,data=ordered 0 0
[Atrix 4G Android Development] sprinkles:
forget it. i moved beforeupdate to the c drive and it found it. thanks thread people!
[Atrix 4G Android Development] knowingplague:
Thank you for your hard work. Working flawlessly...

Sent from my Atrix
[Atrix 4G Android Development] ntwrkwizard:
Looks like your init.d is not taking. Most people will NOT need to have the init.d running. I have a million dev daemons running and doing other stuff with my phone.

If you really need init.d then you're going to have to run my previous script bits again. Otherwise, if you've got Root Explorer you can pretty much do everything you want.

Do a:

cat /system/etc/install-recovery.sh

Make sure the last two items are the mount lines. If they are not there rerun the scripts. If they are there then there is something wrong with the 00remount.

You can:

chmod 777 /system/etc/init.d/00remount

It is the worst case but it will change the permissions to wide open just in case.

NW

NW
[Atrix 4G Android Development] bigbob196:
Worked perfectly with the downloaded files and instructions on the first post. Great work everyone and thanks!!
[Atrix 4G Android Development] k00ey:
Accidentally updated by pressing the wrong button so I had to flash a fresh sbf, root, then the instructions. All in all, I still have root. Thanks OP!!
[Atrix 4G Android Development] tacginc:
I did, same result. see attached
[Atrix 4G Android Development] vjoom:
Work great and very easy. Thanks for your hard work.
[Atrix 4G Android Development] osubeaver:
I'm an Android noob, but I was able to successfully run the script and have root with the update. Thanks!
[Atrix 4G Android Development] sprinkles:
so, i did this. was able to run beforeupdate. select no. reset itself to root. said it cleaned itself up.

installed the update and got the same error about the smokewallpaper.apk.

any advice on what i should try?

please help!
[Atrix 4G Android Development] CodeBrain:
Still looking for help on this, sorry if this is not allowed
[Atrix 4G Android Development] ntwrkwizard:
OK, I think I see your problem. You're feeding the two lines as one LONG line and it is not doing the appropriate thing.

Feed each sed line one by one. After you do that make sure you press enter and that you see you get the su prompt #.

then after each sed entry you should cat /system/etc/install-recovery.sh to make sure it takes.

but it appears your problem is associated to a bulk cut and paste which is not how you should do this. Either manually type out the line and press enter at the end of each line or paste and push enter on a line by line basis.

NW
[Atrix 4G Android Development] tacginc:
What do you mean rerun scripts - before & after ones, or yours?
[Atrix 4G Android Development] tacginc:
This is what I got with the CAT command. And the last two line look doubled up due to me running it twice.
[Atrix 4G Android Development] mcmc08:
Unable to chmod psneuter

Successfully ran aRoot over SuperOneClick. Now I'm trying to run beforeupdate.bat. When I run it (as admin), it says:

Checking device state...

Obtaining temporary root access...

Unable to chmod psneuter.

USB debugging is enabled and I've tried both Mass Storage and Media Sync for the USB connection.

Any ideas?
[Atrix 4G Android Development] tacginc:
I'm not following you. I did this:

mount -o rw,remount /dev/block/mmcblk0p12 /system [ENTER]

mount -o rw,remount rootfs / [ENTER]

sed -i '$ a busybox chmod -R 755 /system/etc/init.d' /system/etc/install-recovery.sh [ENTER]

sed -i '$ a /system/bin/logwrapper /system/bin/busybox run-parts /system/etc/init.d' /system/etc/install-recovery.sh [ENTER]
[Atrix 4G Android Development] Ririal:
Script will be updated soon to be fully automatic, as well as handling sideloading/init.d/tethering APN fixes
[Atrix 4G Android Development] shawnbuck:
If anyone has suggestions about making this better, shoot myself or Ririal a PM. We are still working on getting a better version out.
[Atrix 4G Android Development] tacginc:
If we have already done those your updates batches, can we rerun over it to get everything set correctly?
[Atrix 4G Android Development] Pirateghost:
pay for the full version of the app.....