Gaming Console with Lollipop? Ouya Gets an Android TV Port

Android is a very flexible platform, and it can be used on a large variety of … more

Android App Review: Manage Your Connections Automagically – XDA TV

Material Design is all the buzz in the Android world right now. … more

Official TWRP Recovery Lands on Micromax Canvas Magnus

With the recent release of Android One, Micromax and MediaTek released fully buildable … more

Update Overload: SuperSU Heavily Updated

There are apps and apps out there. Very few can reach the level of popularity required to stay at … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[GUIDE] Instructions to Root G2 [Temp Root]

OP hendusoone

1st October 2010, 09:34 PM   |  #1  
OP Member
Flag Boston, MA
Thanks Meter: 15
 
59 posts
Join Date:Joined: Dec 2009
More
NOTE: The below info is all pretty outdated now that the fantastic Paul O'Brien has created a one-click temp root app called VISIONary. I recommend using that - get it from his thread! In case you don't want to do that (what are you, some kind of masochist?), or want to see the old way of getting temp root, keep reading this thread.

Insert the usual disclaimers about "if this breaks your device, it's not my fault... do this at your own risk... voiding warranty... etc."

Note that for now, this is a TEMPORARY root. And things are now well over my head... I just got lucky with figuring out the first few steps. For now, I'm going to leave it to the fantastic folks over in the thinktank thread to figure out how to make this permanent, and will help out wherever I can.

Update 10/6/2010:

Per suggestions later in the thread, I've compiled a zip file of everything needed to set up a temp root. I've also made some tweaks to the root script, included in the archive as "root" - notably, it will now create symlinks to busybox for commands not included with default android (example: cp).

Here are updated instructions to use with the attached zip file. USB Debugging needs to be enabled:

Stage 1: On your PC
1. adb push su /sdcard/su
2. adb push Superuser.apk /sdcard/Superuser.apk
3. adb push rage /data/local/tmp/rage
4. adb push busybox /data/local/tmp/busybox
5. adb push root /data/local/tmp/root
6. adb shell chmod 0755 /data/local/tmp/rage /data/local/tmp/busybox /data/local/tmp/root
7. Disconnect phone from pc

Here's an alternate Stage 1, thanks to Aphotix:
Quote:
Originally Posted by 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.

Code:
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.

BATCH FILE DOWNLOAD HERE

Stage 2: On your phone (Assumes you have already installed Android Terminal Emulator from the market)
1. Launch Terminal Emulator
2. /data/local/tmp/rage
3. Wait for the message: "Forked #### childs."
4. Menu > Reset Term - Terminal Emulator will exit.
5. Launch Terminal Emulator, it Force Closes. Launch a second time, and you'll have a root shell
6. /data/local/tmp/root

Stage One only needs to be done once. Stage 2 needs to be repeated every time you reboot your phone.

Follow the Thinktank thread for progress on a permanent root solution.

Special Thanks:
The dude that made rageagainstthecage - http://c-skills.blogspot.com
gariak, for the ideas in the root script
rpmccormick - improvements in the later PC steps
Aphotix - Windows batch file to make the first part easier
Attached Files
File Type: zip G2TempRoot.zip - [Click for QR Code] (1.02 MB, 7834 views)
Last edited by hendusoone; 15th October 2010 at 07:24 PM. Reason: Added note about and link to VISIONary
The Following User Says Thank You to hendusoone For This Useful Post: [ View ]
1st October 2010, 09:38 PM   |  #2  
Member
Flag Ohio
Thanks Meter: 0
 
63 posts
Join Date:Joined: Sep 2006
More
You're a beast. Thank you.
1st October 2010, 09:54 PM   |  #3  
G1rome's Avatar
Senior Member
Thanks Meter: 1
 
180 posts
Join Date:Joined: Apr 2009
So do we get any roms soon after rooting?

Sent from my T-Mobile G2 using XDA App
1st October 2010, 09:56 PM   |  #4  
OP Member
Flag Boston, MA
Thanks Meter: 15
 
59 posts
Join Date:Joined: Dec 2009
More
Well, that's up to the rom developers. Will probably take time.

Note that currently, this is a TEMPORARY root. And things are starting to get a bit over my head... I just got lucky with figuring out the first few steps. For now, I'm going to leave it to the fantastic folks over in the thinktank thread to figure out how to make this permanent. I'm working to figure out what I can, but I fear my own usefulness is fading :P

(added that info to OP, since it's probably important)
Last edited by hendusoone; 1st October 2010 at 10:01 PM.
1st October 2010, 11:59 PM   |  #5  
Smokuevo's Avatar
Senior Member
Flag Schaumburg
Thanks Meter: 31
 
644 posts
Join Date:Joined: Apr 2008
More
Ill wait til its permanent

Sent from my T-Mobile G2 using XDA App
2nd October 2010, 02:31 AM   |  #6  
ceas909's Avatar
Senior Member
Thanks Meter: 2
 
308 posts
Join Date:Joined: Oct 2009
More
This is interesting.. you need to try to get a rooted recovery made.. from there once you get this temp root working try to flash the recovery through terminal.. if it takes then you would be able to flash rooted roms... i wonder if clockwork is working on a recovery already??...
2nd October 2010, 03:54 AM   |  #7  
Member
Thanks Meter: 0
 
35 posts
Join Date:Joined: Jul 2010
Whew, I was starting to think the phone might be unrootable.

Sent from my T-Mobile G2 using XDA App
2nd October 2010, 04:16 AM   |  #8  
sino8r's Avatar
Senior Member
Flag Birmingham, Alabama
Thanks Meter: 557
 
3,339 posts
Join Date:Joined: Sep 2006
More
Quote:
Originally Posted by OgBrog

Whew, I was starting to think the phone might be unrootable.

Sent from my T-Mobile G2 using XDA App

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.
2nd October 2010, 04:43 AM   |  #9  
Senior Member
Flag Around
Thanks Meter: 35
 
588 posts
Join Date:Joined: May 2008
More
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
2nd October 2010, 04:47 AM   |  #10  
Senior Member
Thanks Meter: 78
 
792 posts
Join Date:Joined: Jun 2007
More
Quote:
Originally Posted by 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.

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.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes