yashsingh1/xdaforums huggingface dataset:
[Motorola Photon 4G] Djspinister:
For the super noobs like myself (what worked for me)

So I will kinda write out how I did this and how I was helped:

You MUST have ADB installed if you do not then you need to figure that out, there are tons of tutorials on this if you just google it.

Instructions:

Install Superuser from the Market

Install Android Terminal Emulator from the Market

These two things can be done right off the bat. You will come back to this later.

Use your favorite method to get photon-torpedo.tar into /data/tmp

As far as this goes, I just put the zip file you downloaded that probably ended up in your downloads folder right onto drive C - So it should be C:\photon-torpedo...Now do this:

Open a command prompt

TYPE adb push photon-torpedo.tar /data/tmp

Adb shell

cd /data/tmp

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

Make sure you include the period . on the next two!!

./photon-torpedo.sh

./install-su.sh

you don't have to type the /data/tmp part because you are/should be, already in that location.

Now at this point you should be rooted. Open Terminal Emulator you got from the market earlier and

TYPE su

and then hit enter

if super user pops up and asks for permission you have succeeded.

Many thanks to Edgan for the actual process and criptix for the step by step explanation. Sorry so long and if I forgot something please let me know, I hope this helps someone.
[Motorola Photon 4G] albe070:
Well i got it to work through terminal emulator.

Was able to get superuser after type su in terminal emulator as well as root explorer
[Motorola Photon 4G] mikeyinid:
Sorry to veer off topic here, but im curious what the benefit of installing second init on a stock rom is? Anyone? If i understand second init correctly it allows roms that would otherwise require a different kernel to operate with motos stock kernel.?
[Motorola Photon 4G] FrameCityJackal:
You forgot the step where you curse and call yourself stupid because you forgot to select usb debugging
[Motorola Photon 4G] zikronix:
I believe that is correct. IDK this 2nd init **** and bootstrap is all new to me.
[Motorola Photon 4G] eibbojtir:
donating for sure

Monday is payday, definitely sending some money your way that would have otherwise gone towards the purchase of a dock.

THANK YOU!
[Motorola Photon 4G] mikeyinid:
I just wanted to make sure i wasnt missing anything. 2nd init is really more for the devs, and i have a feeling it wont be needed in the next day or so...
[Motorola Photon 4G] zikronix:
I have no idea. I dont know what im doing at the moment...lol
[Motorola Photon 4G] stu5797:
if I need to return my device in the future what js the easiest way to unroot this?
[Motorola Photon 4G] 2kmy477:
You just need to do a hard reset, I believe.
[Motorola Photon 4G] Djspinister:
I highly doubt they would even check, I have returned both of my previous phones completely rooted, different roms, no problem.
[Motorola Photon 4G] royolpunk:
i hate to post this in the wrong subforum, but since you guys have achieved root on the photon 4g could a similar method be used to root the droid 3?
[Motorola Photon 4G] :
Picme isn't working after this method. Can anyone else get that program working?
[Motorola Photon 4G] A2CKilla:
I shall make a youtube video when i get home!!! (for those needed a visual aid) been using wifi teather all day, i love a rooted phone :D
[Motorola Photon 4G] ericdabbs:
I think a youtube video will help a lot of noobies including myself in how to get dockless root access working.
[Motorola Photon 4G] A2CKilla:
yep, i'll post it when i get out of here (long day at sprint) this was actually the 1st time i ever did a root via command line, and it worked perfectly fine and took less then 5min
[Motorola Photon 4G] mobilebuddha:
For those of you attempting the root.. if you get the below message. It is OKAY. Go ahead and run the next command in the instructions.

I was going nuts until I realized that apparently you are supposed to get this? Anyways, tested using Terminal and I have root access. Big thanks to OP & everyone involved!!!
[Motorola Photon 4G] mxmarcus:
Very good!

I am returning my HD dock today!

Thanks
[Motorola Photon 4G] Fyahstarter:
I'm a bit confused. I'm going through your instructions in order and the problem that I am having is that I can't install superuser from the market due to the fact that I'm not rooted already. Any suggestions?
[Motorola Photon 4G] A2CKilla:
superuser should install fine just like any other app even before rooting, i'm getting ready to post the instructional vid in a few
[Motorola Photon 4G] rdcrds:
I gave up.I tried every which way people posted i downloaded all the crap i was to DL got SU etc pn the phone.

Open the command prompt and when i get to /data/tmp ◦/bin/tar xf /data/tmp/photon-torpedo.tar that is where it ends.I get F not valid or no directory i did get the push to data temp and get to sdb shell but that is it after 2 hours i quit
[Motorola Photon 4G] beartrap:
Are you trying the free version by CHAINSDD? I just rooted an hour ago and it worked.
[Motorola Photon 4G] Fyahstarter:
My bad...I had battery savings enabled with required wifi to install apps. I'm rooted! Question, are we waiting for something else (kernel, maybe?) to enable wifi tethering?
[Motorola Photon 4G] e240:
niceeeee.. thanks so much..just got the phone yesterday and already rooted!
[Motorola Photon 4G] ins0dus:
Can all this be done without the use of a computer? Because im currently stranded with the military and no laptop.. im trying to do this bysimply putting the file in mu sdcard and running the commands via terminal ..
[Motorola Photon 4G] beartrap:
I used these instructions and it worked. You can even use copy and paste if you want to be sure to get the commands right. Also, as someone mentioned before, expect an error message but ignore it and continue with the next step.
[Motorola Photon 4G] bpmitche:
I am getting exactly this error, and - fair warning - I'm a total newb. I've tried following the instructions later on in the thread, but I keep running into problems. I wold really appreciate a detailed, step-by-step, from zero to finished walkthrough for the newb, and will pay in advance to commission same. I have the drivers installed, have ADB, and don't know quite what I'm doing wrong.

Although, to be fair, I know just enough about this to be dangerous, but not enough to be productive. Thank you in advance.
[Motorola Photon 4G] A2CKilla:
here you are kind sir http://xdaforums.com/showthread.php?t=1217040
[Motorola Photon 4G] srwilliams777:
shootme is not working as well
[Motorola Photon 4G] rdcrds:
I did the copy and paste thing.Ill try again but i doubt it will work already did 10x already.
[Motorola Photon 4G] beartrap:
USB Debugging is on, correct? That is a little thing people forget about because once on, you don't ever turn it off.
[Motorola Photon 4G] elkay:
Hey edgan, can we do something similar to this on the Droid 3?
[Motorola Photon 4G] kuribox:
I have the same "error" but I follow this no matter what and I have root!

note: all in "cmd" (dos)

1.Navigate to the Android Market and install the “Superuser” application from ChainsDD

◦Alternatively, install a Superuser .apk file from here.

2.Extract the ADB package to your C:\ Drive under a new folder titled “root”

3.Place the root file in the same folder

4.Open the command prompt (Start >> run “cmd” >> enter)

5.Type the following commands

◦cd C:/root

◦adb push photon-torpedo.tar /data/tmp

◦adb shell

◦cd /data/tmp

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

◦/data/tmp/photon-torpedo.sh

(*** Originally Posted by criptix

I did it through adb and after you run

./photon-torpedo.sh

It should say root@localhost:/data/tmp#

Then type ./install-su.sh

Done

◦/data/tmp/install-su.sh

6.Congratulations! You are rooted!

/bin/tar xf /data/tmp/root.tar

Source: Edgan, XDA
[Motorola Photon 4G] snoopy1e11:
Are we supposed to remove the. Xo lock in root explorer
[Motorola Photon 4G] Medic97:
Did this from my mac. Got an error but i do have root so i think I'm good. Thanks my HD dock is going back the store tom.
[Motorola Photon 4G] Custodian:
Hang tight guys will have a fully functional one click root once jugg releases the unlocker. I promise ;).
[Motorola Photon 4G] diomark:
photon-torpedo.sh is working for me and giving me root, and install-su.sh installs /system/bin/su -

but running su gives a segmentation fault:( any clues?

$ su

p[1] Segmentation fault su

-mark
[Motorola Photon 4G] diomark:
got this working. I had to remove superuser from market and reinstall it - then su worked...

-mark
[Motorola Photon 4G] radrian92:
Amen!
[Motorola Photon 4G] ericdabbs:
Uh why are you asking about the Droid 3 in the Photon 4G forum? You need to make a post over there. Hopefully some devs can come out with root for the droid 3.
[Motorola Photon 4G] mikeyinid:
I dont really blame em for asking here. Those guys are losing hope that theyll ever be rooted.
[Motorola Photon 4G] royolpunk:
Were asking it on the photon 4g forum because they are similar motorola devices :P
[Motorola Photon 4G] popularbelief420:
good lord this was easy. how are people really asking for youTube video tutorials? the instructions were PERFECT.
[Motorola Photon 4G] megan23247:
Woo Hoo got root! Thanks everyone! Now gotta load da roms...When they come. :p
[Motorola Photon 4G] Djspinister:
Yea, I thought I got them pretty damn perfect myself, but I guess not. Figured if you couldn't understand mine you prolly shouldn't be doing it. lol

o well

-DJ
[Motorola Photon 4G] mobilebuddha:
rdcrds:

your cmd here is wrong. This is what you had:

c:\root>adb push photon-torpedo.tar/data/tmp

There should be a space between the ".tar" and "/data/tmp" --> the command should be:

adb push photon-torpedo.tar /data/tmp

hope that helps..
[Motorola Photon 4G] brobin111:
I'm a noob having just purchased a MoPho last week as my first real Android phone (the 1.6 phone I used briefly a few years ago doesn't count). This is my first time rooting although I used to be quite the modder in ye olde Razr days. As a bit of background, I've been using Moto cell phones since the first brick came out in the mid 80's.

The root process described here worked flawlessly and exactly as advertised. A few VERY basic tips:

Put the tar file and the adb files in a new folder named c:\root

Install the drivers and plug your phone into your PC via your USB cable.

From your PC - Start:Run:cmd:<enter>
[Motorola Photon 4G] lanyao1920:
that's cool!

would this work on my Droid 3 :D
[Motorola Photon 4G] robsbrutal:
Ive tried everything and i cant get this to work, ive tried manually rooting and tried the one click root also, this is what the one click keeps doing.

* daemon not running. starting it now *

* daemon started successfully *

Getting temp root

712 KB/s (28440 bytes in 0.039s)

425 KB/s (4359 bytes in 0.010s)

801 KB/s (26264 bytes in 0.032s)

12 KB/s (77 bytes in 0.006s)

./data/tmp/Shabby.sh: line 4: ./data/tmp/photon-torpedeo.sh: No such file or dir

ectory

./data/tmp/Shabby.sh: line 6: ./data/tmp/install-su.sh: No such file or director

y

Wait for phone to reconnect...

322 KB/s (4292 bytes in 0.013s)

Copying files onto phone...

failed to copy 'su' to '/system/xbin/su': Read-only file system

failed to copy 'Superuser.apk' to '/system/app/Superuser.apk': Read-only file sy

stem

failed to copy 'busybox' to '/system/xbin/busybox': Read-only file system

failed to copy 'remount' to '/system/xbin/remount': Read-only file system

Setting permissions...

Unable to chmod /system/xbin/busybox: No such file or directory

Unable to chmod /system/xbin/remount: No such file or directory

Unable to chmod /system/xbin/su: No such file or directory

Unable to chmod /system/xbin/su: No such file or directory

link failed Read-only file system

Installing busybox...

/system/xbin/busybox: not found

Cleaning up files...

"You should have root!"

Press any key to continue . . .

EDIT: Finally rooted...my computer added one letter to the filename thats why it wasnt being found.
[Motorola Photon 4G] kcneal:
Worked here as well, no issue. Thanks edgan!
[Motorola Photon 4G] khaag27:
Can this all be done from just the phone itself?
[Motorola Photon 4G] darkerhelmet:
OK this guy is stroking your ego - great for him but that helped little when your instructions read:

Use your favorite method to get photon-torpedo.tar into /data/tmp

Install Superuser from the Market

Install Android Terminal Emulator from the Market

Run Android Terminal Emulator

Run cd /data/tmp

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

Run /data/tmp/photon-torpedo.sh

Run /data/tmp/install-su.sh

Where is this "/data/tmp folder?

Now I am grateful for you posting this since my battery life is horrible and I know rooting the phone will help a whole lot, but please for those that have little experience doing this, where is this /data/tmp folder?

I am using the only tool I have which is the horrible Moto Phone Portal, but when I finally get the file manager to load it takes me to /192.168.1.5@8080/DavWWWRoot - I see not /Data/tmp folder. I installed Superuser so I am ready.

Thanks!
[Motorola Photon 4G] deedscreen:
thanks!!!!
[Motorola Photon 4G] brobin111:
Don't overthink this and don't worry about where the folder is. Just follow the directions as written at http://briefmobile.com/how-to-root-motorola-photon-4g and it'll work.

My post just above shows a screenshot of the process. NOTE: the only minor error in the instructions is in number 5, the 'cd C:/root' should be 'cd C:\root' (use backslash, not fowardslash). Other than that just be sure that USB debugging is turned on first.
[Motorola Photon 4G] darkerhelmet:
Okay I believe I am getting it - mostly through trial and error. So I got the commands working and this is what happened near the end:

C:\>cd c:\root

c:\root>adb push photon-torpedo.tar /data/tmp

788 KB/s (71680 bytes in 0.088s)

c:\root>adb shell

$ cd /data/tmp

cd /data/tmp

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

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

$ /data/tmp/photon-torpedo.sh

/data/tmp/photon-torpedo.sh

ERROR: ld.so: object 'libpcprofile.so' cannot be loaded as audit interface: unde

fined 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

bash: groups: command not found

root@localhost:/data/tmp# /data/tmp/install-su.sh

/data/tmp/install-su.sh

root@localhost:/data/tmp#

What did I do wrong?
[Motorola Photon 4G] mercNstein:
thanks got it rooted.
[Motorola Photon 4G] liudroid:
thank you.nice work
[Motorola Photon 4G] mikeyinid:
what do you mean? its suppose to say that. just keep going to the next step...................................................................................................................................................................................................
[Motorola Photon 4G] bitbearmi:
Thank you. Took a few tries due to the "fat finger syndrome" but works great and I happy I've got a free tether again!!
[Motorola Photon 4G] meiyijun001:
Goog job sir,thanks

what about windows?
[Motorola Photon 4G] darkerhelmet:
Okay so I did as you instructed, which seemed incorrect, and just continued inputting the last command (/data/tmp# /data/tmp/install-su.sh).

All it did was bring me back to the line, "root@localhost:/data/tmp#".

Can someone else explain what I am supposed to do when the terminal displays: "root@localhost:/data/tmp#"?

Microsoft Windows [Version 6.1.7600]

Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\BOSS>cd\

C:\>cd c:\root

c:\root>adb push photo-torpedo.tar /data/tmp

* daemon not running. starting it now *

* daemon started successfully *

cannot stat 'photo-torpedo.tar': No such file or directory

c:\root>adb push photon-torpedo.tar /data/tmp

933 KB/s (71680 bytes in 0.075s)

c:\root>adb shell

$ cd /data/tmp

cd /data/tmp

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

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

$ /data/tmp/photon-torpedo.sh

/data/tmp/photon-torpedo.sh

ERROR: ld.so: object 'libpcprofile.so' cannot be loaded as audit interface: unde

fined 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

bash: groups: command not found

root@localhost:/data/tmp#

root@localhost:/data/tmp# /data/tmp/install-su.sh

/data/tmp/install-su.sh

root@localhost:/data/tmp#
[Motorola Photon 4G] meiyijun001:
What about windows,i need a bat. Thank you!
[Motorola Photon 4G] megan23247:
That means ur rooted my friend! Thats what its supposed to say.

Sent from my Photon on the Now network.
[Motorola Photon 4G] mk3:
Cool, did it, now what?
[Motorola Photon 4G] pzztgotbagz:
Please update original post to show phone must be in Charge Only under USB connection. If not root will not work.
[Motorola Photon 4G] ScandaLeX:
I lost 4g connectivity after rooting.
[Motorola Photon 4G] caffeiNater:
Thanks for discovering and posting this root method! I ran it this weekend, and was impressed with how easy it was. :)
[Motorola Photon 4G] caffeiNater:
Now do fun ROOT-y things! Install Titanium Backup to backup apps and data, install AdFree, install Wireless Tether, etc. More advanced options (ie, research first) include installing maintenance releases and custom ROMs, and uninstalling unwanted "bloat" apps.

Edit: You can also install LBE Privacy Guard, which allows you to approve/deny each individual permission when you install apps.
[Motorola Photon 4G] xbmxer:
Worked or me

Thanks for the root access.
[Motorola Photon 4G] mobilebuddha:
Interesting.. I thought I was the only one. but yeah.. now my 4G always says "disabled". Check the checkbox would make it try to connect to 4g but then goes back to disabled.
[Motorola Photon 4G] ScandaLeX:
Mine says the same and the checkmark cannot be removed to enable.
[Motorola Photon 4G] snoopy1e11:
I flashed the unlocked boot loader but cant oem unlock im tryin to reagain root thru this method it works just wen i try to inatall bootstrap recovery it gives me /data/data/com.a4recovery.sh/ permission denied any body kno wat this means i mean my stuff is got su permissions just can flash cm5 to go bak anythoughts on this
[Motorola Photon 4G] zikronix:
this 4g thing just enlightened me.....i think i know whats going on here.
[Motorola Photon 4G] ScandaLeX:
So enlighten the rest of us! :D
[Motorola Photon 4G] flyguy914:
where is the data/tmp folder? in sd card-ext? please help
[Motorola Photon 4G] snoopy1e11:
Download root explorer soon as u open scroll down to /data wen dat opens clicc on tmp
[Motorola Photon 4G] beartrap:
i rooted using this method and my 4g works fine. I got root on the first try, so maybe it has to do with failed attempts.
[Motorola Photon 4G] brobin111:
I successfully rooted on the 1st try as well and my 4G appears to be working albeit the speed is slower than my wife's Epic 4G. I'm seeing 3.1 to 3.8Mbps and she gets 4.1Mbps. What speed is typical for our MoPhos?
[Motorola Photon 4G] beartrap:
There is no typical speed - it depends on your signal strength and bandwidth availability. My speeds vary from 4k to 11k download depending on the time of day and day of the week. Right now I'm at 5.5k, a little less than my last test which was a weekend when I normally get higher speeds. Most people are reporting faster speeds than the epic. Be sure to run the tests in series, not at the same time, as one phone could steal bandwidth from the other.
[Motorola Photon 4G] brobin111:
Yes, that's what I did, first mine, then hers, etc. from the same location. I've got a very good signal here so I should probably be seeing better.
[Motorola Photon 4G] plmiller0905:
I just rooted using this method and although I don't have 4G where I'm at right now, i believe it's working. I checked the 4G box and it said scanning and now it says disconnected. I can also uncheck the box and recheck the box with no issues.

I got root on 2 tries.
[Motorola Photon 4G] mobilebuddha:
Yes please.. enlighten us. :)
[Motorola Photon 4G] flyguy914:
i'm having trouble with this also, I created a tmp folder in sd ext but when i go to the terminal emulator it says it cant find it, what am I doing wrong? please help
[Motorola Photon 4G] rafaelsantoni:
Is there an easy way to do this using a Mac running OS X Lion? I recently upgraded my Mac and I have problems running my windows copy (VMWare crashes badly) so I can't execute the command line entries.
[Motorola Photon 4G] r2rickster:
Thanks a lot! Worked great
[Motorola Photon 4G] cpiggott@gmail.com:
Trying to figure out how photon non-HD root works

photon.tar works by inserting a shared library, then invoking X. The script it runs is:

#!/bin/bash

umask 0
LD_AUDIT="libpcprofile.so" PCPROFILE_OUTPUT="/lib/libphoton-torpedo.so" /usr/bin/X
cat /data/tmp/libphoton-torpedo.so > /lib/libphoton-torpedo.so
LD_AUDIT="libphoton-torpedo.so" /usr/bin/X

Permissions on the X executable are indeed setuid

ls -l /usr/bin/X
-rwsr-sr-x 1 root root 9712 Apr 3 2009 /usr/bin/X

My question is: why does this work? Man pages for standard glibc say that LD_AUDIT is ignored on setuid:

Some seclist postings seem to suggest that by placing the library in a trusted location, this may be overridden. However:

# ls -ld /lib
lrwxrwxrwx 1 root root 8 Aug 11 18:29 /lib -> /osh/lib
# ls -ld /osh/lib
drwxr-xr-x 14 root root 6144 Aug 15 18:45 /osh/lib

seems to suggest that this script shouldn't have had access to do this.

# ls -l libpc*
-rw-r--r-- 1 root root 5520 Apr 9 2009 libpcprofile.so

so I'm still stumped about how this works.
[Motorola Photon 4G] mountainbyker:
Plz ignore

Please ignore this - I answered my own question.
[Motorola Photon 4G] cpiggott@gmail.com:
I answered my own question by doing a little more digging. It's a problem with libcprofile. I don't know if that makes it droid (bionic?) specific or what ... I tried the same trick on several ubuntu desktops and they didn't have the vulnerability.

Scary. What scares me about stuff like this is what prevents malicious apps from doing it on me in the background. I wonder if anything on my phone actually needs that library - I'm contemplating removing it (or at least renaming it).
[Motorola Photon 4G] armondob:
I think I'm missing something..

How can I transfer the torpedo file (tar) to " /data/tmp " if I don't have root access yet :/
[Motorola Photon 4G] brobin111:
Just follow the instructions at http://briefmobile.com/how-to-root-motorola-photon-4g and you needn't worry about anything else.
[Motorola Photon 4G] allohiosealants:
I must be real dumb. I still cant get this. I rooted my evo with no problem.

Can someone please post the instructions for dummies

Thanks
[Motorola Photon 4G] deedscreen:
Hey check the link out here:

http://briefmobile.com/how-to-root-motorola-photon-4g

Make sure you install all of the drivers.

I read the comments below the directions, and tried the different methods, I combined all of the tips in the comments and tried many different methods. Try that.

Command Promt said that it was unknown with some error. try that, reply to my post, and let me know, use Root Checker to find out in the end.

Try the reversal slash method, and use root checker when you are done. Let me know. Thanks.
[Motorola Photon 4G] snoopy1e11:
Y does everytime i root im good then like the next day w/o flashing it says su binary outdated n wen i try to update it force closes. Basically i have root access but cnt get into recovery thru quick boot says im not rooted then force closes