How To Root Sony Xperia Ray ST18i Running ICS 4.0.4 Firmware

Sony Xperia Ray ST18i running latest firmware of ICS 4.0.4 (4.1.B.0.431) now can be rooted. Please be noted that rooting device voids it’s warranty provided by the manufacturer. So root the device at your own risk (warranty can be retained by flashing official ICS Firmware). Over the period of this article we will be checking that how can you root your device running ICS 4.0.4 firmware.

Let Us Head To The Rest Portion of This Article Where We Will Be Checking The Following Things :

  1. Essential Steps Before Rooting Xperia Ray.
  2. Procedure To Root Sony Xperia Ray ST18i Running ICS 4.0.4.

Disclaimer : We Have Made This Article Covering Each And Every Part At Our Level Best.In Case If Any Damage Happens to Your Device (It Should not Be), Neither We nor Sony will Be Held Responsible For It.

Essential Steps Before Rooting Xperia Ray :

  • You Must Enable USB Debugging By Checking the Box in your device by Following the Path Below:

Settings -> Applications -> Development -> USB Debugging

  • It will highly Recommended to Backup all Your data Stored in your phone So as to Restore it back just in case If You Lose or Corrupt the Data During this Process.
  • Your Device Must be Charged up to 70% or Above Battery Level to Ensure that Your Device should not be Turned Off During this Process.
  • It will be Recommended to Temporary Disable Security Tools as well as Antivirus Installed on your Computer as This might Interrupt the Process.
  • Your Device Must Have Unlocked Bootloader.

By Assuming that you have followed all the instructions mentioned in Essential Steps Before Rooting ICS 4.0.4 Firmware, You are Now Ready to Move to Rest Part of The Article Where We Will be Checking That how to Root Xperia Ray Running ICS 4.0.4.

Procedure To Root Sony Xperia Ray ST18i Running ICS 4.0.4 :

For Simplicity We Have Divide This Article Into 2 Simple Steps.

Step 1 : Installation of Kernel From ICS 4.0.3 Firmware

  • To Be Able to Root Your Device You Must Install ICS 4.0.3 Kernel As Uptil Now There is No Method of Rooting ICS 4.0.4 Firmware. Since Separate Flashable ICS 4.0.3 Kernel File is not Available, You Must Download The Whole ICS 4.0.3 Firmware Package & Then Need To Install/Flash Kernel From The Same.
  • Download Flashtool & ICS 4.0.3 Firmware (4.1.A.0.562) Mentioned Below :

  1. Xperia Flashtool.
  2. ICS 4.0.3 Firmware (4.1.A.0.562).
  • Install Flashtool Which You’ve Just Downloaded In Your Computer (For You Convenience, It is Recommended To Install Flash Tool in C: Drive).
  • Extract Xperia Ray ICS 4.0.4 Firmware Update Package in Your PC, You’ll Get .ftf File.
  • Navigate C: –> flashtool –> firmwares Directory.Delete All The Data in That Directory If It is Present Over There.
  • Copy/Move The Extracted Firmware Package File (.ftf File) In The C: –> flashtool –>firmwares Directory.
  • Now We’ll Proceed To The Actual Firmware Updating Procedure In Our Further Tutorial.
  • Open Xperia Flashtool Which You’ve Just Installed.Select Flash Option From The Top Corner of The Tool.(Refer The Image Below).

how to root sony xperia ray st18i running ics 4 0 4 firmware0

  • You’ll Be Ask To Select Either Flash Mode Or Fastboot Mode.Select Flash Mode & Press Ok.

how to root sony xperia ray st18i running ics 4 0 4 firmware1

  • After Selecting Flash Mode, Firmware Selection Window Will Appear.In The Left Side Select ST18i (Version 4.1.A.0.562).
  • In The Right Side, Tick The Following 3 Options Only.
  1. Exclude system
  2. Exclude baseband
  3. Exclude Fota

how to root sony xperia ray st18i running ics 4 0 4 firmware2

  • Press Ok. Wait For Flashtool To Prepare.Now It will Ask You To Connect Your Mobile, Follow The Steps Carefully & Connect Your Phone.(While Connecting The Device To The Computer, Turn Off Your Xperia Ray. Press & Hold The Volume down button. Now Connect It To The PC).
  • As Soon As Connect Your Device To PC, Flashing Process Should Now Start.Once You See The Flashing Finished Message In Flashtool. Remove/Detach The Device From PC & Wait For It To Reboot.
  • After Device Gets Rebooted, Again Connect It To The PC.Before Connecting To The PC Ensure That You’ve Install ADB Drivers.If You Have Not Installed It Yet, Click Here To Download Now (ADB Drivers Are Installed Along With Flashtool, Download It Just In Case If You Want Reinstall Them).

Step 2 : Root Xperia Ray

  • Now Its Time To Actually Root Your Device Running ICS 4.0.4.
  • Download Rooting Package For Your Device From The Link Given Below :
  1. Rooting Package For Xperia Ray.
  • Extract It In Your Computer You’ll Find 2 Items After Extracting viz., install.bat & “Files” Folder.

how to root sony xperia ray st18i running ics 4 0 4 firmware3

  • Simply Run runme.bat File & Follow The onscreen Instructions Given Over There.

how to root sony xperia ray st18i running ics 4 0 4 firmware4

  • In This Process, Device Will Reboot Couple of Times.When The Script Finishes It Will Give You Message “ALL DONE”.
  • Now Again Flash Kernel From ICS 4.0.4 Firmware By Following The Method Given Above (Step 1).

And Yes.. By This Time You’ve Successfully Rooted Your Sony Xperia Ray Running Latest Firmware Update of ICS 4.0.4 (4.1.B.0.431). In Case If Anything Goes Wrong During This Process, Do Let me Know In Comments, I’ll be Happy To Help You There As Early As I Can.

The following two tabs change content below.

Viraj Kshatriya

Hello everyone, I'm Viraj, the chief editor at Android Legend. When I'm not checking out the latest stuff happening in Android, I mostly spend my time flashing different ROMs, testing Android apps & games. Feel free to join me on Google+.
  • abdullah

    plz help me it says error on flashing when it on this step what should i do for this.???
    17/043/2013 21:43:27 – ERROR – C:\Flashtool\devices\ST18\loader_unlocked.sin (The system cannot find the file specified)
    17/043/2013 21:43:27 – ERROR – Error flashing. Aborted

  • abdullah

    17/042/2013 21:42:46 – INFO – <- This level is successfully initialized
    17/042/2013 21:42:46 – INFO – Flashtool Version 0.9.10.0 built on 2013-01-06 22:22:43
    17/042/2013 21:42:46 – INFO – You can drag and drop ftf files here to start flashing them
    17/042/2013 21:42:52 – INFO – Device connected in flash mode
    17/042/2013 21:42:58 – INFO – Device disconnected
    17/043/2013 21:43:19 – INFO – Selected ST18i_4.1.A.0.562_(1252-5332).ftf
    17/043/2013 21:43:19 – INFO – Preparing files for flashing
    17/043/2013 21:43:19 – INFO – Please connect your device into flashmode.
    17/043/2013 21:43:26 – INFO – Device connected in flash mode
    17/043/2013 21:43:27 – INFO – Opening device for R/W
    17/043/2013 21:43:27 – INFO – Reading device information
    17/043/2013 21:43:27 – INFO – Phone ready for flashmode operations.
    17/043/2013 21:43:27 – INFO – Current device : ST18i – CB511VPRVH – 1251-8193_R6I – 1248-9545_4.1.B.0.587 – CHINA_4.1.B.0.587
    17/043/2013 21:43:27 – INFO – Start Flashing
    17/043/2013 21:43:27 – INFO – Processing loader
    17/043/2013 21:43:27 – INFO – Using an unofficial loader
    17/043/2013 21:43:27 – INFO – Ending flash session
    17/043/2013 21:43:27 – ERROR – C:\Flashtool\devices\ST18\loader_unlocked.sin (The system cannot find the file specified)
    17/043/2013 21:43:27 – ERROR – Error flashing. Aborted
    17/043/2013 21:43:28 – INFO – Device connected in flash mode
    17/043/2013 21:43:29 – INFO – Device disconnected
    17/043/2013 21:43:30 – INFO – Device connected in flash mode
    17/044/2013 21:44:01 – INFO – Device disconnected

  • raj

    My unknown source and usb debbuging options are checked…But when i switchoff my ray and connect to flashtool it says both the options are off….i am unable to root

  • Andrius

    How to lock bootloader, i tried flashtool, but i dont understand it. But your rooting guide for experia ray is good and successful, thanks.

  • ranjits chougale

    build no is 4.1.B.0.587….want to root NNNNNNN………….zeelly cream update for xperia ray ST18i

    plz tell me the all the steps from starting….plzzzz

  • ranjits chougale

    want to root xperia ray ST18i
    plz tell the all the steps from starting….plzzzz

  • somerandomfella

    So I just rooted my Ray and this is my experience for the help of others:
    - Using Windows 8
    - Disable any anti-virus/spyware software as it will cause errors in the Rooting cmd promt.
    - Shutdown any other applications that could be using adb when you root.
    - The rays adb drivers in flashtool-drivers is in with the Xperia Pro driver.

    Hope this helps, all the best.

  • Slx

    Flashtool Version 0.9.10.0 built on 2013-01-06 22:22:43
    11/048/2013 16:48:43 – INFO – You can drag and drop ftf files here to start flashing them
    11/048/2013 16:48:48 – INFO – Device disconnected
    11/048/2013 16:48:54 – INFO – Selected ST18i_4.1.A.0.562_(1252-5332).ftf
    11/048/2013 16:48:54 – INFO – Preparing files for flashing
    11/048/2013 16:48:54 – INFO – Please connect your device into flashmode.
    11/049/2013 16:49:30 – INFO – Device connected with USB debugging off
    11/049/2013 16:49:30 – INFO – For 2011 devices line, be sure you are not in MTP mode
    11/049/2013 16:49:32 – INFO – Device disconnected
    11/049/2013 16:49:41 – INFO – Opening device for R/W
    11/049/2013 16:49:41 – INFO – Start Flashing
    11/049/2013 16:49:41 – INFO – Processing loader
    11/049/2013 16:49:41 – INFO – Checking header
    11/049/2013 16:49:41 – INFO – Ending flash session
    11/049/2013 16:49:41 – ERROR -
    11/049/2013 16:49:41 – ERROR – Error flashing. Aborted
    11/049/2013 16:49:42 – ERROR – Drivers need to be installed for connected device.
    11/049/2013 16:49:42 – ERROR – You can find them in the drivers folder of Flashtool.

    What is the problem all is done as should be…

    What should i do?

  • Arunjith

    system/bin/sh: /system/xbin/busybox: not found
    — pushing SU binary
    failed to copy ‘filessu’ to ‘/system/bin/su’: Read-only file system
    — correcting ownership
    Unable to chmod /system/bin/su: No such file or directory
    — correcting permissions
    Unable to chmod /system/bin/su: No such file or directory
    — correcting symlinks
    rm failed for /system/xbin/su, Read-only file system
    link failed Read-only file system
    — pushing Superuser app
    failed to copy ‘filesSuperuser.apk’ to ‘/system/app/./Superuser.apk’: Read-only
    file system
    — cleaning
    rm failed for /data/local.prop, No such file or directory
    rm failed for /data/local/tmp, Permission denied
    failed on ‘/data/local/tmp.bak’ – No such file or directory
    — rebooting
    ALL DONE!!!
    Press any key to continue . . ._

  • sahin

    will it work on my xperia ray ics 4.0.4 st18a not st18i???

  • manunadh

    Unable to do flashing while using the Flash Tool [step 1]. The below error is showing in the Flash Tool.

    Error- flashing. Aborted.
    Error- Drivers need to be installed for connected device

    I am using Xperia Ray and installed drivers from the FlashTool drivers downloaded from the below link:
    http://www.androidfilehost.com/?fid=9390362690511176454

    Please help me to solve this…

  • manunadh

    Download link for Rooting Package For XPERIA RAY is not working. pls help..

    • Viraj SK

      Link fixed..

      • manunadh

        Thank u so much

      • yogi

        Download link for Rooting Package For XPERIA RAY is not working.

        • Viraj SK

          Link fixed again. Please check..

        • yogi

          Rooted Thanx!!!!!!!

  • Zia

    Hi, I’ve rooted my st18i. But when I check my phone by root checker it informs me the phone is not rooted properly. What can I do now? Please help me.

    • Sanket

      Have you opened supersu app and updated binary?

      • nihit28

        hw dat vl help? plz xplain….m confused….
        i followed everystep…bt still root checker says its not rooted !!!
        MY SUPERSU SAYS SUPERSU BINARY NT FOUND…? !

        • Viraj SK

          You need to update your SuperSU binaries…

  • Dinesh

    Hi my Sony Ericsson Xperia Ray ST18i(v2.3) stuck on welcome screen??
    Actually it got dropped from my hand and thereafter it’s not working..it’s just stuck on welcome screen.
    Can anybody help me on this??

    • Viraj SK

      If your phone is able to boot in flash mode then I would suggest you to flash stock ICS firmware on it..

      • Dinesh

        How to boot my phone in flash mode..Can you please tell me the procedure??

      • sandee

        How we know that our boot loader s unlocked?

        • Viraj SK

          Unless you have unlocked it, assume it to be locked…

  • munner

    rooted my ray

    how to up dte jellybean

  • Thiranjaya

    Rooted my xperia ray!
    Thanx bro!

  • Steven

    Hi there. Thanks for your help in advance.

    When I use the rooting tool kit I get the message system cannot find the path specified.

    Can you please help?

  • SJ

    Hi Viraj,

    In this method will I lose my DRM keys in the phone?

    Thanks,
    SJ

  • jackson chabo

    Thanks, worked like a charm!

  • http://mjpctech.blogspot.com Jahanzaib

    not rooted after done this all…. bad idea…

  • Rafael

    I downgraded and flashed 4.03 (4.1.A.0562) from the files above
    when trying to root I keep getting messages that it cannot copy file and it wont root

    • Viraj SK

      Have you unlocked the bootloader? If yes then try with this (You can still try if you’ve locked bootloader, it won’t harm the phone):

      1) Install Custom Recovery using RecoverX tool: http://forum.xda-developers.com/showthread.php?t=1803146
      2) Boot into recovery (refer this guide to know how to get into recovery): http://www.androidlegend.com/cyanogenmod-10-for-sony-xperia-ray-android-4-1-1-jelly-bean/
      3) In recovery, select “mounts and storage” –> “mount /system” & “mount /data“.
      4) After mounting system & data, keep the phone in recovery, connect it to computer & execute runme.bat file.

      If this don’t work then unlock bootloader first & retry above procedure..

    • Rafael

      also it says cannot create permission denied

      • Viraj SK

        That’s why I’ve provided a solution on the same..

  • jitesh

    pls tell me for xperia go

  • goher

    pleasa help me quick
    its keep sayin adb servers r out of date

  • SW

    What is the best way to unlock my bootloader on my Xperia Ray?

    Googled the issue and found this: http://unlockbootloader.sonymobile.com/instructions

    Sound right?

    Thanks for the help.

    • Viraj SK

      http://unlockbootloader.sonymobile.com is an official way to unlock the bootloader. You can surely follow those instructions..

      • sw

        When I enter *#*#7378423#*#* on my device the “Unlock Bootloader Allowed” says NO. Seems I won’t be able to unlock the bootloader.

        Do you know of a thread that explains the rooting of the Xperia Ray with a locked Bootloader?

        Thanks,
        SW

  • saleh

    please help me my phone after doing the 1st step
    the screan is flashing on sony ericson and never start up

  • raunak

    bro can u help me i m unable to root my phone

  • Vatzee

    Thanks Buddy !!!
    Finally get rid of O2 from system and successfully rooted my Xperia RAY !!!
    Cheers !!!

    • Viraj SK

      Glad :)

  • Kabindra Mah

    hello Frnd,
    I have Sony ericson xperia sti8. I want to upgrad GB to ICS 4.0.4 (4.1.b.587) with root version can u teach me how to upgrade and root the device. thank you.

  • tushar

    when i had runned the runme i chick enter and process completes and says all done …
    but when i chek it root checker it says u dont have root permissions

  • Viraj SK
  • Rahil Rana

    Hi, I have done all the above steps and my mobile is Successfully rooted,

    now my ST18i Androide version: 4.0.4 , Baseband version: 8x55A-AAABQOAZM-203028G-77 , Kernel version: 2.6.32.9-perf , Build number:4.1.B.0.587,
    is this OK?

    • Shreyas

      Yes, it’s perfectly ok.

  • http://www.facebook.com/gnsnomos Giannis Gns

    thank you for the guide

  • Sejad

    Hi, I have done all the above steps but still I can see or I dont know if my mobile is rooted or not, can u please guide me how to check if the device is rooted or not ??? waiting for your urgent response Viraj Bhai

    • Viraj SK

      Install Root Checker App from Play Store..

  • Ismakill

    for me it says ”adb server is out of date killing” and it repeats saying that

  • E13faiyaz

    when im runnin the “runme.bat” i keep seeing the message ” adb server is out of date” then it says killin …this repeats soooo many times then i get the message all done, i dont think its a done..is there any way of confirming that its done

  • Viraj SK
  • Viraj SK

    Here is ICS 4.0.3 Kernel file (4.1.A.0.562): http://www.mediafire.com/?gbs29dw3tzx765k

    ICS 4.0.4 kernel (4.1.B.0.587): http://www.mediafire.com/?1pthkluxcsjkp5k

    Now these are only kernel files. Flash it on your phone as per the instructions.

    Hope it helps you..

  • Purpie_dark

     it didn’t work :(

  • Kodeeswaran Duraisamy

     did u see my prob. do u have any solutions? viraj not responding me:)

    • Viraj SK

      Hi Kodeeswaran,
      I think you are using latest ICS build than the version mentioned above. You should try with 4.1.B.0.431.
      And let me know if it fixes your problem..

      • Kodeeswaran Duraisamy

         Im using current build is 4.1.B.0.587.

        Can u guide me.

        • Viraj SK

          The procedure is same. Just switch your phone’s firmware to build 4.1.B.0.431 using this guide: http://goo.gl/xKhvf

        • Kodeeswaran Duraisamy

          Thanks Viraj!, i’ll try and reply.

        • Viraj SK

          You’re always welcome !!

  • Legendz

    omg tq so much..it really work…hahaha…at last…

  • Kodeeswaran Duraisamy

    Hi vijay,

    i done flashing with the file which downloaded  by ur link.

    i’ve 2  problems

    1. after flashing the device shows that 4.0.4 (4.1.B.0.587)
    2. using doomlord runme.bat gives readonly filesystem error

    any idea?

    • bob

      1. Same here – flashing seemed to be successful based on log, but phone still shows 4.0.4

  • Vivek Srivastav

    Hey Viraj, i am quoting a line from above in Step 1,

    “Extract Xperia Ray ICS 4.0.4 Firmware Update Package in Your PC, You’ll Get .ftf File.”

    you have not mentioned from where to extract this file.. or maybe i am not clear.. can you please specify how and where to extract this from??
    thanks

    • Viraj SK

      You’ve to extract ST18i_4.1.A.0.562.rar file you downloaded earlier..

  • Vipul Jivani

    Thank u….very much……but…no volume key up in ray st18i …but volume key down hold…

  • Micea

    hi! i dosconnected my phone because it said it can’t find the driver installs and now it will not boot up. please help!

  • LastR

    how come xperia ray have a back key?

    • http://www.facebook.com/KaroonenDevilBoy Karoonen DevilBoy

      press and hold the down volume button… i did this and it work (Y)

  • Angel

    use adb.exe from flash tool just copy it over

  • abdul

    bro it aint rooting in either way

  • asdfwqewer

    hey… I CAN’T DO ROOTING.. IT DOESN’T WORK….

  • enes hardal

    adb server is out of date. killing…
    error…….. what can i do

    • http://sorn-chanratha.blogspot.com សន​ចាន់រដ្ឋា

      goto setting => developer options => enable USB degubbing

  • chandu

    thanks i got worked………..for my ray

  • PrAju

    how to unroot?

  • VAHID

    I did all step. But not Root my Device!
    —————————————————————
    Xperia 2011 ICS Easy Rooting toolkit (v1.0)
    created by DooMLoRD
    “andorid emulator” trick
    Credits go to all those involved in making this possible!
    —————————————————————
    [*] This script will:
    (1) root ur device using “andorid emulator” trick
    (2) install Busybox (1.18.4)
    (3) install SU files (ICS specific)
    (4) do some checks for free space, tmp directory
    (will remove Google Maps if required)
    [*] Before u begin:
    (1) make sure u have installed adb drivers for ur device
    (2) enable “USB DEBUGGING”
    from (MenuSettingsDeveloper OptionsDevelopment)
    (3) enable “UNKNOWN SOURCES”
    from (MenuSettingsSecurity)
    (4) [OPTIONAL] increase screen timeout to 10 minutes
    (5) connect USB cable to PHONE and then connect to PC
    (6) skip “PC Companion Software” prompt on device
    —————————————————————
    CONFIRM ALL THE ABOVE THEN
    Press any key to continue . . .
    — STARTING —-
    — WAITING FOR DEVICE
    * daemon not running. starting it now *
    * daemon started successfully *
    — creating temporary directory
    mkdir failed for tmp, File exists
    — cleaning
    — symlinking tmp directory
    failed on ‘/data/local/tmp’ – Permission denied
    link failed File exists
    — Rebooting
    — WAITING FOR DEVICE TO RECONNECT
    — PLEASE WAIT, THIS MAY TAKE A WHILE
    if it gets stuck over here for a long time then try:
    disconnect usb cable and reconnect it
    toggle “USB DEBUGGING” (first disable it then enable it)
    — DEVICE FOUND
    — enabling emulator hack
    /system/bin/sh: cannot create /data/local.prop: Permission denied
    — Rebooting
    — WAITING FOR DEVICE TO RECONNECT
    — PLEASE WAIT, THIS MAY TAKE A WHILE
    if it gets stuck over here for a long time then try:
    disconnect usb cable and reconnect it
    toggle “USB DEBUGGING” (first disable it then enable it)
    — DEVICE FOUND
    — pushing busybox
    3739 KB/s (1075144 bytes in 0.280s)
    — correcting permissions
    — remounting /system
    mount: permission denied (are you root?)
    — checking free space on /system
    0 KB/s (439 bytes in 1.000s)
    — Free space on /system : 71148 bytes
    — no cleanup required
    — copying busybox to /system/xbin/
    /system/xbin/busybox: cannot open for write: Read-only file system
    — correcting ownership
    Unable to chmod /system/xbin/busybox: No such file or directory
    — correcting permissions
    Unable to chmod /system/xbin/busybox: No such file or directory
    — installing busybox
    /system/bin/sh: /system/xbin/busybox: not found
    — pushing SU binary
    failed to copy ‘filessu’ to ‘/system/bin/su’: Read-only file system
    — correcting ownership
    Unable to chmod /system/bin/su: No such file or directory
    — correcting permissions
    Unable to chmod /system/bin/su: No such file or directory
    — correcting symlinks
    rm failed for /system/xbin/su, Read-only file system
    link failed Read-only file system
    — pushing Superuser app
    failed to copy ‘filesSuperuser.apk’ to ‘/system/app/./Superuser.apk’: Read-only
    file system
    — cleaning
    rm failed for /data/local.prop, No such file or directory
    rm failed for /data/local/tmp, Permission denied
    failed on ‘/data/local/tmp.bak’ – No such file or directory
    — rebooting
    ALL DONE!!!
    Press any key to continue . . ._
    _____________________________

    Plz help me

    • Viraj

      Since Rooting Script doesn’t Work On ICS 4.0.4 Directly, You Must Flash Kernel From ICS 4.0.3 Firmware Before You Root Your Device (Please Follow The Procedure Given Above)..

      • VAHID

        I got it,and did all step above But not root!

        • Viraj

          If Above Procedure Doesn’t Work For You Please Follow This Guide Given At XDA Developers.