Vous êtes sur la page 1sur 16

Download Android Rooting Hacks Tutorials pdf EBook

By AndroidGyan.com
( Read More ) http://www.androidgyan.com/2012/05/download-android-rooting-hacks.html

As requested by our readers, we have compiled an Android Rooting Hacks Tutorials Pdf eBook which explain everything about Android firmware rooting tutorials. Mostly android users have a lot doubts regarding Android Rooting Procedure and Firmware updating procedure which are necessarily need to be cleared to achieve successful rooting in Android.

Lets start with some FAQ: 1.What is Rooting? a.Rooting allows you to gain SU access to your phone. It allows you to flash custom ROMs, install custom themes, lock screens and more. It basically gives you complete and full control over your phone. 2.If I root my phone does it void the warranty? a.Yes. 3.If I root my phone, can I go back to the original stock settings? a.Yes. In order to do this you need to download the RUU from here: Download: RUU_Hero_C_Sprint_1.56.651.2 signed release.exe Geek For Me Android CDMA Sprint Hero. This is an application that you run on your computer. Make sure you phone is plugged into your computer and use this application to restore your phone back to factory settings. You can also download the new Recovery Image (v1.6.2) from here 4.If I root my phone, what do I need to do before I take my phone in for service to Sprint? a.You need to un-root it by following the steps above in number 3. 5.If I root/ROM my phone, and a new version is released (for example 2.1) by Sprint, how can I get it? a.If a new version is released by Sprint and you are rooted, the only way to get it is to restore to factory defaults (refer to Step 3 above for returning to stock) and then

upgrade to the new version. After that you can re-root your phone. However, keep in mind that by the time a new version is released by Sprint, the Devs of the custom ROM you are running will likely have an update out already to take you to the new version. 6.Can I un-root my phone? a.Yes. Follow the steps in number 3 above. 7.Is there an auto-root/1 click root tool? a.Yes there is. The best one out there right now is Pre-Kitchen 0.2. You can download it from here: Download: Fresh Pre-Kitchen 0.2 | Bug found in auto-rooter Geek For Me Android CDMA Sprint Hero 8.Do I need to have drivers installed in order to root my phone? a.Yes you do. Your phone comes with HTC Sync on the SD Card which contains the necessary drivers. Some people have problems with the phone still not having correct drivers using HTC Sync, in which case you can install PDAnet to get the correct drivers. Please refer to Step 5 for instructions on HTC Sync and/or PDAnet. 9.If I root using the manual method, can I still use pre-kitchen for things like installing lockscreens and pushing/pulling files? a.Yes you can. Keep in mind this applies to root only. Once you install a custom ROM, things change. Pre-Kitchen has been verified to work with Fresh 1.1, other ROMs may or may not work. 10.Where can I find a list of the current custom ROMs? a.You can find that here: XDADeveloperWiki - CDMA HERO WIKI ROM PAGE 11.How do I backup my contacts before rooting? a.Use google. Just make sure your contacts are sync'd with your gmail account then make a backup of it just in case. You shouldn't loose them anyways rooting your phone, but if you feel more comfortable making a backup feel free. Sign into google, then go into gmail, and choose contacts. Once in there, click on export and simply export your contacts to back them up. 12.Can I install custom Lockscreens, taskbars, icon, etc. ? a.Yes you can. Some Lockscreens can be found here. Other customizations can be found here. Please keep this in mind; Each and every ROM is different. Customizations that were made for 1.5 based ROM's will not work on 2.1 based ROM's. Each ROM is packaged different. Make 100% sure that what you are flashing to your phone was made for your current ROM. Also, be sure to have a nandroid backup before flashing anything! 13.Will rooting my phone make it super fast and everything? a.No. Rooting alone will not do this for you. Installing a custom ROM like Fresh 1.1 along with other custimizations like Gumbo Kernel and setCPU will help speed up your phone, and can improve battery life. 14.Can I use this tutorial for my Droid Eris or GSM Hero or something other

than Sprint Hero (CDMA)? a.No you can't. This is for the Sprint Hero (CDMA). You can go here though for help with rooting a Non-Sprint (Cellular South, Bluegrass Cellular, etc) CDMA Hero. 15.I am having problems with the auto root what should I do? a.Start by going through this thread and see if anyone else has had the same problem you have, as there is likely a solution here. If you are still having problems, I suggest trying to manually root your phone. Be sure when doing this, to copy and paste the commands, as this will help avoid typing errors. If all else fails and you have troubleshot, and read and tried with no luck, feel free to post in this thread for help. If at all possible, please take a screen shot of your problem (Hit Prt Scr [Print Screen]) on your keyboard, upload the photo somewhere like flicker or something, and then post it here. This will help us to help you. 16.I am trying to create a nandroid backup but it is failing, what do I do? a. Check the amount of free space on your SD Card. Nandroid backups are big files that require a good amount of space on your SD Card. 17.I am trying to restore a nandroid backup and it is failing. What happened, what do I do? a. Chances are you re-named your backup. This is fine, however nandroid backups CANNOT have spaces in the name. So instead of "fresh backup with custom screen" you would make it "fresh_backup_with_custom_screen" (without the quotes in both cases of course). 18.How do I boot into Recover Mode from Power Off? a. 1) Pull Battery (If necessary and stuck in a loop) 2) Press and hold the "Home" button 3) Continue holding "Home" while pressing and releasing the "Power" button 19.How do I remove Sprint "Bloatware"? a. Many custom ROMs already have several Sprint Apps removed. Some of those you may want back. If you have Fresh 1.1 installed, you can use pre-kitchen to add/remove Sprint apps (yes you can do this even if you manually rooted you phone). If don't have Fresh 1.1 or prefer to do it manually, you can find instructionshere and a list of apps that are safe to remove here. 20.After I root/ROM/etc can I delete the .zip files? a. Yes you can. After you have already flashed the files to your phone, you may delete the .zip files. 21.How do I wipe my phone? a. To wipe your phone first you must boot into recovery (either from cmd line or refer to FAQ 18). Once in recovery chose Wipe. Typically you only need to choose "Wipe data/factory reset." However, sometimes you must choose "Wipe Dalvik-cache" and sometimes even "Wipe SD:ext partition" it all depends. If you wipe data and are still having problems, you can always wipe Dalvik as well. You typically only need to wipe EXT either if the ROM Dev tells you to, or if you previously had apps2sd enabled on a

different ROM. 22.When do I have to wipe my phone? a. You have to wipe your phone anytime you change from a 1.5 to a 1.6, 2.0, or 2.1 ROM. This also applies if you are going back down from any of those to another. Typically the Dev that makes the ROM will put up instructions on how to install it, which usually consist of wiping. They will also typically tell you if you have to wipe anything other that data. Please be sure to read the instructions on every ROM, as each is different. 23.If I root my phone, can I get paid apps for free? a. This would be considered stealing. If someone developed an app and is charging for it, please buy it. 24.How to I mount/Unmount my SD Card? a. This seems to be an ever-growing issue of confusion for many people. Here is how you mount/unmount your SD Card (this was done for 1.5 based ROM's. It is different for 2.1, but you should get the concept). -1. Connect your phone to your computer. Then click on your your notification bar and drag down

-2. Once your pull your notification bar down you will see USB Connected. Click on this

option

-3. You will now get the following prompt, click Mount.

You have successfully mounted your SD Card. -4. To unmount your SD Card, again click on your notification bar and drag down. You will see the option to Turn Off USB Storage. Select this option.

-5. You will now get the following prompt, click Turn Off.

You have successfully unmounted your SD Card. For those of you who are still having problems, here is a short video I made just now to help:

25.My SU Request isn't working, how do I fix it? a. Make sure your USB Debugging is enabled. Also, if you are launching the SU app, and it is just blank, do not worry. As you grant permission to apps that require SU, you can choose "Always Allow." Once you choose that, if you then launch your SU app, you will see a list of the apps you have granted the "Always Allow" option to.

Now onto the good stuff; How to root your phone and install custom ROMs, boot screens, etc. There are many ways to root your phone. The ones listed here are what I feel the best way and easiest way to do it. Manually rooting your phone: This section will cover how to manually root your phone. Keep in mind there is a oneclick method, but reading this is helpful and educational. You do not have to do it this way, but I suggest at least reading though it.

tep 1: Download the Android SDK from Android SDK | Android Developers The Windows file is called android-sdk_r4-windows.zip. Extract the files to your C: drive so that you now have the folder C:\android-sdk-windows Step 2: Download the asroot2 exploit file from http://forum.xdadevelopers.com/atta...2&d=1257621154Extract asroot2.zip to C:\android-sdkwindows\tools folder. Step 3: Download the Hero recovery image from 4shared.com - online file sharing and storage - download recovery-RA-heroc-v1.5.2.img. Place this file in C:\android-sdkwindows\tools as well. ***NOTE*** If you are downloading the Recovery Image from the 4shared link above, there is a glitch in which it renames the file to recovery-RA-heroc-v152.img. If you download the file from that link, please be sure to rename your file to recovery-RAheroc-v1.5.2.img ***NOTE*** Mirror for 1.5.2 Recovery Image Step 4: Make sure USB Debugging is off by going to Settings>Applications>Development. Now connect the phone to your PC via USB cable. Step 5: Mount your sdcard; Browse to the HTC Sync folder and install HTC Sync on your pc. After it is done installing unmount the sdcard then enable your USB debugging. *Note* If the drivers you installed from HTC Sync do not work, you can alternatively download a program called PDAnet. This will not only allow you to tether your phone, but will also install the correct drivers for you as well. *Note* (This note is not part of the original tutorial) Step 6: Open a command prompt by clicking the Start button and typing cmd into the search box and pressing enter or found under All Programs>Accessories. Step 7: You will now enter a series of commands which I will place inside code boxes to indicate the entire command. You may copy and then paste them into the command prompt window by right clicking. Only enter one command at a time. 1: Code:
Code:

cd C:\android-sdk-windows\tools 2: Code:

Code:

adb devices If you've been following this guide you will see your phone's serial number. If you get "device not found" error, you either need to make sure you the drivers were properly installed or make sure you enable USB debugging AFTER you connect the USB cable. Continue on once you get the proper phone serial output. 3: Code:
Code:

adb push asroot2 /data/local/ 4: Code:


Code:

adb shell 5: Code:


Code:

chmod 0755 /data/local/asroot2 6: Code:


Code:

/data/local/asroot2 /system/bin/sh You should see an output that says: $ /data/local/asroot2 /system/bin/sh [+] Using newer pope_inode_info layout Opening: /proc/857/fd/3 SUCCESS: Enjoy the shell. # Now for a few last commands. 7: Code:
Code:

mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system 8: Code:


Code:

cd /system/bin 9: Code:
Code:

cat sh > su

10: Code:
Code:

chmod 4755 su You are now officially rooted. A few more steps and you will have flashed the recovery image. 11: Code:
Code:

exit 12: Code:


Code:

exit 13: Code:


Code:

adb push recovery-RA-heroc-v1.5.2.img /sdcard Pushing is equivalent of copy the file to the root of your sdcard. By the time you finished reading this it should be done. You'll know its done because the ouput will say something like transferred X bytes in X secs. 14: Code:
Code:

adb shell reboot This will cause the phone to restart automatically. Wait till it is fully booted to

continue. (Also, make sure after your phone reboots that USB Debugging Is Still
Enabled). 15: Code:
Code:

adb shell 16: Code:


Code:

su 17: Code:
Code:

cd /sdcard/

18: Code:
Code:

flash_image recovery recovery-RA-heroc-v1.5.2.img FLASHING TO THE RECOVERY TAKES SEVERAL SECONDS-- BE PATIENT. ENTER THE NEXT COMMAND ONLY AFTER THE COMMAND PROMPT RETURNS TO THE # (ROOT SYMBOL). 19: Code:
Code:

reboot recovery Step 8: This is the last command; you may now close the cmd prompt. This will cause your phone to boot into recovery mode; it should take no longer than 30 secs. The third option on the list is "- Backup/Restore"; select it. Now, select the first option "- Nand backup". The phone will prompt you to press HOME to confirm which is want you want to do. The backup will begin. You will see the screen say, "Performing backup : .........." When done, the bottom of the screen will say "Backup complete!" and you will be given the menu options again. Go back to the main menu and select reboot system. Rebooting your phone after installing the new recovery image may take several minutes. Step 9: Once your phone is fully booted, mount the sdcard. You will see a folder called "nandroid"; I highly recommend you copy this to your pc in case you lose your sdcard data or reformat it. Your phone is rooted, 100% backed up, and ready to install a custom rom if you wish! Once you have read though all of the above, you may decide that manually rooting is something you would like to avoid. If that is the case, you can do the one-click/auto root option as described below: One-Click/Auto root your phone: There are several auto rooters out there, but I have found this one to work the best: Fresh Pre-Kitchen 0.2 So what is it and how do you use it? This is a Windows application that will allow you to root your phone very easily. It basically does all of the steps for you, that you would normally have to do manually. This program does require the .NET Framework, make sure you have it installed and if not, get it installed. Please follow the instructions below: ***Note*** There is a new kitchen out which you can get here. I will be adding to the tutorial how to use this, but for now there are a few video tutorials there that show you how to use it. The concept is similar.***Note*** Step 1: Download Pre-Kitchen 0.2. Unzip the files/folders.

Step 2: Download the auto-root fix here. Unzip the file and replace your existing freshpre-kitchen.exe (the one you just unzipped above) with the one in this zip file. *Note* Make sure you close all copies of kitchen that you have open already before doing this. *Note* Step 3: Plug your phone into your computer and make sure USB debugging is on. DO NOT Mount the SD Card! Step 4: Double click the fresh-pre-kitchen.exe. This will start the program and you will see a window like so:

As you hover your mouse over each icon, it tells you what each one does. There is a lot you can do with this program, but for now we are only going to look at the rooting portion of it. The very first thing you should do is click on the green Question Mark (?). This will bring up the following screen:

I suggest clicking yes to allow it to run a diagnostic check to make sure everything will work for you. This is a good way to double check that all is well and it doesnt take long at all. Once the check is done, if everything came back good, you may continue. If not, please do as it says in the picture below step 4. Step 5: Once you know you are good to go, click the blue pound sign (#). This is the auto root tool. You will get a screen like this:

If you click the I have a with Google phone, it will tell you about it. I suggest checking it and reading what it tells you. It basically determines which Recovery image to push to your phone. Step 6: Press root and READ everything that pops up. Do not skip over things because you are in a hurry. Please read everything and do as it says. Step 7: If all goes well, you phone should reboot (if you were watching what it was

doing, and read the manual steps, you will know when this should happen) and you should be rooted. *Note*I was unable to complete this as I had an Out of Memory Error (see below) so I cannot tell you if this will continue after rebooting and boot the recovery image. If someone who has successfully done it can let me know, I will edit this to reflect that.*Note* If you get an Out of Memory Error, do not worry. I had this happen to me and it has happened to others as well. It seems to be something with Windows 7, but who knows. Anyways, if you get that error please check to see if the recovery image is actually on your phone. An easy way to do this, is to go ahead and mount your SD card and check the root directory of it (the main directory, top level, etc) to see if the recovery image exists there. After checking to see if the recovery image is there, please unmount your SD card. If it does exist, great, you should be able to continue around step 14 of the Manual Root Section and continue through all of it from there. If the recovery image doesnt exist, go ahead open a cmd prompt (If running vista or Windows 7, it doesnt hurt to run the cmd prompt as an administrator) and typ e

Code:

cd C:\android-sdk-windows\tools Then start at step 13 of the Manual Root Section and continue through all of it from there. Keep

in mind that if you are starting at a section, you will still need to at least do a few steps to start using the adb tools. Basically, you can open a cmd prompt and go to the tools directory as shown above and continue as needed. This is where reading the manual section will be helpful, as it will give you an understanding of what the auto root does, and how to continue in the event of a problem.
Step 8: After auto rooting you can use Pre-Kitchen to create a nandroid backup by clicking on the orange wrench and then choosing create nandroid backup, or you can do it manually as described in the Manual Root Section. Again, there is a lot more you can do with Pre-Kitchen but for now this is all that I am going to cover. I will likely add how to install custom boot screens, lock screens, etc.

So you are rooted and backed up (you did do a nandroid backup right? And you also copied that file onto your hard drive as suggested right?), so now what. Well, you can install a custom ROM, and again there are many, but I suggest Fresh 1.1 or Fresh 2.0d, and that is what I will cover. The following is taken from here. Installing Fresh 1.1 How to use it: 0. Create a nandroid backup!

1. Copy this rom (do not unzip) to the root of your sdcard using one of the various methods. I found it easy to simply mount my SD card and then drag the file into the root directory. Also, if you are wondering whta is the "root directory" of your SD card, it is the main, top level directory. For example, on a computer the root folder of the C: directory is C:\ 2. Go to the recovery program by either typing "reboot recovery" from an adb shell or by powering off the phone and holding Home while you power it on. 3. Scroll down to "Flash zip from SD Card" and select the zipped rom. Press the home button to confirm you want to write it. 4. After it finishes (takes several minutes) click "Reboot system now".

If all goes well, and it should, you should now be running Fresh 1.1. After your phone reboots and you know everything is good, one big question is always, can I remove the Fresh zip file I put on my phone to clear up some room. The answer to that is yes. Installing Fresh 2.0d 0. Create a nandroid backup. 1. Download Fresh 2.0d Here 2. Copy this ROM (do not unzip) to the root of your sdcard using one of the various methods. I found it easy to simply mount my SD card and then drag the file into the root directory. Also, if you are wondering whta is the "root directory" of your SD card, it is the main, top level directory. For example, on a computer the root folder of the C: directory is C:\ 3. Go to the recovery program by either typing "reboot recovery" from an adb shell or by powering off the phone and holding Home while you power it on. 4. Once booted into recovery, wipe both data and dalvik (this is explained in the FAQ Section above if you don't know how to wipe). If you are coming from another ROM and were using apps2sd you MUST wipe EXT as well. 5. Scroll down to "Flash zip from SD Card" and select the zipped rom. Press the home button to confirm you want to write it. 6. After it finishes (takes several minutes) click "Reboot system now". 7. Once the phone starts to reboot, leave it alone. The reboot can take several minutes

(I've seen some take 5 min. and other take 9+). Do not panic and pull the battery if it sits on the HTC Screen for a while. If after say 15 minutes it still doesn't fully boot, then something went wrong. More than likely you forgot to Wipe either Data or Dalvik or even both. This can also happen if you were running apps2sd before flashing this ROM and didn't wipe EXT. If the phone hangs, you can either pull the battery and get back into recovery, or issue the reboot recovery command from the adb shell. Once back into recovery, be sure to wipe data and dalvik (only wipe EXT if necessary) then flash the ROM again. After the phone is completely loaded you should be running Fresh 2.0d and should be good to go.

This concludes my tutorial. I hope you found it helpful and please dont hesitate to let me know if there is something I missed or you would like to see added. Also, if a mod can sticky this, it would be appreciated. Thanks.

Download Android Rooting Hacks Tutorials pdf EBook

By AndroidGyan.com
( Read More ) http://www.androidgyan.com/2012/05/download-android-rooting-hacks.html