yashsingh1/xdaforums huggingface dataset:
[Motorola Photon 4G] smoothone:
Not having luck here. When I connect my phone to my Mac or my Linux box adb recognizes my device but it says offline. USB debugging is on. By the way when I connect my phone to my laptops the usb debugging symbol does not come on in the status bar even though I have debugging on.Same message on both laptops. I then tried the computer less method with terminal and I can't get permission to do anything which doesn't surprise me because I am not rooted. I am baffled as to how anyone got the terminal app to work for them since you need permissions to do anything with /data/temp/. I tried su but received no permission. I would appreciate any help, thanks.
[Motorola Photon 4G] pgill34:
I'm pretty much in the same boat. But I get no such file when I cd /data/tmp/

But it works fine with chmod 777/data/tmp/ . then when I do install-su.sh I get su not found. Idk
[Motorola Photon 4G] ThriveSeeker:
I am sorry but this does not work I get to part of running the emulator and it does not find the files ,thanksfor trying
[Motorola Photon 4G] kobuu:
This Works! THANKS!

OK! This method works. Just omit the lines that start with Chmod (I have no idea what that is). And...in the last line, just type ./install-su.sh you don't need the ./data/tmp cuz that's what ./ is there for!

ALSO! If you recently downloaded the update, YOU WILL LOSE ROOT! Just do this again and you get it back! NO PROBLEMS! I did it right from the phone, no wires or computers! That file is still on your sdcard (or should be) so just do the same commands over again and you'll get root back!

HAPPY ROOTING!!!
[Motorola Photon 4G] albe070:
The way that I have done this using the terminal emulator is by extracting the photon-torpedo.tar file and moving all the files with root explorer to /tmp I know the instructions states /data/tmp but I kept grtting errors. btw I did not create the /tmp folder I had one there from the start.

So after moving the files I do the following commands

/tmp/photon-torpedo.sh

/tmp/install-su.sh

To check I type exit and then su

If it work the notification pop up from superuser should come up..

This is what has worked for me. Not responsible for any ones phone if it breaks.
[Motorola Photon 4G] whttigress:
I need some advice here. I had my phone rooted via the torpedo method before the OTA update, but after the update I can't seem to get it to work. It is failing on the photon-torpedo.sh file

$ /data/tmp/photon-torpedo.sh

/data/tmp/photon-torpedo.sh

ERROR: ld.so: object 'libpcprofile.so' cannot be loaded as audit interface: undefined symbol: la_version; ignored.

Fatal server error:

Server is already active for display 0

If this server is no longer running, remove /tmp/.X0-lock

and start again.

Please consult the The X.Org Foundation support

at http :// wiki.x. org

for help.

ddxSigGiveUp: Closing log

/data/tmp/photon-torpedo.sh: line 5: /lib/libphoton-torpedo.so: Permission denied

ERROR: ld.so: object 'libphoton-torpedo.so' cannot be loaded as audit interface: invalid ELF header; ignored.

Fatal server error:

Server is already active for display 0

If this server is no longer running, remove /tmp/.X0-lock

and start again.

Please consult the The X.Org Foundation support

at http :// wiki.x. org

for help.

ddxSigGiveUp: Closing log

$

It looks like it is not pushing the libphoton-torpedo.so file over to the /lib/ directory, but I checked and it is there (maybe from before the OTA update?) I get permission denied if I try to delete it. I did delete the tar and associated files and re push and run them several times with no success. I have also rebooted the phone about a dozen times. I am using adb, but I have also tried terminal emulator and it gives the same error message. I don't want to do a hard reset right now because I am in a roaming area, any other ideas out there?
[Motorola Photon 4G] my2cents:
I ignored the error and kept going and it worked for me. Have you tried that?
[Motorola Photon 4G] whttigress:
Yes, the errors I highlighted in my post are additional errors that are not normal for the process. if I try to continue I get this:

./install-su.sh

Usage: mount [-r] [-w] [-o options] [-t type] device directory

cp: /system/bin/su: Read-only file system

Unable to chmod /system/bin/su: Read-only file system

Usage: mount [-r] [-w] [-o options] [-t type] device directory

rm failed for /lib/libphoton-torpedo.so, Permission denied

$

and looking at that it appears that it should have removed the libphoton-torpedo.so file from the /lib/ directory when I rooted the first time, so I am not sure how there is one there now, I just know that it won't let me do anything with it :(
[Motorola Photon 4G] my2cents:
Sorry buddy. I'm a little new to the Motorola nuances. After my OTA, I started the root process at the second to last step because I figured that the other steps/files were still in tact and it worked for me. Have you tried to SBF back to complete stock? I know that sucks, but it might be an option? Good luck.
[Motorola Photon 4G] sdependa:
I am in the exact same position...
[Motorola Photon 4G] foxracinggirl0209:
when i download the adb package, and try to extract it to c:\root . it says it can't do it because it doesn't contain anything or it just wont do anything. HELP!!

i try doing the commands thru the cmd screen on the computer and it's not working. what am i doing wrong?
[Motorola Photon 4G] brobin111:
Is the c: \root directory created? Is there anything in it? Maybe the download was corrupted. Have you tried downloading it again?
[Motorola Photon 4G] sdependa:
After a couple of hours of trying everything after the OTA to get root back, this was the only thing that worked.
[Motorola Photon 4G] my2cents:
Were you able to get root again after the SBF?
[Motorola Photon 4G] foxracinggirl0209:
ive tried downloading it more then once, today and yesterday.. i do not know what i'm doing wrong.. anyone else have a link for the file?
[Motorola Photon 4G] pgill34:
I have all the files in place but still no.su. Tried /tmp/install-su.sh but got nothing
[Motorola Photon 4G] brobin111:
http://gititbit.ch/AFAS is the link I used. Downloaded to my PC, extracted to c:\root and four files show up; adb.exe, two .dll files and fastboot.exe.
[Motorola Photon 4G] albe070:
Where u able to run the /tmp/photon-torpedo.sh?
[Motorola Photon 4G] foxracinggirl0209:
I will try that link.. how to i extract to c. I have the c:\root already created.
[Motorola Photon 4G] smoothone:
No commands from the terminal are getting me anywhere. Permission denied everywhere. Don't understand how people do it, oh well.
[Motorola Photon 4G] cornelious2:
/data/tmp/ not /tmp/
[Motorola Photon 4G] cornelious2:
Good catch on the path error. It's the pain of typing from a phone.

chmod is a permissions changing statement. It auto caped the second one on me which would cause it to fail if it's not all lower case.
[Motorola Photon 4G] Bigjim1488:
Does this method still work after the ota because my root went bye bye
[Motorola Photon 4G] cornelious2:
Yes
[Motorola Photon 4G] smoothone:
How is it possible to chroot permissions from the phone terminal without root. That is the problem i am having.
[Motorola Photon 4G] cornelious2:
Not chroot chmod it all depends on defined permissions not root access
[Motorola Photon 4G] whttigress:
I got mine working now after the errors with photon-torpedo.sh. I guess something went wrong with the ota update, because I flashed the leaked MR over it and was able to root just fine after that. It may be a better option than a factory reset if you have issues. It's worth a shot anyway. Now I just hope it fixed my silent calls issue :)
[Motorola Photon 4G] nezb:
Just to update:

I have the latest software version running on my Photon (45.2.5) and this rooting method is still working properly! You will lose root after you upgrade your system, but all you need to do is follow the steps again to get it back.
[Motorola Photon 4G] smoothone:
Sorry that was my Swype, I meant chmod. How can you chmod a folder without have root permission. Every time I run almost any command in my phone terminal it gives me permission denied.
[Motorola Photon 4G] pgill34:
Thats the same thing that happens to me. I gave up for now
[Motorola Photon 4G] pgill34:
Yeah I did that but when I did /tmp/install-su.sh I get premission denied file is ro only. Or something like that
[Motorola Photon 4G] sdependa:
Same thing happened to me. I had to do this after the OTA to regain root:

http://xdaforums.com/showthread.php?t=1202666
[Motorola Photon 4G] whttigress:
Same here took a while, but at least I didn't have to reload everything.
[Motorola Photon 4G] cornelious2:
If you get permission denied running the sh file you need to chmod it.
[Motorola Photon 4G] cornelious2:
chmod has nothing to do with root only the permissions on the specific item. If you cd /data/tmp/ then chmod 777 * you may get an error on the files you don't have permission on but it's faster than typing 1 at a time ignore the error.
[Motorola Photon 4G] whttigress:
I tried this and it did not work. I don't remember the error message I received, and I've since got it working by applying the MR manually, but it made no change in the error from the sh file. It would not cat the so file to the lib directory no matter what I did. I looked in the lib directory, and it showed it there, but it would not do the LD_AUDIT either. It said it had an invalid ELF header. I don't know if other people are having the same exact problem I did, or if it just looks the same, but chmod did not work for me.
[Motorola Photon 4G] ApeLovesIceCream:
How do i do the first step and second where do i download torpedo sorry for the noob q...
[Motorola Photon 4G] Jeff_in_LA:
Didn't work for me on a brand new updated phone

I swapped my phone today for a new one. Applied the OTA and did a factory reset after.

This method does not work. Yes, I did it correctly, pushing the TAR file on with adb. Then extracting it.

I can see the extracted files, no problems. I get an error running photon-torpedo.sh every time

Here is the error

ERROR :ld.so object 'libpcprofile.so' : cannot be loaded in audit in interface. Undefined symbol la_version ignored..

Anyone have a solution?

Thanks

PS - yes, I have rooted many phones, Including my original photon with ease.
[Motorola Photon 4G] smoothone:
I give up. It won't root using this method and adb is not working for me. It keeps saying "device offline". I've tried everything. I'm hoping someone makes an update zip :(
[Motorola Photon 4G] tuxytuxy:
CMON! Just read the bloody thread. http://xdaforums.com/showpost.php?p=16722785&postcount=165
[Motorola Photon 4G] tuxytuxy:
Have you turned on USB Debugging? (Settings > Applications > Developement). Are you in "Charge Only" mode when you connect the photon to your computer?
[Motorola Photon 4G] cornelious2:
try the teminal emulator method, you might see some errors but you can ignore them and it should still work. I did it twice today to make sure.
[Motorola Photon 4G] Jeff_in_LA:
Well, I feel stupid! The download of superuser from the market borked out, but I did not see that it was not properly installed. Once I did that - it all worked fine!
[Motorola Photon 4G] whttigress:
That error is normal. See post 165 for detailed instructions / screenshots.
[Motorola Photon 4G] smoothone:
Thanks for the reply but yes I have. I have been routing and flashing phones since my G1. Cornelius has been trying to help but their has to be something i'm over looking. I am very familiar with Linux and Android phones in general. My debugging symbol never comes on in my status bar. Not sure why. I run the commands using the terminal emulator method and I ignore the errors but still no root. I rarely ever have had a problem since my G1, Nexus, EVO, and Nexus S 4g, that I passed on to my wife.
[Motorola Photon 4G] cornelious2:
Doing further research chmod only works in /data/tmp/

I created a script out of my steps but am having issues attaching it from my phone will post it when I get home.

its attached as a txt when you download it change the name to .sh

copy it to /data/tmp/ (cp root.sh /data/tmp/

cd /data/temp

./root.sh
[Motorola Photon 4G] Sweetlittlehugs:
I did the terminal method. I kept getting permission denied but I continued anyway. It now appears I'm rooted as su asked for super user permissions.
[Motorola Photon 4G] John Kotches:
You don't need to rename it, you can just call it by name, root.txt.
[Motorola Photon 4G] Shadowrayne101:
i have no recovery at all on my phone please help!!!!!!

i have rooted my phone and unlocked bootloader and tried to install a custom recovery,and i tried the bootstrap and it worked for a little while but then i tried to install the cwm without the bootstrap and it will not load and i do not have a stock recovery at all either ive tried everything i can and nothing works, any suggestions would be helpful
[Motorola Photon 4G] CCallahan:
What does one do if the /data/tmp directory doesn't exist? I can't create it because I have no rw permissions since I'm trying to root again. Is there an adb command I can use for this so the .tar file can be pushed?

**Edit...rooted using the dock method but would still like to know.

Thanks.
[Motorola Photon 4G] smoothone:
I could never get it done using this method. I got permissions errors all the time. I just unlocked and flashed rooted image using flashboot since my adb just isn't working. Thanks to Cornelius for all your help though.
[Motorola Photon 4G] cwirth7:
Only version I found that I got to work. Thanks!
[Motorola Photon 4G] jamesdwalters:
Ok I think I either have the/an answer for people having trouble with /data/tmp. I followed all the directions an it wasn't working for me. While looking for a different file I had downloaded I found that the files were in a different folder so instead of using /data/tmp/ I just used /tmp/ and it worked

EDIT

After doing the OTA update all I had to do to get root back was open terminal emulator on phone and out in:

/tmp/photon-torpedo.sh

/tmp/install-su.sh

All of the files were still where I needed them.
[Motorola Photon 4G] DeviceSettings:
Ok so I downloaded the torpedo file directly to my phones sd card. Opened terminal emulator. When I type cp sdcard-ext/download/photon-torpedo.tar .

It says "no such file or directory", any ideas? I've tried using adb and cant get that going either. Im probably just missing something. I've rooted all my other phones but I'm new to motorola. thanks.
[Motorola Photon 4G] beartrap:
You might double check if the file is on the sdcard or ext-sdcard.
[Motorola Photon 4G] DeviceSettings:
Thank you that helped. Now I am just getting permission denied. Man I feel like an idiot. I have never had such a hard time rooting.
[Motorola Photon 4G] beartrap:
This was posted on the third page of this thread and I've used it three times and got root on the first attempt each time.
[Motorola Photon 4G] beartrap:
This might also help if you're rooting without a computer.
[Motorola Photon 4G] Djspinister:
Dear Mods,

THIS NEEDS TO BE STICKIED! PLEASE STICKY THIS FOR US, THE PEOPLE WHO CREATED THIS DESERVE IT! QUIT IGNORING THE PHOTON SECTION!

Sincerely, DJ Spinister
[Motorola Photon 4G] Kcarpenter:
in the end I just untar'd everything on my machine and pushed the files to the data/tmp directory with ADB. for some reason it failed to untar on the phone. Oh well.

Im rooted now and I thank you for that.
[Motorola Photon 4G] laffen13:
/tmp worked great for me!
[Motorola Photon 4G] cornelious2:
as an FYI to all /tmp/ is symbolic link to /data/tmp/ if one is working and the other isn't you were just typing something wrong in one of the paths. So in essence /tmp/ = /data/tmp/
[Motorola Photon 4G] lazloe:
Perhaps someone could tell me why I follow all these steps perfectly and still fail with permission denied? What am I missing here?

Not mounted to computer, debugging off, typed manually and copy/pasted, TMP folder is in /data/tmp, tried the several different ways I could find to root.

Thanks.
[Motorola Photon 4G] parin11:
download link not working for photon tropedo

can u update it
[Motorola Photon 4G] John Kotches:
lazloe:

I had this happen yesterday.

Run adb shell

At the shell enter these commands, ignore the $, that's just the unix geek in me...

$ cd /data/tmp

$ rm *photon-torpedo*

$ rm install-su.sh

$ exit

This clears them out.

Then rerun the procedure. I ran into this yesterday, and I think that's how I fixed it. I could be wrong -- sleep deprivation wreaks havoc on my memory.
[Motorola Photon 4G] brobin111:
You mention that debugging is OFF. Reread instructions and you'll see that it must be ON.
[Motorola Photon 4G] lazloe:
Thanks, but that isn't working out either. It did seem to clear everything, but I get the same errors.

I was able to manually remove the file from tmp and changed a couple lines to get the file pushed back and decompressed:

adb push photon-torpedo.tar mnt/sdcard/data/tmp

adb shell

cd mnt/sdcard/data/tmp

/bin/tar xf /sdcard/data/tmp/photon-torpedo.tar

/data/tmp/photon-torpedo.sh

/data/tmp/install-su.sh

Trying the same path trick on the last 2 did not work, still get a "Permission Denied" error.

Tried in Terminal on the phone as well with several path tweaks.
[Motorola Photon 4G] parin11:
Even for me i am getting the Similar Error

Please help
[Motorola Photon 4G] lazloe:
I meant that it is on, everything is correct.
[Motorola Photon 4G] cornelious2:
If you were rooted then flashed the OTA it seems to change the permissions on some of the existing files and blocks it. At this point use the acs one click method.
[Motorola Photon 4G] lazloe:
Thanks for the referral.

I used this post for the one click and it worked perfectly.

Now I can finally get my stuff backed up and get this thing in the mail asap. Got my new 'SGSIIET4G' delivered this morning. :cool:
[Motorola Photon 4G] ChrisCowles:
I rooted my Photon successfully with methods described here, but now my phone doesn't recognize the car dock. Has anyone else experienced a similar problem?

Coincidentally, I dropped the phone a couple of days ago but it seems not to have sustained any damage except a scratch. To distinguish between physical damage and problem software I need to reverse having rooted it. How do I do that? I haven't made any other changes other than running install-su.sh

Thanks in advance.
[Motorola Photon 4G] xTMFxOffshore:
Flash the new SBF file. I believe that is the latest OTA update from Sprint, or will be soon. So that should take you back to preroot stock.
[Motorola Photon 4G] duplissi:
hey just wanted to say thanks! worked on my photon with the latest update.
[Motorola Photon 4G] ChrisCowles:
I got the notice last night for the new OTA update. It installed without a problem. As expected, it disabled root access. It also fixed the car dock problem.

How can I inform the folks who developed the root process about the dock problem?

Chris
[Motorola Photon 4G] WhiteRasta:
Thank you ....

Just wanted to send out a THANK YOU for making it so easy to root my wifes Photon, couldnt get any easier that that , great job .
[Motorola Photon 4G] Major Pain:
Is there a workaround that allows you to use the terminal commands after updating? Im receiving the permission denied response when attempting to install the photon-torpedo.su and install.su.
[Motorola Photon 4G] cornelious2:
A hard reset possibly. I ended up having to use the aio method.
[Motorola Photon 4G] xzjn9p:
I rooted from terminal emulator using the info in this thread

http://xdaforums.com/showthread.php?t=1243792
[Motorola Photon 4G] brianbrifri:
Once you have pushed the photon-torpedo.tar file to /data/tmp it stays there. Install superuser and run terminal emulator commands again
[Motorola Photon 4G] Kernodle:
Worked great on my new work Photon. Thanks
[Motorola Photon 4G] jreuschl:
I am receiving my Photon tomorrow and it sounds like the root method works on any version ROM? So I should go ahead and update the phone to the latest version, then root, and everything will be OK, right?
[Motorola Photon 4G] xTMFxOffshore:
Yeah. I haven't seen any issues with rooting with the latest OTA update. But if you do. Try the AIO one click method.
[Motorola Photon 4G] CYRAXDroid:
what does that mean by Use your favorite method to get photon-torpedo.tar into /data/tmp.

Do you just download the photon torpedo and the proceed with instructions
[Motorola Photon 4G] TheGman125:
Is anyone have this problem when it comes to rooting devices and how are you fixing the problem:

hey is anyone ever had this issue before when your using torpedo to root.

fatal server error:

Server is already active for display 0

If this server is no longer running, remove /tmp/.X0-lock

and start again.

Please consult the The X.Org Foundation support

at http:///wiki.x.org
[Motorola Photon 4G] drewbuchman:
Ez enough

Thanks a lot rooting every device i own is a must thanks for the ez root methods
[Motorola Photon 4G] bitbang3r:
Is there an alternate source for photon-torpedo.tar? The URL listed in the first post seems to be broken.

(edit) update: found it at http://cdn.multidownld.com/files/get/C6BA2NeyY9/photon-torpedo.tar

The CRC32 of the tarfile is 135F0530 and it's 71,680 bytes. Does that sound right?
[Motorola Photon 4G] rrr1986:
I am having this same issue? What are the workarounds?

thanks in advance.
[Motorola Photon 4G] studentjunk:
I root from the computer using adb. Have done it several times. I get the error, but the phone clearly is rooted. The shell prompt goes from $ to # after it's rooted. You can also try using the market program that confirms whether or not the phone is rooted. also, don't forget to install the superuser.apk
[Motorola Photon 4G] xTMFxOffshore:
I use root checker. Works like a charm.
[Motorola Photon 4G] BAleR:
Is there any way to root this phone with out a computer? Thanks for any help

Edit. Lol nevermind.
[Motorola Photon 4G] MikeyLee:
This isnt working. At adb shell it stops at a $ and does nothing.
[Motorola Photon 4G] beartrap:
Do you have USB debugging on?
[Motorola Photon 4G] xTMFxOffshore:
It stops at $ have you entered in all the lines and still got nothing? And yes as bear asked. Is USB debugging on?
[Motorola Photon 4G] MikeyLee:
Yes. I actually found a one click method that worked fine
[Motorola Photon 4G] xTMFxOffshore:
Glad it worked out
[Motorola Photon 4G] lchupacabras:
Just got my phone today and the torpedo download link is down. o__o Any mirrors?
[Motorola Photon 4G] Mactagonist:
http://cdn.multidownld.com/files/get/C6BA2NeyY9/photon-torpedo.tar
[Motorola Photon 4G] lchupacabras:
Alright so I followed the instructions in the PC-less thread of rooting w/ Torpedo; got my root access aaaaand realized the screen on my phone has a bunch of dead pixels...

So now I have to unroot this *****; is flashing the sbf file through RSD the only option I have here? I can't just do a factory reset or anything fun like that right?

/sigh
[Motorola Photon 4G] cornelious2:
I think wiping via bootloader might do the trick
[Motorola Photon 4G] xTMFxOffshore:
You should be able to unistall superuser then factory reset and be square.
[Motorola Photon 4G] ttkyles:
wooot wooot root root

wow worked like a charm!!!!

your directions were perfect...

THANKS so much ...really dont want to flash yet I'm liking GO Launcher with Stock...

But need to start searching for that wifi tether app,, mysteriously missing from sprints market....lol
[Motorola Photon 4G] moxiot:
thanks for the how to. i have run into a major issue after rooting. my speakers sound horrible now. as in a horrible weak "tinny" noise, any idea of what might have caused this guys? please any help would be appreciated.

Sent from my MB855
[Motorola Photon 4G] rickpref:
I initially rooted my fathers phone with no problems. Then he upgraded when asked to and lost root. All the files are still in the /tmp folder but when I try to follow these instructions I get permission denied. I'm trying to uninstall superuser and reinstall to see if that will work but in the settings/applications, it does not let me remove the program. Anyone have any ideas?

Thanks