How to Root and Install ClockworkMod Recovery on the Sony Ericsson Xperia Ray Running Android 4.0.4

With the Xperia Ray recently getting updated to Android 4.0.4 ICS, it’s now time to look for a root solution again.  This guide below will put an end to your search and at the end of the procedure, your device should be rooted and running ClockworkMod Recovery, ready for flashing any custom ROM that you like.

I.  Before You Begin

This procedure works only the Sony Ericsson Xperia Ray running Ice-Cream Sandwich 4.0.4.  This will not work with any other Ray running other versions of Android.

II.  Necessary Downloads

1.  Root_Exploit_OneClick.zip [Download link available in the first post of this thread]

2.  x-Parts CWM Installer.

III.  Rooting the Xperia Ray

1.  Turn on USB Debugging on your device.  To do this, go to Settings > Developer Options and then tick the USB Debugging checkbox.

2.  Enable installation of apps from unknown sources.  You can do this by heading to Settings > Security and ticking the Unknown Sources checkbox.

3.  Connect your device to your PC.

4.  Extract Root_Exploit_OneClick.zip to a folder on your desktop.

5.  From the extracted folder, double-click RunMe.bat to begin the rooting process.

Your device should be rooted after the phone reboots a couple of times.

III.  Installing ClockworkMod Recovery

1.  Install x-Parts from Google Play.

2.  After installation, open the app and select the Installs tab.

3.  Select Install CWM and follow on-screen instructions.

All credit goes to jjdoctor and Flyig on XDA for bringing us this simple method to root the Ray!!  Be sure to thank them or donate by clicking on their names!!

This is part of our Android How To’s. We have how to’s on rooting, loading ROMs, and tons of other tips and tricks for your specific device or for Android devices in general! For all of our Android How To’s, head here.

If this procedure helped you, please consider donating to the original developer or at least sending them a thank you.

Now that you are rooted, head here to learn some of the fun things you can do!

For all the devices we have rooting procedures for, head here.


Something Wrong? If you notice an issue with the procedure (broken link, steps out of date, etc.), use this form to let us know! Otherwise, if you just are having trouble with the procedure, reach out to us on Twitter, Facebook, or Google+.

  • raoul

    Didn’t work for me, 4.0.4 .431 Ray…

    • Mahesh Makvana

      What error did you get while following the procedure?

      • sky

        followed these 2 steps

        1. Turn on USB Debugging on your device. To do this, go to Settings > Developer Options and then tick the USB Debugging checkbox.

        2. Enable installation of apps from unknown sources. You can do this by heading to Settings > Security and ticking the Unknown Sources checkbox.

        Following errors:
        Please plug the device in ADB-Mode
        Rename /data/local/tmp to be able to create symlink
        failed on ‘/data/local/tmp’ – Permission denied
        Trying to create /data symlink
        link failed File exists
        Waiting for device to reboot
        Trying to write qemu value to prop-file
        /system/bin/sh: cannot create /data/local.prop: Permission denied
        Rebooting
        Waiting for device to reboot again
        Try to remount /system
        remount failed: Operation not permitted
        Pushing su and Superuser.apk
        failed to copy ‘su’ to ‘/system/bin/su’: Read-only file system
        Unable to chmod /system/bin/su: No such file or directory
        failed to copy ‘Superuser.apk’ to ‘/system/app/Superuser.apk’: Read-only file system
        Unable to chmod /system/app/Superuser.apk: No such file or directory
        Cleanup of the Stuff created while running
        rm failed for /data/local.prop, No such file or directory
        rm failed for /data/local/tmp, Permission denied
        failed on ‘/data/local/tmp.old’ – No such file or directory

        • Randy

          Try uninstall your driver for phone..and then try again..i suceed just right now..sory for my english..

  • Dipu

    Nice process it’s work……Thank u very much

    • Mahesh Makvana

      You’re most welcome ! We’re glad that it worked for you !!

  • mkr

    cant root my xperia ray android 4.0.4 build 4.1.B.0.587

    • Mahesh Makvana

      Could you please specify what exact error are you getting?

      • mkr

        busybox: /system/xbin/dmesg: Read-only file system
        busybox: /system/xbin/dnsd: Read-only file system
        busybox: /system/xbin/dnsdomainname: Read-only file system
        busybox: /system/xbin/dos2unix: Read-only file system
        busybox: /system/xbin/du: Read-only file system
        busybox: /system/xbin/dumpkmap: Read-only file system
        busybox: /system/xbin/dumpleases: Read-only file system
        busybox: /system/xbin/echo: Read-only file system
        busybox: /system/xbin/ed: Read-only file system
        busybox: /system/xbin/egrep: Read-only file system
        busybox: /system/xbin/eject: Read-only file system
        busybox: /system/xbin/env: Read-only file system
        busybox: /system/xbin/envdir: Read-only file system
        busybox: /system/xbin/envuidgid: Read-only file system
        busybox: /system/xbin/ether-wake: Read-only file system
        busybox: /system/xbin/expand: Read-only file system
        busybox: /system/xbin/expr: Read-only file system
        busybox: /system/xbin/fakeidentd: Read-only file system
        busybox: /system/xbin/false: Read-only file system
        busybox: /system/xbin/fbset: Read-only file system
        busybox: /system/xbin/fbsplash: Read-only file system
        busybox: /system/xbin/fdflush: Read-only file system
        busybox: /system/xbin/fdformat: Read-only file system
        busybox: /system/xbin/fdisk: Read-only file system
        busybox: /system/xbin/fgconsole: Read-only file system
        busybox: /system/xbin/fgrep: Read-only file system
        busybox: /system/xbin/find: Read-only file system
        busybox: /system/xbin/findfs: Read-only file system
        busybox: /system/xbin/flock: Read-only file system
        busybox: /system/xbin/fold: Read-only file system
        busybox: /system/xbin/free: Read-only file system
        busybox: /system/xbin/freeramdisk: Read-only file system
        busybox: /system/xbin/fsck: Read-only file system
        busybox: /system/xbin/fsck.minix: Read-only file system
        busybox: /system/xbin/fsync: Read-only file system
        busybox: /system/xbin/ftpd: Read-only file system
        busybox: /system/xbin/ftpget: Read-only file system
        busybox: /system/xbin/ftpput: Read-only file system
        busybox: /system/xbin/fuser: Read-only file system
        busybox: /system/xbin/getopt: Read-only file system
        busybox: /system/xbin/getty: Read-only file system
        busybox: /system/xbin/grep: Read-only file system
        busybox: /system/xbin/gunzip: Read-only file system
        busybox: /system/xbin/gzip: Read-only file system
        busybox: /system/xbin/halt: Read-only file system
        busybox: /system/xbin/hd: Read-only file system
        busybox: /system/xbin/hdparm: Read-only file system
        busybox: /system/xbin/head: Read-only file system
        busybox: /system/xbin/hexdump: Read-only file system
        busybox: /system/xbin/hostid: Read-only file system
        busybox: /system/xbin/hostname: Read-only file system
        busybox: /system/xbin/httpd: Read-only file system
        busybox: /system/xbin/hush: Read-only file system
        busybox: /system/xbin/hwclock: Read-only file system
        busybox: /system/xbin/id: Read-only file system
        busybox: /system/xbin/ifconfig: Read-only file system
        busybox: /system/xbin/ifdown: Read-only file system
        busybox: /system/xbin/ifenslave: Read-only file system
        busybox: /system/xbin/ifplugd: Read-only file system
        busybox: /system/xbin/ifup: Read-only file system
        busybox: /system/xbin/inetd: Read-only file system
        busybox: /system/xbin/init: Read-only file system
        busybox: /system/xbin/insmod: Read-only file system
        busybox: /system/xbin/install: Read-only file system
        busybox: /system/xbin/ionice: Read-only file system
        busybox: /system/xbin/iostat: Read-only file system
        busybox: /system/xbin/ip: Read-only file system
        busybox: /system/xbin/ipaddr: Read-only file system
        busybox: /system/xbin/ipcalc: Read-only file system
        busybox: /system/xbin/ipcrm: Read-only file system
        busybox: /system/xbin/ipcs: Read-only file system
        busybox: /system/xbin/iplink: Read-only file system
        busybox: /system/xbin/iproute: Read-only file system
        busybox: /system/xbin/iprule: Read-only file system
        busybox: /system/xbin/iptunnel: Read-only file system
        busybox: /system/xbin/kbd_mode: Read-only file system
        busybox: /system/xbin/kill: Read-only file system
        busybox: /system/xbin/killall: Read-only file system
        busybox: /system/xbin/killall5: Read-only file system
        busybox: /system/xbin/klogd: Read-only file system
        busybox: /system/xbin/last: Read-only file system
        busybox: /system/xbin/length: Read-only file system
        busybox: /system/xbin/less: Read-only file system
        busybox: /system/xbin/linux32: Read-only file system
        busybox: /system/xbin/linux64: Read-only file system
        busybox: /system/xbin/linuxrc: Read-only file system
        busybox: /system/xbin/ln: Read-only file system
        busybox: /system/xbin/loadfont: Read-only file system
        busybox: /system/xbin/loadkmap: Read-only file system
        busybox: /system/xbin/logger: Read-only file system
        busybox: /system/xbin/login: Read-only file system
        busybox: /system/xbin/logname: Read-only file system
        busybox: /system/xbin/logread: Read-only file system
        busybox: /system/xbin/losetup: Read-only file system
        busybox: /system/xbin/lpd: Read-only file system
        busybox: /system/xbin/lpq: Read-only file system
        busybox: /system/xbin/lpr: Read-only file system
        busybox: /system/xbin/ls: Read-only file system
        busybox: /system/xbin/lsattr: Read-only file system
        busybox: /system/xbin/lsmod: Read-only file system
        busybox: /system/xbin/lspci: Read-only file system
        busybox: /system/xbin/lsusb: Read-only file system
        busybox: /system/xbin/lzcat: Read-only file system
        busybox: /system/xbin/lzma: Read-only file system
        busybox: /system/xbin/lzop: Read-only file system
        busybox: /system/xbin/lzopcat: Read-only file system
        busybox: /system/xbin/makedevs: Read-only file system
        busybox: /system/xbin/makemime: Read-only file system
        busybox: /system/xbin/man: Read-only file system
        busybox: /system/xbin/md5sum: Read-only file system
        busybox: /system/xbin/mdev: Read-only file system
        busybox: /system/xbin/mesg: Read-only file system
        busybox: /system/xbin/microcom: Read-only file system
        busybox: /system/xbin/mkdir: Read-only file system
        busybox: /system/xbin/mkdosfs: Read-only file system
        busybox: /system/xbin/mke2fs: Read-only file system
        busybox: /system/xbin/mkfifo: Read-only file system
        busybox: /system/xbin/mkfs.ext2: Read-only file system
        busybox: /system/xbin/mkfs.minix: Read-only file system
        busybox: /system/xbin/mkfs.vfat: Read-only file system
        busybox: /system/xbin/mknod: Read-only file system
        busybox: /system/xbin/mkpasswd: Read-only file system
        busybox: /system/xbin/mkswap: Read-only file system
        busybox: /system/xbin/mktemp: Read-only file system
        busybox: /system/xbin/modinfo: Read-only file system
        busybox: /system/xbin/modprobe: Read-only file system
        busybox: /system/xbin/more: Read-only file system
        busybox: /system/xbin/mount: Read-only file system
        busybox: /system/xbin/mountpoint: Read-only file system
        busybox: /system/xbin/mpstat: Read-only file system
        busybox: /system/xbin/mt: Read-only file system
        busybox: /system/xbin/mv: Read-only file system
        busybox: /system/xbin/nameif: Read-only file system
        busybox: /system/xbin/nbd-client: Read-only file system
        busybox: /system/xbin/nc: Read-only file system
        busybox: /system/xbin/netstat: Read-only file system
        busybox: /system/xbin/nice: Read-only file system
        busybox: /system/xbin/nmeter: Read-only file system
        busybox: /system/xbin/nohup: Read-only file system
        busybox: /system/xbin/nslookup: Read-only file system
        busybox: /system/xbin/ntpd: Read-only file system
        busybox: /system/xbin/od: Read-only file system
        busybox: /system/xbin/openvt: Read-only file system
        busybox: /system/xbin/passwd: Read-only file system
        busybox: /system/xbin/patch: Read-only file system
        busybox: /system/xbin/pgrep: Read-only file system
        busybox: /system/xbin/pidof: Read-only file system
        busybox: /system/xbin/ping: Read-only file system
        busybox: /system/xbin/ping6: Read-only file system
        busybox: /system/xbin/pipe_progress: Read-only file system
        busybox: /system/xbin/pivot_root: Read-only file system
        busybox: /system/xbin/pkill: Read-only file system
        busybox: /system/xbin/pmap: Read-only file system
        busybox: /system/xbin/popmaildir: Read-only file system
        busybox: /system/xbin/poweroff: Read-only file system
        busybox: /system/xbin/powertop: Read-only file system
        busybox: /system/xbin/printenv: Read-only file system
        busybox: /system/xbin/printf: Read-only file system
        busybox: /system/xbin/ps: Read-only file system
        busybox: /system/xbin/pscan: Read-only file system
        busybox: /system/xbin/pwd: Read-only file system
        busybox: /system/xbin/raidautorun: Read-only file system
        busybox: /system/xbin/rdate: Read-only file system
        busybox: /system/xbin/rdev: Read-only file system
        busybox: /system/xbin/readahead: Read-only file system
        busybox: /system/xbin/readlink: Read-only file system
        busybox: /system/xbin/readprofile: Read-only file system
        busybox: /system/xbin/realpath: Read-only file system
        busybox: /system/xbin/reboot: Read-only file system
        busybox: /system/xbin/reformime: Read-only file system
        busybox: /system/xbin/remove-shell: Read-only file system
        busybox: /system/xbin/renice: Read-only file system
        busybox: /system/xbin/reset: Read-only file system
        busybox: /system/xbin/resize: Read-only file system
        busybox: /system/xbin/rev: Read-only file system
        busybox: /system/xbin/rm: Read-only file system
        busybox: /system/xbin/rmdir: Read-only file system
        busybox: /system/xbin/rmmod: Read-only file system
        busybox: /system/xbin/route: Read-only file system
        busybox: /system/xbin/rpm: Read-only file system
        busybox: /system/xbin/rpm2cpio: Read-only file system
        busybox: /system/xbin/rtcwake: Read-only file system
        busybox: /system/xbin/run-parts: Read-only file system
        busybox: /system/xbin/runlevel: Read-only file system
        busybox: /system/xbin/runsv: Read-only file system
        busybox: /system/xbin/runsvdir: Read-only file system
        busybox: /system/xbin/rx: Read-only file system
        busybox: /system/xbin/script: Read-only file system
        busybox: /system/xbin/scriptreplay: Read-only file system
        busybox: /system/xbin/sed: Read-only file system
        busybox: /system/xbin/sendmail: Read-only file system
        busybox: /system/xbin/seq: Read-only file system
        busybox: /system/xbin/setarch: Read-only file system
        busybox: /system/xbin/setconsole: Read-only file system
        busybox: /system/xbin/setfont: Read-only file system
        busybox: /system/xbin/setkeycodes: Read-only file system
        busybox: /system/xbin/setlogcons: Read-only file system
        busybox: /system/xbin/setsid: Read-only file system
        busybox: /system/xbin/setuidgid: Read-only file system
        busybox: /system/xbin/sh: Read-only file system
        busybox: /system/xbin/sha1sum: Read-only file system
        busybox: /system/xbin/sha256sum: Read-only file system
        busybox: /system/xbin/sha512sum: Read-only file system
        busybox: /system/xbin/showkey: Read-only file system
        busybox: /system/xbin/slattach: Read-only file system
        busybox: /system/xbin/sleep: Read-only file system
        busybox: /system/xbin/smemcap: Read-only file system
        busybox: /system/xbin/softlimit: Read-only file system
        busybox: /system/xbin/sort: Read-only file system
        busybox: /system/xbin/split: Read-only file system
        busybox: /system/xbin/start-stop-daemon: Read-only file system
        busybox: /system/xbin/stat: Read-only file system
        busybox: /system/xbin/strings: Read-only file system
        busybox: /system/xbin/stty: Read-only file system
        busybox: /system/xbin/su: Read-only file system
        busybox: /system/xbin/sulogin: Read-only file system
        busybox: /system/xbin/sum: Read-only file system
        busybox: /system/xbin/sv: Read-only file system
        busybox: /system/xbin/svlogd: Read-only file system
        busybox: /system/xbin/swapoff: Read-only file system
        busybox: /system/xbin/swapon: Read-only file system
        busybox: /system/xbin/switch_root: Read-only file system
        busybox: /system/xbin/sync: Read-only file system
        busybox: /system/xbin/sysctl: Read-only file system
        busybox: /system/xbin/syslogd: Read-only file system
        busybox: /system/xbin/tac: Read-only file system
        busybox: /system/xbin/tail: Read-only file system
        busybox: /system/xbin/tar: Read-only file system
        busybox: /system/xbin/tcpsvd: Read-only file system
        busybox: /system/xbin/tee: Read-only file system
        busybox: /system/xbin/telnet: Read-only file system
        busybox: /system/xbin/telnetd: Read-only file system
        busybox: /system/xbin/test: Read-only file system
        busybox: /system/xbin/tftp: Read-only file system
        busybox: /system/xbin/tftpd: Read-only file system
        busybox: /system/xbin/time: Read-only file system
        busybox: /system/xbin/timeout: Read-only file system
        busybox: /system/xbin/top: Read-only file system
        busybox: /system/xbin/touch: Read-only file system
        busybox: /system/xbin/tr: Read-only file system
        busybox: /system/xbin/traceroute: Read-only file system
        busybox: /system/xbin/traceroute6: Read-only file system
        busybox: /system/xbin/true: Read-only file system
        busybox: /system/xbin/tty: Read-only file system
        busybox: /system/xbin/ttysize: Read-only file system
        busybox: /system/xbin/tunctl: Read-only file system
        busybox: /system/xbin/udhcpc: Read-only file system
        busybox: /system/xbin/udhcpd: Read-only file system
        busybox: /system/xbin/udpsvd: Read-only file system
        busybox: /system/xbin/umount: Read-only file system
        busybox: /system/xbin/uname: Read-only file system
        busybox: /system/xbin/uncompress: Read-only file system
        busybox: /system/xbin/unexpand: Read-only file system
        busybox: /system/xbin/uniq: Read-only file system
        busybox: /system/xbin/unix2dos: Read-only file system
        busybox: /system/xbin/unlzma: Read-only file system
        busybox: /system/xbin/unlzop: Read-only file system
        busybox: /system/xbin/unxz: Read-only file system
        busybox: /system/xbin/unzip: Read-only file system
        busybox: /system/xbin/uptime: Read-only file system
        busybox: /system/xbin/usleep: Read-only file system
        busybox: /system/xbin/uudecode: Read-only file system
        busybox: /system/xbin/uuencode: Read-only file system
        busybox: /system/xbin/vconfig: Read-only file system
        busybox: /system/xbin/vi: Read-only file system
        busybox: /system/xbin/vlock: Read-only file system
        busybox: /system/xbin/volname: Read-only file system
        busybox: /system/xbin/wall: Read-only file system
        busybox: /system/xbin/watch: Read-only file system
        busybox: /system/xbin/watchdog: Read-only file system
        busybox: /system/xbin/wc: Read-only file system
        busybox: /system/xbin/wget: Read-only file system
        busybox: /system/xbin/which: Read-only file system
        busybox: /system/xbin/who: Read-only file system
        busybox: /system/xbin/whoami: Read-only file system
        busybox: /system/xbin/xargs: Read-only file system
        busybox: /system/xbin/xz: Read-only file system
        busybox: /system/xbin/xzcat: Read-only file system
        busybox: /system/xbin/yes: Read-only file system
        busybox: /system/xbin/zcat: Read-only file system
        busybox: /system/xbin/zcip: Read-only file system
        — 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 . . .

  • karthik

    Its not working…………………………………………………………..waste of time…………

    • http://www.techlisten.com Mahesh Makvana

      Could you please tell us which step you are stuck at?

  • baraev

    Not working , … installed fine but does not want to reboot in recovery!

  • baraev

    This time it worked .. weird … but its working :) Thx guys.

  • Xperia Ray User

    please make tutorial to install ROM that work with Locked Bootloaders and stock kernel in Xperia Ray

  • AJJU

    THIS DOESN`T WORK FOR MY XPERIA RAY BUILD WITH 4.1.B.0.587

    • Dax Krishna

      can you tell me where you are stuck Ajju?

  • abhiraj

    didn t work for me 4.0.4 ray 587

    • Dax Krishna

      what is the error you are getting abhi?

      • sTuck

        The same error above!

        “Please plug the device in ADB-ModeRename /data/local/tmp to be able to create symlink
        failed on ‘/data/local/tmp’ – Permission denied
        Trying to create /data symlink
        link failed File exists
        Waiting for device to reboot
        Trying to write qemu value to prop-file
        /system/bin/sh: cannot create /data/local.prop: Permission denied
        Rebooting
        Waiting for device to reboot again
        Try to remount /system
        remount failed: Operation not permitted
        Pushing su and Superuser.apk
        failed to copy ‘su’ to ‘/system/bin/su’: Read-only file system
        Unable to chmod /system/bin/su: No such file or directory
        failed to copy ‘Superuser.apk’ to ‘/system/app/Superuser.apk’: Read-only file system
        Unable to chmod /system/app/Superuser.apk: No such file or directory
        Cleanup of the Stuff created while running
        rm failed for /data/local.prop, No such file or directory
        rm failed for /data/local/tmp, Permission denied
        failed on ‘/data/local/tmp.old’ – No such file or directory”

  • Micius

    Didn’t work for me either. Oficial 4.0.4 – can not create, file exists and so on …

    • Mahesh Makvana

      Well, we haven’t cooked this Root method ourselves. All the work has been done by the original developer, we’ve just simplified the process with easy-to-follow steps.

      We recommend you to take a look at the original thread, maybe you’ll get the solution of your problem from there.

      Thanks!

  • 4xzxkaizer

    Thx

  • 4xzxkaizer

    thx

  • Gabriel

    didn’t quite work for me, the rooting was not successful. It said this. Please help!

  • Saleh

    it didnt work with me
    please Help me

  • arun antony

    how to uninstall drivers in xperia ray

  • Tariqul

    it works for me

  • Mani

    I installed xparts and CWM provided by pvyParts. But, on recovery, when I tried to upgrade my ICS to Kitkat, those packages reported saying that this is an Xperia Arc.. When I looked at the default.prop on the ROM that has been installed, it looks like it has the information related to Arc. Then, I tried to install the other ROM provided by nobodyAtAll.. But that is not happening.. Any ideas/suggestions?