Install CM for p970

From CyanogenMod
Jump to: navigation, search

Make sure USB debugging is enabled on the device before you begin.

Downloading the installation kit

Download and extract the installation kit from here.

Rooting the device

If your device is running Android 2.2 "Froyo"

  1. Open a terminal and run the rooting script (bash rootscript.txt on GNU/Linux)
  2. Quickly close the terminal and open another one (you can open a new tab if your terminal emulator supports this) and run bash rootscript2.txt. You must do this within 30 seconds, or the root will fail!

Your device should now be rooted.

If your device is running Android 2.3 "Gingerbread"

Newer method - SmartFlash

  1. Don't download the installation kit from above, the video below has in the description its own kit to download, which you should do.
  2. Follow steps in this HOW TO video
  3. Note that it is important to find a firmware (.kdz) file with the same "Software version" (e.g. "...V20c"), the country it is intended for is less important.
  4. If after completing all the steps the phone does not start, only briefly showing the LG logo with an error message ("Security Error" I believe) upon plugging or unplugging the USB cable, you have chosen a wrong firmware file. Try finding a different one.
  5. This method installs ClockworkMod recovery as well, so do not attempt to install it again in the next section.

Older method - Gingerbreak

Note that this method may no longer work.

  1. Allow installation of non-market apps (go to Settings → Applications and check "Unknown Sources")
  2. Connect the USB cable to the computer, enable USB storage and copy the .apk file to the device
  3. Install the OI File Manager or a similar file manager application from the Play Store
  4. Open the file manager application and go to /mnt/sdcard (default in OI File Manager)
  5. Tap on the Gingerbreak.apk app to install it
  6. After installation, connect your USB cable to the phone and computer
  7. Open Gingerbreak and tap "Root device"

Once the device reboots, it is rooted. GingerBreak may not work on all devices: if the phone does not reboot after 10 minutes, try another method.

Installing ClockworkMod recovery

Do not attempt these steps if your device is not rooted!

  1. Connect your USB cable to the computer
  2. Run the flash.txt script: bash flash.txt on GNU/Linux

The device should now reboot into ClockworkMod.

Installing CyanogenMod from recovery

  1. Make sure your computer has working adb.
  2. Download the CyanogenMod build package for your device that you'd like to install to your computer.
    Optional: Download 3rd party applications packages, like Google Apps which are necessary to download apps from Google Play.
  3. Boot to recovery mode, and connect the phone to your computer through USB.
    • the power key until the device turns on, waiting until the LG logo disappears, holding the volume down and home buttons, and pressing the power button until the device restarts. If this does not work, connect to the computer via USB cable and run adb reboot recovery.
  4. In ClockworkMod Recovery, use the physical volume buttons to move up and down. On most devices, the power button is used to confirm a menu selection, but for some devices a physical home key acts as a selector. Some devices have touch enabled ClockworkMod Recovery, in which case you may be able to swipe to, or touch, menu selections.
  5. Optional (Recommended): Select backup and restore to create a backup.
  6. Select wipe data/factory reset.
  7. You have two options for transferring and installing the installation packages. The sideload method is more universal across devices, whereas the push and install method is more commonly used:
    • Sideload method: select install zip > install zip from sideload. Follow the on-screen notices to install the package. The installer does not necessarily display an "Install complete." message. You can tell the install is complete if there were no fatal error messages and you have regained control over the menu.
    • Push and install method: Open a command prompt (or Terminal on Mac and Linux) and navigate to the directory holding the package(s) you would like to install. On the device, navigate to the mounts and storage menu. If you see /storage/sdcard0 or /sdcard as a mountable volume, go ahead and mount it. If you do not see one of these partitions, then instead mount the /data partition. Take note of which volume you mounted. Now, push the package(s) to your device (also, see tip below):
    - If you mounted /storage/sdcard0, then: adb push /storage/sdcard0/
    - If you mounted /sdcard or /data, then: adb push /sdcard/
    where should be replaced with the package filename. Go back to the main menu and select install zip. Choose to install from the same directory where you pushed the package(s). If you are installing multiple packages, install CyanogenMod first and then install any subsequent packages on top of it.
  8. Once installation has finished, return to the main menu and select reboot system now. The device will now boot into CyanogenMod.

Helpful Tip– SD card folders

CyanogenMod 10.1 and newer have multi-user support (introduced in Android 4.2). If your device has storage on the /data partition, then Android actually looks in /data/media/0/ for the first user's /sdcard/ storage. ClockworkMod recovery symlinks /sdcard/ to /data/media/ though. So, if you are pushing files to internal storage in recovery and want them to be visible in Android, you should push them to /sdcard/0/ or /data/media/0/. Here's the most frequent scenarios:

  1. If you're coming from a ROM with Android 4.1 or older to CyanogenMod 10 or older: adb push /sdcard/
  2. If you're coming from a ROM with Android 4.1 or older to CyanogenMod 10.1 or newer: adb shell "mkdir /sdcard/0/" followed by adb push /sdcard/0/
  3. If you're coming from a ROM with Android 4.2 or newer to CyanogenMod 10.1 or newer: adb push /sdcard/0/