yashsingh1/xdaforums huggingface dataset:
[Atrix 4G Android Development] OrangesOfCourse:
That's what i changed the code to and got the superuser request but it's stuck on pushing backupsu.sh... Ideas?
[Atrix 4G Android Development] ka3yan:
@shawnbuck, it was asked, but not answered...would this method work on 4.1.52? It seems as though it would, but I haven't heard of anyone trying it.
[Atrix 4G Android Development] ntwrkwizard:
I'm taking a look at the script execution on both the linux side and the windows side. It appears that the windows is doing everything correctly but the sh scripts are failing on mine. I'm going to do everything by hand and see if I can get it to work and then go backwards from there to see what I can do to help.

NW
[Atrix 4G Android Development] Akira459:
Slightly off topic....you guys seem to flash to stock or factory reset a lot...do you guys use something that lets you restore a back up that has all your apps and settings and what??
[Atrix 4G Android Development] neer2005:
would someone provide me links to the files I would like to take a look at them
[Atrix 4G Android Development] bekarhoo:
Damn, I wish I had read this. I did what the original script was which made the backup by renaming in /system/bin. But the update seems to screw up with this, because I am getting "Permission Denied" after doing the update. I would suggest, that rename or mv to /osh/sbin...it appears to have worked for some people.
[Atrix 4G Android Development] ntwrkwizard:
Yes, off topic but I will answer because I'm waiting for my reflash. When I have root, I use Titanium Backup. Since I use my phone for screwing around with I don't really load it up with apps so I don't have to worry about reloading.
[Atrix 4G Android Development] neer2005:
Where is SU installed? I cant find it under /system/app/
[Atrix 4G Android Development] shawnbuck:
Good catch!

This method won't work from 4.1.52, it depends on su being installed before the update.

What part of the .sh files seem to be failing? On my Atrix, they work except for the sleep time for accepting Superuser permissions. adb doesn't run with the permissions to run sleep in scripts.

su is installed in /system/bin by aRoot. It isn't an .apk, but a Linux executable file.

I'm going to put a corrected version, let me know if this works. Thanks to all who helped with testing!
[Atrix 4G Android Development] NFHimself:
Make sure you don't edit your linux sh scripts via notepad or something while in windows, if the sh scripts has carriage returns and linefeed pair chars in it, it won't run.
[Atrix 4G Android Development] shawnbuck:
I checked that. The .sh files are LF, and the .bats are CRLF.

The new version is in the works. When it works, it'll be uploaded.
[Atrix 4G Android Development] AmesCell:
Yeah Titanium Backup... but it requires root.
[Atrix 4G Android Development] godwin1981:
great idea and great job.

Wait for your updated..

thx
[Atrix 4G Android Development] ntwrkwizard:
You're correct, sleep wasn't working, but I was having an issue with the scripted execution of frozenfish. It works when done by hand and you call out each of the lines but for some reason it wasn't working and I was getting permission denied.

So, I can confirm this process works if done by hand. I have root on 4.1.57. I executed all commands by hand via adb shell. I'll gladly retest the automated windows version again when I get home from work.
[Atrix 4G Android Development] rjohnstone:
ok... "frozenfish" grants root access in 1.57!

I can mount system as r/w and copy su back into the directory, however I get a permission denied when executing.
[Atrix 4G Android Development] shawnbuck:
What part is denied?
[Atrix 4G Android Development] WEIZHIFX:
I'll just wait for you too!!thx
[Atrix 4G Android Development] Pirateghost:
did you chmod it before trying to execute?
[Atrix 4G Android Development] Pirateghost:
working great here!
[Atrix 4G Android Development] Pirateghost:
based on what your scripts say, i too, just did it manually:

adb shell
su
cp /system/bin/su /osh/sbin/frozenfish
chmod 06755 /osh/sbin/frozenfish

ran the update

adb shell
/osh/sbin/frozenfish
mount -o remount,rw /dev/mmcblk0p12 /system
cp /osh/sbin/frozenfish /system/bin/su
chmod 06755 /system/bin/su
mount -o remount,ro /dev/mmcblk0p12 /system

then i rebooted once for good measure. tested with titanium backup and running adb shell, su
[Atrix 4G Android Development] rjohnstone:
Yep.. that was it.

I had the wrong values for my chmod command.

Back in business!
[Atrix 4G Android Development] DJQ1212:
So just for clarification.... once these are re released ( thank you so much for the hard work btw!) will everything function correctly for me to do the update? So far only mods Done: superclick, then redone with aroot, webtopdock thru hdmi. I read this would make the process fail so would I need to undo webtopdock mod then use the scripts or ....? Btw the annoying ota updates just started for me .... :-/
[Atrix 4G Android Development] sublimejosh2000:
GingerBlurrrr

Will we be able to run gingerblur on 1.57 after we get root to the new OTA? I will be willing to try if that will work...
[Atrix 4G Android Development] neer2005:
Probably, once Ken updates the files for the new OTA.
[Atrix 4G Android Development] KryptosXLayer2:
so.... this needs to get turned into a script to run before on the first one and after on the second one so we can retain root? I was part of the beta and pretty sure I have Update.zip sitting somewhere after doing the download but not the installation, but I'm not touching it until I know for sure this will allow me to retain root once a script is created....

not good enough with ADB so I'm not going to mess with it - tried to run it and got some crazy "Permission denied / cp: cannot create '/osh/sbin/frozenfish': Permission denied" error, so I'll wait for the script!
[Atrix 4G Android Development] Nottach:
Thanks PirateGhost - Worked for me.
[Atrix 4G Android Development] aver2one:
If I already updated, can I use moto rsd lite to go back to 1.2.6 then re root then run the script then update again then run the rest of the script.. I guess the root of my question is..can I downgrade and start over?

Update: Yes You Can ! just finished..rooted! thanks everyone in this post, I will use my daily thanks now
[Atrix 4G Android Development] wookiebush:
Short answer: YES!
[Atrix 4G Android Development] calvin398:
Garcia - Did you accept superuser permissions on your phone after typing in "su"?

aver2one - I flashed to the stock sbf and re updated and am rooted now on the update.

Thank you pirateghost! Worked for me.
[Atrix 4G Android Development] KryptosXLayer2:
I sure did..... it popped up once, I accepted it, made sure the check box was checked, and it hasn't come up since.... very weird, looking into it further, but any help finding out what I'm missing would be appreciated!
[Atrix 4G Android Development] tacginc:
Calvin, What do you mean by this? Is this not in the manual script?
[Atrix 4G Android Development] Nottach:
ignore post.
[Atrix 4G Android Development] aver2one:
@wookiebush Thanks! I'll give it a shot after I charge my battery

Update: Yes You Can ! just finished..rooted! thanks everyone in this post, I will use my daily thanks now
[Atrix 4G Android Development] done12many2:
Worked PERFECT. Thanks. I didn't see any of this stuff until after getting home for work and thought I would have to wait for a script. You made it very simple!!
[Atrix 4G Android Development] rjohnstone:
So far everything works great.

I would not attempt to install any 4.1.26 mods. (GingerBlur, webtop, HDMI, etc)

Wait for updated versions using 4.1.57 files.
[Atrix 4G Android Development] tacginc:
Did you run the update from UPDATE.ZIP or OTA?

And, do you retain the free tether?
[Atrix 4G Android Development] Nottach:
OTA

yes, you do
[Atrix 4G Android Development] bigdog_nick:
Update worked perfectly! I followed Pirateghosts post and boom. Thanks!
[Atrix 4G Android Development] AmesCell:
Is there anything I can do on the "ran the update" step to verify the earlier steps worked? Without a script I don't trust myself...
[Atrix 4G Android Development] LayzeeEyez:
Thank you Pirateghost for the simple instructions and everyone else working on this!!
[Atrix 4G Android Development] shawnbuck:
Try running /osh/sbin/frozenfish (or what you renamed & moved it to)

If it works, then you'll have root after the update completes.
[Atrix 4G Android Development] Pirateghost:
if you are still in adb shell, run: ls -l /osh/sbin/frozen*

if it lists

-rwsr-sr-x root root 26264 2011-03-29 19:21 frozenfish

you should be good
[Atrix 4G Android Development] OrangesOfCourse:
You could make a bat file with the following code. Look for frozenfish in the output.

@ECHO OFF
adb.exe shell ls /osh/sbin > sbin.txt
[Atrix 4G Android Development] UnCommonGrafx:
So...

One is hose if one updated first?
[Atrix 4G Android Development] Bedeadu:
Would it be possible for someone with new update (no root), to flash previous retail sbf, get root, follow this thread (script might be up by then)? In which, regaining root?

I would try, but thx to the adb step breakdown in the thread I am sitting with new update and root... I am not willing to lose that at this point.
[Atrix 4G Android Development] KryptosXLayer2:
I ran that, even with the permission denied messages coming up (I've used Root Explorer to mount device as R/W, changed as many permissions as I could find on the folders being used, and still can't get it to work - but the code you just said to run provided the same results you listed here.... does that means it worked even though it says permission denied?

EDIT - I went to SU, forgot the "unknown" ADB permission, tried again with ADB.... now it didn't come up with any errors, just reproduced the following:

chmod 06755 /osh/sbin/frozenfish
# # #

then I did your ls -l command and it reproduced the "root root" date and time code

does that mean I'm good to go now?
[Atrix 4G Android Development] OrangesOfCourse:
Yeah you can flash the retail sbf file > aRoot > use script (when done) or adb commands listed above > update > rest of commands > enjoy root. :)
[Atrix 4G Android Development] Pirateghost:
where are you getting permission denied? when you run su after going into adb shell, you have to allow superuser permission on the screen.
[Atrix 4G Android Development] neotekz:
this worked perfectly, confirmed i still have root with TB. thanks pirateghost and shawnbuck. i was waiting for this to do the update.

a warning though i lost mobile hotspot after doing the update. i get an prompt saying Account not set up for wi-fi hotspot and to contact ATT to activate.
[Atrix 4G Android Development] KryptosXLayer2:
I just edited my comment - I did that again after forgetting the permission and got the results above
[Atrix 4G Android Development] blaque72:
wish I had the download so I could do this via adb
[Atrix 4G Android Development] shawnbuck:
Go for it ;)
[Atrix 4G Android Development] tacginc:
@Shawnbuck,

Did you lose free tethering?
[Atrix 4G Android Development] Whipon:
Question

I flashed the OTA last night.

Before that I had a rooted 4.1.2.6 with aRoot.

Is there any way to chmod a folder in the internal memory of the phone while not having root?.

I have a folder in my internal storage with su in it, but I get permission denied while trying to apply "chmod 06755" it.

If that's not possible, It would be good to know a way to backup my apps without root, so I can flash back to stock.
[Atrix 4G Android Development] neotekz:
you dont need the script if you know how to use ADB. just use those commands pirateghost posted. all it does it changes the name of SU script and hides it in a different folder then after the update you run the renamed SU script that you hide to get SU permission and then change the name back and put it back in the right folder.

shawnbuck - do you know if there is anyway to get wifi hotspot back? im using the phone in canada and never had to do anything except run aroot to get mobile hotspot to work
[Atrix 4G Android Development] shawnbuck:
I can't comment on it, I didn't enable it.

Did you lose it?
[Atrix 4G Android Development] tacginc:
Haven't tried all this yet. Did a stupid thing an had the phone look for the update. Now it won;t leave me alone about updating. So, just getting by ducks in row before taking this plunge.

Someone earlier said it still works and another said it doesn't. But, if it doesn't, I was thing of doing a lil manual entry scripting from a batch file I have via ADB after the "after" scipt piece.
[Atrix 4G Android Development] KryptosXLayer2:
well, I went for it, and couldn't remember exactly what I was supposed to do with the Webtop hacked DockProvider.apk file.... so here's where you need to go if you get stuck there:

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

even with that, I keep getting errors during installation at the recovery screen.... I'm hopeless for this update, so whatever.... will try again when I'm not so damn tired of fooling with this!
[Atrix 4G Android Development] KryptosXLayer2:
That's easy enough to fix - just DOWNLOAD the update, and don't INSTALL it!
[Atrix 4G Android Development] Whipon:
u_________u

It seems all I can do is backup my apps and settings through ADB, then flash back to stock and restart the progress. But I won't do it right now, don't need root at the moment.
[Atrix 4G Android Development] AmesCell:
That worked to verify it. I'm updated and rooted again. I still have my Titanium Backup! Thanks.
[Atrix 4G Android Development] franciscojavierleon:
If my assumptions are correct, this means we can always go back to the original firmware (1.2.6) and just keep copying su around and installing further updates! This would be huge!
[Atrix 4G Android Development] Nottach:
I just checked again and I still have the tethering hack, the one that comes with aroot. the first time i tried it didnt validate but the second did, and now the third an hour later. all i can say is set the tether apn, reboot, turn on wifi, turn on hotspot. thats what i did.
[Atrix 4G Android Development] kennethpenn:
Update for you all: I'm working on a quick and easy way to perform all this from 1.2.6.
[Atrix 4G Android Development] VeNuMuS:
Sweet Ill just wait for that.:)
[Atrix 4G Android Development] ahmarchi:
how long till you think its done brudda
[Atrix 4G Android Development] LancerV:
Got root on my newest update
[Atrix 4G Android Development] AllTheWay:
It won't brick the device but it just won't let you update. The update will just freeze.

Thank you very much for posting this. Followed the instructions to a T and had 0 issues. I will add this to the first post.
[Atrix 4G Android Development] aver2one:
Question I keep hearing people mentioning "aroot" what is that? I used superoneclick and it worked for me here.. the only thing I noticed is i had to hit "allow" on the super user request while I was running the commands from adb shell after updating the phone.
[Atrix 4G Android Development] Nottach:
webtop mod no longer works, tried it twice, no effect.

also, im noticing better battery life but much worse performance, a lot of stuttering. anybody getting the same.

thinking of going back to 1.5.2 gingerblur rc1. much smoother, though worse on battery.

somebody else post their impressions?
[Atrix 4G Android Development] kennethpenn:
Preliminary testing in 1 minute after fresh 1.2.6 SBF flash. Unfortunately, I'll have to fresh flash a bunch of times to test. That'll take a while. I'd give it a few hours.
[Atrix 4G Android Development] shawnbuck:
Fenrir and Sogarth are also working on similar projects.

Check back here for any updates.
[Atrix 4G Android Development] kennethpenn:
Sweet. I'll post it in here for you when I'm done.
[Atrix 4G Android Development] nightsbird:
Worked Like a Charm Thanks!!

Since it only updated certain files I would bet as long as its not the GB update or a complete wipe this would continue to work. I would however change the directory each time so that they dont code it to search out su
[Atrix 4G Android Development] shawnbuck:
We have a release!

Don't forget to thank Fenrir, he made this release possible:

http://atrix.rirnef.net/files/retainroot.7z
[Atrix 4G Android Development] VeNuMuS:
Any special instructions that we need to use this?
[Atrix 4G Android Development] godwin1981:
you need redo the process of replacement filestoo enable webtop mod.it works fine to me after doing it.but the script doesn't work .you need do it by manually.i m trying to fix the scripts of webtop mod
[Atrix 4G Android Development] anirudh15891:
i have a problem.. i have the webtop hack enabled with gingerblur.. so you guys are saying that if i can undo the webtop hack i can safely run that zip file to get the update along with everything i have?

also i tried doing the undo webtop hack.. but i am stuck at not finding the webtopbackup files... under the undo webtop link...
[Atrix 4G Android Development] GatorRuss:
Worked GREAT!!

I lost my adb shell cherry tonight, and I also flashed my first android rom.

Alright, so I had my Atrix rooted, with Adeo v0.1.

The update wouldn't work for me, so I had to flash back to the stock 1.2.6, which was an adventure in itself since I was getting 0x7100 errors. After I got it flashed back to stock, I arooted the Atrix, and then I did the first step in Post #88 in this thread by Pirateghost. Then I did the update, and then I did the second step in Post #88.

I confirmed in adb, and I restored using Titanium.

You guys rock!!

:cool:
[Atrix 4G Android Development] shawnbuck:
Updated in first post. The end of the process is a tad tricky, but there was no way around it :(

If you want to update, you should flash a clean SBF before proceeding. The update will fail due to the mods.
[Atrix 4G Android Development] bekarhoo:
Yes, was the unfortunate few who tried to manually use the OP original scripts (prior to taken down). My issue was the original script asked to be baced up in /system/bin. Don't do this, you will lose root.

So after reading the above post.

Flashed back to 4.1.26 (original retail SBF). (optional, do this only if you lost root due to the OTA closing the hole).

Do the one click root. http://briefmobile.com/motorola-atrix-4g-root

Follow the above instructions from Pirateghost.

That's it. works perfect

EDIT: Just noticed that the scripts have be fixed and updated. Hopefully they work, I have just used the manual process for now.
[Atrix 4G Android Development] anirudh15891:
soo basically this thread shows us how to enable root after you update the phone

?
[Atrix 4G Android Development] Ririal:
Instructions for install (I'm Fenrir, the script in the first post is mine):

Download the scripts

Make sure your device is 1.2.6 and is not running any mods, I recommend a fresh SBF flash

Enable USB debugging (Settings -> Applications -> Developement)

Connect your phone

Run beforeupdate.bat

Go to Settings -> About phone -> System updates

Follow the on-screen instructions to download and install the update

When the update finishes, verify USB debugging is still on

Run afterupdate.bat and follow the directions. You will need to input three commands. MAKE SURE YOU ALLOW SUPERUSER AFTER THE FIRST COMMAND. Just type them in order and everything will work.

Enjoy your rooted phone!
[Atrix 4G Android Development] PhillyBlunt474:
Much thanks. I'l be updating my phone tomorrow morning when I get home from the girlfriends using these scripts.
[Atrix 4G Android Development] JayRolla:
You say make sure I have no mods, but I do need a rooted phone before running beforeupdate right?

I have gblur and all kinds of stuff. My plan is too run the beforeupdate.bat now, then flash too 4 1.57 SBF instead of the old one and updating. Then running afterupdate.bat. Would this work?
[Atrix 4G Android Development] tl_bull:
Sooooo Moto took 30 days to make an update to steal root, and less than 72 hrs you show them to sit down and accept an open environment. Congrats and good job!
[Atrix 4G Android Development] shawnbuck:
The upgrade won't work with all of the mods in place, you'll need to reflash to the 4.1.26 SBF if you want upgrade with root. If you want to keep the mods, consider waiting until they are ported to the new version.
[Atrix 4G Android Development] JayRolla:
Ok so for the beforeupdate.bat to even work I must have a fresh SBF with only aroot? Ok thanks.
[Atrix 4G Android Development] kennethpenn:
NVM: I'm a noob. Got it working.
[Atrix 4G Android Development] neer2005:
Huston, we have r00t!

Btw I'm YouKnowWhatItIs from IRC chat
[Atrix 4G Android Development] Best01:
Noob question. How do you flash back if you already downloaded the new version.
[Atrix 4G Android Development] Ririal:
You will NOT be able to update if:

You are deodexed. Any custom rom does this, GladiAtrix, Adeo, and Gingerblur.

You are running Fenny's webtop mod
[Atrix 4G Android Development] tl_bull:
Read about SBFs, and then look for 4.1.26 and RSD Lite 5.0
[Atrix 4G Android Development] aver2one:
http://xdaforums.com/showthread.php?t=991072

Use the 1.2.6 not the 1.5.2

-make sure you read and understand everything first..
[Atrix 4G Android Development] afkev:
Do I need to run aRoot before running beforeupdate?
[Atrix 4G Android Development] Ririal:
No, this script will ask if you're rooted or not, and if you're not it will root for you. There's no need to run anything but this script.
[Atrix 4G Android Development] btoast:
This may sound like a dumb question, but do you need to place the script files on the phone and run it? When I run beforeupdate.bat from my desk top it opens a cmd prompt and says "C:\Users\Media" us not recognized as an internal or external command.
[Atrix 4G Android Development] climo:
GingerBlur on 1.57?

@ Ken

Will you be porting GingerBlur to work on 1.57 now that root has been established?
[Atrix 4G Android Development] tl_bull:
You have a space in your path mine was a folder I named "android ask related" as you can see two spaces in the path. Rename your folder.
[Atrix 4G Android Development] mr.acarlton:
What commands?

"You will need to input three commands. Just type them in order and everything will work. "
[Atrix 4G Android Development] Girgizzlemuf:
Just ran the script and the update, works perfectly. TiBu works, SetCPU works. so shiny ~

For anyone having issues with the script: just read the OP
[Atrix 4G Android Development] btoast:
Ah got it. Thanks.
[Atrix 4G Android Development] kennethpenn:
I'm working on an easier way to go from 1.2.6 -> 1.5.7 rooted. After that, I will update GingerBlur for 1.5.7 compatibility.
[Atrix 4G Android Development] Ririal:
Iif anyone has any issues or runs into any problems, feel free to PM me and I can help you out. I'm heading to bed now, but I'll check my PM's in the morning before work, and I'll be around all day tomorrow.
[Atrix 4G Android Development] Clienterror:
Kinda off topic but after I do a sbf and do all this am I still able to theme? I know we can't deodex yet but I wasn't sure about theming.
[Atrix 4G Android Development] Ririal:
Themes require you to be deodexed. I'll be tackling this tomorrow since I want my Xperia Arc theme back ;)
[Atrix 4G Android Development] LastQuark:
Can you share what you mean by "unknown" ADB permission?

I am arooted before the update. When I go to adb shell, running su gives me a "permission denied" message. USB debugging is checked but I do not see anything popping up on the screen to allow su permission.

Anything I missed in adb or the superuser application?