Skip to content

Installing LegacyXperia for Dummies

cajhin edited this page May 13, 2015 · 44 revisions

This page steps you through everything you need to install LegacyXperia (LX).

If you already know what you're doing, see [LX Installation in a Nutshell](LX Installation in a Nutshell)

The first time, this will take a while, about 2-3 hours.
Once you've done that, installing other Android versions is a lot easier.

You need basic skills with Windows or Linux.

IF YOU HAVE QUESTIONS
Go to the right Q&A thread:
LX AOSP 5.1.1: http://forum.xda-developers.com/xperia-arc/general/faq-2011-legacyxperiaaosp-discussion-t3053181
LX 12.1: http://forum.xda-developers.com/xperia-mini/help/faq-2011-legacyxperia-discussion-t3053947
LX 11.0: http://forum.xda-developers.com/showthread.php?t=2543426
LX 10.2: http://forum.xda-developers.com/showthread.php?t=2466097
LX 10.1: http://forum.xda-developers.com/showthread.php?t=2464859

NEVER ASK FOR HELP ON DEV THREADS

Before you Start: Check the Basics

Can you install LegacyXperia (LX) on your phone?

Only if you have one of the following phones:

  • Xperia Active [Satsuma]
  • Xperia Arc [Anzu]
  • Xperia Arc S [Ayame, but uses Anzu's files]
  • Xperia Mini [Smultron]
  • Xperia Mini Pro [Mango]
  • Xperia Neo [Hallon]
  • Xperia Neo L [Phoenix]
  • Xperia Neo V [Haida]
  • Xperia Play [Zeus]
  • Xperia Pro [Iyokan]
  • Xperia Ray [Urushi]
  • Live with Walkman [Coconut]

If your phone is not on the list, you can NOT install LX.

Remember the [codename] for your phone !

Do you have a PC with a supported OS?

Linux works (when in doubt, Ubuntu LTS is the best tested).

Windows XP, Vista, 7 works.

Windows 8 can be used after disabling Driver Signature Enforcement (this is the only way to install flashtool/adb drivers). See http://www.nextofwindows.com/how-to-install-an-un-signed-3rd-party-driver-in-windows-8/

Windows 8.1 Microsoft has released the new update for Sony Driver. Install this to remedy the problem http://support.microsoft.com/kb/2917929

OSX doesn't work, but you can run another OS in a VM.

Do you WANT to install LX?

If you value trouble-free reliability over everything else, better stay with stock Android.
If you want the latest Android, more control over your phone, and you are willing to tinker with your phone and live with some bugs, try LX. You can always go back to stock if you don't like it.

Outline: the Major Steps

  1. Unlock the bootloader
    (this gives you more boot options than "load Android", for example, boot to fastboot mode or recovery. This is like the Windows F8 boot menu)
  2. Install the Android SDK on your PC
    (this gives you the required drivers and tools to talk to your phone via USB, on a low level)
  3. Install an LX kernel
    (this is required for LX Android. It also provides a Recovery kernel, which lets you do low-level admin on the phone)
  4. Install an LX Android ROM
    (this is the actual Android system running on top of the Linux kernel. ROM basically means "Android system image")

INFO What about Root?
Rooting makes you an administrator, so you can do/damage anything.
The LX Rom is already rooted; you never need to root the phone yourself.

Other Installation Guides

If you run into problems, you can try

Unlock the Bootloader, Install SDK

INFO
During the Sony guide, you install the Android SDK. This gives you the adb and fastboot tools, and (hopefully) installs the required adb and fastboot drivers.
Now you have low-level access to your phone, and you can also use the SDK to write Android apps. If you know Java, check the examples; it's quite easy to do a Hello World.

Choose your weapon

  • LX 5.1.1 based on AOSP 5.1.1 (Lollipop, plain AOSP without CyanogenMod)
  • LX 12.0 based on CM 12.0 based on AOSP 5.0 (Lollipop)
  • LX 11.0 based on CM 11.0 based on AOSP 4.4 (KitKat)
  • LX 10.2 based on CM 10.2 based on AOSP 4.3 (Jellybean)
  • LX 10.1 based on CM 10.1 based on AOSP 4.2 (Jellybean)

You can check the "Working/Not Working" lists on the LX project page: http://legacyxperia.github.io

LX based on Lollipop has big new features and a lot of changes every day, but still has some problems. At the current stage it is only recomended for experienced users. LX12.0 is currently slow.
LX 11 is the recomended version to install.
LX 10.2 is no longer supported.
LX 10.1 is no longer supported. If you're not sure, start with 11.

INFO
AOSP is the official Google Android ("Android Open Source Project") that runs on Nexus phones.
CM (www.CyanogenMod.org) builds on top of AOSP, adds features and supports more phones.
LX builds on top of CM, to support the 2011 Xperias (official CM support for our phones ends with v4.1).

Download the ROM

  1. Go to the LX Project page: http://legacyxperia.github.io
  2. Clicking on "Downloads" will take you to the BasketBuild download page
  3. Click on your phone's codename
  4. Choose an Android version
  5. Pick the newest build for your desired Android version. Nightlies/Release doesn't really make sense today. Go to the newer one. The date is within the file's name.
  6. CHECK THE SIZE OF THE FILE! If the file is smaller then the older builds, the upload is not finished. Wait until the file size does not change before you download!
  7. Open the ROM .zip and extract the kernel (boot.img) to your PC
  8. Download the Google Apps, also know as GApps (this is Google apps like the Play store).
  • For CM10.1 and CM10.2: The respective GApps files have been added to the BasketBuild download page and can be found inside the gapps folder.
  • For CM11: Get GApps Minimal. This is a lite version because the full GApps package does not fit on our phones. You can install missing apps like Gmail later from the Play store. Download from XDA-Developers
  1. Copy the ROM .zip and the GApps .zip to the root directory of your SD card

Save all your Data

Assume that the following steps will reset your phone to factory state, including the SD card if things go wrong.
Save everything you will still need, like pictures, local contacts and local documents.

To store app settings like game progress, use a backup tool. Titanium Backup is an XDA favorite.
Personally, I don't do that. I like to start from scratch, and install everything from the Play store; my data is on Dropbox and Google.

Lollipop: Prepare an SD card with 2 partitions.

See Installing LX AOSP 5.1.1

KitKat: Reset the Internal Storage Partitions

This step is only needed when you flash KitKat for the first time.

Follow these instructions How to Go Back to Stock to install a stock ICS .587 image on your phone.

Install the LX Kernel

  1. Make sure Android-/USB-Debugging is enabled
  2. Connect the phone in fastboot mode
  3. Shut down the phone
  4. Press and hold the fastboot button (Menu or Vol-Up)
  5. Connect USB
  6. Release the fastboot button
  7. The status LED should turn blue. If not, try again.
  8. Find fastboot.exe on your PC (...\Android-SDK\platform-tools)
  9. Open a command prompt as an administrator and navigate to your fastboot.exe directory using cd command
  10. Enter fastboot devices to check if fastboot is working. This command should print something like:
    123ABC456 fastboot
    If the result is an empty line, troubleshoot fastboot.
  11. Move the kernel you extracted earlier to the fastboot.exe directory
  12. Enter fastboot flash boot boot.img
    Flashing the kernel takes a few seconds.
  13. Enter fastboot reboot
  14. When the boot image appears, press Vol-Down or Back every second.
    The LED turns blue and you enter the CWM ClockWorkMod Recovery tool.

If the phone is not booting at all

  1. Reboot to bootloader again
  2. Enter fastboot erase system
  3. Enter fastboot erase userdata
    This will erase all data and settings.

Install the LX ROM

  1. Boot into the Recovery tool
    Navigate the menus with Vol-Up/Down to choose, Home to confirm, Back to go back.
    If the buttons don't work, try Menu and Power.
  2. Only if you install KitKat for the first time:
  3. Go to mounts and storage
  4. Format /system, then /data, then /cache
  5. Select Wipe Data / Factory Reset
    This will erase all your data, apps and settings. Usually, you only have to do that when you switch to other ROMs; when you only install a newer build of the same ROM (like LX11 build 5 to LX11 build 7), only do a factory reset when the developer says so, or when you don't care about losing data.
  6. Flash the ROM .zip that you have put on your SD card before
  7. Select Install .zip
  8. Select Choose .zip from /Storage/SDcard0
  9. Select the ROM .zip ("cm-11-20140101-...zip")
  10. Repeat the last step to flash the GApps .zip
    Flashing GApps is optional; it is required for the Play store.
  11. Return to the main menu and Reboot system now

Basic Setup

  • If the brightness is too low: go to Settings > Display & Lights > Brightness
    and disable auto-brightness; or adjust how the automatic brightness works.
  • Show Developer and Performance settings:
    Go to Settings > About phone and press Build number seven times.
  • Give root to adb: Settings > Developer options > Root access : apps and adb
    This lets you access the system from your PC