yashsingh1/xdaforums huggingface dataset:
[G2 and Desire Z Android Development] texasaggie1:
Big props to SAINTH for his guide. Some of my guide is a word for word rip off of his guide. I just copied it and played around to get a simpler way to root. It is still temporary but now when you have "SU" you are messing with the ACTUAL files on the device, NOT a copy on your SD card. Also, programs installed in root mode are still on your device when not in root mode.

I wrote this entire post while tethered to my device using this method.

NOTE: IF SOMEONE COULD GIVE ME A RECOVERY TO FLASH, I THINK WE WOULD HAVE PERMANENT ROOT :)

OK, I am a dev noob... total noob... please no flaming...

Getting Started: (ONE TIME STUFF)

1) Partition your SD card with at least a 300mb EXT3 partition. I Used gparted in Ubuntu. (ubuntu.com ...download the iso, boot as a live cd, install gparted....google for more details)

2) Download and install from Market: Bar Control. I will explain why in a moment.

3) Download and extract visionroot.zip into your tools directory.

4) Use adb to install programs and transfer files to your device:

On the phone, enable "USB debugging" in Menu -> Settings -> Applications -> Development

On a computer with the Android SDK tools installed and working (adb is included with the SDK, so install the sdk and you will have adb. GOOGLE "adb sdk install" for more details):

adb push busybox /data/local

adb push rage /data/local

adb push root /data/local

adb push rsync /data/local

adb push su /data/local

adb install Term.apk

adb install Superuser.apk

adb shell chmod 755 /data/local/busybox /data/local/rage /data/local/rsync /data/local/root

5) Run Bar Control and select Terminal Emulator to run in the task bar. Early on, when I was playing around with this rooting method, temp root would just disappear. I found it stays if I use Bar Control. I think since Terminal Emulator is in the task bar, android is less likely to kill it. I did this whole post using tethering without root ever going away.

Ok. SETUP stage is now over. From this point on is how you will get root each time you boot up your phone.

Getting Root:

1) On the phone, open "Terminal Emulator" from the taskbar and type:

cd data

cd local

./rage

Wait for it to say "[+] Forked NNNN childs." then press the back button until you are back at the home screen. It will be slow for a bit.

2) Open "Terminal Emulator" again from the task bar and it should force close. It's ok if it doesn't. Just skip to #3.

3) Open "Terminal Emulator" one more time from the task bar and the prompt should display "#". This is the ROOT prompt! You are almost golden now! Then type:

cd data

cd local

./root

You may get some "Killall: Can't kill such and such" messages. Not a problem.

DO NOT hit the back button. You want terminal to keep running. Hit the Home Button.

YOU NOW HAVE ROOT! Superuser should be working too. We may find that we dont need bar control and terminal running. Let me know and I will change my post.
[G2 and Desire Z Android Development] texasaggie1:
What I've Used Root For So Far

Some people are questioning the value of root without custom ROM's. Here is what i have used ROOT for on this ROM so far:

1) Wireless Tether - this alone is worth it! The 9-5 version from this page works amazingly on the G2:

http://code.google.com/p/android-wifi-tether/downloads/list?can=2&q=NexusOne

2) Uninstall Crapware - I used Titanium to uninstall Web2Go. What a pile of steamy poop. EDIT: The software MAGICALLY reappears after reboot. I can't wait to crack this phone!

3) Back up with Titanium - Most awesome backup program out there. Needs root to work.
[G2 and Desire Z Android Development] johnnylicious:
good stuff bro ima try this.
[G2 and Desire Z Android Development] Dalamak:
this is all well and good, but the point of rooting is the custom roms, we've had a Temp root since day one, but no reason to root it. :(
[G2 and Desire Z Android Development] texasaggie1:
yes but

Yes we did BUT that temp root method didn't allow access to the real files of the device. It accessed copies (simply put I know). This temp root gives ROOT access to the entire device which puts us a GIANT step closer to a permanent solution.

Also, the other temp method couldn't handle installing Apps in one mode and using them in another. Some Apps disappeared at reboot. With this method, Apps that are installed in either mode are always accessible.

Basically I did this for my own device and just wanted to share with others
[G2 and Desire Z Android Development] Dalamak:
But of course I thank you for your efforts, you are a god, I meant no disrespect
[G2 and Desire Z Android Development] texasaggie1:
LOL hahahah thats funny. I'm def not a god at this
[G2 and Desire Z Android Development] sino8r:
Good job man! This will definitely make it seemer on the folks who aren't Linux friendly or lazy folks like me. Oh and btw... you're the futherest thing from a newb! Hahahha! You've been here longer than me. Its rare that I see the real old school guys here anymore. Weren't you in the wizard or tornado sub forum many years ago. You seem familiar...

Oh btw, someone posted a clockwork recovery that was allegedly compatible with the G2 but I don't think anyone had the balls to flash it. Its in the root think tank thread...
[G2 and Desire Z Android Development] hiko36:
Nevermind. I've decided to retract my comment and just try the process to see what happens.
[G2 and Desire Z Android Development] notxel21:
Method worked amazingly well! :D

Thank you for this!! :cool:
[G2 and Desire Z Android Development] dynamikd:
Awesome job!
[G2 and Desire Z Android Development] scoochv:
Will this work with the 4 click on-device root apk posted in this thread: http://xdaforums.com/showpost.php?p=8535854&postcount=95 ?
[G2 and Desire Z Android Development] khaosxiii:
Looks like a great guide as only 1 part is required - this allows me to part in my G1 AmonRa Recovery FTW!~111

(Also a great option if you are worried about booting up your G2 after formatting the SD as any progs looking for files there will be disappointed until you can copy them back ...)

Running a continuous Ping in Term now to see if that does the trick ...

EDIT:

Alright! this is awesome!

Q:

IF all we have to do to keep root is to keep the shell open - can't we run a prog or command to prioritize that prog ... like ... i remember that auto taskiller had settings against apps that were in the forgroud, background, background services etc ...

can we fool the OS into thinking this is allways a foreground process even though it's really running in BG ...or somehow give it highest priority?

EDIT 2:

Installed WirelesTeather.apk and ran and installed binaries - SU came up and granted all permission w/o issue - everything looked good.

Didn't open any other programs and decided to test it later, after noticing the AP didn't show I checked Terminal from the taskbar and it was back to $ (was closed by system)

I am running a fish aquarium for livewallpaper - so I'm sure this is why it closed as I'm running more processes at idle ... however, it looks like opening pretty much anything will cause the terminal to close and kill the "temp root'

Running a continuous Ping in Term now to see if that does the trick

FINAL EDIT:

OK! Ran continuous ping, opened Quake 3 - played for a bit - closed it.

Checked Term from the status bar - My Ping is still running !!1111 (IE the shell didn't close and we still have root)

So ... maybe this helps

:-)
[G2 and Desire Z Android Development] luis86dr:
You are the man. Downloaded. Tested. It works!
[G2 and Desire Z Android Development] mikeybot:
GREAT WORK!

Got it up and running, and just got 2.26 down, 1.23 up on my laptop off wireless tether.
[G2 and Desire Z Android Development] lilwing:
so since this works directly with system files what happens if you try to metamorph something..will it revert on reboot or stay
[G2 and Desire Z Android Development] laff4fun:
Excellent job!

You are a genius! Your guide worked perfectly! I am typing this while tethered to the G2 - I agree with you, getting Root for tethering is worth the hassle of getting Root access! Keep up the great work!

I had been taking the SIM chip from my G2 to G1 (rooted, of course!) for Internet access - No more! Thanks again!
[G2 and Desire Z Android Development] fastludeh22:
ive tried, several different ways, even ones that had a good chance of bricking, i.e. messing with ruu, and swapping files in the middle of flashing, just to try and get this perm root
[G2 and Desire Z Android Development] aacrabtree:
For Wireless Tether, I'm getting an error where it can't start access point. Anyone else have that problem? My computer won't recognize it without it.

EDIT:

Never mind, access point won't start if WiFi is on, and WiFi Tether isn't automatically shutting it off (like I think it's done on other phones), so if anyone else has the problem, turn off WiFi, then run WiFi Tether.
[G2 and Desire Z Android Development] texasaggie1:
Which Version?

Which tethering apk are you using? If you are using the one from the link I provided it should work. I am not having to turn off wifi first for it to work for me.
[G2 and Desire Z Android Development] texasaggie1:
anything promising

Did anything work or show signs of promise?
[G2 and Desire Z Android Development] texasaggie1:
didnt work for me

That little app is a great idea but it didnt work for me. If somebody contacted the author we could prob make it work fairly easiy
[G2 and Desire Z Android Development] texasaggie1:
What command did u use to ping?
[G2 and Desire Z Android Development] texasaggie1:
wizard

wow, you have a good memory. I did a lot with the wizard years ago when I had one.

Can you post a link to that clockwork recovery? I've tried flashing his and amons latest recovery for the nexus to my G2 with no luck
[G2 and Desire Z Android Development] aacrabtree:
I used the one from the link, so I dunno. It's not a big deal, I use Y5 to keep WiFi off when I'm not somewhere where it's of use, so the only time I'd notice the problem is when I'm testing it to make sure it works.
[G2 and Desire Z Android Development] aacrabtree:
Here's the link: http://xdaforums.com/showpost.php?p=8496910&postcount=555

Let us know if it works!
[G2 and Desire Z Android Development] aacrabtree:
Also, if you can tell me how you're flashing it, I can try as well. I've tried putting the flash_image file from when I rooted my Droid on the root of my sdcard, and running (in su terminal) flash_image recovery recovery.img, which gives the error of "flash_image not found", and running /sdcard/flash_image recovery recovery.img, which gives the error of "permission denied". ROM Manager will flash the Nexus One recovery, but obviously that's not helpful, and there's no option to flash a recovery from sdcard.
[G2 and Desire Z Android Development] mcp2009:
I know how to flash a recovery from sd with rom manager. when I tricked rom manager to flash ra 1.9 all i did was click flash alternate recovery ra 1.7.0.1 and then went to my sd card and opened /sdcard/clockworkmod/download/files.androidspin.com/downloads.php/dir/amon_ra/RECOVERY/file because this is where it downloads the ra 1.7.0.1 recovery and then I just copied ra 1.9 recovery to this directory and renamed it to recovery-RA-nexus-v1.7.0.1.img because that's what 1.7.0.1 was named and the when I went back to rom manager and clicked flash alternate recovery ra 1.7.0.1 and it flashed 1.9 because I named 1.9 recovery-RA-nexus-v1.7.0.1.img and it thinks it's 1.7.0.1
[G2 and Desire Z Android Development] aacrabtree:
I (supposedly) got the recovery to flash by spoofing it like mcp2009 suggested, but when I go into the recovery, it's still the stock recovery.

So either the cache is still being flushed, or the recovery isn't flashing. Which means this is either a dead end, or I'm using the wrong method of flashing the recovery. Unless you had some other plan of how to attack this once you had the recovery file.
[G2 and Desire Z Android Development] mcp2009:
same here. The method I use definitely works because I've used it on my nexus and a friends. I noticed that after I flash the recovery I lose root so maybe it actually it loses root right before you flash recovery?
[G2 and Desire Z Android Development] aacrabtree:
I don't think so, because if you tell SuperUser to forget ROM Manager before doing it, it asks for (and gets) su permission at the end of the recovery being flashed. My thought is that we're still just writing to the cache, which is flushed right after recovery is flashed, which also kills the recovery flash.

So if texasaggie had some method of writing permanently, and not just to the cache, then this would work. Otherwise, I think it's a dead end.
[G2 and Desire Z Android Development] bled82:
NM winzip messed up and did not extract all files
[G2 and Desire Z Android Development] hah2110:
What is the easiest way to partition the SD card without losing data? So does this mean one can execute root from the phone on the go?
[G2 and Desire Z Android Development] texasaggie1:
partitioning

easiest way is to use ubuntu.... download the iso, boot as a live cd, install gparted.... most of the time data is safe and remains intact, though not always
[G2 and Desire Z Android Development] ddgarcia05:
Sorry this is going to be a noob question.

I seem to have sdk and adb working, I think.

I run these command

C:\current\location cd cd:\use\this location

...runs good

c:\android\tools> abd devices

XXXXXXXXXXX458 device

c:\android\tools> adb shell

$ (su) <-----I type in "su"

su

su: permission denied

$

My question is do I need "su" or can I just start with the code below...(i'm guessing now due to it being pushed in)

adb push busybox /data/local

adb push rage /data/local

adb push root /data/local

adb push rsync /data/local

adb push su /data/local

adb install Term.apk

adb install Superuser.apk

adb shell chmod 755 /data/local/busybox /data/local/rage /data/local/rsync /data/local/root

And example of the first code, "adb push busybox /data/local" would look like this

c:\android\tools>abd push c:\busybox.apk /data/local <----or should it say sdcard??????????

do the "/" "\" matter or do they have to be same as yours?

Sorry again for being such a newb.

I'm getting my information from here..http://www.londatiga.net/it/how-to-use-android-adb-command-line-tool/
[G2 and Desire Z Android Development] aacrabtree:
First, you don't need root (su) to run those commands. All of those files that you're pushing are what give you root/SuperUser.

Second, his instructions are assuming you're using Linux (or Mac), so the directories for files on your computer (if you're using Windows) (local) will have \ whereas those on the device (remote) will have /

Edited for stupidity fixing
[G2 and Desire Z Android Development] mikeybot:
I guess I didn't do it right and didn't the perm temp root, just the regular temp root.

I've tried running all the steps a couple of times(uninstalling term and superuser before starting) and keep getting a

cp: can't stat 'data/local/Superuser.apk': No such file or directory

any ideas what I'm doing wrong?

Thanks in advance!

edit: just pushed Superuser.apk to the /data/local directory. Hopefully that will take care of the problem.

did the ./root command after that and got:

killall: rage: no process killed

mkdir failed for /system/xbin, File exists
[G2 and Desire Z Android Development] Smokuevo:
Would like to thank the poster of this.going to use it till theres one that sticks.also for sale rooted tmobile nexus one.pm for info.thanks
[G2 and Desire Z Android Development] SuperDave81:
Maybe I'm doing something wrong here but I can't see data/local, only data. And when I try to push to it I get "permission denied". Any ideas?
[G2 and Desire Z Android Development] smasraum:
Cool, worked great. How long it lasts, remains to be seen, but it's a good start. I'm adfree again, aaaaahhhhhhh.

thx tons!
[G2 and Desire Z Android Development] ddgarcia05:
Sorry, last question.

If for some reason I need to send the phone in for repairs, how would I go back and remove the installed apk and other stuff?
[G2 and Desire Z Android Development] smasraum:
Well, I think all you'd have to do is swap out the SDCard, or remove the extra partition.
[G2 and Desire Z Android Development] smasraum:
OK, last night, I setup a constant ping. I didn't want my phone sending a ping several times a second, so I set the time to be every 5 minutes. This morning when I woke up, the ping was still running. I just checked it (about 2 hours later) and the ping had stopped and I was back at a normal non-root prompt on my terminal session. I can't su any more, so this seems to be similar to the other methods. The good news is that adfree still seems to be working. I hope that sticks.
[G2 and Desire Z Android Development] smasraum:
I had to run back through this stuff, but that's not difficult.

1) On the phone, open "Terminal Emulator" from the taskbar and type:

cd data

cd local

./rage

Wait for it to say "[+] Forked NNNN childs." then press the back button until you are back at the home screen. It will be slow for a bit.

2) Open "Terminal Emulator" again from the task bar and it should force close. It's ok if it doesn't. Just skip to #3.

3) Open "Terminal Emulator" one more time from the task bar and the prompt should display "#". This is the ROOT prompt! You are almost golden now! Then type:

cd data

cd local

./root
[G2 and Desire Z Android Development] khaosxiii:
PING:

Yeah, sorry guys - originally I had thought that this made it stick, however I'm noticing now it still goes away after what seems like a randon duration ...

Yesterday I remounted /system and made and removed a dir and the shell stayed open all through last night - I thought for a while that that was the key until today I started using the phone normally and it went to $ prompt again after a few hours ... maybe a script that runs continiously is the answer ...?

Wonder what running logcat 24/7 would do for the battery and if that would make any difference?

(Trying now .... xD)
[G2 and Desire Z Android Development] SuperDave81:
If someone could help me out it would be greatly appreciated.
[G2 and Desire Z Android Development] wilnotdie:
I ran into a sim. prob. Check to make sure your not trying to push from within the shell.

Ex.

Adb shell

Adb push

Don't adb shell first. I forgot this and got the same error.

Goodluck
[G2 and Desire Z Android Development] innerlight:
Is there another way to make a partition besides ubuntu? I downloaded it and tried to use daemon tools to get it to work but its not working.
[G2 and Desire Z Android Development] ddgarcia05:
Youtube..... "how to partition sdcard windows. " I found a real helpful video which allowed me to do it.
[G2 and Desire Z Android Development] texasaggie1:
Ok so you are only partially where you need to be. From here you have at least 3 options:

1) Once you download the ubuntu iso you can burn it to a cd. The cd is bootable so boot into it and you will have a live version of ubuntu.

2) you mounted the iso with daemon tools. From there you can install a version of ubuntu that runs in a windows file. Its a pretty good way to get ubuntu.

3) install virtualbox and run ubuntu virtually over your os. I use a macbook so this is a method I use. I also run windows over os x too with this method. Its a little tricky at first but there is a ton on info on the internets about how to do it.

Good luck
[Hero CDMA Q&A, Help & Troubleshooting] MrSpradlen:
How do I push an app to install?
[Hero CDMA Q&A, Help & Troubleshooting] ldc2335:
are you rooted?
[Hero CDMA Q&A, Help & Troubleshooting] kyouko:
adb push /"filenamehere" /location/in/phone

ex) adb push /clock.apk /system/app
ex2) adb push C:\users\NetOpravdanii\Desktop\Handcent_Orange.apk /data/app

*note the "filenamehere" is assuming you put the file you want to push in your tools folder (if running windows) Or your current working dir if running linux/ubuntu*
[Droid Incredible Q&A, Help & Troubleshooting] sobolkz:
:confused: Hi all developers! I have one question - have anyone information about where home network information placed? As I see radio settings is independent from ROM settings. Also I see that some settings placed in ROM, for example Call section's NBPCD and Assisted Dialing settings. Problem is that I use Incredible outside from U.S. and some programs wouldn't work fine because it have some limitations in US - for example new Skype work only in WiFi mode. Then I try to run it in 3G network it's write attention like "In the United States you can only make Skype calls over WiFi". Can we fix it?

P.S. changing NBPCD and Assisted Dialing settings give result only for call making process, not for global network settings.

P.P.S. I found one way - we can change file build.prop in ROM image (system/build.prop). There is two sections - ro.cdma.home.operator.numeric and ro.cdma.home.operator.alpha. I change it to my operator's default settings and bingo, I have stock Skype.apk, that work in 3G network. Next step is change stock's backup image. So, have anybody information about OS files, where this information placed?

Last update - simplest way for change build.prop at installed image is SDK's adb pull and adb push commands use. It's checked and really worked.
[Droid Incredible Q&A, Help & Troubleshooting] todd3835:
I thought I had read somewhere that verizon is letting Skype work over 3G. If I can find it again, I'll post it here.
[Droid Incredible Q&A, Help & Troubleshooting] todd3835:
Found a hacked APK over at DroidForums. I'll try to post the link.

http://www.droidforums.net/forum/xeudoxus/78843-apks-unlocked-apps.html
[General Questions and Answers] justinewing80:
how do you guys get to show your phone history to show up at the bottom of your comments just curious. Would love to be able to do that
[General Questions and Answers] Mr. Clown:
That will be by editing your signature, you will need to access your user cp to do that. Then, you will only need to attach a picture in your sig.
[General Questions and Answers] timmymarsh:
and links in your sig after 8 posts not before :)
[General Questions and Answers] madnish30:
You can usually edit your signature after 8-12 posts i.e. when you have made 8-12 posts on various threads. Then you will see an "edit signature" option in your quick links drop down menu and there you can make your own signature :)

Make sure those 8-12 post are productive :) or you can visit the Off-topic section.
[General Questions and Answers] justinewing80:
Thanks Guys

XDA community is awesome i love you guys jk just like but really thanks alot
[Vibrant Android Development] solarpanel:
I've created a zip archive that can be flashed via Clockworkmod Recovery to replace the necessary files in /system/lib and /system/bin to flash a kernel built against T959UVJFD onto a newer build (thanks to eugene373 for the list of necessary files^_^).

Incase anybody is wondering... I've flashed this myself with no issues and bluetooth works fine.

Edit: A good example of this is flashing one of JAC's or kingklick's kernels onto the new OTA UVJI6 firmware :-).
[Vibrant Android Development] Bummrusha:
Forgive the noob question, but will this allow us to flash Jac's XMOD kernels on a JI6 rom?

Nvm found the answer myself. For any other noobs wondering, the answer is yes. Duh :rolleyes:

Thanks for posting this!
[Vibrant Android Development] solarpanel:
You're welcome.
[Vibrant Android Development] kraftey:
Perfect. Just what I was looking for!

thanks
[Vibrant Android Development] kingklick:
this also works my my kernels

thanks a bunch man!
[Vibrant Android Development] solarpanel:
Indeed, I should change that in the OP.

...and you're welcome :D.
[Vibrant Android Development] frankencat:
Sweet, I am gonna give this a try right now. :)

Edit: Nope. Phone hangs at Vibrant screen. :(
[Vibrant Android Development] joshthewaster:
Worked perfectly for me. Saw the other threads about this and just hadn't had time to give it a go but I am now running Jac's uv/oc/cf.
[Vibrant Android Development] solarpanel:
Can you describe the steps you took to flash this? I came from stock JFD (repartition and EFS clear checked) to JI6 (nothing checked) and then flashed the .zip with CWM and it worked fine.