yashsingh1/xdaforums huggingface dataset:
[Sony Xperia M4 Aqua] PiSpecialist:
DOWNLOADS​

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

---------------------------------------------------------------------------------------------------------------------------------------------------------------​

Single SIM​

M4_AQUA_V1_PiSpecialist_XDA

M4_AQUA_V2_PiSpecialist_XDA(with xposed)

M4_AQUA_V2_PiSpecialist_XDA(without xposed)need v1 installed

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

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

Dual Sim

Flash this M4_AQUA_V2_PiSpecialist_XDA via recovery, don't reboot, flash this , reboot and wait(about 40mn) ​

FAQS​

Q. How to enter recovery while you are facing a booloop?

A. Hold power and volum up for 10 seconds, when the screen goes to black release volum up and hold volume down until the phone vibrate, release power and keep holding repeatedly volume down until you see twrp splash.​
[Sony Xperia M4 Aqua] k1ks:
Thanks . Nice. Work really appreciated.

I'll try as soon as possible.
[Sony Xperia M4 Aqua] aritzi2014:
It will be flasheable with TWRP? Everything works fine? It has Basque language included? Thank you.
[Sony Xperia M4 Aqua] Infected521:
Excellent
[Sony Xperia M4 Aqua] PiSpecialist:
download link added
[Sony Xperia M4 Aqua] heng950620:
does its work also in dual sIm varient?
[Sony Xperia M4 Aqua] Obblet:
So how much space does it have after flashing?

EDIT: So I flashed it, and there's still bloatware which i can't uninstall.
[Sony Xperia M4 Aqua] TheVektor:
Works perfectly :) thanks.

Btw its not fully debloated.
[Sony Xperia M4 Aqua] k1ks:
No solution to create a zip, can be simpler for many users ?
[Sony Xperia M4 Aqua] PiSpecialist:
yes, iam working on v2 more cleaned

already tested a flashable zip but give bootloop, problem with odexed files, since sony created a new system.odex.sqsh that contains all odex files, iam working on deodex.
[Sony Xperia M4 Aqua] k1ks:
Cm13 boot without worries.

Dont backup odex files , uneless.

Look at backuptool functions.

Nice shoot. Everyone waiting that.
[Sony Xperia M4 Aqua] s3-f4n:
Can't download "system.img" please check link cuz just in cloud is posible :(

https://i.imgsafe.org/2350634472.jpg
[Sony Xperia M4 Aqua] PiSpecialist:
save it in your cloud and download, my upload speed isn't good so i can't upload to another server for now. (anyone can upload it to mega or drive??)
[Sony Xperia M4 Aqua] s3-f4n:
Already upload in mega.

Thanks for your work i will test it later.

https://mega.nz/#!iFsjAChQ!ZX2ABOQK1kLCXYTMi_XBQgzpLs-SlG4uOaVUxMD7bxI

---------- Post added at 08:20 PM ---------- Previous post was at 08:13 PM ----------

In that case you can share with all what can you do ;)
[Sony Xperia M4 Aqua] PiSpecialist:
thanks for the link, added to OP
[Sony Xperia M4 Aqua] s3-f4n:
Any time bro .

P.S. i know speed internet in spain and if you need just tell me .:cool:
[Sony Xperia M4 Aqua] andrej.frankly6:
ADB doesn't work

I have installed latest ADB and Fastboot drivers but everytime when I try adb shell it tells me that my device is unauthorized, I try to fix this but I can't. I change the USB cables, nothing ask me for usb debugging when I plug my phone. And i'm sure this is for the first time that I'm using ADB with this ROM, I delete abdkey and abdkey.pub in C:/User, but it doesn't work. I unistall PC Companion, nothing change, I reinstall ADB driver, I install driver from adbdriver.com but it doesn't work. I try to remove misc/adb with Root browser but in adb there isn't file. I restart PC and I try adb kill-server, then I restart phone but it doesn't work. Can you fix this issue or I'll back to Android Lolipop, sorry for bad English :laugh:
[Sony Xperia M4 Aqua] bihslk:
Have same problem on mine 2303. Gets bootloop only
[Sony Xperia M4 Aqua] grigtm:
hello, this is my first Sony

I always wander why I have to to have stock rom xxx.x.x.x.xx and do not wipe system ?

to the other phones I had it didn't mater witch android version you will be flashing just wipe all and flash again

so, why all this roms need system on phone ?????????????????? why not a clean flash ?
[Sony Xperia M4 Aqua] Phuc Le:
Dual sim not working.

I was on stock 6.0.1 rooted but I want to try your Rom so I download the dual sim zip, flash it, and flash the xposed framework and then reboot. Now I'm stuck in bootloop for 2 hours. I've been trying to reinstall stock by Xperia Companion but the software doesn't recognise my phone anymore.

If anyone can help, I will be appreciated.
[Sony Xperia M4 Aqua] Gus0:
I was myself in your shoes a week ago, you just have to start with your phone off and follow the instructions of the flash tool, beginning with the first step that if I'm not mistaken is to plug your phone with volume down pressed, btw, I couldn't install this room either I just restore my phone, rooted and de bloated it manually for now
[Sony Xperia M4 Aqua] Phuc Le:
Thanks. Done that, using Flashtool because Sony Companion doesn't work with my phone after I unlock its BL.

I'm just going to give a shout out here, for anyone that was skimming through all posts to know whether the Dual Sim version work or not: THE V2 DUAL SIM DOES NOT WORK. DO NOT FLASH IT".
[Sony Xperia M4 Aqua] Randomsha:
Will it work on 26.3.A.0.131 (noob here sorry if its a stupid question ^^)
[Sony Xperia M4 Aqua] Gus0:
As clarifications of my steps, I've no logcat, but what I've done was to clean install from flash tool the marshmallow update from Ukraine since has the same letters as my original one and same bands, was generic LAM, then follow the post on general forum for root and TWRP, and then proceed to install your files, first the ROM itself, then the xposed module, and wait an entire night, twice, my model is a 16GB 2333 btw
[Sony Xperia M4 Aqua] Tokusea:
Hey all, I have an issue with E2303.

Trying to boot into bootloader/fastboot mode.

Bootloader has been unlocked with Flashtool

when I "abd reboot bootloader" the phone reboots and a blue LED shows. After ~5s the phone reboots again into standard charging mode.

Even if I type the next command "fastboot flash recovery twrp.img" it will not flash.

any ideas?
[Sony Xperia M4 Aqua] BrunoJeric:
Can this be flashed without your mod?
[Sony Xperia M4 Aqua] maxxx83:
Hey all....I'm new in xperia m4 aqua threads.I have xperia Z before.Only a couple of questions...Is android 6.0.1 rootable via app(kingroot or another)?I have flashtool working drivers and i updated it to 6.0.1 via flashtool.Sorry to dev for little spamming but this is most visited m4 aqua thread.And i want to install this rom....looks awesome.
[Sony Xperia M4 Aqua] maxxx83:
Is this rom can be flashed via flashtool?
[Sony Xperia M4 Aqua] jonto1976:
Hi, is there french language in this rom ?
[Sony Xperia M4 Aqua] mfpss95134:
Is this applicable for E2363 ?
[Sony Xperia M4 Aqua] BrunoJeric:
Hi I had same problem with my xperia m4 E2303 its problem with drivers on your pc.

http://xdaforums.com/xperia-u/issues/help-xperia-doesnt-stay-fastboot-mode-t1921173/page4

Find answer on this tread
[Sony Xperia M4 Aqua] jinbeman:
Yes
[Sony Xperia M4 Aqua] jonto1976:
thanks you. Now i need to install my phone on window 10.

Sometimes it's ok and sometimes no.

Last time it's was the cable and permissions.

And this time the same configuration do not work :confused:
[Sony Xperia M4 Aqua] maxxx83:
So...nobody wants to answer my questions,...hhmmm...I only want to know is someone try to flash this rom with flashtool(i don't use adb) and is it worth to unlock bootloader for this rom?That's it.
[Sony Xperia M4 Aqua] TommyVe:
Hey there, I find using adb as easy as flashtool, so i did not try but bootloader is more than worth, u have to get it cuz u cannot instal twrp without it.

---------- Post added at 07:43 PM ---------- Previous post was at 07:40 PM ----------

Hey, can u please repair download link? It says errors second day in a row.
[Sony Xperia M4 Aqua] maxxx83:
Thanks for your answer.So i must unlock bootloader on M4 Aqua to proper install twrp and root?Do you use M or LP on your M4?I install M via flashtool but i have problems with wifi battery drain.Even wifi is off wifi is mayor battery drainer.I have 30+ hours of battery without stamina but it's annoying.Do you have that problem?
[Sony Xperia M4 Aqua] totzkitotz:
hello there mate, I tried this on my cousin's E2363 dual sim, but out of luck, its not working..hopefully there will be a fix soon..great rom by the way..:good::highfive:

PS: can i flash the xposed in the OP without any problems? thanks
[Sony Xperia M4 Aqua] escarneiro:
How can I exactly flash the v2 zip on top of stock 6.0.1 ?

I tryied to flash it trhu twrp. Got a bootloop.

One more thing: Could you put all these files in some torrents ?
[Sony Xperia M4 Aqua] JohnTheFarm3r:
Do you people read the thread before trying anything, or you just do it by yourself, brick the phone, and after complain about it? You are supposed to extract the zip file.

1. download ****************************, extract to adb/fastboot folder.

2. go to TWRP recovery, wipe data, cache, dalvik cache.

3. power off the phone, get the phone in fastboot mode( holding volume up+connecting usb cable).

4.open adb shell and type:

Code:

fastboot devices

fastboot flash -S 256M system system.img

fastboot flash boot boot.img

if you get invalid sparse error, ignore it and wait until fastboot complete the process.

5. Reboot manually or

Code:

fastboot reboot

6.wait 20~~30mn.
[Sony Xperia M4 Aqua] Gus0:
Don't have to be rude about it, if you read carefully, the dual sim variant installer it's a zip, and it bricks the phone there are already some users that reported that, including myself
[Sony Xperia M4 Aqua] escarneiro:
You must read some etiquette manual, carefully.

The v2 installer is a zip package, not a .img, as in the v1. Yes, I've read carefully all 21 pages of replys.

In some reply, the author said you could flash v2 in top of stock rom. But didn't give so much details of how. So I tryed by myself and got a boot loop.

No, I didn't brick my phone, but I needed to flash it again with stock rom.
[Sony Xperia M4 Aqua] zodiak43:
hello, i tried to install this phone with the v2 through the fastboot and i get this error

Invalid sparse file format at header magi

sending sparse 'system' (233078 KB)...

OKAY [ 7.598s]

writing 'system'...

OKAY [ 27.140s]

sending sparse 'system' (259068 KB)...

OKAY [ 8.445s]

writing 'system'...

OKAY [ 35.535s]

sending sparse 'system' (262130 KB)...

OKAY [ 8.554s]

writing 'system'...

OKAY [ 27.037s]

sending sparse 'system' (259036 KB)...

OKAY [ 8.537s]

writing 'system'...

OKAY [ 12.841s]

sending sparse 'system' (262143 KB)...

OKAY [ 8.481s]

writing 'system'...

OKAY [ 8.840s]

sending sparse 'system' (262150 KB)...

FAILED (remote: data too large)

finished. total time: 153.163s

what can i do? thanks for your replies

Edit1.- i changed usb port and it worked fine, im waiting for it to turn on, thanks for the ROM :D

Edit2.- i got in a bootloop, it turns on and then black screen and begin again :(
[Sony Xperia M4 Aqua] Conkytos:
Please make any video installation ??
[Sony Xperia M4 Aqua] depressed_:
How did u install latest Xperia Home? I try to install it on my MM and it does not work and I have root.
[Sony Xperia M4 Aqua] maxxx83:
I install this rom today and it's great.If any of you have problems just install last version of minimall adb and fastboot v1.4.I have windows 10 on my laptop and all works great without any problems.Xposed also works.
[Sony Xperia M4 Aqua] zodiak43:
Which model do you have? You flashed it on top of the stock mm? Did you do something different from the steps? Thanks for the reply
[Sony Xperia M4 Aqua] maxxx83:
I have E2303.I first flashed stock MM via flashtool,unlock bootloader with code via flashtool then install recovery and root it(devs thread for rooting and recovery for UB) via ADB.Then i have problems with ADB but with older version(1.2)...but when i install 1.4 all goes great and no any errors.Rom booted and all works.Material Xposed is also working.
[Sony Xperia M4 Aqua] xabierd:
Is adaptable storage enabled?
[Sony Xperia M4 Aqua] Michele2:
why nobody can deodex m4 aqua system!? I've deodexed many sony MM roms but there are some problems with odex of this m4 , for example Radio3.apk etc etc... I've replaced symlink, .sqsh ... but nothing!!! deodexing fail! You confirm?

with odex system there is a problem with xposed and signature of apks! luckypatcher with xposed can bypass signature verify but at each reboot must re-enabled

can't patch smali of superstamina to disable annoying notification

can't patch smali to enable radio without headset

can't...

can't....
[Sony Xperia M4 Aqua] thedeadfish59:
Anyone tried it on E2333? will it work? Sorry for asking
[Sony Xperia M4 Aqua] saitejadsst:
Yea, There is no Stable ROM for E2363 or Dual sim users..Sooo sad :(
[Sony Xperia M4 Aqua] Thisura:
Can I revert back to stock firmware after trying this?
[Sony Xperia M4 Aqua] saitejadsst:
U can flash the stock Rom using flashtool to revert back..:)
[Sony Xperia M4 Aqua] Drop2Negative:
can someone give me an alternative link for this ROM? i cant download the file from mega.nz it stopped at 30% and it says "quota exceeded" . please help
[Sony Xperia M4 Aqua] lusifer84:
Hi I've this problem

Invalid sparse file format at header magi

My xperia is 2306
[Sony Xperia M4 Aqua] maxxx83:
Just wait there....adb will continue after some 6-7minutes.If you have latest adb v1.4
[Sony Xperia M4 Aqua] czarny1975:
Hi, can I flash it on stock rooted 26.1.A.2.167 rom?
[Sony Xperia M4 Aqua] maxxx83:
I don't think so...but you may try.If any thing bad happens just flash stock MM via flashtool and then try to install it.Don't forget do unlock bootloader first.Flash MM via flashtool,unlock bootloader and then try to install this rom via ADB.
[Sony Xperia M4 Aqua] czarny1975:
I found 131 update, so I'll flash it first , thanks for info.

[EDIT:] Unfortunatelly, update failed - I ended up stuck on SONY logo. So, I flashed stock 131 and deblooted manuallt (partially). Have no idea what went wrong, I flashed due to instructions.

Maybe there is a problem with boot.img file which is not included, I used another boot.img from this topic.
[Sony Xperia M4 Aqua] Ferroterrius:
Hi PiSpecialist,

Thank you for your work. Looks like this ROM is almost perfect :)

But do you plan to create zip for flashing via TWRP for single sim device ?

I need root on my e2303, but its bootloader is locked.

So I was forced to downgrade my Android 6 to Android 5 and apply rootkit for locked device.

I hope I'll be able to get rooted Android 6 if I'll flash your rom via TWRP :o

Do I think right ?

Thanks in advance for reply.
[Sony Xperia M4 Aqua] valyo_bg:
To have root on MM you still need unlocked bootloader.
[Sony Xperia M4 Aqua] Ferroterrius:
After getting root on locked Android 5 I've installed successfully TWRP recovery for locked M4.

I was able to flash boot with this TWRP. But, to regrets, it does not have option for flashing system partition. But I consider it will be able to flash all needed partition with especial zip.

Sure, locked bootloader will not allow to flash partition images with fastboot utility.

It is the reason why I'm looking forward to the zip for TWRP.
[Sony Xperia M4 Aqua] Meleon420:
Nice :D

Thanks alot! Worked with my sony xperia m4 aqua e2303!
[Sony Xperia M4 Aqua] boby85:
Works on mine E2303 too. Need to have minimal adb and fastboot, if you are using windows 10. Can anyone tell where to find double tap lock screen option? I have installed v2 rom, and xposed from first page. No option under display settings.
[Sony Xperia M4 Aqua] valyo_bg:
Tap and hold on main screen, then choose settings and will find options for double tap to lock screen.
[Sony Xperia M4 Aqua] zodiak43:
With the New boot.img you made the rom to start up? Or you are using the stock mm?
[Sony Xperia M4 Aqua] knoke5:
Had lot of trouble flashing it, but I think that was the firmware's fault, not the ROM's. Also, I have a bad habit of not following instructions carefully. Anyway, after flashing Marshmallow firmware and wiping both the app_log and data, I flashed the ROM with ease. It works super smoothly, but Marshmallow takes some getting used to. Thanks a bunch, PiSpecialist!
[Sony Xperia M4 Aqua] jimmyj101:
will it work if you have aosgp 5.0 installed on phone and no stock rom
[Sony Xperia M4 Aqua] JohnTheFarm3r:
Stock rom only. Even if it would work, i would suggest you to clean flash a stock firmware, just to be sure, that you will not have any problems or maybe bugs because of aosgp.
[Sony Xperia M4 Aqua] balto1:
Works very good, except I cannot transfer apps to SD card, which is a huge problem on a 8GB M4...
[Sony Xperia M4 Aqua] slybas:
I am very grateful for all the effort you took to give us finally a good upgrade for the xperia m4 thanx guys
[Sony Xperia M4 Aqua] 8hodgsonkh:
Would it be possible to make this work on a locked bootloader with twrp installed?
[Sony Xperia M4 Aqua] Randomsha:
when i try to boot in fastboot holding power and volume up key my notification lights starts flashing in red and not becoming blue

what should i do please help

E2303
[Sony Xperia M4 Aqua] goutham mallepula:
is unlocked bootloader necessary

Mine showing unavailable
[Sony Xperia M4 Aqua] JohnTheFarm3r:
Yes, you need unlocked bootloader. What do you mean unavailable? Did you tried to unlock your device already and you got unavailable, or it was like that from the start, when you bought your phone? :)
[Sony Xperia M4 Aqua] goutham mallepula:
i flashed unlock code when it is saying bootloader unlock allowed no

After flashing unlock code it turned unavailable any solution for it???
[Sony Xperia M4 Aqua] JohnTheFarm3r:
Yeah, the solution is to relock the bootloader with the same code. And then, check if your bootloader status is Bootloader unlock allowed: Yes or NO. If it' NO, then you can't unlock the bootloader, and that's why you got status unavailable, after trying to unlock your bootloader. If your status is Bootloader unlock allowed : YES, then, you are doing something wrong. Are you on Marshmallow or Lolipop? You tried to unlock yout BL, with flashtool or through ADB?

EDIT: Sorry, i see now that you flashed your bootloader, with status BLUA: NO. Just relock it with the same code. And no, there is no way for you to unlock the bootloader.
[Sony Xperia M4 Aqua] goutham mallepula:
Through flashtool in lollipop
[Sony Xperia M4 Aqua] JohnTheFarm3r:
Sorry, i see now that you flashed your bootloader, with status BLUA: NO. Just relock it with the same code. And no, there is no way for you to unlock the bootloader.
[Sony Xperia M4 Aqua] b0ss10:
Can flash on TWRP? I using m4 aqua dual sim E2312
[Sony Xperia M4 Aqua] party_boy-25:
Thanks for your great work !

After unlocking bootloader and flash twrp i flashed this rom but won't boot until i flash this boot.img : http://xdaforums.com/m4-aqua/general/root-t3421932

:good:
[Sony Xperia M4 Aqua] zodiak43:
What model do you have??
[Sony Xperia M4 Aqua] the deker:
I cant flash System =(

C:\Users\Olivia\Desktop\Sony M4 Aqua\platform-tools>fastboot flash -S 256M system system.img

error: cannot load 'system.img'

---------- Post added at 01:48 AM ---------- Previous post was at 01:47 AM ----------

What I can Do ? PLEASE HELP
[Sony Xperia M4 Aqua] party_boy-25:
Oups !

E2303
[Sony Xperia M4 Aqua] maxxx83:
Install latest minimall adb and fastboot. Check what version you have.I have same problem and many others but when i install last version of adb....wham...first try and install all with no errors.
[Sony Xperia M4 Aqua] the deker:
:confused: :silly: :eek: THis problem presents in lastest adb tool

OKAY [ 10.344s]

writing 'system' 1/10...

FAILED (remote: Command not allowed)

finished. total time: 10.359s
[Sony Xperia M4 Aqua] party_boy-25:
Try with this : http://xdaforums.com/showthread.php?t=2317790

you have bootloader unlocked and usb debbuging enabled ?

mtp is disabled in twrp ?

works perfectly for me, hope this help you ;)
[Sony Xperia M4 Aqua] the deker:
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash system system.img

target reported max download size of 268435456 bytes

Invalid sparse file format at header magi

sending sparse 'system' 1/10 (241937 KB)...

OKAY [ 10.407s]

writing 'system' 1/10...

FAILED (remote: Command not allowed)

finished. total time: 10.422s
[Sony Xperia M4 Aqua] the deker:
Thanks it solve my problem =) i just Unlock the bootloader
[Sony Xperia M4 Aqua] zodiak43:
After all i saw, this rom only works for the e2303, i tried many times in my 2306 and it wont boot. Anyone has a solution? I really want to try this rom??
[Sony Xperia M4 Aqua] boby85:
First of all great job! Tried this rom and it works really good. Can you please tell me how can I mod it even more? I try to mount system.img and deleted few folders from app folder but that "modified" rom fails to boot. It only loops at sony logo. If you are wiling to share such info?

Best
[Sony Xperia M4 Aqua] JakeMini123:
Hi, I've tried flashing this ROM on my device many times and all I get: [IMG="Error"]https://s17.postimg.org/he11me9wf/Capture.png[/IMG]

Can someone please help, I need to get off Sony's awful bloated version of Android ASAP, also I have an unlocked bootloader, but when I flashed TWRP and tried to boot normally it just keeps taking me to TWRP, my system isn't corrupt as I can repair my Xperia with the Sony PC companion. Thanks (P.S. If someone could provide a sstep by step guide to flashing this rom I'd really appreciate it) :)
[Sony Xperia M4 Aqua] party_boy-25:
In twrp, did you do a full wipe before trying to install rom ?
[Sony Xperia M4 Aqua] cafelak:
Hey guys, I'm a newphew. So can anyone just give me a guide how to install this rom via fastboot specifically, please.

I tried flash this rom via TWRP recovery and it stucked almost 2 hours in animation boot image.

I'm on E2312

Thanks guys.
[Sony Xperia M4 Aqua] JohnTheFarm3r:
. download M4_AQUA_Vx_PiSpecialist_XDA.zip (from post 3), extract to adb/fastboot folder.

2. go to TWRP recovery, wipe data, cache, dalvik cache.

3. power off the phone, get the phone in fastboot mode( holding volume up+connecting usb cable).

4.open adb shell and type:

Code:

fastboot devices

fastboot flash -S 256M system system.img

fastboot flash boot boot.img

if you get invalid sparse error, ignore it and wait until fastboot complete the process.

5. Reboot manually or

Code:

fastboot reboot

6.wait 20~~30mn.

No better guide than this. :)
[Sony Xperia M4 Aqua] cafelak:
Thank you,

But do I must have v1 before flashing v2?

Mine is dual one.
[Sony Xperia M4 Aqua] JohnTheFarm3r:
Dual sim? Unfortunately it doesn't seem to work on dual sim.
[Sony Xperia M4 Aqua] JakeMini123:
Yes, and now I've really f-ed up the system, I have deleted everything, the ROM, all internal storage,system and even the kernel, if I plug in my phone to my computer all I get is the Sony logo flash up for a second and then turn off and continually do it, then if I eventually get it to do something, like getting into flash mode, the green light comes on for about 10 seconds (not even enough time to flash the kernel in flash tool from the .ftf file) So, yeah, I've really messed up, anything I can flash in those 10 seconds to save my phone and get back some functionality? Please.
[Sony Xperia M4 Aqua] party_boy-25:
Which boot.img did you flashed ?
[Sony Xperia M4 Aqua] HungNgocPhat:
Can I do something to make it work on dual sim like editing build.prop?

And should I install it on stock 6 or stock 5?
[Sony Xperia M4 Aqua] saitejadsst:
Its a ROM for stock 6 and plzz do something... there is no debloated ROM for dual sim devices..:crying: