Root/Unroot Xperia Ray ST18i running ICS 4.0.4 (4.1.B.0.587 & 4.1.B.0.431)


The problem when you upgrade your mobile to ICS from GB is that, with the Rooting toolkit (which is the best way to root your device) you won’t be able to root as you did for GB devices. In order to root we are doing something different here.


  1. Flashtool
  2. Kernel
  3. Rooting Toolkit
  4. Go to settings > Security > Mark ”Unknown sources”
  5. Settings > Developer options > Mark USB debugging
  6. Kernal

So what we are doing here is

    1. We are trying to flash the Kernel(4.1.A.0.562) with the help of Flashtool, download and install the software. Copy the FTF file and go to the Flashtool folder you extracted. Paste it inside the ‘firmware’ folder
    2. Launch the software and click the ‘Flash’ button (the button with the lightning icon.). Select the ‘Flashmode’ option and click OK.

  1. Once you are done with installing new kernel, restart your device. Rooting toolkit will let you root your device (make sure you are done with prerequisites 4 and 5).
  2. Rooting your mobile via Rooting toolkit is very simple. Click on the .bat file and follow the on-screen instructions. Your mobile may restart more than twice, never mind it. Once you see “You are done” in the command mode, disconnect your device and make sure you see Superuser icon in menu.
  3. Step 6 in prerequisites is purely optional and if you want to update your kernel after rooting you can repeat step 1 with 4.1.B.0.587 Kernel.

Summary of what we did so far.

As there is no direct way to root your ICS built Smartphone (xperia ray) we are taking a different approach in which we are flashing a kernel which enables us to root mobile in a single shot. That is we flash 4.1.A.0.562 kernel, do necessary steps in rooting and then revert it to latest kernel by flashing 4.1.B.0.587.At the end of the day we will have an ICS built Ray with latest kernel inside with SU permission.


If you want to unroot your mobile, then after flashing kernel with 4.1.A.0.562 download this and run the .bat file after extracting it to some location. This script will remove the SU files and make it unrooted so that you could bring back the guarantee thing.

Personal Opinion

The ICS update that Sony provides us is no good and for people like me who are always into modifying ROMs and Kernels, ICS provided by Sony is nothing but a bunch of waste. So as of now you will be able to install Software’s like Root Uninstaller and remove all the crappy software’s that Xperia have pre-built. That itself would gain you more speed and performance. Other must haves are Titanium backup, SetCPU which can really enhance your smart phone performance.
In case some weird things happen or your device enters bootloop, Follow this!!!
Now what if you did something careless and your mobile is not switching ‘ON’. May be a bootloop might be an outcome for your mobile. There is an awesome software which Sony has developed named SUS (Sony Update Service). Just connect in your mobile pressing volume down button and connect the usb cable to your mobile simultaneously and connect to pc and SUS would discover your mobile and do a fresh update(ICS) and would restore your mobile. For me, switching on Bluetooth while doing multitasking take my ICS Ray to boot loop and every time I would use SUS to make it right.


PS:Only problem while upgrading in SUS is we wont get root access!

Author: Hazil A M

Hello, I have been using Xperia Ray for a couple of months and i am interested digging in more about Android OS and modifying firmwares.


  1. Super! Thank you very much!

  2. Hello i am not able to flash the kernel using this method, after doing the flash using the flashtool it is diplaying that flash is successfull. However after i boot the device i see the same older 587 kernel version

    • I am having the same problem as Hemanth. The log suggests that the flash was successful but I’m still seeing .587 on my phone.

      09/021/2012 16:21:29 – INFO – Selected ST18i_4.1.A.0.562_kernel.ftf
      09/021/2012 16:21:29 – INFO – Preparing files for flashing
      09/021/2012 16:21:29 – INFO – Please connect your device into flashmode.
      09/021/2012 16:21:54 – INFO – Device connected in flash mode
      09/021/2012 16:21:54 – INFO – Opening device for R/W
      09/021/2012 16:21:54 – INFO – Reading device information
      09/021/2012 16:21:54 – INFO – Phone ready for flashmode operations.
      09/021/2012 16:21:54 – INFO – Start Flashing
      09/021/2012 16:21:54 – INFO – Processing loader
      09/021/2012 16:21:54 – INFO – Checking header
      09/021/2012 16:21:54 – INFO – Flashing data
      09/021/2012 16:21:57 – INFO – Loader : S1_Loader_Root_773f – Version : R4A066 / Bootloader status : ROOTABLE
      09/021/2012 16:21:57 – INFO – Processing kernel.sin
      09/021/2012 16:21:57 – INFO – Checking header
      09/021/2012 16:21:57 – INFO – Flashing data
      09/021/2012 16:21:59 – INFO – Ending flash session
      09/021/2012 16:21:59 – INFO – Flashing finished.

  3. hi,
    i cant see superuser icon, don’t know whether it rooted

    16/022/2012 12:22:46 – INFO – <- This level is successfully initialized
    16/022/2012 12:22:47 – INFO – Flashtool Version built on 2012-11-13 22:53:30
    16/022/2012 12:22:47 – INFO – You can drag and drop ftf files here to start flashing them
    16/023/2012 12:23:01 – INFO – Device connected with USB debugging off
    16/023/2012 12:23:01 – INFO – For 2011 devices line, be sure you are not in MTP mode
    16/023/2012 12:23:01 – INFO – Selected ST18i_4.1.A.0.562_kernel.ftf
    16/023/2012 12:23:01 – INFO – Preparing files for flashing
    16/023/2012 12:23:01 – INFO – Please connect your device into flashmode.
    16/023/2012 12:23:12 – INFO – Device disconnected
    16/023/2012 12:23:57 – INFO – Device connected in flash mode
    16/023/2012 12:23:58 – INFO – Opening device for R/W
    16/023/2012 12:23:58 – INFO – Reading device information
    16/023/2012 12:23:58 – INFO – Phone ready for flashmode operations.
    16/023/2012 12:23:58 – INFO – Start Flashing
    16/023/2012 12:23:58 – INFO – Processing loader
    16/023/2012 12:23:58 – INFO – Checking header
    16/023/2012 12:23:58 – INFO – Flashing data
    16/024/2012 12:24:01 – INFO – Loader : S1_Loader_Root_773f – Version : R4A066 / Bootloader status : ROOTABLE
    16/024/2012 12:24:01 – INFO – Processing kernel.sin
    16/024/2012 12:24:01 – INFO – Checking header
    16/024/2012 12:24:01 – INFO – Flashing data
    16/024/2012 12:24:03 – INFO – Ending flash session
    16/024/2012 12:24:03 – INFO – Flashing finished.
    16/024/2012 12:24:03 – INFO – Please unplug and start your phone
    16/024/2012 12:24:03 – INFO – For flashtool, Unknown Sources and Debugging must be checked in phone settings
    16/024/2012 12:24:04 – INFO – Device connected in flash mode
    16/025/2012 12:25:55 – INFO – Device disconnected
    16/026/2012 12:26:21 – INFO – Device connected with USB debugging off
    16/026/2012 12:26:21 – INFO – For 2011 devices line, be sure you are not in MTP mode
    16/027/2012 12:27:28 – INFO – Device disconnected
    16/027/2012 12:27:31 – INFO – Device connected with USB debugging off
    16/027/2012 12:27:31 – INFO – For 2011 devices line, be sure you are not in MTP mode
    16/029/2012 12:29:22 – INFO – Device disconnected
    16/030/2012 12:30:28 – ERROR – Drivers need to be installed for connected device.
    16/030/2012 12:30:28 – ERROR – You can find them in the drivers folder of Flashtool.
    16/030/2012 12:30:32 – INFO – Device connected with USB debugging off
    16/030/2012 12:30:32 – INFO – For 2011 devices line, be sure you are not in MTP mode
    16/031/2012 12:31:24 – INFO – Device connected with USB debugging on
    16/031/2012 12:31:25 – ERROR – Cannot identify your device.
    16/031/2012 12:31:25 – INFO – Selecting from user input
    16/031/2012 12:31:57 – INFO – Connected device : ST18
    16/031/2012 12:31:57 – INFO – Installed version of busybox : N/A
    16/031/2012 12:31:57 – INFO – Android version : / kernel version : / Build number :
    16/031/2012 12:31:57 – INFO – Phone in recovery mode
    16/031/2012 12:31:57 – INFO – Root Access Allowed

  4. thanks to all the participants and genius.. :-D i have successfully root my phone and flash the kernel..

  5. @Amar What you have done so far is flashing the kernal(with flashtool software),after that you shoudh use the zip file to root it.Only after that you will see the Superuser Icon.
    @Hemant Never mid it..After flashing your kernal with the version which i said,go for rooting and let me know if u successfully completed it or not.
    You guys can drop me a mail anytime

  6. Thank you boss. I’m done with following your instruction.

  7. Hi,

    Thanks for the post. In this method will I lose my DRM keys in the phone?


  8. Hi, I have the same problem as “Hemanth” and “Bob”:

    The log suggests that the flash was successful but I’m still seeing .587 on my phone.

    Is there any solution? (Bootloader has Root – causes this the problem?)


  9. Hai…Hazil A M
    i also have the same problem of boot loop.
    if i root , will the problem end?
    after rooting can i do a fresh update(ICS) to restore my mobile using sony software update service?

    thank you …

  10. Hi. Have gotten to the 562 flash stage. I disconnect phone and power off. Then I press the back button and re-connect but nothing happens. Any ideas?

  11. should we unlock bootloader t root xperia ray ???

  12. Pingback: Cara Root Android Xperia Ray | Kumpulan Cara dan Pengetahuan

Leave a Reply

%d bloggers like this: