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":

  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


Some devices do not have removable SD cards. Regardless, there should still be a partition on the device named "/sdcard" that can be used for flashing purposes, even though the contents of /sdcard may actually be in internal storage.

  1. Download the prebuilt release of CyanogenMod you wish to install. (Or if you've built CM yourself, look in the $OUT directory for the .zip.)
    Optional: Download any supplemental 3rd-party applications packages for the device you wish to use.
  2. Place the CyanogenMod rom .zip file on the root of the SD card using adb:
    • Transfer your file(s): adb push /sdcard/
      • If you boot directly to recovery and have an internal sdcard, you may need to run adb shell mount /sdcard or mount data through the recovery menu before transferring.
      • If you see "error: device not found" there is likely a driver issue on the PC.
      • If you see "error: insufficient permissions for device", try "adb kill-server" and then run "adb devices" to see if the device is attached.
      • On some devices, the zip file can be copied to the device using standard USB Mass Storage or MTP support. Boot the device normally and transfer the file to it.
    Optional: Place any supplemental packages (e.g. Google Apps[1] or kernel) .zip file(s) on the root of the SD card.
  3. Boot to recovery mode on the device by holding 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. Once the device boots into the ClockworkMod Recovery, use the physical volume buttons to move up and down. On most devices, the power button is used to confirm your selection, although for some devices the power button is used as a "back" button to go up one level, in which case the home button is used to confirm the selection.
    Optional/Recommended: Select backup and restore to create a backup of the current installation on the device. If this option is missing, it's likely because the stock ROM has overwritten your custom recovery on boot.
  5. Select the option to wipe data/factory reset.
  6. Select install zip from sdcard.
  7. Select choose zip from sdcard.
  8. Select the CyanogenMod file you placed on the sdcard. You will then need to then confirm that you do wish to flash this file.
    Optional: Install any additional packages you wish using the same method.
  9. Once the installation has finished, return back to the main menu, and select the reboot system now option. The device should now boot into CyanogenMod.