yashsingh1/xdaforums huggingface dataset:
[Xperia Z2 Android Development] niaboc79:
Introduction

Since I have worked on it, I will publish it :D

Here's a pure stock rom (Slightly debloated), rooted with dual recovery and kernel :)

The rom is based on this: http://xdaforums.com/xperia-z2/general/android-4-4-4-kitkat-xperia-z2-review-t2928724

Don't forget to Thanks [MENTION=2492212]Jozinek[/MENTION]

Installation

1) Install a recovery

2) Reboot in recovery

3) Clean All to install a new rom

4) Flash the zip en enjoy ;)

5) Flash this fix: http://www.mediafire.com/download/k4mb0pmf60h0246/fix_game.zip

Download

http://www.mediafire.com/download/jxsdc4oy9rummma/Xperia_Z2_D6503_23.0.1.A.0.167_Root_Recovery.zip

mirrors: http://xdaforums.com/showpost.php?p=56521641&postcount=79

XDA:DevDB Information

[STOCK][LOCKED-UNLOCKED][ODEX-DEODEX][ROOT][DUAL-RECOVERY] 4.4.4 | 23.0.1.A.0.167 |, ROM for the Sony Xperia Z2

Contributors

niaboc79

ROM OS Version: 4.4.x KitKat

ROM Kernel: Linux 3.4.x

ROM Firmware Required: none

Based On: Stock

Version Information

Status: Stable

Created 2014-11-05

Last Updated 2014-11-05
[Xperia Z2 Android Development] niaboc79:
Add on

Deodexing patch with SuperUser Mod

1) Flash this after previous package: http://www.mediafire.com/download/e58899z82p37oal/Xperia_Z2_D6503_23.0.1.A.0.167_Deodex_Patch.zip

2) Install SuperUser from Playstore if missing ;)

Modem and Wifi for D6502

http://xdaforums.com/showpost.php?p=56554585&postcount=196
[Xperia Z2 Android Development] sofia-captivate:
Sorry for stupid question i am new to sony phones how do i get this update? my phone is already rooted and which recovery should i download? oh and would i lose my photos on the phone? Thanks
[Xperia Z2 Android Development] RedSkyRoad:
SUPERB!!!!!
[Xperia Z2 Android Development] abdullahazad:
for d6502 or d6503 ?
[Xperia Z2 Android Development] kumbangdesa:
Awesome!!
[Xperia Z2 Android Development] ravdo:
Can I keep my apps and settings, or do I absolutely have to clean everything?
[Xperia Z2 Android Development] RedSkyRoad:
Clean everything...
[Xperia Z2 Android Development] sofia-captivate:
how do i install the recovery? can someone help?? i know how to do the rest and flashing
[Xperia Z2 Android Development] ngotrieu163:
is this rom support d6502?

and how to install recovery for d6502 using 4.4.4????
[Xperia Z2 Android Development] sh4d1t0:
Wait.. the stock rom = 1.06 GB this stock = 831.23 GB... Why?..

And second what is deboatled?
[Xperia Z2 Android Development] ghostofcain:
Yes there are d502 fw about, you need to flash recovery before flashing .167 for further instructions see the dual recovery thread in Dev forum.
[Xperia Z2 Android Development] sofia-captivate:
if i get this rom will i lose my photos on internal storage? and how do i install the recovery? can someonr please guide me. Thanks
[Xperia Z2 Android Development] kumbangdesa:
It because this rom already removed not important app from stock rom.
[Xperia Z2 Android Development] sh4d1t0:
but the file said "_D6503_"

Yes you need transfer your photos and video to external storage first..

oh I got it, thank you
[Xperia Z2 Android Development] crying:
I'm sorry for my noob question but what is the difference with "first" rom 4.4.4? In the firt rom can't install super su? We can have this problem without superuser mod? What change deodexed? Thank you very much for your work niaboc =)
[Xperia Z2 Android Development] niaboc79:
No you won't loose photos.
[Xperia Z2 Android Development] niaboc79:
Deodexing allow application moddifications. Only for modders ;)
[Xperia Z2 Android Development] niaboc79:
Deodexing patch with superUser mod added ;)
[Xperia Z2 Android Development] sofia-captivate:
I have locked bootloader can someone tell me how do i install recovery? Thanks
[Xperia Z2 Android Development] ric69:
I changed from LTE to WCDMA/GSM as I don't have 4g in my country, if it can help you :confused:
[Xperia Z2 Android Development] LexterAce:
Is there anyway to bring back the old launcher? Tried to replace and set permission but no use.
[Xperia Z2 Android Development] vicedens2002:
Exactly what things have been debloated? I have D6502 with Locked bootloader with stock rooted rom (17.1.1.A.0.402 odexed). I also have phils dual recovery installed. So if I install this zip will I have any problems (because flashing from 402)???
[Xperia Z2 Android Development] rohorubo:
Ok, so after many times I got mobile data working but never see LTE in area which showed LTE in the past

gesendet von meinem Sony Xperia Z2
[Xperia Z2 Android Development] ghostofcain:
Sorry my bad, I've obviously got my roms confused
[Xperia Z2 Android Development] iamkani:
Is it okay to flash this rom over XtentionZ ultimate?

??????™ Z 2

?
[Xperia Z2 Android Development] ghostofcain:
Existenz ultimate? If so yes.
[Xperia Z2 Android Development] rpk12:
I have d6502.after flashing this if i flash d6502 modem.will it work??
[Xperia Z2 Android Development] drup88:
Please include in FAQs. Spent a good hour figuring this out. Thanks for the hard work.
[Xperia Z2 Android Development] rohorubo:
Lte is working...

Small question: I always have the "mobile data" icon in statusbar....anyone else?

gesendet von meinem Sony Xperia Z2
[Xperia Z2 Android Development] funky0308:
Use this

Xposed DTN Disabler

That's why manufacturers built region firmwares, in some countries it's illegal to disable camera sound, in some you have to have some other things...

In this version they had to put notification when mobile data is off and when is on...
[Xperia Z2 Android Development] kirby76:
Is it possible to flash this pre-rooted ROM with flashtool somehow?

Btw, thanks for the confirmation ghostofchain!
[Xperia Z2 Android Development] rohorubo:
Cool, thanks for info....didn't know that

gesendet von meinem Sony Xperia Z2
[Xperia Z2 Android Development] Pandemic:
Probarly no but i am not sure.

I never figured that out because i use always cwm recovery ^^

Sent From Somewhere On Earth With My Z2 ^^
[Xperia Z2 Android Development] niaboc79:
Working on the 6502 patch ;)
[Xperia Z2 Android Development] niaboc79:
D6502 users, please try this patch ;)
[Xperia Z2 Android Development] alexpowermetal:
I have to enter my wifi password every time I reboot phone. Anyone else?
[Xperia Z2 Android Development] DaGhostman:
Any progress on NC? I am having about 2 and a half hours on the tube and the noise is driving me crazy :D
[Xperia Z2 Android Development] alvin2382:
update

i have just update using this method and the update center is not working i have all the old sony apps and i have try to update them in the update center and it dosent find nothing, any help or solution for this ??
[Xperia Z2 Android Development] Hussainally:
I would love an update to this ROM simply to reduce the temperature and bring back my awesome battery life ...this ROM is super smooth and I wanna use all the features like x reality and super vivid but it's killing my battery
[Xperia Z2 Android Development] Pandemic:
[MENTION=4868502]alvin2382[/MENTION]

Look into the Sony Cross Device Development Themes and Apps and search the latest walkman, Album etc there and install them as a normal app or push it manually with right permissions and reboot !

Quite simple, figure out 1st then ask !
[Xperia Z2 Android Development] mamenvn:
Working on my d6502

Thanks!
[Xperia Z2 Android Development] vicedens2002:
Sry. What patch is this??
[Xperia Z2 Android Development] nhonbeo:
[MENTION=599722]niaboc79[/MENTION] , [MENTION=4816245]funky0308[/MENTION] Could u try to mod SystemUI with invisible power button on status bar for me ?

- Can everyone do this ??

- I am lost my time to Decompile and Compile systemUI of this Rom. But every time i get an error " install Framework .... ". I tried to install Framework-res.apk but it's still get same error......

- I am only need that for long time used rom :(. Somebody help me ?
[Xperia Z2 Android Development] Hussainally:
How to solve WiFi constantly shows on in power Management even when its off
[Xperia Z2 Android Development] rpk12:
The wifi is not working.not even turned on.what to do.is anyone faced this problenlm.help me out.

---------- Post added at 05:54 AM ---------- Previous post was at 05:49 AM ----------

One more thing.the walkman widget lag every time while selecting next,pause or previous button.
[Xperia Z2 Android Development] rohorubo:
Back to existenz 3.1.5. This rom is good but too buggy for me

gesendet von meinem Sony Xperia Z2
[Xperia Z2 Android Development] Hussainally:
Can I use existence if my boot loader is locked?
[Xperia Z2 Android Development] ghostofcain:
Yes.
[Xperia Z2 Android Development] Hussainally:
Does anyone else have WiFi being awake even when not used or is it only me?
[Xperia Z2 Android Development] rohorubo:
Yep, I'm also on a locked bootloader ;)
[Xperia Z2 Android Development] BlueSky_Vincent:
My phone are rooted and have recovery but i cant delete system app nor activate xposed installer..seem like it cant mount system or something like that..can someone tell me how to fix it? my phone is on the latest firmware..
[Xperia Z2 Android Development] mambablack:
.

Hey everyone

I'm on the stock version of 4.4.4 and I must say I am very disappointed

NC is not working also camera lag

Today i make downgrade to 314,root and go back to existenz rom is much better only issue is DSEE but I'm sure niaboc79 will be fixed in the next update

I can understand why Sony make this s...t :(:mad:
[Xperia Z2 Android Development] nexx67:
I'm experiencing an issue since the upgrade to .167...

Is noise cancelling still working on your device ? On mine it's not !

(with MDR-NC31E headphones and noice cancellation ON of course...)

It seems to be OK (settings displayed and it looks like it is applying it) but I can't hear any difference with NC on or off...
[Xperia Z2 Android Development] mambablack:
For my is not working

I update with pcc so this bug came from Sony :mad:
[Xperia Z2 Android Development] lee480:
Nope. NC works in stock, unmodified ROM. I installed this rooted ROM and NC ceased to work. Flashed OEM ROM and it work. nothing to do with Sony.
[Xperia Z2 Android Development] funky0308:
If someone can post what to mod in systemUI I'll do that.

I don't have time to investigate and compare with 314 SystemUI with that feature.

Yes, many apps can't be decompiled with "old" versions of apktool.

There's method...but I managed to decompile/compile only few apk files for now...

SystemUI is one of them...still trying with framework-res.apk.
[Xperia Z2 Android Development] niaboc79:
Guys, this is stock rom untouched, so if something doesn't work this is not due to me.

Exept one thing, the noise canceling works only if you are using flashtool to flash the latest 4.4.4 build.

But in that case you have to root by unlocking bootloader (with TA backed up before), flash Doom kernel, root and restore TA partition.
[Xperia Z2 Android Development] mambablack:
If isn't nothing to do with Sony why for me is not working I only update with pcc nothing else

my opinion is some update have this bug.

And how you can explain my camera lag. in 314 stock and existenz rom i don't haved this issue
[Xperia Z2 Android Development] willumpie82:
i'm realy missing my Noice cancelation :|

What does flashtool do different compared to custom recovery (eg TWRP) when flashing a rom?

I have this TA partition backed up, would it help to just restore that?
[Xperia Z2 Android Development] atif_afzal:
Thanks Dear for this rom. Every thing is working perfect. Is it possible NC works over Bluetooth. In my case its not working on Bluetooth Head set. Also This Stock ROM Consume too much battery. Any Suggestion for battery.
[Xperia Z2 Android Development] Hussainally:
Please guys ..really need help..just wanna know if u guys can check in power management under battery usage is your WiFi showing on in the graph even when WiFi is not being used ...please just need to confirm that and if no such issue I will try wipe all over again and reinstall the rom... Love the room only that my battery consumption is not good
[Xperia Z2 Android Development] Jiyeon90:
Can confirm NC is working on stock German ROM unrooted, different headphones are working too

Sent from my Xperia Z2
[Xperia Z2 Android Development] KyleSforza:
Can someone please create FTF of this for D6502 version? Apparently I don't like flashing custom recoveries cause then someone can steal the phone and just flash a ROM. :rolleyes:
[Xperia Z2 Android Development] vicedens2002:
But you said it's slightly debloated in the first post.. [emoji17]
[Xperia Z2 Android Development] niaboc79:
Damn don't play with me!

Removing google crap doesn't affect anything.
[Xperia Z2 Android Development] vicedens2002:
Please don't take it in the wrong way... Just wanted to know exactly what has been removed. Can you provide the exact application names?? [emoji12]

And previously you posted a patch for D6502. What's that patch for?

Finally I have D6502 with Locked bootloader with stock rooted rom (17.1.1.A.0.402 odexed). I also have phils dual recovery installed. So if I install this zip will I have any problems (because flashing from 402)???
[Xperia Z2 Android Development] niaboc79:
Drive, books, playmusic.

Patch is for modem and wifi.
[Xperia Z2 Android Development] lanc3lot:
If u can release any NC fix to flash it, would be great in the future. As for the notification sounds, this mod is superb for anyone want a fix: http://xdaforums.com/xperia-z2/themes-apps/sound-mod-xperia-z2-android-4-4-4167-t2929709/page3 (personally i didn't need anything)
[Xperia Z2 Android Development] xarfrost:
Theres nothing really different from 4.4.4 to Existenz rom. They all look the same, Existenz has no camera lag, NC working, and everything is good. I dont see why I need DSEE HX, which is the only thing not working in Existenz rom. My music sounds great already, esp in NC headset. I would just wait for a newer and fixed version of whatever there is from niaboc. Good job anyway.

I just want Sony to change or improve UI for Android 5.0.
[Xperia Z2 Android Development] lee480:
Stock, unmodified and unrooted 4.4.4 also have fully functional NC.
[Xperia Z2 Android Development] icedeocampo:
tnx... works properly
[Xperia Z2 Android Development] rpk12:
Bro.i think the philz recovery you put into the rom does not mount sd card.i had to install older recovery.can you please check it.and by the way thanks for the rom.at first i did not flash deodexed patch so were facing so many problem.but now i rectify my mistake.waiting for your existenz 4.0 [emoji5]
[Xperia Z2 Android Development] nhonbeo:
There is the Tutorial to make it : http://xdaforums.com/showthread.php?t=2685606

Because I can't do that anymore..... So i need someone help me.... Do u spend some time to help me make this file ??

Why can't i upload 2 file for u ? Do u help me..... SystemUI.apk and Framework-res.apk include in this ROM .....

Waiting ur reply mate !
[Xperia Z2 Android Development] leemo92:
[MENTION=599722]niaboc79[/MENTION] thanks for taking the time to make this using now with deodex mod no bugs so far apart from ps4 remote play not working

---------- Post added at 03:46 PM ---------- Previous post was at 03:35 PM ----------

Does anybody know how to get transparent search bar like in existenz
[Xperia Z2 Android Development] dyepnoodle:
Go to advanced settings in wifi and untick scanning always available
[Xperia Z2 Android Development] vicedens2002:
A small silly question.. Why does this rom includes a recovery. We anyways flash the rom through recovery only.. Does the rom flashing erases the recovery??

P.S. I have flashed numerous roms in my HTC Desire HD through recovery.. None of the road had recovery
[Xperia Z2 Android Development] dyepnoodle:
For locked bootloader, yes. For unlock bootloaders they can simply install a custom kernel with built in recovery. With htc the recovery is being flashed via fastboot (recovery.img) which will remain on the phone even if you change your rom. :)
[Xperia Z2 Android Development] Mano1982:
Works like a charm here on my Xperia Z2 from Taiwan :D No problem what so ever. Everything works perfectly, WiFi and Mobile data etc.. The phone is blazing fast :) Thanks man!
[Xperia Z2 Android Development] ghostofcain:
The HTC desire HD has a recovery partition, the recovery on Sony Devices resides in the /system partition thus wiping /system wipes the existing recovery out.
[Xperia Z2 Android Development] kianjhay03:
Super vivid keeps on turning off. Anybody?

from a fresh install.

Tried stamina and power saving to off just in case. But still goes to off by itself.
[Xperia Z2 Android Development] ogunja:
Sorry if this has been asked, but I've been reading a few pages and did not find.

I have version 314 working more root / dual recovery Nut

Just enter CWM to flash this version and 167 ???

Thank you [MENTION=599722]niaboc79[/MENTION]
[Xperia Z2 Android Development] leo_nidas:
Yes i flash and working :) 167
[Xperia Z2 Android Development] jekyll86:
Hi to all, I'm a new owner of xperia z2. I installed this rom and at monent everithing seems good. Thanks :)
[Xperia Z2 Android Development] vicedens2002:
Oh ok. But I see no custom roms having the recoveries..
[Xperia Z2 Android Development] nhoc_huhu:
[MENTION=599722]niaboc79[/MENTION] Can u try root newest firmware :D http://xdaforums.com/showpost.php?p=56573444&postcount=860
[Xperia Z2 Android Development] rizwanalichand:
link is offline plz refrash online new link plz
[Xperia Z2 Android Development] Beetle84:
link

Copy and paste mate, downloaded it this morning.
[Xperia Z2 Android Development] Ben Ling:
That's for carrier O2
[Xperia Z2 Android Development] là gió:
tks you so much !!!! love you
[Xperia Z2 Android Development] leemo92:
Is anybody else experiencing fc with bike rivals game never had this problem on .314, exiztenz or unrooted .167 but with this the game just refuses to load, ive cleared data in app info and even uninstalled and re-installed from play store but nothing. Just to give more info im deodexed with superuser mod.
[Xperia Z2 Android Development] asjstian:
Read....
[Xperia Z2 Android Development] niaboc79:
Downloading the firmware actually ;)
[Xperia Z2 Android Development] Ben Ling:
I have downloaded and deodexed it but all of the apps were exactly same,same build of kernel also...
[Xperia Z2 Android Development] ghostofcain:
As has been discussed this appears to be a simple carrier build.
[Xperia Z2 Android Development] niaboc79:
Both build are identical exept a few carrier app and libs with some baseband files.
[Xperia Z2 Android Development] RedSkyRoad:
Can I download and install any .167 FTF off Flashtool if my carrier's version is not available?
[Xperia Z2 Android Development] leemo92:
Yep
[Xperia Z2 Android Development] niaboc79:
Flash this: http://www.mediafire.com/download/k4mb0pmf60h0246/fix_game.zip
[Xperia Z2 Android Development] crying:
Hi!

Someone knows a trick or Xposed modules who let me modified the columns on this? I forget how I did this on exiztenz XD
[Xperia Z2 Android Development] leemo92:
Thanks man its working now
[Xperia Z2 Android Development] rinxas:
Does this fixes other apps refusing to load? Feedly is acting up .
[Xperia Z2 Android Development] Haldi4803:
Oh... But we don't need to wipe data for that?

And what if someone steals your phone and flashes a different ROM via flashmode?

QFT.

Philz CWM does not load external SD. No way to load it manually.

Had to use TWRP
[Xperia Z2 Android Development] Monipeev:
So, which suggest copying the files from your rom eXzistenZ 3.1.5. to activate full screen picture on this stock firmware, when I have incoming calls?

Thank you again Mr.Niaboc 79.

Send from my Sony Xperia Z2
[Xperia Z2 Android Development] Pandemic:
That is Semcphone.apk and look into the Excitenz folder of the zip ;)

Sent From Somewhere On Earth With My Z2 ^^
[Xperia Z2 Android Development] MTechRD:
Hi to all!

I already installed the stock rom by PC Companion and i lost root access and dualrecovery.

Somebody knows if there is a way to have root access again on this new version?
[Xperia Z2 Android Development] nreuge:
[MENTION=599722]niaboc79[/MENTION]

Strange thing that the good old music widget (the one with the progress bar) is missing in this stock rom...

Note that I've recover it for previous fw and it works fine.
[Xperia Z2 Android Development] Pandemic:
Hi !!

Well it is told and old news if you update with pc companion you will lost root definitly so downgrade to .314 (Android 4.4.2) the ftf with flashtool and install dual recovery and flash this but remember:

Follow the install instructions like:

Boot into recovery

Wipe data (full factory reset)

Wipe dalvik

Wipe cache

Flash the *****rom.zip

Reboot

Let it settle

Done !

Sent From Somewhere On Earth With My Z2 ^^
[Xperia Z2 Android Development] plasmidium:
Every time when i reboot my z2 i got a notification info for my mobile internet connection . Is there any solution to delete this message? Never got this on Existenz Rom :D
[Xperia Z2 Android Development] lanc3lot:
Check previous pages
[Xperia Z2 Android Development] ghostofcain:
Can you not simply clear the message? That's what I do, I believe it might be a feature of 4.4.4 hence it wasn't present in existenz. It happens to me as well but as I hardly ever reboot and it's easily cleared it's not an issue.
[Xperia Z2 Android Development] Beetle84:
data notification

Hi mate, what you need is xposed dtn disabler apk. (and xposed installed)

Works perfect even though firmware is not listed as compatible.

http://xdaforums.com/attachment.php?attachmentid=2191415&d=1376601076

Works for both enable/disable notifications.
[Xperia Z2 Android Development] MrCatalyst:
Right, I wanna clarify few things before I start flashing - something I promised not to do after switching from N5 to Z2. :(

1) This is 100% stock ROM (with stock kernel), rooted, but custom recovery, right? I'm aware I won't be able to get OTA updates, but with UK carriers (Three), I do them via flashtool anyway.

2) Are there ANY bugs that would cause the phone to reboot, freeze, etc? I know there was a patch posted a page or two ago, but apart from that?

3) Does it work flawlessly with any carrier? It seems to be unbranded, but I've heard some ROMs may or may not work in certain regions.

4) Once Android 5.0 is out, I'd be forced to do yet another clean flash, right? Stock ROM updated via OTA never deletes data, which is what I was doing with previous updates (all stock atm), but will updating from this to 5.0 (via flashtool) force me to clean flash again, despite being still on stock (but recovery, which would likely go back to stock too)?

Thanks in advance!
[Xperia Z2 Android Development] sxtester:
Turn it off in the extended WiFi settings?!
[Xperia Z2 Android Development] shockss:
Noise Cancelling not working here...

That's why I f***kin hate flashing things to my phone but I violated my oath for that damn root. :)

It seems that this will be the only way to gain root access on 4.4.4. for a long time.

Anyway, Any Fix for Noise Cancelling ?

Thanks though.
[Xperia Z2 Android Development] iMezouar:
Works great !

I succeeded in rooting my Xperia Z2! thanks a lot !

I couldn't install the Dual Recovery without root thought, so I fastboot flashed a CWM image, then flashed your zip. After flashing the rom, I installed the dual recovery.
[Xperia Z2 Android Development] leemo92:
This rom comes with dual recovery pre installed btw
[Xperia Z2 Android Development] iMezouar:
I just wanted to be safe, as I had installed CWM in order to flash this, so I reinstalled dual recovery afterwards.

I have a question if you could answer me please. I forgot to wipe data before install, but everything seems to be working ok for now, do I need to reinstall ?
[Xperia Z2 Android Development] ghostofcain:
Not if everything is behaving no.
[Xperia Z2 Android Development] MrCatalyst:
Just did a dirty flash, and everything seems to be working fine. From stock rooted to this, didn't wipe data. Cheers.
[Xperia Z2 Android Development] Absarock1:
I need 'Thanks'

http://xdaforums.com/showthread.php?t=2702001 here