[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] seatone:
EDIT!!!:

As this post was written on the 9th of December 2011, now it becamed outdated.

At that time, this was the easieset way for root, DMCR, CWR.

Now there are easier ways to root your device.

There are newer roms, kernels that already contains the DMCR and CWR.

I do not have time to update the OP.

So please keep this in mind while you read this topic!

25.01.2012.

--------------------------------------------------------------------------------

As there are some people, who likes to use the original factory rom, not the cooked ones, I decided to put together a brief tutorial on how to get most out of these roms (only basic steps!).

Important: All below mentioned are valid only for the devices with unlocked bootloader and running the Generic Central Europe ST18i (Ray) 4.0.2.A.0.42 (Android 2.3.4). It may work with others as well, but I haven't tested.

Disclaimer: In case that you follow this tutorial, I do not take any responsability for damaging, bricking your devices. You are doing everything at your own responsability!

With all these thingies that I collected, you'll have a rooted device, capable of dual way call recording, having the cwm recovery and freed from bloatware.

First of all make sure you have all the necessary drivers installed on your PC!

What we need:

- the Generic Central Europe ST18i (Ray) 4.0.2.A.0.42 generic factory ROM (Thanks to Jozinek and SE): Download link

- Flashtool (thanks to Androxyde): Download link

- rooting kernel (thanks to DooMLoRD): Download link

- patched factory kernel that enables the dual mode recording (thanks to skvalex): Download link

- CWM recovery install software, (SE Extreme Tweak Installer, thanks to quangnhut123): Download link

How2:

1. In case that you do not have the 4.0.2.A.0.42 rom on your device, flash it with Flashtool.

2. Boot your device, make the basic settings (language, wifi, gmail, so on...). Make sure you allow USB debugging mode in Settings/Applications/Development and to allow Unknown sources as well.

3. Switch off your device.

4. Switch it on in fastboot mode (pres and hold vol up while you connect to the usb). The BLUE led should light.

5. Flash the rooting kernel.

6. Reboot your device, check you should have superuser installed (your wifi doesn't work now, it is normal).

7. Switch off your device.

8. Switch it on in fastboot mode (pres and hold vol up while you connect to the usb). The BLUE led should light.

9. Flash the patched factory kernel that enables the dual mode recording.

10.Reboot your device, update superuser and # if needed (your wifi should be working now).

Congrats, now you have a rooted stock rom having the dual mode call recording enabled.

In order to enjoy this function, you'll need a recording software that uses this method, like: Download link

In case that you want cwm recovery as well, follow these steps:

11. Connect your switched on device, to your PC.

12. Run the SE_Extreme_Tweak_Installer and from its option window, select "CWM For Xperia Neo/ARC/ARC-S/Play/Pro/Ray", than press install. Wait till finishes.

13. In case that "Auto Reboot" was ticked, the device will reboot, otherway reboot manually your device.

Now you have CWM recovery installed as well. To use it, you should press and hold the VOL down button when you see the "SonyEriccson" logo while booting the device.

And of course now, in addition, you can get rid of the bloatware (list of junkies that can be safely removed from the device, the links are for ARC devices, but can be applied to RAY as well): Here or Here

The rooting procedure and the cwm recmode installation can be done in a lot of different ways as well. In my oppinion, this way, as explained above, is the easiest one(till now...).

UPDATE:

Here is a very well optimized OC kernel with dual mode call recording (thanks to aire)

That's it. Good luck!

Hope you'll enjoy it.

If you like the tut, just hit the Thanks button!