[Sony Xperia M4 Aqua] boho555:
So I've been working on trying to get my phone rooted for a while and finally got it working after a few threads and trial and error so i thought i'd share my findings. :p

So to root your E2306 (Xperia m4 aqua) you will need:

Stock rom: https://userscloud.com/vaqpt1y0xdnu

Rootkit: https://www.dropbox.com/s/edse0h6b02odzn1/rootkitXperia_E23xx.zip?dl=0

Adb: https://drive.google.com/open?id=0B0MKgCbUM0itNVB1elljU2NPR0k

Flashtool: http://www.flashtool.net/downloads.php

And Finally Twrp installer (If you want a custom bootloader): https://www.dropbox.com/s/yomdwq3p2le9hvi/M4Aqua-lockedTWRP-0.1-installer.zip?dl=0

1. Go download all of the items listed.

2. Install ADB using Installer.

3. Install Flashtool.

4. Run flashtool and click devices then check drivers and make sure your phone shows up.

5. You will need to install phone drivers using flashtool, go to C:\Flashtool\drivers and run Flashtool-drivers.exe

6. Check "Flashmode Drivers" and "Fastboot Drivers" then click install. If a red warning or something shows up saying drivers not safe click install anyway.

7. Now check drivers again and your device should show up.

8. Next copy E2306_26.1.A.1.112_Latin America Generic[WwW.SonyROMS.iR].FTF to C:\Users\(YourUsername)\.flashTool\firmwares

9. Now go to flashtool and click the lightning strike called "Flash Device".

10. Chose "Flashmode" and click "OK".

11. Setup as shown and click flash.[IMG="Do as shown"]https://lh3.googleusercontent.com/C9eBXghcdoQ7pbQVDvcekEsb53ZG6YSLZ9TsL3g0qjgRLu6NYFDGobq7aWJXRLqjLRIzLB4UBsMHDS_2_GCuG91kWIulf7esTf1c95spbMCGKi09s7BoqdddgOWUzH4CLjZSzkmyiyQ9zPUHcErq4sbw8prk7HztygTSb8x00c84QLDkgL0z6AXWE5rLf85aulHlUJiRQxaOSzGIX61KJMQ1TP6atfe0Y7ny9fTYf1YkB5xyoLHkYeIOiNXU1QJwsck00NvY4FYJrP0QiCMpI6Pq2QanAGDI5-Rg1u-KDTs3d57QEfzjoMlXHZBb6DVxuEbgJJA9wv7G87cnBFOoflk2202rLJSI7U-rvSuBvSiUaLTdcsF3jeam1ybCfqxW7mydNgSOj2j70EDtUAnfWCJMn23MauBylYuqex4s1JWSqyqGwfzMRzJ01kkHMX7OU2Ht7yrEMmSKSdHHWdDZg1HCiafyoIv3fOz-HaennvPg2-x5P1RLeCM-HADusOKNMYxiIYOLb-BuFiIJLvQJ8yuj_qyVjQQ6oRGXusZ7UPO-vxh8hDJfIQKc4EpLlSX_SVa2=w724-h489-no[/IMG]

(APPS_LOG and USERDATA)

12. The log will say preparing files for a bit then a window will open up saying to turn off device and plug it back in. Turn off your phone then hold the volume down while plugging the micro usb back in.

13. The LED will go green showing that its in flashmode, the device should then flash the new rom.

14. Once done disconnect usb and reboot, the boot may take a while 5-10 min.

15. Once booted go to Settings -> About Phone -> then click the build number until you unlock developer mode.

16. Go into developer options and enable "USB Debugging".

17. Plug the phone back in and extract "rootkitXperia_E23xx".

18. Now Copy "files", "src" and "install.bat" into C:\adb.

19. Run install.bat as normal (Not admin) and a box will pop up on your phone asking to trust pc. Do trust pc and let the install.bat continue.

20. The install will say invalid socket, rebooting to avoid crash. Let the phone reboot while staying connected to pc.

21. The phone should boot and the install will finish.

22. You should now have root.

Guide for Custom Recovery (DO ROOT FIRST)

1. Remove "files", "src" and "install.bat" from the ADB folder.

2. Copy the "files", "src" and "install.bat from "M4Aqua-lockedTWRP-0.1-installer" into C:\adb

3. Run install.bat and it will ask for root on phone, grant it root and it should install.

4. To boot into recovery shut down phone and power it on. The phone will show a blue LED at the sony logo. Click volume down and it will show a Purple LED and boot into TWRP.

Warning: DO NOT REBOOT INTO RECOVERY USING "Reboot into recovery/ Reboot Recovery" IT DON'T WORK.

Where I found my in formation if you want to read more.

TWRP: http://xdaforums.com/m4-aqua/development/bl-locked-twrp-touch-recovery-bl-locked-t3257430

RootKit method: http://xdaforums.com/m4-aqua/general/root-xperia-m4-locked-bootloader-models-t3257326

Stock E2306 rom: http://xdaforums.com/m4-aqua/general/stock-xperia-m4-aqua-xperia-m4-aqua-dual-t3141061

ADB installer: http://xdaforums.com/showthread.php?p=48915118#post48915118

Old stock roms for other m4's: http://xdaforums.com/m4-aqua/general/stock-xperia-m4-aqua-xperia-m4-aqua-dual-t3141061

Hope I helped! :laugh: :good: