Go Back   Android Forums > Android Phones > HTC EVO Shift 4G > EVO Shift - All Things Root

New Forums: Nexus Player | Nexus 9
test: Reply
 
LinkBack Thread Tools
Old December 7th, 2012, 09:45 PM   #1 (permalink)
New Member
Thread Author (OP)
 
Join Date: Dec 2012
Gender: Male
Posts: 7
 
Device(s): HTC EVO SHIFT 4G
Carrier: Sprint

Thanks: 2
Thanked 0 Times in 0 Posts
Default Preparation before rooting

Hello,

First off I have a Mac OSX and also another laptop that runs Ubuntu. Which OS should I use to have a smoother root.

Second question, are there any applications I should remove before rooting. For example, I have this task killer and battery saver app that really messes with settings on the phone. Should I remove these just as a safety precaution?

P.s Can someone tell me how to correctly tag. This is very confusing for me.

Advertisements
Soup Pear is offline  
Reply With Quote
sponsored links
Old December 7th, 2012, 11:23 PM   #2 (permalink)
Junior Member
 
Join Date: May 2012
Posts: 37
 
Device(s):
Carrier: Not Provided

Thanks: 6
Thanked 13 Times in 11 Posts
Default

Quote:
Originally Posted by Soup Pear View Post
Hello,

First off I have a Mac OSX and also another laptop that runs Ubuntu. Which OS should I use to have a smoother root.

Second question, are there any applications I should remove before rooting. For example, I have this task killer and battery saver app that really messes with settings on the phone. Should I remove these just as a safety precaution?

P.s Can someone tell me how to correctly tag. This is very confusing for me.
I would suggest using ubuntu, Linux is much more reliable all around, especially for android. Have you set up the 51-android.rules file so adb can recognize your phone? And no, all the apps you have will most likely.get wiped anyway (you should backup the names, or the apks themselves.if you want.them back) so it would not make a difference

Also, what version of android are you running?
CNexus is offline  
Reply With Quote
Old December 7th, 2012, 11:34 PM   #3 (permalink)
New Member
Thread Author (OP)
 
Join Date: Dec 2012
Gender: Male
Posts: 7
 
Device(s): HTC EVO SHIFT 4G
Carrier: Sprint

Thanks: 2
Thanked 0 Times in 0 Posts
Default

I have not set up the 51-android.rules file, nor do I even know how to do that. I tried a google search and had no idea what to do. Could you tell me or link me to a step by step instruction?
Soup Pear is offline  
Reply With Quote
Old December 8th, 2012, 11:53 PM   #4 (permalink)
Junior Member
 
Join Date: May 2012
Posts: 37
 
Device(s):
Carrier: Not Provided

Thanks: 6
Thanked 13 Times in 11 Posts
Default

Quote:
Originally Posted by Soup Pear View Post
I have not set up the 51-android.rules file, nor do I even know how to do that. I tried a google search and had no idea what to do. Could you tell me or link me to a step by step instruction?
So open a terminal and and type "gksudo gedit /etc/udev/rules.d/51-android.rules"
For your benefit, heres the breakdown of that command:
gksudo - tells ubuntu to run next command with elevated privileges because you are creating/modifying a system file (you could also just use "sudo" instead of "gksudo", but "gksudo" opens a graphical prompt to ask for your password, as opposed to "sudo" which has you input the password into the terminal window itself)
gedit - open the following file with the gedit text editor
/etc/udev/rules.d/51-android.rules - path to the file you're opening/modifying (required by the "gedit" command)

So what I'm gonna do is I'm just going to attach the file I have, all it does is take the vendor id for your phone's type (in your caze HTC) and maps it to a USB device so that your computer recognizes it
So open the attached file and copy and paste into the gedit window, then save and close
Also, if you have access to a Windows machine, I would suggest that you root using my utility (its posted over at XDA under EVO Shift 4G > Android Development)
CNexus is offline  
Last edited by CNexus; December 8th, 2012 at 11:55 PM.
Reply With Quote
The Following User Says Thank You to CNexus For This Useful Post:
Soup Pear (December 8th, 2012)
Old December 8th, 2012, 11:58 PM   #5 (permalink)
New Member
Thread Author (OP)
 
Join Date: Dec 2012
Gender: Male
Posts: 7
 
Device(s): HTC EVO SHIFT 4G
Carrier: Sprint

Thanks: 2
Thanked 0 Times in 0 Posts
Default

Thanks for the break down I really appreciate it. IMHO I feel like nobody writes a rooting tutorial in plain english, but then again no one could possible combine a tutorial on rooting and command prompt syntax at the same time. For my own sake, I just begun learning Linux inside and out so that I can have a better understanding of rooting and not just copy paste my self into a sticky situation.

P.S. I am really enjoying learning Linux. It makes OS make much more sense and I also have a newfound respect for those who took the time to create them.
Soup Pear is offline  
Last edited by Soup Pear; December 9th, 2012 at 12:00 AM. Reason: P.s
Reply With Quote
Old December 9th, 2012, 12:01 AM   #6 (permalink)
Junior Member
 
Join Date: May 2012
Posts: 37
 
Device(s):
Carrier: Not Provided

Thanks: 6
Thanked 13 Times in 11 Posts
Default

Quote:
Originally Posted by Soup Pear View Post
Thanks for the break down I really appreciate it. IMHO I feel like nobody writes a rooting tutorial in plain english, but then again no one could possible combine a tutorial on rooting and command prompt syntax at the same time. For my own sake, I just begun learning Linux inside and out so that I can have a better understanding of rooting and not just copy paste my self into a sticky situation.
No problem, I installed Ubuntu not too long ago myself in order to get more comfortable with that environment and get into android development, so I know how you feel
If you have any other questions, feel free to post and/or PM, I would have no problem answering any questions you have as I was once in your position and also used to feel that things were a little over my head
Also, heres the 51-android.rules file
EDIT: Can't attach for some reason. Here's a link instead.
http://db.tt/8I8bb3YG
CNexus is offline  
Last edited by CNexus; December 9th, 2012 at 12:04 AM.
Reply With Quote
Old December 9th, 2012, 12:32 AM   #7 (permalink)
Junior Member
 
Join Date: May 2012
Posts: 37
 
Device(s):
Carrier: Not Provided

Thanks: 6
Thanked 13 Times in 11 Posts
Default

Here's a breakdown of the most common commands you'll find yourself using:
adb devices - lists devices detected by the Android Debug Bridge
adb push <local> <remote> - push the file at "local" to "remote" on your phone, remote can be a directory or a file, in the latter you can have it change the file's name too. Example: adb push test.txt /sdcard/foo.html
adb reboot [bootloader¦recovery] - reboots the phone into bootloader or recovery
dd if=source of=output - Probably one of the most useful commands, the dd command copies and converts data from "source" to "output", common example (from shift 2.2 root): dd if=/sdcard/hboot_eng.nb0 of=/dev/block/mmcblk0p18. That example replaces the built in bootloader with the ENG bootloader to obtain "S-OFF"
cd - change directory. Example (current directory is C:\android\): cd root-utility (now inside C:\android\root-utility, "cd.." takes you into the directory right above)
Example 2 (current dir is C:\temp\linux): cd.. (dir is now C:\temp)
adb shell - runs a shell from your computer, basically a remote terminal that lets you run commands from your computer that are then executed on your phone. Using the syntax "adb shell <command>" opens a shell, runs "command" and then closes the shell. Example: adb shell cd /sdcard/downloads
su - equivalent to "sudo" on a computer running Linux, but no additional verification. Example:
Code:
Running on a shell (adb shell from computer or terminal emulator on phone)
$ dd if=/sdcard/hboot_eng.nb0 of=/dev/block/mmcblk0p18
permission denied: read-only file system
$ su //changes sign to #, now have elevated privileges
# dd if=/sdcard/hboot_eng.nb0 of=/dev/block/mmcblk0p18
20468+0 records in
20468+0 records out     40936 bytes copied 1.2 MB copied, 0.362 seconds
CNexus is offline  
Reply With Quote
The Following User Says Thank You to CNexus For This Useful Post:
Soup Pear (December 9th, 2012)
Old December 9th, 2012, 03:08 AM   #8 (permalink)
New Member
Thread Author (OP)
 
Join Date: Dec 2012
Gender: Male
Posts: 7
 
Device(s): HTC EVO SHIFT 4G
Carrier: Sprint

Thanks: 2
Thanked 0 Times in 0 Posts
Default

Can you explain how this is different that accessing the Android in "usb debugging mode"?
Soup Pear is offline  
Reply With Quote
Old December 9th, 2012, 08:49 AM   #9 (permalink)
Junior Member
 
Join Date: May 2012
Posts: 37
 
Device(s):
Carrier: Not Provided

Thanks: 6
Thanked 13 Times in 11 Posts
Default

Quote:
Originally Posted by Soup Pear View Post
Can you explain how this is different that accessing the Android in "usb debugging mode"?
Well, you can't run any ADB commands unless your phone is connected to your computer in debugging mode. Putting it in that mode is a prerequisite for using adb from your computer.
CNexus is offline  
Reply With Quote
Reply
Tags
evo shift 4g, htc evo shift 4g, htc evo shift 4g faq's, noob rooter, root 2.3.4


Go Back   Android Forums > Android Phones > HTC EVO Shift 4G > EVO Shift - All Things Root
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 07:24 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.