yashsingh1/xdaforums huggingface dataset:
[G2 and Desire Z Android Development] sino8r:
What the heck are you talking about? This phone hasn't even been released officially and you are already tired of waiting on root? why don't you learn some stuff and crotribute to helping us get root?

Guys, I know the thought of developing on linux is scary but you can always start with simple stuff like boot animations and themes. Don't you notice how most developers have left xda because all people do here is ask and not give. quit crying, complaining, and posting stupid ****! learn to contribute!

sorry I was up all night last night and got no sleep working on trying to ROOT this damn phone and figuring out what the deal is with our missing storage space on the g2. I'm just cranky. and btw, this isn't directed just at this guy but a lot of people here. sorry to single you out. nothing personal.
[G2 and Desire Z Android Development] M9x3mos:
weird I dont know what I messed up because the commands for the phone are alot of typing so I copied that text and made a script minus the '#' symbol for all lines and when I run it can;t kill process says can't find and won't remount but if I type it into the phone working fine

here is exactly what I put in on the script for terminal on device

/data/local/tmp/busybox killall rageagainstthecage-arm5.bin

mount -o rw,remount -t ext3 /dev/block/mmcblk0p25 /system

/data/local/tmp/busybox cp /sdcard/Superuser.apk /system/app/Superuser.apk

/data/local/tmp/busybox cp /sdcard/su /system/bin/su

/data/local/tmp/busybox cp /sdcard/busybox /system/bin/busybox

chmod 4755 /system/bin/su

chmod 4755 /system/bin/busybox

mount -o ro,remount -t ext3 /dev/block/mmcblk0p25 /system
[G2 and Desire Z Android Development] InGeNeTiCs:
I think you may have singled out the wrong person. As I understood it, his post was stating that he was worried we weren't going to be able to root the phone at all...intending the post to be a 'sigh of relief' if you will. There was no implication of being impatient.

And I know it's annoying when people demand stuff without contributing, but if were to open a restaurant and everything on the menu was free, guess what? You'd have a crapload of customers, and they'd all be asking for stuff for free. Once development picks up, there will be a lot less posts about people wanting root and such...just be patient. Coming from a guy who pre-ordered the g1, I think I know a little bit about waiting for good things to happen.
[G2 and Desire Z Android Development] InGeNeTiCs:
That IS strange...I don't see anything wrong with what you've posted here...but I can say that I've seen some strange happenings lately. I'm getting rid of a samsung epic for the g2, and if I used the cable that came with it, nothing through adb would work properly, I had to use a better quality one I got off amazon.
[G2 and Desire Z Android Development] sino8r:
I agree or try a different driver (pdanet one). It is showing under adb devices right? that cable that came with was giving me hell while trying to charge it last night. I'm not sure as using it to tether for adb because I used my old one for the pc.
[G2 and Desire Z Android Development] OgBrog:
I didn't mean to sound ungrateful, it's just that every other phone I've ever

owned already had a root method when I got it. After reading that no previous

root methods work I worried it might be locked like the droid X.

I really don't know too much about rooting and I doubt that there's anything that

I could think of or do that someone more knowledgeable hasn't already done.
[G2 and Desire Z Android Development] perdid0:
CM on G2

Cyanogen said he has already written the device config profile. So as soon as there is root ans the BBQ is over there will be CM!
[G2 and Desire Z Android Development] unforgiven512:
Sweet
[G2 and Desire Z Android Development] tubaking182:
The reson none of the old methods have worked so far is because this is an entirely new device. With this device we have new hardware and stock software that has not been seen/hacked yet. We are getting there so just hold out a little while, this device will rock when rooted, and after the BBQ this weekend we should have a few more guys looking into this with us.

Back on topic now
[G2 and Desire Z Android Development] khaosxiii:
AWESOME!

This is awesome! Will certainty be following this rather then all of the ghey fags in general complaining like a bunch of women.

Now we just need a root SPL or something to flash in the root shell right?

:D
[G2 and Desire Z Android Development] tubaking182:
You can follow the happenings in the thinktank thread. Best to just follow or test what is suggested if you feel comfortable.

On a side note the other build posted makes for a good un-root so I would keep it named PC10IMG.ZIP on the root of your sdcard, should anything bad happen to your phone you should be able to flash that from bootloader
[G2 and Desire Z Android Development] mikeybot:
What's the username and pwd to get the file?
[G2 and Desire Z Android Development] grankin01:
The other build has radio 12.21.something. My g2 came with 12.22.something. So you would have to downgrade your radio. Should work though. :)

Everything else looked to be the same though.

edit: Nevermind, after reviewing the numbers I read them wrong. Everything does look to be the same. Apologies, with my first drill weekend with the army reserves and still moving into a new house I guess my head wasn't completely in the game. :rolleyes:
[G2 and Desire Z Android Development] mcp2009:
username - beta password - beta
[G2 and Desire Z Android Development] mikeybot:
Awesome, thank you :D
[G2 and Desire Z Android Development] connoisseur:
OK, had a hell of a time getting the rageagainstthecage-arm5.bin from the OP's link. For some reason that file comes down simply as "rageagainstthecage" no extension at all (tried unpacking with winrar and later 7zip). Tried changing the name.extension myself, but you know windows screws up linux files so I ended up getting the file from here http://alldroid.org/DesktopModules/YetAnotherForumDotNet/resource.ashx?a=227 and it worked just fine.

this was also helpful if you don't have the files for busybox and su http://xdaforums.com/attachment.php?attachmentid=387946&d=1282754318 just pull out the files you need though.
[G2 and Desire Z Android Development] Hayzie:
Screw you! Get back to work!
[G2 and Desire Z Android Development] AndresAboveAll:
Hey Im new to this whole proccess and it may be alot to as but can someone please be kind enough to show me a step by step process on how to root my G2. I see all the commands on howto do it on the G2 but i dont know what goes on behind the scenes and dont know hot to use those commands. Ive tried multiple steps with Terminal Emulator but dont know how to use it.

Can someone please help me. I would really appreciate it
[G2 and Desire Z Android Development] tubaking182:
At this point there's no reason to do it as it gets lost at reboot, just wait till wse have permanent solution for root and then we can adjust the step by step
[G2 and Desire Z Android Development] ceas909:
Is anyone working on a rooted recovery??? you should be able to flash it via terminal after this process and then install a rooted rom...
[G2 and Desire Z Android Development] daijizai:
I believe that they were experiencing a problem where writes to the eMMC were discarded.
[G2 and Desire Z Android Development] Jrbourque:
is there a rooted rom that is ready to be flashed if we can figure out a way to get a rooted recovery on here?
[G2 and Desire Z Android Development] sino8r:
Hahahhaha! Hey hayzie, did you join us too? Or just lurking around...
[G2 and Desire Z Android Development] dynamikd:
So think tank is where everything is being tested and this is where the final steps are posted?
[G2 and Desire Z Android Development] tubaking182:
when permanent root is found it will be posted there first, then after replication and confirmation on steps that work we will transfer the steps here. but you may test anything that is posted to try(include diclaimers here) you must be sure that you can undo anything you do.

anyone who wants to test in the thinktank please be sure to post results of anything you tried for anyone, be as specific as possible and include pics/vid if asked, any minor detail could be important
[G2 and Desire Z Android Development] khaosxiii:
Didn't see this posted yet - sorry if it was already

I'm unable to adb to the Vision from my PC

Error: device not found

Win7 32bit - Android SDK Tools rev.7

Device is showing up as "Portable Devices" - WPD File System Driver in Dev Man

Driver Provider = Microsoft

Tried to force the driver downloaded by SDK in android-sdk-windows\usb_driver but it won't take it

Any Help is appreciated

Thanks in advance...

EDIT:

Tried this so far: http://forums.t-mobile.com/t5/Opera...OW-TO-Get-ADB-to-recognize-your-G2/m-p/487554

Windows still hates the driver - tried to update driver on portable device and hard driver that's detected get: The folder you specified does not contain a valid driver ... am I just missing the USB Debugging option on the phone? (can't find it ...)

SOLVED:

lololololol ... Menu, select Applications > Development, and enable USB Debugging
[G2 and Desire Z Android Development] Mikey:
Has anyone tried to de-odex the rom?
[G2 and Desire Z Android Development] Kandydish:
CM6

Back to the topic on if there are any ROMs to support it.

The answer is yes. Cyanogen has everything ready for it to be released.

And back to the person who said people should start contributing,

Anyone wanna teach me?
[G2 and Desire Z Android Development] xile6:
anyone try removing the battery after temp root to see if maybe when you power off/reboot a command is clear out the system?

Ill try it in a lit bit when i get some down time
[G2 and Desire Z Android Development] vdub804:
tried it it's a no go
[G2 and Desire Z Android Development] M9x3mos:
I don't know if I am messing up anything but has anyone found a sh script that can be run in terminal to do it on device or atleast the last part of it. When I copied the last step of command and run in terminal emu on device does not work. But if I manually type commands it works just takes forever to type lol
[G2 and Desire Z Android Development] nolsen311:
Just copy all the parts you need into a file, make the first line #!/system/bin/sh (which *should* be where the command-interpreter lives), chmod it, and go to town.
[G2 and Desire Z Android Development] Droidz:
Hey guys I've been with android and the G1, since day one, and I've been watching xda constantly I've seen the growth of cyanogen, and many other devs, and I've decided I want to start putting back into the community, so I've set up my pc with linux and I know many basic commands just wondering if someone could help or point me in the right direction to start understanding the more intricate parts of android, so I can start developing and giving back to this awesome android community we've built over the years.

I've had many android phones from the G1 to mytouch and slide, cliq, nexus, hero,vibrant and now the G2, and I've had extensive time with the other androids as well.
[G2 and Desire Z Android Development] maxawesome:
I love this!

I haven't been this excited about Android since the release of the G1. So rad!

I'll be getting two G2s this week/end. One for the wifey and one for myself.

Get to it gentlemen! :D
[G2 and Desire Z Android Development] M9x3mos:
when I run it with that script on term emu on device with the header given

first line i get back says:

no process killedtthecage-arm5.bin

But if I type the full command in exactly the same as in script:

/data/local/tmp/busybox killall rageagainstthecage-arm5.bin

works fine. Sounds like maybe wrong scope of command or something not sure any thing else. here is the exact script I tried to run in term emu on device:

#!/system/bin/sh

/data/local/tmp/busybox killall rageagainstthecage-arm5.bin

mount -o rw,remount -t ext3 /dev/block/mmcblk0p25 /system

/data/local/tmp/busybox cp /sdcard/Superuser.apk /system/app/Superuser.apk

/data/local/tmp/busybox cp /sdcard/su /system/bin/su

/data/local/tmp/busybox cp /sdcard/busybox /system/bin/busybox

chmod 4755 /system/bin/su

chmod 4755 /system/bin/busybox

mount -o ro,remount -t ext3 /dev/block/mmcblk0p25 /system

Here is output:

: no process killedtthecage-arm5.bin

mount: No such file or directory

: Read-only file system/app/Superuser.apk

: Read-only file system/bin/su

: Read-only file system/bin/busybox

: No such file or directory/su

: No such file or directory/busybox

To start script in term emu just right after start I ran command

sh /sdcard/steps.sh

all no go looking for ideas.
[G2 and Desire Z Android Development] hendusoone:
Also, make sure you have the correct line endings in the file. If you created the script in notepad or just about any other windows text editor, your line endings will be CR+LF. Android expects the line endings to be just LF, and will fail to run the script if they're left as CR+LF.

M9x3mos, that output you're seeing is the exact same output I was getting when I had CR+LF line endings. Convert your script to LF only, and it should work.
[G2 and Desire Z Android Development] hendusoone:
OP has been updated with a new section that should help with quick re-rooting after reboots, along with a shell script download to run gariak's commands.
[G2 and Desire Z Android Development] southeastbeast:
Worked like a charm thanks =)

Links to updating .inf file for computer to detect device + better link to rar with with all the file u need would help most though.
[G2 and Desire Z Android Development] mikeybot:
Got it working, thanks!

Has anyone got Wireless Thethering working with root? I installed a few versions but keep getting "unable to connect"

Nice to be able to clear the cache out. It had 30MB in it, yeesh.
[G2 and Desire Z Android Development] HamNCheese:
Yes, see my scripts here:

http://xdaforums.com/showthread.php?t=799797
[G2 and Desire Z Android Development] ACMilan07:
So this is a random question, But when can we see a stable Official Root? I would like to see Wifi Router and such apps being runned as soon as possible.

This is my first Android Device, Been working with Windows Mobile since Pocket PC. Thanks
[G2 and Desire Z Android Development] HamNCheese:
If I could predict the future, I'd be at the casino instead of screwing around on forums.

It may be days, it may be weeks. Depends on how much we are able to reverse engineer without official kernel source.
[G2 and Desire Z Android Development] mannyb:
Well this didn't take long. Stellar work!
[G2 and Desire Z Android Development] sino8r:
Where in world have you been hiding? I haven't seen you in forever! Are you getting the Desire Z or just checking in?

Folks, this guy made the most badass themes ever for android!
[G2 and Desire Z Android Development] Iceucold:
It's good to see some familiar faces coming out of hiding haha
[G2 and Desire Z Android Development] Dalamak:
Just got my G2, will test it tomorrow. Been away from Android since I bricked my G1 a long ways back, got bored with WinMo, so...
[G2 and Desire Z Android Development] Anderdroid:
# /data/local/tmp/root.sh - permission denied ?
[G2 and Desire Z Android Development] joackie27:
Did you do this?
[G2 and Desire Z Android Development] rpmccormick:
My Instructions:

- ONE TIME ONLY -

1) Install SuperUser form market (the crossbones one, not the asterisk)

2) Push stuff over in to tmp and chmod it.

adb push rage /data/local/tmp
adb push busybox /data/local/tmp/
adb push su /data/local/tmp/
adb push root.sh /data/local/tmp/
adb shell chmod 0755 /data/local/tmp/rage
adb shell chmod 0755 /data/local/tmp/busybox

3) Disconnect ADB.

- AFTER EACH REBOOT -

1) open terminal and run rage

/data/local/tmp/rage

2) Wait for fork error, click menu->reset terminal, run terminal again, FC, run terminal again.

3) Now with a root terminal, run the script:

sh /data/local/tmp/root.sh

...or type the commands manually. Here are the commands in my root.sh:

/data/local/tmp/busybox killall /data/local/tmp/rage
mount -o rw,remount -t ext3 /dev/block/mmcblk0p25 /system
/data/local/tmp/busybox cp su /system/bin
/data/local/tmp/busybox cp /data/local/tmp/busybox /system/bin
chmod 4755 /system/bin/su
chmod 4755 /system/bin/busybox
mount -o ro,remount -t ext3 /dev/block/mmcblk0p25 /system

NOTE: root.sh uploaded as root.txt. You can rename it after download -or- just change the 2 lines of code above to root.txt instead of root.sh and that should work too.
[G2 and Desire Z Android Development] philosophics:
not sure if anyone's aware, but the links are pretty much no good in the OP

Rageagainstthecage is basically unobtainable due to a required sign-in for private area content.

and the alldroid link sends you to a white screen with a sentence telling you to not forward the link you just went to but was intended to be told to the one who forwarded it.

I'm tired, sorry if that didn't make any sense...

EDIT: Nevermind, I found what I was looking for on the second page of this thread...
[G2 and Desire Z Android Development] InGeNeTiCs:
OP should edit first page to contain relevent info/developments and maybe a zip file with the files we need.
[G2 and Desire Z Android Development] Mikey:
Attached the zip folder "rageagainstthecage" to the OP

For it was getting a tad frustrating with certain sites in post 1
[G2 and Desire Z Android Development] philosophics:
Well the bright side is temp root allowed me to block ads with ad free android so I can be satisfied until we have full root and cm6 on it, and that could take awhile...

EDIT: Ya, I just found out I have to reboot my device in order to see an effect with ad free android.

Disappointment arises from deep within, I'm goin to bed...

Sent from my HTC Vision
[G2 and Desire Z Android Development] hendusoone:
I've put all needed binaries and an updated script into a single zip (attached to OP), and updated the OP with improved instructions.
[G2 and Desire Z Android Development] hah2110:
Confused... How can you run ADB push without root? I get permission denied?
[G2 and Desire Z Android Development] InGeNeTiCs:
Wow! Thanks a bunch!

That should simplify things greatly.
[G2 and Desire Z Android Development] rpmccormick:
Good work OP.

My only change would be to compress this:

6. adb shell

7. cd /data/local/tmp

8. chmod 0755 rage busybox root

9. exit

To this:

6. adb shell chmod 0755 /data/local/tmp/rage /data/local/tmp/busybox /data/local/tmp/rage/root

7. Disconnect phone from pc.

NOTE: Rage did not work for me if I left it connected to adb without pulling the cable or running adb kill-server.
[G2 and Desire Z Android Development] hendusoone:
Thanks, rpmccormick. Makes a lot of sense. I'll update the OP!
[G2 and Desire Z Android Development] Aphotix:
If you really want to optimize (or be lazy if you are like me), just use this batch file (for windows obviously) using the pc side of the instructions already provided.

adb push su /sdcard/su
adb push Superuser.apk /sdcard/Superuser.apk
adb push rage /data/local/tmp/rage
adb push busybox /data/local/tmp/busybox
adb push root /data/local/tmp/root
adb shell cd /data/local/tmp; chmod 0755 rage busybox root;

just place it inside of the G2TempRoot folder and double click. Then its just two commands on the phones terminal and you have root.
[G2 and Desire Z Android Development] ChaosXIII:
weird. just timed the boot times between rooted and unrooted the numbers are kind of weird. this is from button down to the ui loading. I would think there is a difference between times of booting cause it seems to get rid of anything we do.

rooted (force down) #1- 35.833

rooted (force down) #2- 35.230

rooted (proper shutdown) - 38.751

normal (regular shutdown) - 38.203

normal (force down) - 36.229
[G2 and Desire Z Android Development] evojoey:
thanks for the guide... got wifi tehering going so I'm pretty happy with that
[G2 and Desire Z Android Development] fearedbliss:
For the missing storage problem, I have 2 theories.

1. Preinstalled application that are taking a lot of space.

- It would be good if there was a label for the internal memory storage that said "Total Internal Storage" or "Total Storage" (For Internal).

2. There might be a(or many) partitions on that SD. 2GB for apps, rest for w/e.
[G2 and Desire Z Android Development] philosophics:
I think I can debunk the secound theory with the fact that I have my previous memory card in the device and I know it only has one partition.

It was a good thought so let's keeps comin up with more ideas...

Sent from my HTC Vision
[G2 and Desire Z Android Development] Anderdroid:
I just found the app adbWireless. It's a god. Only runs on root, though. And the G2 is a ***** to keep doing this over and over. Wtf HTC. Anti-developers much? :S

There's gotta be a way to automate this whole process. Is the terminal emulator open source? Maybe I'll try and figure out a 2 click solution, lol.
[G2 and Desire Z Android Development] crr127:
Ya rather then perma root. Until it happens. We should figure out a quick root app or script. That way we get root until u reboot. Still fun to play with
[G2 and Desire Z Android Development] Corylulu:
Okay, I am doing something wrong here. I have completed all the first steps, and now I am in terminal in my phone.

However,

/data/local/tmp/rage gives me permission denied.

What do?
[G2 and Desire Z Android Development] hendusoone:
Double-check to make sure you set the permissions correctly. Sounds like you didn't chmod it to 0755. Connect to ADB, then ls -l in that directory and make sure all files have execute permissions.
[G2 and Desire Z Android Development] Corylulu:
Well it seems like my rage file isn't working correctly. I can get it to work if i put it in as rage2

But after I changed the root file to conform and then it worked. Not sure what the issue was with the original tho
[G2 and Desire Z Android Development] schwiz:
although it has the '#' I still get read-only errors when I try to remove the bloatware. Anyone had any luck uninstalling all the crap with temp root? Instruction would nice!
[G2 and Desire Z Android Development] tubaking182:
What point is there to removing the bloat when it comes back after reboot? And you have to mount system as rw

sent from the phone i'm tired of setting back up

;P
[G2 and Desire Z Android Development] minotauri:
you technically have to mount the system to RW first and then you can RM the files (i use SUFSB to make my life easier)... but dont bother trying right now. The system will automatically restore all the system protected apps at reboot, or in my case... within an hour or two, it just magically restores the apps and removes my root.
[G2 and Desire Z Android Development] schwiz:
omg that sucks! so I take it that is where all the 4 gigs of system storage went, keeping multiple backups of the bloatware. Great!
[G2 and Desire Z Android Development] techemically:
Any way the temp root could be used to modify that chip responsible for reloading all that crap-ware; or at least give us the ability to load a custom ROM that can influence its behavior?
[G2 and Desire Z Android Development] PlatinumMOTO:
is this the same root method as the desire z?
[G2 and Desire Z Android Development] emarsha:
Thank You!

Well written out instructions. was able to achieve temporary root on my G2 using terminal on my macbook pro!
[G2 and Desire Z Android Development] kaze00:
I'm about 90% through a one click temp root. Is it ok to charge for it, or is that going to start a ****storm? I could really use some extra cash to get an engagement ring.

Anyone who posted to the think tank or this thread before today would get it for free if they ask.
[G2 and Desire Z Android Development] Xorlev:
I think it's somewhat worthless, real root isn't too far off.
[G2 and Desire Z Android Development] fastludeh22:
Since its all been free info used to get this far, I do not think its fair to charge. I mean all the people that wrote rage.bin and really anything else up to this point would deserve a cut... HOWEVER, I think some people would love it, and donations are a good way of maybe getting back a few bucks. Once perm root is achieved, if this can be made to 1 click perm root, I'm sure u would get some more donations.