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

Root [FAQ-GUIDE] ClockWorkMod Optimus Elite

Artine

Android Expert
.
"A reference for the rest of us!"

------------------------------------------------------------------------------------------------------------
What's new? - April 26th, 2013
------------------------------------------------------------------------------------------------------------​
  • aa. Added mirror link to the CWM.bin file. Courtesy of phenomx4.
  • ab. Updated the current ROM list.
  • zz. Various and miscellaneous formatting, syntax, semantics, and background changes. There are too many of these, and are too often done, to list.
If you like my work, please consider brightening up my day here. Thank you.

------------------------------------------------------------------------------------------------------------
Disclaimer / Warning
------------------------------------------------------------------------------------------------------------

This is only the FAQ/Compilation Guide for CWM for the OE. The main ClockWorkMod thread is found here. Please keep general discussion there, but feel free to ask questions both here and there.

You are the only person responsible if you brick your phone to any degree.

This is always a possibility.

You have been warned.


------------------------------------------------------------------------------------------------------------
Table of Contents
------------------------------------------------------------------------------------------------------------​

GUIDE
  1. ClockWorkMod Recovery for the LG Optimus Elite
    • Section 1.1 - What is ClockWorkMod Recovery?
    • Section 1.2 - Le Grande List of Prerequisites
  2. Installing ClockWorkMod
    • Section 2.1 - Accessing CWM.
    • Section 2.2 - How Do I Update CWM?
  3. The ClockWorkMod Tour
    • Section 3.1 - How Do I Explore the Menu?
    • Section 3.2 - Navigating the Sea of ClockWorkMod.
  4. The Proper Way to Make a Backup, and Restore From a Backup, with Nandroid.
  5. Custom ROMs & Themes
    • Section 5.1 - Where do I get a Custom ROM or Theme?
    • Section 5.2 - Alright, I've downloaded a Custom ROM, now what?
    • Section 5.3 - Installing/Flashing the Custom ROM.
FAQ
  1. Question 1
    • I'm stuck in fastboot, what do I do?
  2. Question 2
    • What, exactly, is a Nandroid backup?
  3. Question 3
    • My Nandroid backup is dated back to the 80's, how do I fix this?
  4. Question 4
    • What is the Dalvik cache?
  5. Addendum
  6. Credits
Let's get started, shall we?

Welcome to the GUIDE!
------------------------------------------------------------------------------------------------------------
ClockWorkMod Recovery for the LG Optimus Elite
------------------------------------------------------------------------------------------------------------

Section 1.1

What is ClockWorkMod Recovery?

ClockWorkMod is a custom recovery for your phone - in our case, the LG Optimus Elite. It allows one to do many things with your device, the most notable being a Nandroid Backup, and allowing you to install a custom ROM (Read Only Memory, which in this context means a custom edition of the software that your phone runs). It also provides the basic recovery options such as a factory reset to return your phone to how it was fresh out of the box, also known as "Vanilla," or "Stock."

Section 1.2

Le Grande List of Prerequisites

Required
  1. You must have the ZV4 / ZV5 (Virgin Mobile) or ZV9 / ZVF (Sprint / Ting) firmware installed. Your OE will harass you about a system update being available until you inevitably submit to its whims.
  2. Enable Development by doing/going to the following on your phone:
    1. Settings
    2. Applications
    3. Development
    4. Check all on page.
  3. You must be rooted. See the All Things Root Guide for everything you need to know about rooting, from what it means, to the only three official methods for this phone of how to do so: either jcase's method, Hashtag's One-Click Root, or giantpune's app. You will not lose data by becoming rooted. After becoming rooted...
  4. You must have Superuser |OR| SuperSU installed.
    • Once Superuser or SuperSU is installed, run the app and allow it to update the Superuser Binary.
  5. You must have BusyBox Free |OR| Pro installed.
    • Once you have BusyBox installed, run the app and have it perform a Smart Install.
  6. You need the terminal emulator app installed. - Note: Not required if you're using giantpune's Noob Tool to install CWM.
  7. You need a root-permissions capable file explorer. Two prime examples of which are Root Explorer and Total Commander. - Note: Not required if you're using giantpune's Noob Tool to install CWM. Also, if you're using Total Commander, see this article.
  8. The current CWM build, which contains the capability for the time fix. Found on SendSpace | DropBox.
    • MD5 is 3fbe49417b6d4153ffec2d3b963bacd8
    • The time fix only works for CWM version 5.
Recommended
  1. Acquire your Master Subsidy Lock (MSL) code. Here's how.
    • Alternatively: While in CWM, flash (for the zip) giantpune's kernel. Then reboot. Use a root-permissions capable file explorer to browse to Sys/devices/virtual/lg_fw_diagclass/lg_fw_diagcmd/msl, and open it with a text editor. This will display your MSL.
  2. Enable Diag Mode via the following:
    1. Dial ##DIAG# in the same way you would dial any regular phone number.
    2. Input your MSL at the prompt.
    3. Tap on DIAG
    4. Tap on Enable.
      • Alternatively: Download and install Ministro II and LG_OE_DiagMode-debug-unaligned, run Ministro II and let it download what it needs, then run LG_OE_DiagMode-debug-unaligned, tap on Push Me, then DIAG, then Enable.
  3. Download and install Quick Boot (Reboot) |OR| Titanium Backup |OR| ROM ToolBox.
  4. Basic cognitive function.
  5. Something to drink and/or eat.
  6. Time. A lot of time. And perhaps some thyme.
------------------------------------------------------------------------------------------------------------
Installing ClockWorkMod Recovery
------------------------------------------------------------------------------------------------------------​

Method #1: giantpune's Noob Installer
Its been over a month and I haven't seen any huge bugs mentioned. So today I whipped up a noob-friendly installer for the CWM. I don't have any screenshots, or instructions because its just 1 button. Download LGOE_NoobTool-debug-unaligned.apk from Sendspace.com - send big files the easy way

Requirements -
Its built against the latest Necessitas, so you'll need Ministro II from about Nov 22 or newer. If you have installed an older one, you can delete it and get the latest one from the market. https://play.google.com/store/apps/details?id=org.kde.necessitas.ministro . If you don't have access to the market, there's link to it here http://files.kde.org/necessitas/installer/release/Ministro II v8.9.2.apk . The CWM installer will spit out an error and catch fire if you try to use an old version.

This installer uses the backlight exploit. If you have a kernel where that bug has been fixed, this installer won't work.

As usual, its only been tested on my phone. I offer no warranties, use it at your own risk.
And, if for whatever reason you can't get giantpune's Noob Installer to work:

Method #2: Advanced Install
Proceed at your own risk. Be careful. I don't believe CWM has been tested on an Elite running ZV4, but it seems to run well on ZV5. This guide was written specifically for the CWM BIN file named part_13_cwm_9_21_02_09.bin, but it will work for future releases from giantpune. Just alter the below commands to reflect the different file name.

Install with terminal emulator on your phone:

1. Download the CWM bin file and copy it to the root of your /sdcard (you can leave it in the Download directory if you want, but the following dd command will need to be slightly different if you do).


2. Run the terminal emulator app. (Download: https://play.google.com/store/apps/details?id=jackpal.androidterm)


3. Type su and tap the [Enter] key (Allow root access if you are prompted by Superuser/SuperSU)


4. Type busybox md5sum /sdcard/part_13_cwm_9_22_17_32.bin and tap the [Enter] key

Check to make sure the returned value matches the md5 which is posted along with each CWM bin file.


5. Type dd if=/sdcard/part_13_cwm_9_22_17_32.bin of=/dev/block/mmcblk0p14 and tap the [Enter] key

Once it's finished writing CWM to the recovery partition you'll see some output regarding the speed and size of the operation.


6. Type busybox md5sum /dev/block/mmcblk0p14 and tap the [Enter] key

Once again, check to make sure the returned value matches the md5 which is posted along with each CWM bin file. Close the terminal emulator app.


7. Run a root file explorer (such as Root Explorer) on your phone. Navigate to /system/etc/ and Mount R/W (read/write). Then rename the file named install-recovery.sh to install-recovery.sh.bak. If you don't see this file at this location on your phone, then you're finished.

*At this point, you may safely delete the CWM build / .bin file from your sdcard; it is no longer needed*

------------------------------------------------------------------------------------------------------------
Congratulations!
You have successfully installed CWM Recovery onto your Optimus Elite!

------------------------------------------------------------------------------------------------------------

Section 2.1

Accessing CWM

Method #1: The Extended Power Menu

If you're on a ROM for the Optimus Elite with this feature, you can reboot into recovery simply by holding down the power button until the power menu comes up, then tapping on "Recovery," and then "Ok."

Method #2: The app way

  • Quick Boot (Reboot):
    After downloading and installing Quick Boot, run the app. Tap Recovery, and your OE will reboot straight into ClockWorkMod Recovery.
  • Titanium Backup:
    Run Titanium Backup (either Regular or Pro). Press the capacitive/soft/bottom menu key on your phone. Tap "More." Scroll down to the bottom. Tap "Reboot the device," then "Reboot to recovery mode."
  • ROM ToolBox:
    Run ROM ToolBox (either Lite or Pro), scroll down to the bottom, tap on "Rebooter," then "Reboot Recovery."
Similar apps should follow similar procedures to be able to reboot your phone straight from the user environment into your OE's recovery.

Method #3: Via ADB

Through the terminal/terminal emulator, enter the following:
Code:
adb reboot recovery

Method #4: Old School

If your Optimus Elite is currently powered on, power it off. Turn it back on by holding down the power button. Before, or while, it is powering on, hold down the Volume Down (-) button/bottom part of the volume rocker until the phone enters ClockWorkMod, depicted below:

CWMOE_zps9814b880.png

Image courtesy of MacFett. Resized.

Section 2.2

How Do I Update CWM?

Follow the same steps you did when installing CWM, but this time with the updated .bin file provided above, along with the appropriate changes to step 4 and 5, to overwrite your now old installation of CWM with the new one, and you're good to go.

------------------------------------------------------------------------------------------------------------
The ClockWorkMod Tour
------------------------------------------------------------------------------------------------------------​

This is where it gets fun, and where we'll get to the exciting part of CWM: Nandroid backups and custom ROMs. How to flash them with CWM, and flying away from stock on the wings of Angel - well, if CWM had wings. And if CWM was an Angel. You get the idea. Although it does have a snazzy top hat. But first things first....

Section 3.1

The touch screen doesn't work! / How do I explore the menu?

You can navigate the entries in the menu by using the following:
  • +/- Volume Keys = Up / Down
  • Home Key = Up
  • Menu Key = Down
  • Back Key = Back
  • Magnifying Glass = Select / Enter
  • Power Button = Select / Enter
Section 3.2

Navigating the Sea of ClockWorkMod

And here we begin our complete feature tour. Get ready; it's kind of lengthy.

Main Menu
  1. reboot system now
    • Reboots the device normally.
  2. apply update from sdcard
    • This is used for installation of any update, ROM, kernel, theme, etc. that is in a .zip format installable/flashable from recovery, as long as the file is named update.zip and it has been placed in the root directory of your SD card (i.e. not in any sub-folder)
  3. wipe data/factory reset
    • Deletes all of your data, and returns the phone back to how it was when it first came out of the box.
  4. wipe cache partition
    • Wipes all of the data in the cache, which is temporary storage, that has built up over time. Helps keep your device clean.
  5. install zip from sdcard
    • choose zip from sdcard
      • Lets you install any zip file, with any name, from any location on your external SD card. The file can be for a ROM, a kernel, an application, a theme or any mod as long as it is in recovery-flashable zip format. Entering this option will bring up a screen that will allow you to browse your SD card for the zip file and select it for installation.
    • apply /sdcard/update.zip
      • The same as the ‘apply update from sdcard’ option in the main menu.
    • toggle signature verification
      • Turns the signature verification on and off. When signature verification is on, you will not be able to install any custom ROMs that haven’t been signed by the developers (most custom ROMs aren’t signed). Switching it off skips the signature verification check and proceeds with the installation.
    • toggle script asserts
      • Turns script asserts on or off. Unless you need to use this option for some reason, this is best left untouched.
    • choose zip from internal sdc
      • Same as choosing a .zip file from your external SD card, except this is only for the phone's internal SD card - the storage space that came with the phone.
    • +++++Go Back+++++
  6. backup and restore
    • backup
      • Makes a Nandroid backup, which is a snapshot of your phone’s entire internal memory including all partitions, and saves it on the external SD card by default.
    • restore
      • Lets you restore a previous backup that is stored on your external SD card. Entering this option presents you with a list of existing backups, by date, on the SD card that you can choose from to restore.
    • advanced restore
      • Allows you to restore specific partitions from a Nandroid backup that is saved to your external SD card.
    • backup to internal sdcard
      • Makes a Nandroid backup, but saves it to your internal SD card instead of external.
    • restore from internal sdcard
      • Lets you restore a previous backup that is stored on your internal SD card.
    • advanced restore from intern
      • Allows you to restore specific partitions from a Nandroid backup that is saved to your internal SD card.
    • +++++Go Back+++++
  7. mounts and storage
    • mounting/unmounting /cache, /system, /data, /emmc (internal sdcard), /sdcard (external sdcard)
      • Lets you mount or unmount these partitions. Unless you have to do so for some reason, these are best left untouched.
    • formatting /cache, /system, /data, /emmc, /sdcard
      • Formatting irreversibly deletes data. These options allows you to format the data stored on these partitions - use extreme caution here as you can easily brick your phone if you don't know what you're doing.
    • (un)mount USB storage
      • Lets you enable USB mass storage mode for your SD card right from recovery so that you can connect it to your computer via USB and transfer any files to/from it without having to leave recovery.
    • +++++Go Back+++++
  8. advanced
    • Reboot Recovery
      • Lets you directly and very conveniently reboot from recovery right back into recovery. This is useful option for certain back-to-back installations that require the device to at least boot once between them.
    • Wipe Dalvik Cache
      • Allows you to wipe the cache for the Dalvik virtual machine (the custom-built Java virtual machine for Android).This is required before most ROM installations and at other occasions too, for fixing some problems.
    • Wipe Battery Stats
      • Wipes the saved battery usage statistics and effectively recalibrates the battery. Useful in various scenarios, for example if Android isn’t showing correct battery levels.
    • Report Error
      • In case of errors, this feature can be used to save a log of recent ClockworkMod recovery operations on the SD card that you can later report from Android using ROM Manager (or give it to giantpune).
    • Key Test
      • Lets you press any of the hardware keys to see if they are properly functioning, and to see their key codes.
    • Show log
      • (Presumably) displays the logcat log.
    • Partition SD Card
      • This option gives you a no-frills way to partition your SD card properly for use with ROMs that support data2ext (a very handy hack for low internal memory devices that enables an /sd-ext partition on the SD card to be used as the internal user data storage i.e. as the /data partition). Once this option is selected, you will be given options to choose the sizes for the /sd-ext partition as well as an optional /swap partition on the SD card, and will then automatically format it for you, leaving the remaining space for normal SD card usage. This option will wipe all data from your SD card so use it with caution.
    • Fix Permissions
      • Fixes the file permissions for the internal memory partitions back to default. This is very useful as a fix for several errors and Force-Closes that start appearing after you or an application you installed and provided root access end up messing up the permissions of important files.
    • +++++Go Back+++++
  9. power off
    • Powers off the device.
  10. +++++Go Back+++++
Note: About half of the information on the menu entries came from both others and myself on these forums, and the other half came from this article. I've also filled in the blanks and edited for accuracy when necessary.

------------------------------------------------------------------------------------------------------------
The Proper Way to Make, and Restore From, a Nandroid Backup
------------------------------------------------------------------------------------------------------------​
Backup:
Reboot into recovery
Wipe cache partition
Advanced -> Wipe dalvik cache
Go Back
Backup and Restore
Backup
Wait
Go Back
Reboot

Restore:
Reboot into recovery
Clear cache
Advanced -> Wipe dalvik
Go back
Mounts and storage -> format system
Format data
Format cache
Go back
Backup and restore
Restore
Select your backup that you want to restore
Wait
Go back
Reboot

------------------------------------------------------------------------------------------------------------
Custom ROMs & Themes
------------------------------------------------------------------------------------------------------------​

A custom ROM is a customized, or personalized, version of the Android device's Operating System, built by Developers (occasionally known as Chefs). There are nigh-innumerable advantages to having a custom ROM, and some of the most frequently seen benefits include, but are not limited to; greater battery life/longevity, less bloatware (junk apps that manufacturers add to the phone that no one uses, and slows the phone down), greater speed, a custom theme or look, etc.

Section 5.1

Where do I get a Custom ROM or Theme?

There are multiple threads on this Optimus Elite board where you can acquire a custom (or stock) ROM. Here is the full list of all of the currently available ROMs for the Elite, in alphabetical order:

Build Your Own ROM:
Custom ROMs:
 
A reference for the rest of us!

For those of us who are new here, can those of us who are knowledgeable and wise in the ways of Android and the Optimus Elite CWM answer some basic questions so we can get it compiled in a single page on the forums as opposed to scattered all over Google, for the people new to this whole CWM and flashing business? Open for contribution, especially since I myself do not know all of the answers to the questions below, but please be as detailed and specific as possible in your answer(s).

This is only the FAQ/Compilation Guide for CWM for the OE. If you want to keep updated on the CWM progress, need additional assistance or support, or you've accidentally bricked your phone, or just want to talk general CWM goodness, I suggest heading over to the general ClockWorkMod thread found here.

Now, let's get started.
-----------

1.0. What is ClockWorkMod?

ClockWorkMod is a custom recovery interface. That is, it quite simply provides an avenue for you to backup and recover data from your device if you need to, while also providing the ability to reset all of your data and your phone back to the way it was when you bought it - in other words, back to "stock." Additionally, it will also allow you to install a custom ROM.

1.5. Le Grand List of Prerequisites:

1. You must have the ZV5 firmware update installed. Your OE will bug you about a system update being available until you inevitably submit to its whims.
2. You must be rooted. See the All Things Root Guide for everything you need to know about rooting, from what it means to the varying methods of how to do so (I personally recommend either jcase's method, or giantpune's).
3. You need the terminal emulator app installed.
4. You need a root-permissions file explorer. Two examples of which are Root Explorer and Total Commander.
5. Basic cognitive function.
6. Something to drink and eat.
7. Time. A lot of time.
8. The current CWM bin file. Found here.

2.0. Installing ClockWorkMod



a. How do we access it, once it has been successfully installed?

If your Optimus Elite is currently powered On, turn it off. Turn it back on by holding down the power button. As soon as it starts to turn on (signaled by the LG logo appearing, and/or by the device vibrating), immediately hold down the Volume (-) button/bottom part of the volume rocker, until the device enters ClockWorkMod, depicted below:
CWMOE_zps9814b880.png

Image courtesy of MacFett. Resized.

3.0. Once we get CWM installed, what do we do next?

This is where it gets fun, and where we'll get to the real reason you're reading this: ROMs. How to flash them with CWM, and flying away from stock on the wings of Angel - well, if CWM had wings. And if CWM was an Angel. You get the idea.

3.1. Backing up your, well, everything, with Nandroid Backup:

a. What is a Nandroid Backup?


xb. How do you do one?

x3.2. Wiping your data (but not the backup!)

xa. What data do we wipe after our Nandroid Backup is complete? Is it just a simple Factory Reset, or is there more?

x4.0. Okay, so now we've got our device(s) backed up a la Nandroid, and the ROM file(s) on the phone itself, what are the precise steps to flashing the ROM?

xa. And how?

xb. And once we've done so, do we just reboot like nothing happened and it's magically installed and finished, so we can go about our daily lives without a care in the world and it functions correctly?

xc. Will (or should) all of our app+data from before flashing the ROM and/or installing CWM still be intact, or do we have to do a factory reset at some point in this whole process?

Sincerely,
I-don't-want-to-stab-the-air-and-brick-my-phone(-again).

-----------
Note: If you have any more questions related to ClockWorkMod and they are not posted here, feel free to post them below and I will add them to this post as well, in addition to their answers. If there needs to be any updates for accuracy and/or clarity of information, please provide those as well!

-----------
Credits:
giantpune, salvy512, MacFett, kwknott, ktb83, WhisperPntr, Android311, rukin5197, Tejer, dobbs69, BobZhome, slutyman, bobloadmire, davidbudd1, Hashtag, Curtis1973, drewwalton1921, LacWare, mcgraham89, HaTrEd360, elgecko, Dark One, Leslie Ann, james391, medmansri, landonh12, and if I've missed anyone let me know!


hmm im trying to test it, when i try to exucute the second command it says "write: no space left on device?" i have 2 gigs remaning? what next?
 
Unless you are installing a custom ROM, do not format System. I'll need verification on that, but I believe that's correct.
 
Yeah do not format system unless you are installing a new rom which we dont have yet. It erases your rom so your phone won't boot

If you format data you pretty much did a factory reset

If you format emmc you formated your internal memory

Format sdcard is self explanatory

Format cache erases the cache partition which is temporary storage
 
Yeah do not format system unless you are installing a new rom which we dont have yet. It erases your rom so your phone won't boot

If you format data you pretty much did a factory reset

If you format emmc you formated your internal memory

Format sdcard is self explanatory

Format cache erases the cache partition which is temporary storage

We have Leslie's ROMs. Thank you for the confirmation, as well. Adding it to the FAQ.
 
CWM installer

POSTED BY GIANTPUNE:
Heres the very first incarnation of the installer. Download www.sendspace.com/file/s872av
md5sum 6ed309ed17d621396df857c984f7338a


Its a commandline program, so run it (with root privileges) from adb or the terminal emulator. It has a full stock recovery built into it, as well as the latest and hopefully greatest CWM build. Its a pretty basic program. It will check a build prop and make sure its running on a optimus elite. Then it will make a backup of whatever recovery you have installed and tell you where it is putting it. After that, it will check for that install.crap.sh script and rename it to .bak.##. Next, it will try to write either the CWM or the stock partition it has built into it, and read it back to verify it. If it can't successfully write the new recovery and read it back, it will try to restore your original one, and read it back to verify. If that fails, then youll still have your original that it created in /data/local/tmp and you can restore it with dd before you reboot.

It should be fairly safe, but as usual, if you can't handle your phone getting destroyed, you can wait until enough people have tried it out and reported that it worked (or didn't). You aren't paying any money for this, and I'm not offering and warranty.
 
Seriously how do we use the installer?? It doesn't even describe how.

Okay patience people....pune has been super busy.
This is a command line "active" program which means there is no graphical user interface. So you need to know the path of which the installer is stored and then you have to run a sort of command.
 
On the credits given. I'm not sure its appropriate to add me in there. I did no hands on work with this and maybe another should get that spot. I appreciate the thought nonetheless.
 
On the credits given. I'm not sure its appropriate to add me in there. I did no hands on work with this and maybe another should get that spot. I appreciate the thought nonetheless.

Regardless, that is respectable. Trying to give credit where credit is due.
 
Is this the most up to date one they have electricity out?? And it works for flashing roms (when they come out) because I was reading that lesies romdidnt work for the cwm just wondering before I flash this onto my phone
 
At this moment, yes this is the most recent version and no we currently aren't able to flash a ROM using it. I have been able to make and restore a nandroid with it. Others have been able to flash titanium backup zips with it.
 
well for now the biggest thing is this. you can now safely backup and restore your original setup in case you bork something. this means you can theme,experiment,etc without the fear of bricking,etc. and the ability to restore a backup is huge. frees up many things you didnt want to try before.
 
At this moment, yes this is the most recent version and no we currently aren't able to flash a ROM using it. I have been able to make and restore a nandroid with it. Others have been able to flash titanium backup zips with it.

That's a problem with the ZIP updater script, not CWM. Apparently, the actual ROM is missing something also according to Leslie.
 
this does work with zv4.
cwm installed perfectly..
maybe update instructions to say the magnifying glass is the enter button
while in recovery..had a short panic something was wrong
 
Back
Top Bottom