Tutorials | Firmware | FAQ | First Aid - Updated 7/6/2013 - Downloads available!

Search This thread

Someguyfromhell

Senior Member
Feb 2, 2012
4,148
1,828
Tutorial includes stock firmware .ftf files for Flashtool!

Changelog:
31/05/2012 - Adding firmwares.
13/06/2012 - ICS update.
14/06/2012 - Adding posts to keep improving. Massive dictionary update!
17/07/2012 - Few firmwares added!
16/08/2012 - Scrolling made easy!
07/06/2013 - Time to do something good!

This tutorial has been created to help XDA members in order to modify their 2011 Xperia phone. This tutorial is originally made for Xperia Ray by hansip87, link to original topic xdaforums.com/showthread.php?t=1426912. Topic has been modified to fit the following phones:
  • Xperia Active (ST17)
  • Xperia Mini (ST15)
  • Xperia Mini Pro (SK17)
  • Xperia Live with Walkman (WT19)

These tutorials can also work on other 2011 Xperia phones. Instructions will also work with ICS unless written otherwise, so read carefully!

All kinds of ideas/comments/critism are always welcome.

Everything you do is on your own responsibility. I am not responsible for any damage that you have made to your phone.

Tutorial includes:
  1. Android Dictionary
  2. Root the Phone(GB and ICS)
  3. What to do after rooting(apps etc)
  4. Installing stock firmware and downgrading
  5. Install Busybox and CWM Recovery
  6. Unbricking your phone(after OTA update)
  7. Install Supercharger to optimize Memory and KAK to optimize Kernel
  8. Edit build.prop for additional optimizations
  9. Enable Dual Band and Burst Mode for Wifi
  10. Unlocking bootloader
  11. Installing custom kernel
  12. Installing custom ROM
  13. Relocking bootloader
  14. Preparing for ICS
  15. Overclock/Underclock/Undervolting guide
  16. Optimizing battery life
  17. Downloads
  18. Frequently Asked Questions(FAQ)

Yet to be added:
  1. List of system apps and which can be removed


Depending on what tutorial you will follow, you may need:
  • Stock ROM on your Xperia and USB cable
  • PC Companion installed on your computer (for base drivers)
  • Flashtool(Flashtool topic and download)
  • Enable "USB DEBUGGING" from Menu -> Settings -> Applications -> Development
  • Enable "UNKNOWN SOURCES" from Menu -> Settings -> Applications
  • Set Connectivity mode to MSC from Menu -> Settings -> Sony Ericsson -> Connectivity -> USB Connection Mode
  • Root Explorer or any file manager that provides access to root (I personally use ES File Explorer)

1. Android Dictionary
ADB - Short for Android Debug Bridge. Part of the Android Software Development Kit (SDK), it allows for ROOT-level access to the Android device from a computer.
Android - Operating System for smartphones and tablets, based on Linux, built by Google, similar to Windows on PC.
AOSP - Short for Android Open Source Project. The open-sourced code from which individuals can build new distributions of Android.
APK - An Android executable file, similar to the .exe file in Windows. Most programs will install with a .apk file.
Baseband - System of a smartphone, that controls the cellular radio systems(GSM, 3G, HSDPA etc).
Bootloader - Controls the booting process, makes sure that you will access User Interface. These programs tell the Android device how to start up, and are critical to its functionality.
Build.prop - A plain text file which contains environmental variables for the system to use during operation. Can be hacked to fake a different model for increased functionality, among many other operations.
BusyBox - Command line bridge, used to give commands to Android system. You will need app to send commands, it will use BusyBox to send the commands.
Brick - A phone, that you paid a lot for and now you can use it as brick, because it doesn't start up.
CWM/ClockworkMod Recovery - A specific program, that is used before booting to Android. Allows the user to make full backup of system and install custom ROMs, updates etc.
CM - Short for CyanogenMod. CyanogenMod is an Android build built from the Android Open Source Project, and its builds are usable on multiple different Android Devices.
Dalvik Cache - The collection of program information stored for use by the DALVIK program. This can be cleared from the RECOVERY menu to resolve issues with the Android OS.
Deodexed - Removing the .odex files from an APK file. The .odex files contain a list of dependencies for the associated file, and if something changes, the .odex (and similarly, the associated file) not longer function correctly.
Downgrade - A job, that you have to do, when you want to get from newer firmware to older firmware.
Factory Reset - This will remove all user customizations in the Android OS, returning it to a factory state. Note: This will not wipe the Internal SD card.
Fastboot - Command Line Tool to edit Android filesystem. Unlike flashmode, this allows flashing unsigned partition images.
FC - Short for FORCE CLOSE. See FORCE CLOSE.
Flashing - The act of writing code to the Android device. ROMs, MODEMs, KERNELs, and BOOTLOADERs can all be flashed. Independent from, and having nothing to do with, Adobe's Flash product.
Flashmode - Phone mode, where you can freely flash any firmware to your phone via WotanServer or Flashtool.
Force Close - When a program on the Android device becomes unstable, the DALVIK program will force it to terminate to prevent further system instability.
GB/Gingerbread - Android 2.3 version, codename Gingerbread, mostly used shortly as GB.
Governor - A program that interacts with the device hardware to increase or decrease the processor's clock speed (e.g. at low usage, it will set the processor speed to 400 MHz, but as usage increases, it would scale up to 1000 MHz).
HSUPA/HSDPA - Short for High Speed (Up/Down) Packet Access. This is 3G+, and is the Android device's internet speed level between 3G and 4G.
ICS/Ice Cream Sandwich - Android 4.0 version, codename Ice Cream Sandwich, mostly used shortly as ICS.
Kernel - Bridge between hardware and Android, used for hardware information exchange and control hardware parts(CPU etc).
Launcher - A program that launches programs in Android. Examples are Touchwiz (Samsung), Launcher Pro, ADW Launcher, and Go Launcher.
MD5 Checksum - A 32-digit (128-bit) hash number generated by a cryptographic program to ensure that a downloaded file matches the original file. The original file is run through the MD5 generator program, which creates the 32-bit number. This number is checked against the md5 number created with the file the end user receives to ensure file integrity.
Nandroid Backup - A complete system image backup of the Android device except for the MODEM and KERNEL. Can be accessed from CWM.
OTA/Over The Air - Updating your phone firmware directly from your phone via 3G or WiFi connection.
Overclocking - Setting the processor's clock speed to run faster than its default setting, i.e. 1200 MHz (1.2 GHz) vs 1000 MHz (1.0 GHz).
RAM - Random Access Memory, data storage area, where are currently in use apps and services. It is used, because it has really high data transfer rate compared to other possibilities(SDcard, hard disks etc).
ROM - Read Only Memory, data storage, where the data can only be read by system itself. It includes all data to start the Android. Many developers edit this ROM to change Android interface.
Root(ing) - Process, during which user gets access to Android system partition and files, giving the possibility to edit Android.
SEUS - Sony Ericsson Update Service, can be used in some cases to get back to newest stock firmware.
Undervolting - Setting the voltage levels drawn by the Android device to a lower level to reduce overall battery usage.
WotanServer - A paid application, which can be used to flash any stock firmware version with kernel to your phone.


2a. Root your phone - Gingerbread
Currently ZergRush method by DoomLord is the simplest way to do it.
NOTE: If you have newer firmware(4.0.2.A.0.62 or 4.0.2.A.0.69), check tutorial point 4 first to downgrade your firmware. This rooting method will not work on those firmwares.
  1. Download the attached file from here, extract it to a folder using any .zip manager, for example 7-Zip.
  2. Connect Phone to USB.
  3. Execute "RUNME.bat" from the extracted folder.
  4. Follow the instructions in the window.
  5. The phone will be rebooted, after reboot you will have Superuser app and your phone is rooted!
  6. Don't forget to thank DoomLord on the original link in the credits ;)
Now you can access system files on your Android. Some file manager apps will require you to set a ticker to get access to the root, ES File Explorer is one of them. What to do now? Read the next tutorial.


2b. Root your phone – ICS 4.1.A.0.562 ONLY
NOTE: Make sure you have Android 4.0.3 and 4.1.A.0.562 firmware! This might not work on Android 4.0.4!
  1. Download the file from this post, extract it to a folder using any .zip manager, for example 7-Zip/WinRar.
  2. Make sure all drivers are installed.
  3. Make sure USB debugging(Menu\Settings\Developer Options\Development) and Unknown Sources(Menu\Settings\Security) is allowed in the settings.
  4. Connect Phone to USB.
  5. Execute "RUNME.bat" from the extracted folder.
  6. Follow the instructions in the window.
  7. The phone will be rebooted, after reboot you will have Superuser and Busybox and your phone is rooted!
  8. Don't forget to thank DoomLord on the original link in the credits ;)
Now you can access system files on your Android. Some file manager apps will require you to set a ticker to get access to the root, ES File Explorer is one of them. What to do now? Read the next tutorial.


2c. Root your phone – ICS 4.1.B.0.431 and newer
NOTE: You need to have rooted version of older firmware(GB 2.3.4 for example)!
  1. Download the Xperia-ROOT.revX.zip file from this post, extract it to a folder using any .zip manager, for example 7-Zip/WinRar.
  2. Make sure USB debugging(Menu\Settings\Developer Options\Development) is allowed in the settings.
  3. Connect Phone to USB.
  4. Execute "01-local-prop.cmd" to create /data/local.prop (this enables android emulator the backdoor).
  5. Follow the instructions in the window.
  6. Update to 4.0.4 via PC Companion/Update Service(DO NOT REPAIR) or Flashtool(DO NOT WIPE DATA!). Else the hack will be lost and root cannot be done.
  7. Open the "02-push-root-files.cmd" file from the folder, it will install Superuser and Busybox and push all required files to system.
  8. Done.
Now you can access system files on your Android. Some file manager apps will require you to set a ticker to get access to the root, ES File Explorer is one of them. What to do now? Read the next tutorial.


3. What to do after rooting?
Congratulations! You've rooted your Android phone. But...what now? Here is a list of what you can do:
  • Install Titanium Backup. It allows you to backup all system and user apps with all data that belongs to the app. Very useful when installing firmwares and wipe is required. Using this program, you can easily backup and restore lots of apps at once. Also includes some other functions, link to Play Store.
  • Edit your Android. In this tutorial are some modifications that can be done. Read the forum, explore different sections and look for more modifications(there are thousands of them!), that you can do. Watch out, make sure that it will work on your phone, else you might mess up something and need to reinstall the ROM.
  • Remove unneeded system apps to free up some space on the ROM. This [/B]topic, http://xdaforums.com/showthread.php?t=1089470, includes info about APKs, that can be removed and what must stay.


4. Installing stock firmware and downgrading
In the newer firmware, the ZergRush exploit has been blocked. If you want to return to stock ROM or you want to get your phone rooted, you have to install (older) firmware to your phone, which can be done 2 ways:
  • Flashtool, you need to find correct files yourself.
  • WotanServer, you have to register a account. - Costs €1.99

Flashtool method
  1. Download the correct firmware file for your phone at the bottom of the post.
  2. Make sure Flashtool is installed.
  3. Place downloaded firmware file(.ftf format) in Flashtool\firmwares(by default C:\Program Files\Flashtool) folder.
  4. Start Flashtool.
  5. Click the lightning button and choose Flashmode.
  6. Firmware should appear there, if you have it in correct folder. Choose it.
  7. Turn off your phone, connect USB cable to computer, then press Volume Down button and connect USB cable to your phone.
  8. Flashtool should detect your phone and starts flashing. Follow the instructions.
  9. When it says „Flashing completed“, unplug your phone and turn it on.

WotanServer method
  1. Go to WotanServer.com, make an account and download the client.
  2. Start the client.
  3. It wants to find your phone. Turn off your phone, then connect USB cable to computer, press Volume Down button and connect USB cable to your phone.
  4. WotanClient detects your phone automatically.
  5. Click Advanced Settings and choose firmware (4.0.2.A.0.58 or older if you want to root).
  6. For region, it isn’t a big deal, which one you choose, although picking own one is easier.
  7. Next, enter your account details(e-mail address and password) and click Update. Make sure you have enough credit.
  8. Click Next and it will download proper firmware files and automatically install them.
  9. When it’s ready, unplug your phone and turn it on.

After that you can proceed with rooting your phone, which is explained in previous guide. Or just enjoy your recently installed stock ROM :)


5a. Installing ClockworkMod Recovery
NOTE: You must have stock and rooted phone!
NOTE: Most custom kernels already include Recovery.
What you need to do:
  1. Go to this link: http://xdaforums.com/showthread.php?t=1346190 and download SE Tweak Installer.
  2. Connect your phone via USB cable.
  3. Start SE Tweak Installer.
  4. Pick CWM, which is for your phone.
  5. Click Install and wait. When it is ready, CWM is installed.

There is one more solution to install Recovery.
  1. Go to Android Market/Play Store.
  2. Search for Xperia CWM Auto-Installer.
  3. Download the app to your phone and start it.
  4. Follow the instructions to install the Recovery.
  5. And enjoy having a recovery.

To enter the Recovery, turn off your phone, then turn it again, when Sony Ericsson logo appears, get ready. When screen gets brighter during Sony Ericsson logo, click Volume down button(I usually keep clicking it until I get into the recovery).

To move around in Recovery, use volume buttons to go up/down, Menu button to enter, Power button for back(in some cases, also back button works).


5b. Installing BusyBox
NOTE: Requires root.
NOTE: If you used zergRush method to root, BusyBox is automatically installed already and you can skip this.
  1. Go into Play Store(Android Market) and search for BusyBox Installer.
  2. Download it and start it.
  3. Follow the instructions and install will be successful.

6. Turning the "brick" into a smartphone
If you had unlocked bootloader and did OTA(Over the Air) update, then you probably ended up with a dead phone, aka brick. Don't worry, it is not completely bricked, still can be saved!
  1. Download UnbrickingXperia2011.zip file from this post below.
  2. Unpack the .zip file and place the .ftf file in Flashtool\firmwares folder.
  3. Open Flashtool.
  4. Get your phone to flashmode, make sure it is turned off, press down Volume DOWN button and connect USB cable.
  5. In Flashtool, click the lightning button, pick Flashmode and choose the Xperia_2011_FreeXperia_ALL.ftf file.
  6. Let Flashtool finish.
  7. Install stock firmware and kernel to your phone.
  8. Remove USB cable from your phone and start your phone.
  9. Try not to brick it again, less problems for you. :)

7a. Installing V6 Supercharger
Both can be used to improve the speed of your phone. Supercharger is meant to improve RAM, KAK is for kernel.
  1. Install Script Manager.
  2. Download Supercharger from this topic, http://xdaforums.com/showthread.php?t=991276, make sure to download the "V6_Supercharger_for_Android-update8.sh.txt" file.
  3. Place the file on root of your SDcard, that is the main folder on SDcard(where everything else is).
  4. Open Script Manager, start the V6 Supercharger as normal. You can choose 0 as scrolling speed.
  5. Pick the choice, that you like. I have used Agressive 1 personally(enter the number infront).
  6. When done setup, just exit from the menu (no.17). The result file named 99Supercharger will be generated at /data/ (or in /system/etc/init.d/99Supercharger if you have init.d mod)
  7. (If you use init.d mod, skip this) Open Script Manager, select the /data/99Supercharger.sh, and when the properties window pops up, tag it as "su" and "boot") The ScriptManager will load it at startup and as root, otherwise it will fail.
  8. To test if the script is loaded or not, launch again the setup script(repeat step 4-5) You will find a text like "Launcher is.. xxxxxxx" if it is written as "weak", the script is not running yet. If it is "hard to kill" it is running correctly.

7b. Installing Kickass Kernelizer
This should improve your kernel, haven't tested myself yet.
  1. Go to http://xdaforums.com/showpost.php?p=22078137&postcount=7649 and download the file.
  2. Open it with Script Manager.
  3. Follow the instructions, I/O tweak is optional, I don't recommend it at this time. Pass when asked.
  4. Press I for Install.
  5. (If you use init.d mod, skip this) Open ScriptManager, select the /data/98KickAssKernel.sh, when the properties window pops up, tag it as "su" and "boot") The Script Manager will load it at startup and as root, otherwise it will not work properly.
  6. Reboot your phone.
  7. To verify, run it again after reboot and when it offers Verify, choose it. :)

8. Editing build.prop to optimize your phone's system
Build.prop consists of quite a lot lines, which set up, how some phone functions work. To edit the file, you need root rights and a program to explore root(ES File Explorer, Root Explorer etc).
  1. Making a NANDroid backup in Recovery first is a good idea, because if you make a mistake in build.prop file, and phone does not boot into Android, you can still restore it.
  2. Start your Explorer app and go to directory \system
  3. Open build.prop file with a text editor.
  4. Go with your PC to this post: http://xdaforums.com/showpost.php?p=16833651&postcount=1. There are also other tweaks, you can try if you want(you might need init.d script for your ROM for init.d tweaks).
  5. Read the first part of the post, there are some build.prop tweaks, choose which ones you want.
  6. Make modifications in your build.prop file, save it and restart your phone.
  7. Changes should take effect, if you have made a mistake, edit the file again or restore the backup, depending on the situation.

Some more tweaks for build.prop, init.d etc:
http://xdaforums.com/showthread.php?t=1289539
http://xdaforums.com/showthread.php?t=1342241


9. Enabling WiFi Dual Band and Burst Mode
As the title already, this is to increase the internet speed for WiFi on your phone.
Personally, I didn't notice any difference in battery usage.
  1. Open Root Explorer, go to \system\etc and open file named tiwlan.ini with Text Editor.
  2. Edit these lines:
    Code:
    HT_Enable=0
    BurstModeEnable = 0
    WiFiAdhoc = 0
    to
    Code:
    HT_Enable=1
    BurstModeEnable = 1
    WiFiAdhoc = 1

    and

    Code:
    Single_Dual_Band_Solution = 0
    to
    Code:
    Single_Dual_Band_Solution = 1
  3. Reboot your phone.
 
Last edited:

Someguyfromhell

Senior Member
Feb 2, 2012
4,148
1,828
Tutorials | Firmware | FAQ | First Aid - Updated 13/6/2012

10. Unlocking bootloader
Unlocked bootloader is needed for most custom ROMs and for ALL custom kernels. It allows the booting system to be changed.
This can be done via official way or via test point method. Official way also removes DRM keys, which cannot be restored at all.
WARNING: You will lose warranty with this!
THE OFFICIAL METHOD - You lose DRM!
  1. Go to http://unlockbootloader.sonymobile.com.
  2. Enter service menu, open keypad and enter *#*#7378423#*#*.
  3. Service Info - Configuration, Bootloader Unlock Allowed: Yes/No. If it says Yes, continue. If it says No, do not continue, because it will not work.
  4. On the website, click "Start Unlocking the bootloader".
  5. In the text, there are instructions, what you need to do. Also there are drivers that are needed for this process. Follow the instructions.
  6. Install the drivers, then click Continue.
  7. Enter your IMEI, name and e-mail. Leave out the last number from the IMEI.
  8. You get a code, leave the website open, you will need this code.
  9. Turn off your phone, then connect USB cable to your PC, hold down Volume UP button and connect USB cable to your phone. Blue LED should light up.
  10. You will be asked for drivers. Point to the usb_driver folder where you placed the android_winusb.inf-file, and select the Android Boot loader Interface-file.
  11. Open command prompt, first enter this
    Code:
    cd C:\...\android-sdk\platform-tools
    Replace C with the correct drive letter and ... with the path to the android-sdk folder. Next, enter this command
    Code:
    fastboot.exe -i 0x0fce oem unlock 0xKEY
    Replace KEY with the key that you got from the website.
  12. Bootloader is now unlocked.

THE TEST POINT METHOD
  1. Go to this topic http://xdaforums.com/showthread.php?t=1285285.
  2. Follow the instructions to patch bootloader.

11. Installing custom kernel
Most custom ROMs will require a custom kernel, some of these include it already(CM, MIUI etc), other you need to find yourself(Hybrom). Installation is done via fastboot. First, you need to find a custom kernel, that will work on your phone. You can find these from Development section.
  1. Make sure your bootloader is unlocked, enter service menu(*#*#7378423#*#*), Service Info, Configuration, if it says Bootloader unlocked: Yes, then it is unlocked.
  2. Make sure fastboot drivers are installed. These should come with Android SDK.
  3. Download the kernel you want. You will need a .img file, which is mostly inside a .zip file.
  4. From the downloads section, download kernel installation package and extract the folder.
  5. Place the .img file inside the folder. If it's name isn't boot.img yet, rename it to boot.img.
  6. Place your phone in fastboot. Turn it off, connect USB cable to your computer, hold Volume UP button and then connect USB cable to your phone. Blue LED should light UP.
  7. Double-click on the flash.cmd file. It will start fastboot automatically and install the kernel.
  8. When finished, disconnect the cable and turn on your phone.

12. Installing custom ROM
Requirements: Unlocked bootloader, ROM .zip file downloaded.
Nothing difficult here.
  1. Place the downloaded .zip file to the root of your SDcard.
  2. Install the custom kernel, explained in previous tutorial.
  3. Enter Recovery(while booting, when screen gets brighter, press Volume Down button until phone enters Recovery).
  4. Make factory reset, wipe cache partition and clear Dalvik Cache(under Advanced).
    NB! Do NOT make format /system, because some ROMs require files from system folder and installation will not finish if files are not available. Then you have to install stock ROM again.
  5. Choose install zip from sdcard, pick the downloaded .zip file on your SDcard.
  6. Wait for it to finish and reboot your phone.

13. Relocking bootloader
When you return to stock and/or need warranty back, you will need to relock bootloader. First install stock ROM and kernel and then relock bootloader, else you will have problems. Depending on the unlocking method, there are 2 ways to relock.
TEST POINT METHOD
Start S1 Tool and click Restore button. Should relock the bootloader automatically.
OFFICIAL METHOD
Will not work on test point method, because bootloader was patched there ant not unlocked.
  1. Make sure you have Flashtool installed.
  2. From the downloads section, download Xperia_Relock_Bootloader.zip file.
  3. Extract the package, there is a .ftf file.
  4. Flash the .ftf file with Flashtool.
  5. Bootloader is locked again

14. Preparing for Ice Cream Sandwich update
ICS update is already released. You might want to know, what you need to do to get the update. Make sure, that you have
  • a working Xperia 2011 device
  • with stock ROM and stock kernel installed(if you install via PC Companion or SEUS)
  • and locked bootloader(if you install via PC Companion or SEUS).
  • Root access doesn't matter(according to current information), whether you have or not. It is lost after update anyway.
  • PC Companion and/or Update Service installed on your computer.
  • Drivers working for your phone.

Official update will only be available via PC Companion and Update Service. But you can also use Flashtool to install ICS.


15. Overclock/undervolt/underclock guide
Want to give your phone a small performance boost? Or save battery?
WARNING! The following is done fully under your own responsibility! Overclocking is a dangerous process and doing it without knowledge will end in FULL BRICK! Be careful with what you do and proceed only if you fully understand the process!
  1. You need root, unlocked bootloader and custom kernel, that allows OC/UC/UV, installed.
  2. Install app to edit the CPU, for example SetCPU, SetXperia, NoFrills CPU Control or another one.
  3. Open the application on your phone.
  4. CPU Frequency is the clock, how fast your CPU works. The faster it works, the more power it uses, more heat is generated, info is faster calculated.
  5. CPU voltage is how much power the CPU receives. It can affect, how CPU works. Manufacturers set it to high enough for CPU to work properly. You can set it lower to save battery, however you might occur problems with your phone!
  6. Search on internet for more information about overclocking to know more about it.
  7. Do everything carefully, as a small mistake could result in serious problems(for example, FULL BRICK due to motherboard damage). Repairing can cost more than phone itself.

16. Optimizing your phone's battery life
Tips, how to increase the battery life of your phone.
  • Turn off GPS, Bluetooth, WiFi, if you do not need them at that moment.
  • Turn off automatic sync(ronization). This can be done in Settings, but some apps also have those features inside their own settings. For that, open the application, open its settings and look there. These vary, so I can not help any further here.
  • Look for battery tweaks on the forum. These can be either build.prop or init.d type.
  • Turn off unnecessary programs, but not which start up automatically again. And do not use taskkillers.
    Why? http://lifehacker.com/5650894/android-task-killers-explained-what-they-do-and-why-you-shouldnt-use-them
  • Turn off your phone, if you do not need it overnight.
  • Set display brightness to as low as possible, as high as necessary (depending, where you use your phone).
  • Remove unnecessary widgets. They require also some juice to keep on working and the more there is of them, the more juice is used. If the widgets on the home screen are not necessary, remove them.
  • If you do not use your phone for a longer period, use Airplane Mode, if it is possible. It saves a lot of battery by turning off all radio functions on your phone.
  • If you do not use mobile internet provided by your operator (that means you only use WiFi to go on the internet), then you won't need 3G either. Set your phone to GSM only, it saves quite a few % per day.
  • Underclock/undervolt your phone's CPU, if you have custom kernel that allows it. Do it carefully and only at your own responsibility!
    NB! If you underclock/undervolt, do NOT “Set on Boot” until you know that they are going to work. Otherwise if it doesn’t work and your phone randomly reboots, you will get into a boot cycle (not a bootloop) because you put them in “Set on Boot”. You must test before you should do this.
  • Use apps like BetterBatteryStats or Android's stock Battery Info to find out, what is consuming battery.

And of course, just to mention it - batterystats.bin file has NO influence on battery life!
 
Last edited:

Someguyfromhell

Senior Member
Feb 2, 2012
4,148
1,828
Tutorials | Firmware | FAQ | First Aid - Updated 13/6/2012

XX. Downloads
Stock firmwares, ftf file is inside the zip/7z archive(except PreRooted firmwares)
4.0.2.A.0.XX type - Android 2.3 Gingerbread
4.1.A.0.562 - Android 4.0.3 Ice Cream Sandwich - You will need 7-zip to extract the ftf file.
4.1.B.0.431 - Android 4.0.4 Ice Cream Sandwich - You will need 7-zip to extract the ftf file.
  1. Xperia Mini (ST15i)
    4.0.2.A.0.42 - http://www.mediafire.com/?uboo3lrdxnoeldn
    4.0.2.A.0.62 - http://www.mediafire.com/?zad88cn2n78ashv
    4.1.B.0.431 - http://www.mediafire.com/?wot47vumhstlc4h
  2. Xperia Mini Pro (SK17i)
    4.0.2.A.0.42 - http://www.mediafire.com/?hevz3x5w9pqt24q
    PreRooted 4.0.2.A.0.69 - http://www.mediafire.com/?desy0bkka1b44g0 - Flash via Recovery
    4.1.B.0.431 - http://www.mediafire.com/?j0bdx06zz5skvzt
  3. Xperia Mini Pro (SK17a) - "a" model
    4.0.2.A.0.58 - http://www.mediafire.com/?433tco785pj1y69 - Branded Mexico Telcel firmware
    4.0.2.A.0.62 - http://www.mediafire.com/?zykznaar0yjxbp5
    4.1.B.0.431 - http://www.mediafire.com/?9d2wcbfqly4lkf3
  4. Xperia Active (ST17i)
    4.0.2.A.0.42 - http://www.mediafire.com/?3zm7iss0sid94wr
    4.1.B.0.431 - http://www.mediafire.com/?7hsrd2wmuqgmmq1
  5. Xperia Active (ST17a) - "a" model
    4.1.B.0.431 - http://www.mediafire.com/?yvjnt0qctun9t6j
  6. Xperia Live with Walkman (WT19i)
    4.0.2.A.0.42 - http://www.mediafire.com/?5ahb85ir7ni0i06 - NOT WORKING
    4.0.2.A.0.58 - http://www.mediafire.com/?4deeznrbldz886u
    4.0.2.A.0.62 - http://www.mediafire.com/?ervpg54922b9c0p
    4.1.B.0.431 - http://www.mediafire.com/?xklhl2uk1itk0ey
  7. Xperia Live with Walkman (WT19a) - "a" model
    4.0.2.A.0.58 - http://www.mediafire.com/?adigb2qgvpf0o1s - NOT WORKING
    4.1.B.0.431 - http://www.mediafire.com/?4t3mm7dvm01v3mh - NOT WORKING
  8. Xperia Ray (ST18i)
    4.0.2.A.0.42 - http://www.mediafire.com/?0oi9t2m0z5p8a9y
    4.1.A.0.562 - http://www.mediafire.com/?1lh84f1nyzoz883
    4.1.B.0.431 - http://www.mediafire.com/?2j7i7rruqxnui3q
  9. Xperia Arc (LT15i)
    4.0.2.A.0.42 - http://www.mediafire.com/?8aa5x52vc9dc25l
    4.0.2.A.0.62 - http://www.mediafire.com/?0ann64yqnl4ei62
    4.1.B.0.431 - http://www.mediafire.com/?pzr6phfd19xgbva
  10. Xperia Arc S (LT18i)
    4.0.2.A.0.42 - http://www.mediafire.com/?9mz2rhdouu6ggtk
    4.0.2.A.0.62 - http://www.mediafire.com/?gn6y626km6nryi7
    4.1.A.0.562 - http://www.mediafire.com/?9at03bbhdf72h3h
    4.1.B.0.431 - http://www.mediafire.com/?20z5t5tg3dgbugz
    4.1.B.0.587 - http://www.mediafire.com/?rhr59r4o6oarnfx
  11. Xperia Neo (MT15i)
    4.0.2.A.0.42 - http://www.mediafire.com/?4qy6vd4ndbfy8wy
    4.0.2.A.0.62 - http://www.mediafire.com/?4apn8hchshmqq07
    4.1.B.0.431 - http://www.mediafire.com/?6i2ihiint7tfl79
  12. Xperia Neo V (MT11i)
    4.0.2.A.0.42 - http://www.mediafire.com/?8bwwe8m6c49vs4t
    4.0.2.A.0.62 - http://www.mediafire.com/?elicesjb6aerb7i
    4.1.A.0.562 - http://www.mediafire.com/?aao25nnf30rcs50
    4.1.B.0.431 - http://www.mediafire.com/?84d4w462qdfk44a
  13. Xperia Play (R800i)
    4.0.2.A.0.42 - http://www.mediafire.com/?cne2yvrtcu3ccvn - NOT WORKING
  14. Xperia Pro(MK16i)
    4.1.B.0.431 - http://www.mediafire.com/?8jdu5dkhlm4psoc
  15. Kernel Installation Package for Xperia phones - http://www.mediafire.com/download/b8gz98ct96makyx/Kernel-Installation-Package.zip
  16. Unbricking Xperia 2011 Package - http://www.mediafire.com/?s166qsg8qaaxc43
  17. Relocking Xperia Bootloader Package - http://www.mediafire.com/?1an09qoq5yq4b5y


XX. Frequently Asked Questions
Q. I just installed custom ROM, but phone is frozen at the logo!
A. Did you install custom kernel, which is confirmed to be working with that ROM? If you did everything correctly, it might take a while, because at first boot new caches are created.

Q. Flashtool won't install stock firmware, gives this-and-this error.
A. Make sure phone is in flashmode(turn off, hold down Volume DOWN, connect USB cable). If yes, make sure, that correct drivers are installed. If yes, post here with FULL log, and I will take a look.



CREDITS
http://xdaforums.com/showthread.php?t=1093062 - Android dictionary
http://xdaforums.com/showthread.php?p=18805532 – zergRush rooting method by DooMLoRD
http://xdaforums.com/showthread.php?t=1346190 - SE Tweak Installer by quangnhut123
http://xdaforums.com/showthread.php?t=1426912 - Original tutorial by hansip87
FreeXperia Team for the unbricking file
http://xdaforums.com/showthread.php?t=991276 - V6 Supercharger
http://xdaforums.com/showpost.php?p=22078137&postcount=7649 - Kickass Kernelizer by zeppelinrox
http://xdaforums.com/showthread.php?t=1477440 - Stock firmware list for 2011 Xperia phones by benji.berg
http://xdaforums.com/showthread.php?p=24882250 - DooMLoRD ICS Rooting method
http://www.xperiablog.net/2012/04/16/root-for-android-4-0-ics-xperia-update-now-available-guide/ - Original Xperia ICS rooting guide
http://xdaforums.com/showthread.php?p=26914104#post26914104 - Android 4.0.4 rooting guide by puppet13th
All users, who gave me ideas for this topic.
All users, who have shared their stock firmwares.
Everyone else, who I may have forgotten.
 
Last edited:

acb123

Senior Member
Apr 15, 2011
98
36
Thanks for the nice post. There should be a section for flashing kernel via Fastboot and Flashtool too.

BTW for installing ClockworkMod Recovery into the system partition, I highly recommend downloading the Xperia CWM Auto-Installer. It's right straight on Google Play and also absolutely free, just one click and everything will be done.
 

Someguyfromhell

Senior Member
Feb 2, 2012
4,148
1,828
Thanks for the nice post. There should be a section for flashing kernel via Fastboot and Flashtool too.

BTW for installing ClockworkMod Recovery into the system partition, I highly recommend downloading the Xperia CWM Auto-Installer. It's right straight on Google Play and also absolutely free, just one click and everything will be done.

Already planned to add kernel and custom ROM flashing.
Will check out that Auto-Installer.
 

BudgyN1

Senior Member
Dec 17, 2010
333
78
You should also add a 2 more sections on how to Flash stock ROM and Relock the Bootloader just incase anyone messes up. Also if needed, add a Unbrick method :D. Great thread and can't wait for more!

Plus, when you root through ZergRush method, doesn't that automatically install Busybox?
 
Last edited:

Someguyfromhell

Senior Member
Feb 2, 2012
4,148
1,828
You should also add a 2 more sections on how to Flash stock ROM and Relock the Bootloader just incase anyone messes up. Also if needed, add a Unbrick method :D. Great thread and can't wait for more!

Plus, when you root through ZergRush method, doesn't that automatically install Busybox?

Unbricking is already planned, thanks for other ideas :)

As for the rooting, I am not sure. Could anyone confirm it, I used that method long ago, can't remember.

Sent from my WT19i using xda premium
 

m4x23

Senior Member
Mar 29, 2012
72
3
Information for return from custom Kernel/ROM to stock one?

Only need to re-flash with WotanServer and re-lock the bootloader (before or after the flash)?

Thanks
 
  • Like
Reactions: Someguyfromhell

Someguyfromhell

Senior Member
Feb 2, 2012
4,148
1,828
Information for return from custom Kernel/ROM to stock one?

Only need to re-flash with WotanServer and re-lock the bootloader (before or after the flash)?

Thanks

Yes, just reflash with WotanServer and then relock bootloader if you want completely clean stock.

Will add guide about that also, thanks for tip :)

More stuff will come in the following days, been a bit busy.
 
Last edited:
  • Like
Reactions: dihan91

BudgyN1

Senior Member
Dec 17, 2010
333
78
Can you please post how to install Supercharger and KAK next? I read those threads and just getting confused how to install them. Really want to optimise my phone but not mess it up.
Thanks
 

ginryu

Senior Member
Jul 2, 2009
541
168
Mexico City
I think you should add some basic concepts like what is fastboot or why do you need it difference between flashmode and fastboot and how to access them. What is the bootloader and what good or bad will it do to unlock it. Most new users don't know all that.

If you like to I can help you adding some concepts just let me know.

Oh and adding the info for the processor governor and i/o scheduler will be good to.
 
Last edited:
  • Like
Reactions: Axenvolt

pedrorubster

Senior Member
Dec 27, 2011
57
24
Android
Hi there guys! By the way excelent tutorial, but I have an question!
I did the unlock bootloader by the test point method with s1tool!
I had Bootloader unlocked allowed: No and I still have it!

Here's the S1LOG: http://pastebin.com/XSDQ2iVf

Is my bootloader unlocked?

Please help,
pedrorubster
 

ginryu

Senior Member
Jul 2, 2009
541
168
Mexico City
Hi there guys! By the way excelent tutorial, but I have an question!
I did the unlock bootloader by the test point method with s1tool!
I had Bootloader unlocked allowed: No and I still have it!

Here's the S1LOG: http://pastebin.com/XSDQ2iVf

Is my bootloader unlocked?

Please help,
pedrorubster

Mmmm it is hard to tell with this log can you click on identify in s1tool and upload again?? Anyway I suppose you have a branded sim locked phone right?? Then even if you unlock your bootloader you won't be able to flash a custom kernel because the fast boot mode will be locked, if you are lucky you will be able to access it, you can always try, power off your phone hold down volume up key and connect it to your PC still holding down the volume up key it should stay off with the notification led on blue.

If you are lucky and can access it then you are good to go if not you will need to pay to fully unlock your phone sorry about that. :eek:
 

pedrorubster

Senior Member
Dec 27, 2011
57
24
Android
Mmmm it is hard to tell with this log can you click on identify in s1tool and upload again?? Anyway I suppose you have a branded sim locked phone right?? Then even if you unlock your bootloader you won't be able to flash a custom kernel because the fast boot mode will be locked, if you are lucky you will be able to access it, you can always try, power off your phone hold down volume up key and connect it to your PC still holding down the volume up key it should stay off with the notification led on blue.

If you are lucky and can access it then you are good to go if not you will need to pay to fully unlock your phone sorry about that. :eek:

Thanks! I think I will have to pay 15€ to WotanServer... :(
 

farlz_89

Member
May 7, 2011
19
0
Hi..sorry if my question is off topic
I did the unlock bootloader by the test point method
I want to relock bootloader back.
Im use Restore option at S1tool and got this error:

RUNNING S1_EROM VER "r9A021"
SOFTWARE AID: 0001
LOADER AID: 0001
FLASH ID: "0098/00B3"
LOADER VERSION: "R4A069"

FAILED TO FIND RESOURCE ""

Anybody can help?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 225
    Tutorial includes stock firmware .ftf files for Flashtool!

    Changelog:
    31/05/2012 - Adding firmwares.
    13/06/2012 - ICS update.
    14/06/2012 - Adding posts to keep improving. Massive dictionary update!
    17/07/2012 - Few firmwares added!
    16/08/2012 - Scrolling made easy!
    07/06/2013 - Time to do something good!

    This tutorial has been created to help XDA members in order to modify their 2011 Xperia phone. This tutorial is originally made for Xperia Ray by hansip87, link to original topic xdaforums.com/showthread.php?t=1426912. Topic has been modified to fit the following phones:
    • Xperia Active (ST17)
    • Xperia Mini (ST15)
    • Xperia Mini Pro (SK17)
    • Xperia Live with Walkman (WT19)

    These tutorials can also work on other 2011 Xperia phones. Instructions will also work with ICS unless written otherwise, so read carefully!

    All kinds of ideas/comments/critism are always welcome.

    Everything you do is on your own responsibility. I am not responsible for any damage that you have made to your phone.

    Tutorial includes:
    1. Android Dictionary
    2. Root the Phone(GB and ICS)
    3. What to do after rooting(apps etc)
    4. Installing stock firmware and downgrading
    5. Install Busybox and CWM Recovery
    6. Unbricking your phone(after OTA update)
    7. Install Supercharger to optimize Memory and KAK to optimize Kernel
    8. Edit build.prop for additional optimizations
    9. Enable Dual Band and Burst Mode for Wifi
    10. Unlocking bootloader
    11. Installing custom kernel
    12. Installing custom ROM
    13. Relocking bootloader
    14. Preparing for ICS
    15. Overclock/Underclock/Undervolting guide
    16. Optimizing battery life
    17. Downloads
    18. Frequently Asked Questions(FAQ)

    Yet to be added:
    1. List of system apps and which can be removed


    Depending on what tutorial you will follow, you may need:
    • Stock ROM on your Xperia and USB cable
    • PC Companion installed on your computer (for base drivers)
    • Flashtool(Flashtool topic and download)
    • Enable "USB DEBUGGING" from Menu -> Settings -> Applications -> Development
    • Enable "UNKNOWN SOURCES" from Menu -> Settings -> Applications
    • Set Connectivity mode to MSC from Menu -> Settings -> Sony Ericsson -> Connectivity -> USB Connection Mode
    • Root Explorer or any file manager that provides access to root (I personally use ES File Explorer)

    1. Android Dictionary
    ADB - Short for Android Debug Bridge. Part of the Android Software Development Kit (SDK), it allows for ROOT-level access to the Android device from a computer.
    Android - Operating System for smartphones and tablets, based on Linux, built by Google, similar to Windows on PC.
    AOSP - Short for Android Open Source Project. The open-sourced code from which individuals can build new distributions of Android.
    APK - An Android executable file, similar to the .exe file in Windows. Most programs will install with a .apk file.
    Baseband - System of a smartphone, that controls the cellular radio systems(GSM, 3G, HSDPA etc).
    Bootloader - Controls the booting process, makes sure that you will access User Interface. These programs tell the Android device how to start up, and are critical to its functionality.
    Build.prop - A plain text file which contains environmental variables for the system to use during operation. Can be hacked to fake a different model for increased functionality, among many other operations.
    BusyBox - Command line bridge, used to give commands to Android system. You will need app to send commands, it will use BusyBox to send the commands.
    Brick - A phone, that you paid a lot for and now you can use it as brick, because it doesn't start up.
    CWM/ClockworkMod Recovery - A specific program, that is used before booting to Android. Allows the user to make full backup of system and install custom ROMs, updates etc.
    CM - Short for CyanogenMod. CyanogenMod is an Android build built from the Android Open Source Project, and its builds are usable on multiple different Android Devices.
    Dalvik Cache - The collection of program information stored for use by the DALVIK program. This can be cleared from the RECOVERY menu to resolve issues with the Android OS.
    Deodexed - Removing the .odex files from an APK file. The .odex files contain a list of dependencies for the associated file, and if something changes, the .odex (and similarly, the associated file) not longer function correctly.
    Downgrade - A job, that you have to do, when you want to get from newer firmware to older firmware.
    Factory Reset - This will remove all user customizations in the Android OS, returning it to a factory state. Note: This will not wipe the Internal SD card.
    Fastboot - Command Line Tool to edit Android filesystem. Unlike flashmode, this allows flashing unsigned partition images.
    FC - Short for FORCE CLOSE. See FORCE CLOSE.
    Flashing - The act of writing code to the Android device. ROMs, MODEMs, KERNELs, and BOOTLOADERs can all be flashed. Independent from, and having nothing to do with, Adobe's Flash product.
    Flashmode - Phone mode, where you can freely flash any firmware to your phone via WotanServer or Flashtool.
    Force Close - When a program on the Android device becomes unstable, the DALVIK program will force it to terminate to prevent further system instability.
    GB/Gingerbread - Android 2.3 version, codename Gingerbread, mostly used shortly as GB.
    Governor - A program that interacts with the device hardware to increase or decrease the processor's clock speed (e.g. at low usage, it will set the processor speed to 400 MHz, but as usage increases, it would scale up to 1000 MHz).
    HSUPA/HSDPA - Short for High Speed (Up/Down) Packet Access. This is 3G+, and is the Android device's internet speed level between 3G and 4G.
    ICS/Ice Cream Sandwich - Android 4.0 version, codename Ice Cream Sandwich, mostly used shortly as ICS.
    Kernel - Bridge between hardware and Android, used for hardware information exchange and control hardware parts(CPU etc).
    Launcher - A program that launches programs in Android. Examples are Touchwiz (Samsung), Launcher Pro, ADW Launcher, and Go Launcher.
    MD5 Checksum - A 32-digit (128-bit) hash number generated by a cryptographic program to ensure that a downloaded file matches the original file. The original file is run through the MD5 generator program, which creates the 32-bit number. This number is checked against the md5 number created with the file the end user receives to ensure file integrity.
    Nandroid Backup - A complete system image backup of the Android device except for the MODEM and KERNEL. Can be accessed from CWM.
    OTA/Over The Air - Updating your phone firmware directly from your phone via 3G or WiFi connection.
    Overclocking - Setting the processor's clock speed to run faster than its default setting, i.e. 1200 MHz (1.2 GHz) vs 1000 MHz (1.0 GHz).
    RAM - Random Access Memory, data storage area, where are currently in use apps and services. It is used, because it has really high data transfer rate compared to other possibilities(SDcard, hard disks etc).
    ROM - Read Only Memory, data storage, where the data can only be read by system itself. It includes all data to start the Android. Many developers edit this ROM to change Android interface.
    Root(ing) - Process, during which user gets access to Android system partition and files, giving the possibility to edit Android.
    SEUS - Sony Ericsson Update Service, can be used in some cases to get back to newest stock firmware.
    Undervolting - Setting the voltage levels drawn by the Android device to a lower level to reduce overall battery usage.
    WotanServer - A paid application, which can be used to flash any stock firmware version with kernel to your phone.


    2a. Root your phone - Gingerbread
    Currently ZergRush method by DoomLord is the simplest way to do it.
    NOTE: If you have newer firmware(4.0.2.A.0.62 or 4.0.2.A.0.69), check tutorial point 4 first to downgrade your firmware. This rooting method will not work on those firmwares.
    1. Download the attached file from here, extract it to a folder using any .zip manager, for example 7-Zip.
    2. Connect Phone to USB.
    3. Execute "RUNME.bat" from the extracted folder.
    4. Follow the instructions in the window.
    5. The phone will be rebooted, after reboot you will have Superuser app and your phone is rooted!
    6. Don't forget to thank DoomLord on the original link in the credits ;)
    Now you can access system files on your Android. Some file manager apps will require you to set a ticker to get access to the root, ES File Explorer is one of them. What to do now? Read the next tutorial.


    2b. Root your phone – ICS 4.1.A.0.562 ONLY
    NOTE: Make sure you have Android 4.0.3 and 4.1.A.0.562 firmware! This might not work on Android 4.0.4!
    1. Download the file from this post, extract it to a folder using any .zip manager, for example 7-Zip/WinRar.
    2. Make sure all drivers are installed.
    3. Make sure USB debugging(Menu\Settings\Developer Options\Development) and Unknown Sources(Menu\Settings\Security) is allowed in the settings.
    4. Connect Phone to USB.
    5. Execute "RUNME.bat" from the extracted folder.
    6. Follow the instructions in the window.
    7. The phone will be rebooted, after reboot you will have Superuser and Busybox and your phone is rooted!
    8. Don't forget to thank DoomLord on the original link in the credits ;)
    Now you can access system files on your Android. Some file manager apps will require you to set a ticker to get access to the root, ES File Explorer is one of them. What to do now? Read the next tutorial.


    2c. Root your phone – ICS 4.1.B.0.431 and newer
    NOTE: You need to have rooted version of older firmware(GB 2.3.4 for example)!
    1. Download the Xperia-ROOT.revX.zip file from this post, extract it to a folder using any .zip manager, for example 7-Zip/WinRar.
    2. Make sure USB debugging(Menu\Settings\Developer Options\Development) is allowed in the settings.
    3. Connect Phone to USB.
    4. Execute "01-local-prop.cmd" to create /data/local.prop (this enables android emulator the backdoor).
    5. Follow the instructions in the window.
    6. Update to 4.0.4 via PC Companion/Update Service(DO NOT REPAIR) or Flashtool(DO NOT WIPE DATA!). Else the hack will be lost and root cannot be done.
    7. Open the "02-push-root-files.cmd" file from the folder, it will install Superuser and Busybox and push all required files to system.
    8. Done.
    Now you can access system files on your Android. Some file manager apps will require you to set a ticker to get access to the root, ES File Explorer is one of them. What to do now? Read the next tutorial.


    3. What to do after rooting?
    Congratulations! You've rooted your Android phone. But...what now? Here is a list of what you can do:
    • Install Titanium Backup. It allows you to backup all system and user apps with all data that belongs to the app. Very useful when installing firmwares and wipe is required. Using this program, you can easily backup and restore lots of apps at once. Also includes some other functions, link to Play Store.
    • Edit your Android. In this tutorial are some modifications that can be done. Read the forum, explore different sections and look for more modifications(there are thousands of them!), that you can do. Watch out, make sure that it will work on your phone, else you might mess up something and need to reinstall the ROM.
    • Remove unneeded system apps to free up some space on the ROM. This [/B]topic, http://xdaforums.com/showthread.php?t=1089470, includes info about APKs, that can be removed and what must stay.


    4. Installing stock firmware and downgrading
    In the newer firmware, the ZergRush exploit has been blocked. If you want to return to stock ROM or you want to get your phone rooted, you have to install (older) firmware to your phone, which can be done 2 ways:
    • Flashtool, you need to find correct files yourself.
    • WotanServer, you have to register a account. - Costs €1.99

    Flashtool method
    1. Download the correct firmware file for your phone at the bottom of the post.
    2. Make sure Flashtool is installed.
    3. Place downloaded firmware file(.ftf format) in Flashtool\firmwares(by default C:\Program Files\Flashtool) folder.
    4. Start Flashtool.
    5. Click the lightning button and choose Flashmode.
    6. Firmware should appear there, if you have it in correct folder. Choose it.
    7. Turn off your phone, connect USB cable to computer, then press Volume Down button and connect USB cable to your phone.
    8. Flashtool should detect your phone and starts flashing. Follow the instructions.
    9. When it says „Flashing completed“, unplug your phone and turn it on.

    WotanServer method
    1. Go to WotanServer.com, make an account and download the client.
    2. Start the client.
    3. It wants to find your phone. Turn off your phone, then connect USB cable to computer, press Volume Down button and connect USB cable to your phone.
    4. WotanClient detects your phone automatically.
    5. Click Advanced Settings and choose firmware (4.0.2.A.0.58 or older if you want to root).
    6. For region, it isn’t a big deal, which one you choose, although picking own one is easier.
    7. Next, enter your account details(e-mail address and password) and click Update. Make sure you have enough credit.
    8. Click Next and it will download proper firmware files and automatically install them.
    9. When it’s ready, unplug your phone and turn it on.

    After that you can proceed with rooting your phone, which is explained in previous guide. Or just enjoy your recently installed stock ROM :)


    5a. Installing ClockworkMod Recovery
    NOTE: You must have stock and rooted phone!
    NOTE: Most custom kernels already include Recovery.
    What you need to do:
    1. Go to this link: http://xdaforums.com/showthread.php?t=1346190 and download SE Tweak Installer.
    2. Connect your phone via USB cable.
    3. Start SE Tweak Installer.
    4. Pick CWM, which is for your phone.
    5. Click Install and wait. When it is ready, CWM is installed.

    There is one more solution to install Recovery.
    1. Go to Android Market/Play Store.
    2. Search for Xperia CWM Auto-Installer.
    3. Download the app to your phone and start it.
    4. Follow the instructions to install the Recovery.
    5. And enjoy having a recovery.

    To enter the Recovery, turn off your phone, then turn it again, when Sony Ericsson logo appears, get ready. When screen gets brighter during Sony Ericsson logo, click Volume down button(I usually keep clicking it until I get into the recovery).

    To move around in Recovery, use volume buttons to go up/down, Menu button to enter, Power button for back(in some cases, also back button works).


    5b. Installing BusyBox
    NOTE: Requires root.
    NOTE: If you used zergRush method to root, BusyBox is automatically installed already and you can skip this.
    1. Go into Play Store(Android Market) and search for BusyBox Installer.
    2. Download it and start it.
    3. Follow the instructions and install will be successful.

    6. Turning the "brick" into a smartphone
    If you had unlocked bootloader and did OTA(Over the Air) update, then you probably ended up with a dead phone, aka brick. Don't worry, it is not completely bricked, still can be saved!
    1. Download UnbrickingXperia2011.zip file from this post below.
    2. Unpack the .zip file and place the .ftf file in Flashtool\firmwares folder.
    3. Open Flashtool.
    4. Get your phone to flashmode, make sure it is turned off, press down Volume DOWN button and connect USB cable.
    5. In Flashtool, click the lightning button, pick Flashmode and choose the Xperia_2011_FreeXperia_ALL.ftf file.
    6. Let Flashtool finish.
    7. Install stock firmware and kernel to your phone.
    8. Remove USB cable from your phone and start your phone.
    9. Try not to brick it again, less problems for you. :)

    7a. Installing V6 Supercharger
    Both can be used to improve the speed of your phone. Supercharger is meant to improve RAM, KAK is for kernel.
    1. Install Script Manager.
    2. Download Supercharger from this topic, http://xdaforums.com/showthread.php?t=991276, make sure to download the "V6_Supercharger_for_Android-update8.sh.txt" file.
    3. Place the file on root of your SDcard, that is the main folder on SDcard(where everything else is).
    4. Open Script Manager, start the V6 Supercharger as normal. You can choose 0 as scrolling speed.
    5. Pick the choice, that you like. I have used Agressive 1 personally(enter the number infront).
    6. When done setup, just exit from the menu (no.17). The result file named 99Supercharger will be generated at /data/ (or in /system/etc/init.d/99Supercharger if you have init.d mod)
    7. (If you use init.d mod, skip this) Open Script Manager, select the /data/99Supercharger.sh, and when the properties window pops up, tag it as "su" and "boot") The ScriptManager will load it at startup and as root, otherwise it will fail.
    8. To test if the script is loaded or not, launch again the setup script(repeat step 4-5) You will find a text like "Launcher is.. xxxxxxx" if it is written as "weak", the script is not running yet. If it is "hard to kill" it is running correctly.

    7b. Installing Kickass Kernelizer
    This should improve your kernel, haven't tested myself yet.
    1. Go to http://xdaforums.com/showpost.php?p=22078137&postcount=7649 and download the file.
    2. Open it with Script Manager.
    3. Follow the instructions, I/O tweak is optional, I don't recommend it at this time. Pass when asked.
    4. Press I for Install.
    5. (If you use init.d mod, skip this) Open ScriptManager, select the /data/98KickAssKernel.sh, when the properties window pops up, tag it as "su" and "boot") The Script Manager will load it at startup and as root, otherwise it will not work properly.
    6. Reboot your phone.
    7. To verify, run it again after reboot and when it offers Verify, choose it. :)

    8. Editing build.prop to optimize your phone's system
    Build.prop consists of quite a lot lines, which set up, how some phone functions work. To edit the file, you need root rights and a program to explore root(ES File Explorer, Root Explorer etc).
    1. Making a NANDroid backup in Recovery first is a good idea, because if you make a mistake in build.prop file, and phone does not boot into Android, you can still restore it.
    2. Start your Explorer app and go to directory \system
    3. Open build.prop file with a text editor.
    4. Go with your PC to this post: http://xdaforums.com/showpost.php?p=16833651&postcount=1. There are also other tweaks, you can try if you want(you might need init.d script for your ROM for init.d tweaks).
    5. Read the first part of the post, there are some build.prop tweaks, choose which ones you want.
    6. Make modifications in your build.prop file, save it and restart your phone.
    7. Changes should take effect, if you have made a mistake, edit the file again or restore the backup, depending on the situation.

    Some more tweaks for build.prop, init.d etc:
    http://xdaforums.com/showthread.php?t=1289539
    http://xdaforums.com/showthread.php?t=1342241


    9. Enabling WiFi Dual Band and Burst Mode
    As the title already, this is to increase the internet speed for WiFi on your phone.
    Personally, I didn't notice any difference in battery usage.
    1. Open Root Explorer, go to \system\etc and open file named tiwlan.ini with Text Editor.
    2. Edit these lines:
      Code:
      HT_Enable=0
      BurstModeEnable = 0
      WiFiAdhoc = 0
      to
      Code:
      HT_Enable=1
      BurstModeEnable = 1
      WiFiAdhoc = 1

      and

      Code:
      Single_Dual_Band_Solution = 0
      to
      Code:
      Single_Dual_Band_Solution = 1
    3. Reboot your phone.
    147
    Tutorials | Firmware | FAQ | First Aid - Updated 13/6/2012

    XX. Downloads
    Stock firmwares, ftf file is inside the zip/7z archive(except PreRooted firmwares)
    4.0.2.A.0.XX type - Android 2.3 Gingerbread
    4.1.A.0.562 - Android 4.0.3 Ice Cream Sandwich - You will need 7-zip to extract the ftf file.
    4.1.B.0.431 - Android 4.0.4 Ice Cream Sandwich - You will need 7-zip to extract the ftf file.
    1. Xperia Mini (ST15i)
      4.0.2.A.0.42 - http://www.mediafire.com/?uboo3lrdxnoeldn
      4.0.2.A.0.62 - http://www.mediafire.com/?zad88cn2n78ashv
      4.1.B.0.431 - http://www.mediafire.com/?wot47vumhstlc4h
    2. Xperia Mini Pro (SK17i)
      4.0.2.A.0.42 - http://www.mediafire.com/?hevz3x5w9pqt24q
      PreRooted 4.0.2.A.0.69 - http://www.mediafire.com/?desy0bkka1b44g0 - Flash via Recovery
      4.1.B.0.431 - http://www.mediafire.com/?j0bdx06zz5skvzt
    3. Xperia Mini Pro (SK17a) - "a" model
      4.0.2.A.0.58 - http://www.mediafire.com/?433tco785pj1y69 - Branded Mexico Telcel firmware
      4.0.2.A.0.62 - http://www.mediafire.com/?zykznaar0yjxbp5
      4.1.B.0.431 - http://www.mediafire.com/?9d2wcbfqly4lkf3
    4. Xperia Active (ST17i)
      4.0.2.A.0.42 - http://www.mediafire.com/?3zm7iss0sid94wr
      4.1.B.0.431 - http://www.mediafire.com/?7hsrd2wmuqgmmq1
    5. Xperia Active (ST17a) - "a" model
      4.1.B.0.431 - http://www.mediafire.com/?yvjnt0qctun9t6j
    6. Xperia Live with Walkman (WT19i)
      4.0.2.A.0.42 - http://www.mediafire.com/?5ahb85ir7ni0i06 - NOT WORKING
      4.0.2.A.0.58 - http://www.mediafire.com/?4deeznrbldz886u
      4.0.2.A.0.62 - http://www.mediafire.com/?ervpg54922b9c0p
      4.1.B.0.431 - http://www.mediafire.com/?xklhl2uk1itk0ey
    7. Xperia Live with Walkman (WT19a) - "a" model
      4.0.2.A.0.58 - http://www.mediafire.com/?adigb2qgvpf0o1s - NOT WORKING
      4.1.B.0.431 - http://www.mediafire.com/?4t3mm7dvm01v3mh - NOT WORKING
    8. Xperia Ray (ST18i)
      4.0.2.A.0.42 - http://www.mediafire.com/?0oi9t2m0z5p8a9y
      4.1.A.0.562 - http://www.mediafire.com/?1lh84f1nyzoz883
      4.1.B.0.431 - http://www.mediafire.com/?2j7i7rruqxnui3q
    9. Xperia Arc (LT15i)
      4.0.2.A.0.42 - http://www.mediafire.com/?8aa5x52vc9dc25l
      4.0.2.A.0.62 - http://www.mediafire.com/?0ann64yqnl4ei62
      4.1.B.0.431 - http://www.mediafire.com/?pzr6phfd19xgbva
    10. Xperia Arc S (LT18i)
      4.0.2.A.0.42 - http://www.mediafire.com/?9mz2rhdouu6ggtk
      4.0.2.A.0.62 - http://www.mediafire.com/?gn6y626km6nryi7
      4.1.A.0.562 - http://www.mediafire.com/?9at03bbhdf72h3h
      4.1.B.0.431 - http://www.mediafire.com/?20z5t5tg3dgbugz
      4.1.B.0.587 - http://www.mediafire.com/?rhr59r4o6oarnfx
    11. Xperia Neo (MT15i)
      4.0.2.A.0.42 - http://www.mediafire.com/?4qy6vd4ndbfy8wy
      4.0.2.A.0.62 - http://www.mediafire.com/?4apn8hchshmqq07
      4.1.B.0.431 - http://www.mediafire.com/?6i2ihiint7tfl79
    12. Xperia Neo V (MT11i)
      4.0.2.A.0.42 - http://www.mediafire.com/?8bwwe8m6c49vs4t
      4.0.2.A.0.62 - http://www.mediafire.com/?elicesjb6aerb7i
      4.1.A.0.562 - http://www.mediafire.com/?aao25nnf30rcs50
      4.1.B.0.431 - http://www.mediafire.com/?84d4w462qdfk44a
    13. Xperia Play (R800i)
      4.0.2.A.0.42 - http://www.mediafire.com/?cne2yvrtcu3ccvn - NOT WORKING
    14. Xperia Pro(MK16i)
      4.1.B.0.431 - http://www.mediafire.com/?8jdu5dkhlm4psoc
    15. Kernel Installation Package for Xperia phones - http://www.mediafire.com/download/b8gz98ct96makyx/Kernel-Installation-Package.zip
    16. Unbricking Xperia 2011 Package - http://www.mediafire.com/?s166qsg8qaaxc43
    17. Relocking Xperia Bootloader Package - http://www.mediafire.com/?1an09qoq5yq4b5y


    XX. Frequently Asked Questions
    Q. I just installed custom ROM, but phone is frozen at the logo!
    A. Did you install custom kernel, which is confirmed to be working with that ROM? If you did everything correctly, it might take a while, because at first boot new caches are created.

    Q. Flashtool won't install stock firmware, gives this-and-this error.
    A. Make sure phone is in flashmode(turn off, hold down Volume DOWN, connect USB cable). If yes, make sure, that correct drivers are installed. If yes, post here with FULL log, and I will take a look.



    CREDITS
    http://xdaforums.com/showthread.php?t=1093062 - Android dictionary
    http://xdaforums.com/showthread.php?p=18805532 – zergRush rooting method by DooMLoRD
    http://xdaforums.com/showthread.php?t=1346190 - SE Tweak Installer by quangnhut123
    http://xdaforums.com/showthread.php?t=1426912 - Original tutorial by hansip87
    FreeXperia Team for the unbricking file
    http://xdaforums.com/showthread.php?t=991276 - V6 Supercharger
    http://xdaforums.com/showpost.php?p=22078137&postcount=7649 - Kickass Kernelizer by zeppelinrox
    http://xdaforums.com/showthread.php?t=1477440 - Stock firmware list for 2011 Xperia phones by benji.berg
    http://xdaforums.com/showthread.php?p=24882250 - DooMLoRD ICS Rooting method
    http://www.xperiablog.net/2012/04/16/root-for-android-4-0-ics-xperia-update-now-available-guide/ - Original Xperia ICS rooting guide
    http://xdaforums.com/showthread.php?p=26914104#post26914104 - Android 4.0.4 rooting guide by puppet13th
    All users, who gave me ideas for this topic.
    All users, who have shared their stock firmwares.
    Everyone else, who I may have forgotten.
    110
    Tutorials | Firmware | FAQ | First Aid - Updated 13/6/2012

    10. Unlocking bootloader
    Unlocked bootloader is needed for most custom ROMs and for ALL custom kernels. It allows the booting system to be changed.
    This can be done via official way or via test point method. Official way also removes DRM keys, which cannot be restored at all.
    WARNING: You will lose warranty with this!
    THE OFFICIAL METHOD - You lose DRM!
    1. Go to http://unlockbootloader.sonymobile.com.
    2. Enter service menu, open keypad and enter *#*#7378423#*#*.
    3. Service Info - Configuration, Bootloader Unlock Allowed: Yes/No. If it says Yes, continue. If it says No, do not continue, because it will not work.
    4. On the website, click "Start Unlocking the bootloader".
    5. In the text, there are instructions, what you need to do. Also there are drivers that are needed for this process. Follow the instructions.
    6. Install the drivers, then click Continue.
    7. Enter your IMEI, name and e-mail. Leave out the last number from the IMEI.
    8. You get a code, leave the website open, you will need this code.
    9. Turn off your phone, then connect USB cable to your PC, hold down Volume UP button and connect USB cable to your phone. Blue LED should light up.
    10. You will be asked for drivers. Point to the usb_driver folder where you placed the android_winusb.inf-file, and select the Android Boot loader Interface-file.
    11. Open command prompt, first enter this
      Code:
      cd C:\...\android-sdk\platform-tools
      Replace C with the correct drive letter and ... with the path to the android-sdk folder. Next, enter this command
      Code:
      fastboot.exe -i 0x0fce oem unlock 0xKEY
      Replace KEY with the key that you got from the website.
    12. Bootloader is now unlocked.

    THE TEST POINT METHOD
    1. Go to this topic http://xdaforums.com/showthread.php?t=1285285.
    2. Follow the instructions to patch bootloader.

    11. Installing custom kernel
    Most custom ROMs will require a custom kernel, some of these include it already(CM, MIUI etc), other you need to find yourself(Hybrom). Installation is done via fastboot. First, you need to find a custom kernel, that will work on your phone. You can find these from Development section.
    1. Make sure your bootloader is unlocked, enter service menu(*#*#7378423#*#*), Service Info, Configuration, if it says Bootloader unlocked: Yes, then it is unlocked.
    2. Make sure fastboot drivers are installed. These should come with Android SDK.
    3. Download the kernel you want. You will need a .img file, which is mostly inside a .zip file.
    4. From the downloads section, download kernel installation package and extract the folder.
    5. Place the .img file inside the folder. If it's name isn't boot.img yet, rename it to boot.img.
    6. Place your phone in fastboot. Turn it off, connect USB cable to your computer, hold Volume UP button and then connect USB cable to your phone. Blue LED should light UP.
    7. Double-click on the flash.cmd file. It will start fastboot automatically and install the kernel.
    8. When finished, disconnect the cable and turn on your phone.

    12. Installing custom ROM
    Requirements: Unlocked bootloader, ROM .zip file downloaded.
    Nothing difficult here.
    1. Place the downloaded .zip file to the root of your SDcard.
    2. Install the custom kernel, explained in previous tutorial.
    3. Enter Recovery(while booting, when screen gets brighter, press Volume Down button until phone enters Recovery).
    4. Make factory reset, wipe cache partition and clear Dalvik Cache(under Advanced).
      NB! Do NOT make format /system, because some ROMs require files from system folder and installation will not finish if files are not available. Then you have to install stock ROM again.
    5. Choose install zip from sdcard, pick the downloaded .zip file on your SDcard.
    6. Wait for it to finish and reboot your phone.

    13. Relocking bootloader
    When you return to stock and/or need warranty back, you will need to relock bootloader. First install stock ROM and kernel and then relock bootloader, else you will have problems. Depending on the unlocking method, there are 2 ways to relock.
    TEST POINT METHOD
    Start S1 Tool and click Restore button. Should relock the bootloader automatically.
    OFFICIAL METHOD
    Will not work on test point method, because bootloader was patched there ant not unlocked.
    1. Make sure you have Flashtool installed.
    2. From the downloads section, download Xperia_Relock_Bootloader.zip file.
    3. Extract the package, there is a .ftf file.
    4. Flash the .ftf file with Flashtool.
    5. Bootloader is locked again

    14. Preparing for Ice Cream Sandwich update
    ICS update is already released. You might want to know, what you need to do to get the update. Make sure, that you have
    • a working Xperia 2011 device
    • with stock ROM and stock kernel installed(if you install via PC Companion or SEUS)
    • and locked bootloader(if you install via PC Companion or SEUS).
    • Root access doesn't matter(according to current information), whether you have or not. It is lost after update anyway.
    • PC Companion and/or Update Service installed on your computer.
    • Drivers working for your phone.

    Official update will only be available via PC Companion and Update Service. But you can also use Flashtool to install ICS.


    15. Overclock/undervolt/underclock guide
    Want to give your phone a small performance boost? Or save battery?
    WARNING! The following is done fully under your own responsibility! Overclocking is a dangerous process and doing it without knowledge will end in FULL BRICK! Be careful with what you do and proceed only if you fully understand the process!
    1. You need root, unlocked bootloader and custom kernel, that allows OC/UC/UV, installed.
    2. Install app to edit the CPU, for example SetCPU, SetXperia, NoFrills CPU Control or another one.
    3. Open the application on your phone.
    4. CPU Frequency is the clock, how fast your CPU works. The faster it works, the more power it uses, more heat is generated, info is faster calculated.
    5. CPU voltage is how much power the CPU receives. It can affect, how CPU works. Manufacturers set it to high enough for CPU to work properly. You can set it lower to save battery, however you might occur problems with your phone!
    6. Search on internet for more information about overclocking to know more about it.
    7. Do everything carefully, as a small mistake could result in serious problems(for example, FULL BRICK due to motherboard damage). Repairing can cost more than phone itself.

    16. Optimizing your phone's battery life
    Tips, how to increase the battery life of your phone.
    • Turn off GPS, Bluetooth, WiFi, if you do not need them at that moment.
    • Turn off automatic sync(ronization). This can be done in Settings, but some apps also have those features inside their own settings. For that, open the application, open its settings and look there. These vary, so I can not help any further here.
    • Look for battery tweaks on the forum. These can be either build.prop or init.d type.
    • Turn off unnecessary programs, but not which start up automatically again. And do not use taskkillers.
      Why? http://lifehacker.com/5650894/android-task-killers-explained-what-they-do-and-why-you-shouldnt-use-them
    • Turn off your phone, if you do not need it overnight.
    • Set display brightness to as low as possible, as high as necessary (depending, where you use your phone).
    • Remove unnecessary widgets. They require also some juice to keep on working and the more there is of them, the more juice is used. If the widgets on the home screen are not necessary, remove them.
    • If you do not use your phone for a longer period, use Airplane Mode, if it is possible. It saves a lot of battery by turning off all radio functions on your phone.
    • If you do not use mobile internet provided by your operator (that means you only use WiFi to go on the internet), then you won't need 3G either. Set your phone to GSM only, it saves quite a few % per day.
    • Underclock/undervolt your phone's CPU, if you have custom kernel that allows it. Do it carefully and only at your own responsibility!
      NB! If you underclock/undervolt, do NOT “Set on Boot” until you know that they are going to work. Otherwise if it doesn’t work and your phone randomly reboots, you will get into a boot cycle (not a bootloop) because you put them in “Set on Boot”. You must test before you should do this.
    • Use apps like BetterBatteryStats or Android's stock Battery Info to find out, what is consuming battery.

    And of course, just to mention it - batterystats.bin file has NO influence on battery life!
    3
    Thanks for the nice post. There should be a section for flashing kernel via Fastboot and Flashtool too.

    BTW for installing ClockworkMod Recovery into the system partition, I highly recommend downloading the Xperia CWM Auto-Installer. It's right straight on Google Play and also absolutely free, just one click and everything will be done.

    Already planned to add kernel and custom ROM flashing.
    Will check out that Auto-Installer.
    3
    Mediafire links added.
    More updates will be coming soon, including custom ROM installation.