[HOWTO] Rooting, Installing - Android SDK, Custom Recovery, Custom ROM's

freak69ize

Senior Member
Mar 25, 2011
1,021
203
93
What you are getting is correct. Its basically printing out the help options for the adb command. The first thing you need to do is connect your phone through USB and type "adb devices"
Your device should be found. After this go ahead and do whatever the wise people on this forum have suggested for rooting, preferably the gingerbreak methos, which is painless.
Ok ive tried hooking my fone up to my computer with it on and the hooking it up in fastboot.. no luck

19-05-2011_1807.jpg

Gonna try installing latest version of HTC sync and uninstall HTC sync so ill have the latest and im pretty sure i already have the latest drivers for my fone but ill check anyway.. if this doesnt work ima giving up for awhile.. lol
 

kad_79

Senior Member
Jan 28, 2010
50
2
0
Bengaluru/Bay-Area
What is ur intention here? If it is to run a bunch of commands on the phone, make sure USB debugging is turned on. On the phone its "Applications->Development"

Ok ive tried hooking my fone up to my computer with it on and the hooking it up in fastboot.. no luck

View attachment 601545

Gonna try installing latest version of HTC sync and uninstall HTC sync so ill have the latest and im pretty sure i already have the latest drivers for my fone but ill check anyway.. if this doesnt work ima giving up for awhile.. lol
 

freak69ize

Senior Member
Mar 25, 2011
1,021
203
93
hey freak69, you should either add the android-tools to your path
or just go to the folder in the cmd window(programfiles/android/tools) and then run adb from there
Ok i finally figured it out.. had the path all wrong.. i was using / instead of \.. dont i feel like a jackass.. lol thanks for the hep bud.. :D

20-05-2011_1441.jpg
 

mihir287

Senior Member
Apr 4, 2011
503
251
0
My device is rooted and says permission denied whenever i type in 'su'.
Assuming it's in adb, keep the display on when you type su, I.e make sure that your display isn't locked when typing su in adb. You will see a toast notification asking for superuser permissions, grant it.

Sent from my LG-P500 using XDA App
 

bindaasathar

Senior Member
Mar 28, 2011
171
9
0
Bangalore
Assuming it's in adb, keep the display on when you type su, I.e make sure that your display isn't locked when typing su in adb. You will see a toast notification asking for superuser permissions, grant it.

Sent from my LG-P500 using XDA App
Using terminal emulator. :( All other root applications work good. Terminal Emulator doesn't ask for any root access and right away says Permission Denied whenever I type "su" without the quotes.
 

mihir287

Senior Member
Apr 4, 2011
503
251
0
Using terminal emulator. :( All other root applications work good. Terminal Emulator doesn't ask for any root access and right away says Permission Denied whenever I type "su" without the quotes.
This is unusual! Go to the superuser app and see if you have accidentally denied permission for terminal emulator. The icon to the right of 'terminal emulator ' in the list should be green.

Sent from my LG-P500 using XDA App
 

bindaasathar

Senior Member
Mar 28, 2011
171
9
0
Bangalore
Great guide. But I've got few doubts regarding the Nandroid backup. I boot into the recovery and under Backup/restore there are several options which include
- Nand backup
- Nand backup + .android_secure
- Nand + ext backup
- Nand + ext backup + .android_

So which backup do I go for? also I get this error "Error : Run 'nandroid-mobile.sh' via adb !" while creating a backup of anything other than Nand backup.

Sorry am a n00b. I am running on stock 2.2.2 and I've installed the recovery and would like to flash the franco kernel, my question is when the official Gingerbread is available will I be able to upgrade without any issues since I would change the kernel?

Thanks! Awesome Guide!

EDIT: I figured it out. Just created a NAND backup and used Titanium backup to back up all my system and application data and copied it on the PC. Flashed franco kernel. VTC you rock :)
 
Last edited:

Moritzio

Senior Member
Nov 19, 2008
358
53
0
When I attempt to enter the command 'sh /sdcard/rf.sh'
I get 'Failed on ...system/etc..install-recovery......'(can't read everything, it is gone so fast)
then reboots and freezes on LG logo

Is there a log file?
No problems until then
Device LG Optimus-S LS670
OS: 2.2.2 with Gingerbreak applied

Any advice?


This is an abridged version of the first post which will enable you to Root your P500 and install version 1.2 of Custom Thunderg Recovery by AmonRa/modified by Drellisdee with a minimum of fuss.

Rooting
Get GingerBreak APK from here. Follow the instructions in the post and install it on your phone and root your phone.
This tool is able to root phones running stock android 2.2, 2.2.1 & 2.2.2. 'GingerBreak APK' permanently roots your phone. Also,GingerBreak might not install BusyBox and Superuser apps properly on your phone. These apps are required by many rooted apps for their proper functioning. So, use Root Checker from android market to verify the proper installation of these 2 apps.

Installing Custom Thunderg Recovery by AmonRa modified by Drellisdee version 1.2
Originally posted by ungaze in this post.
1. Download Android Terminal Emulator from Android Market. Install it on your rooted phone.
2. Download the file "amon_ra_recovery_installer.zip" from here or here. Check the MD5 hash value of the downloaded 'zip' file using tools like HashTab etc. before proceeding further. Correct MD5 value : 86db8a52b01f049cadb8f097a4c5bd9e
3. Extract the contents of the 'zip' file to the root of the sd card (ie. not inside any folder) using tools like 7-Zip or WinRAR or any other similar tool.
4. Open the terminal emulator app on your phone and type in the command 'su' without the qoutes. This will prompt a popup on your phone from the SuperUser app asking you whether you want to give root permissions to the terminal emulator app. Click 'Allow' and proceed. You will notice that the shell prompt has changed from the previous user shell '$' to root shell '#' in the emulator app.
5. While in the root shell '#', type in the following command and press Enter. Wait and the phone will reboot into the Custom Recovery.
Code:
sh /sdcard/rf.sh


PS: Please do not forget to thank ungaze for his help in making the installation of custom recovery a very simple affair. Use the thanks button in his post to show your appreciation.
 
Last edited:
  • Like
Reactions: seises

Moritzio

Senior Member
Nov 19, 2008
358
53
0
Got it working but had to use another method: installed adb and pdanet, used a guide specifically for optimus-s that I found on another forum. I think in retrospec that the main issue may have been that I did not have USB drivers installed, nor did I see them mentioned. Installing pdanet resolved that issue.
 

samsungi780philippines

Senior Member
May 19, 2009
185
21
0
Bohol
hello everyone....can i ask this, i know it may sound stupid i am just new to android phone.....

The usual method on installing custom roms is to wipe all cache/data/sdcard and etc....and after that connecting the phone via usb to transfer the files from pc to phone's sdcard.....and then install from zip...

my question is, is it okay that before booting into recovery, i will copy first the zip files of the custom rom into my phone's sdcard which i intend to install and after that rebooting into recovery and then wipe all data/cache? i don't know but my pc won't recognized my phone when i am in recovery mode maybe because i didn't install all the drivers for my phone....please if the method is not okay you can simply make a response...i am just new here...sorry for my bad english.....thanks in advance..!!!
 

Spidey01

Senior Member
Sep 16, 2011
1,058
110
0
Duluth
I believe that whiping data and cache just clears the releavent file systems mounted on /data and /cache. /sdcard (alias to /mnt/sdcard) will refer to your MicroSD card on most devices with a MicroSD card slot. So it shold be fine unless you tell it to do that to your SD card.

Sent from my Transformer TF101 using Tapatalk
 
Last edited:

samrox144

Senior Member
Apr 20, 2011
417
300
0
bangalore
Why you want to wipe SD card no need to wipe SD..just wipe data and format system and install custom rom
Copy the zip in recovery or before booting into it..

Sent from my LG-P500 using XDA App