• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root [GUIDE] Getting ADB and Finally Custom Recovery working.

Conner526

Lurker
Ok after having quite the experience getting a custom ROM set up on the LG Optimus M I thought I would share my misfortunes to aid those who want to do this. I managed to finally get it working thanks to bits and pieces of information on the web. I am using Windows by the way.

This works on rooted phones. I used gingerbreak.

Steps:
(Don't plug in your phone until told to)
MAKE A SYSTEM RESTORE POINT BEFORE YOU START!
1.) Download & Install Java SDK here (I had trouble with the 64 Bit version so use the 32 bit (x86))

2.) Download & Install the Android SDK here

3.) When prompted to download additional files on the Android SDK startup, reject everything besides the first one.

4.) Download & Install the LG Optimus M drivers here (scroll down to Metro PCS and download the first one)

5.) Google "how to check if my computer is 32 bit or 64 bit" if you are unsure.
- Windows Vista & 7 Users:

- Right click computer > Properties > Advanced System Settings
- Click Environment Variables
- 64 Bit Users: Double click 'path' and add (at the end):
;C:\Program Files (x86)\Android\android-sdk\tools;C:\Program Files (x86)\Android\android-sdk\platform-tools
- 32 Bit Users: Double click path and add (at the end):
;c:\android-sdk-windows\tools;c:\android-sdk-windows\platform-tools
- Windows XP Users:
- Right click computer > properties > env. variables > add same thing as 32 bit users above

6.) You are done with ADB! Now to test connect your phone (USB Debugging) and wait until your comp recognizes it. Open command prompt and type adb devices and your phone should be listed!

7.) Download Final Cust. Recovery here

8.) Extract files to SD card using a program like WinRAR.

9.) Open command prompt

10.) Type "adb shell"

11.) Type "su"

12.) On your phone, accept the prompt.

13.) type these commands in order.
mount -o remount,rw -t yaffs2 /dev/block/mtdblock5 /system

cat /sdcard/flash_image > /system/bin/flash_image

chmod 755 /system/bin/flash_image

mv /system/etc/install-recovery.sh /system/etc/install-recovery.sh.bak

mount -o remount,ro -t yaffs2 /dev/block/mtdblock5 /system

flash_image recovery /sdcard/recovery.img

14.) Disregard error on the fourth command.

15.) Restart your phone. While it's booting hold home + vol down + lock key

16.) Enjoy!
 
I followed your steps and I get Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\Sandy taylor>adb devices
'adb' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Sandy taylor>



:confused:




NEVERMIND I FOUND SOME VIDEOS AND FIGUERED IT OUT!
please help is there something that I could have done wrong?
 
I followed your steps and I get Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\Sandy taylor>adb devices
'adb' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Sandy taylor>



:confused:




NEVERMIND I FOUND SOME VIDEOS AND FIGUERED IT OUT!
please help is there something that I could have done wrong?



What did you do wrong and how'd you fix it? I'm stuck there and haven't found a solution
 
What did you do wrong and how'd you fix it? I'm stuck there and haven't found a solution
you need to use the cd=change directory, command to go to the folder that has the adb.exe file.

so if your adb is located in the folder Platform-tools inside of a folder called Android-SDK which is located on the root of C: you would do something like
open cmd prompt. it normally opens in your user folder, so say your name is john you would open to see

C:\Users\John>
You would then use the cd command and go to the folder we already mentioned. like this

C:\Users\John>cd C:\Android-SDK\Platform-tools
Now your curser will be at
C:\Android-SDK\Platform-tools>
and at that point you can start with the adb commands

Or a much easier way use windows explorer and go to the folder and inside put the mouse on empty space and hold the shift button and press the right mouse button a menu will come up and one option will be to open command window here do that.
 
I couldn't find the thread for GNM recovery, so im hoping someone can help me here.
I recently partitioned my sdcard and since then I have not been able to recover any of my nand backups. The error log states that when it checks tbe md5 sum that it's failing on at least one of five checks...e.g: sysyem.img or flash.img not found. Any help?
 
I couldn't find the thread for GNM recovery, so im hoping someone can help me here.
I recently partitioned my sdcard and since then I have not been able to recover any of my nand backups. The error log states that when it checks tbe md5 sum that it's failing on at least one of five checks...e.g: sysyem.img or flash.img not found. Any help?

Here is the getitnowmarketing recovery thread: http://androidforums.com/getitnowmarketing/330813-all-one-recovery-thread.html
 
Back
Top Bottom