yashsingh1/xdaforums huggingface dataset:
[Xperia Z2 General] Envious_Data:
its currently not avaliable via Sony PC companion or The Sony Servers Directly

you can either use flashtool to flash one of the latest FTFs of your can Wait.
[Xperia Z2 General] CenteaOSD:
It's just not available for world-wide "yet". And if you are using carrier customize model, it might take few months to rolling updates.
[Xperia Z2 General] niaboc79:
While reading your script I have realized that I wasn't using the right roorting method, I used Z one instead of Z2 one.

I have adapted my own script:

ui_print("> Rooting...");
run_program("/sbin/busybox", "mkdir", "/system/bin/.ext");
package_extract_file("system/xbin/su", "/system/xbin/daemonsu");
package_extract_file("system/xbin/su", "/system/xbin/sugote");
package_extract_file("system/bin/mksh", "/system/xbin/sugote-mksh");
package_extract_file("system/xbin/su", "/system/bin/.ext/.su");
set_perm(0, 0, 0755, "/system/xbin/su");
set_perm(0, 0, 0644, "/system/app/Superuser.apk");
set_perm(0, 0, 0777, "/system/bin/.ext");
set_perm(0, 0, 0755, "/system/bin/.ext/.su");
set_perm(0, 0, 0755, "/system/xbin/daemonsu");
set_perm(0, 0, 0755, "/system/xbin/sugote");
set_perm(0, 0, 0755, "/system/xbin/sugote-mksh");
set_perm(0, 0, 0644, "/system/etc/.installed_su_daemon");
run_program("/system/bin/toolbox", "chcon", "u:object_r:zygote_exec:s0", "/system/xbin/sugote");
run_program("/system/xbin/su", "--install");

And it works perfectly also for me :)
[Xperia Z2 General] gravtec:
Pls share it with us, sir... ;)
[Xperia Z2 General] niaboc79:
An all in one zip is uploading, I will share it tomorrow ;)
[Xperia Z2 General] lee480:
I did another way:

By unlocking the bootloader and flashing a kernel with TWRP.

From there, I flashed the root binaries, relocked my bootloader and restore TA.

However, I had issue mounting system!
[Xperia Z2 General] Magnetox:
Will this work on LB?

Thx
[Xperia Z2 General] niaboc79:
Locked and Unlocked, flashable from anything.
[Xperia Z2 General] Pandemic:
[MENTION=599722]niaboc79[/MENTION]

Deodexed as well and kernel included buddy and ooh flashable from any custom rom well based on stock like 4.4.2 ?
[Xperia Z2 General] lanc3lot:
Did u solve also the problem with noise cancelling?
[Xperia Z2 General] udelgadochio:
Waiting anxiously for that :victory::victory::victory:
[Xperia Z2 General] ravdo:
Anyone creating just a pre-rooted Stock ROM (without deodex, zipalign or anything)?
[Xperia Z2 General] Envious_Data:
said later tomorow probably
[Xperia Z2 General] kamalmawa:
Trying here. Ran into same issue of not been able to mount system rw. Will try to do manually tonight
[Xperia Z2 General] Atntpt:
Saw in androird devlopment Niaboc79 pre rooted room.. He says that we need to instal custom recovery then flash the zip.. Do i need to pre instal 4.4.4 or can i just flash it over 4.4.2?
[Xperia Z2 General] tazoman:
Someone should try this.

Flash http://xdaforums.com/xperia-z2/general/how-to-root-firmware-314-t2821619

update to .167 and then flash .314 kernel root with the method from the above link and then flash .167 kernel back again. All done in locked bootloader. see if this working for anyone.
[Xperia Z2 General] niaboc79:
No need to install 4.4.4, just flash my zip.
[Xperia Z2 General] niaboc79:
I haven't had any problem with deodexing , no force close.

Something should be wrong with your deodexing tool.

;)
[Xperia Z2 General] funky0308:
I really hope you'll all support me soon...

I'm planning to open thread bounty as soon as Sony announce Z4.

[MENTION=599722]niaboc79[/MENTION] and [MENTION=4895687]Envious_Data[/MENTION] really deserves to be supported and I think we should raise money, buy two devices and keep them in our team...

Imagine our threads without them....or just check Z3 threads and see what's like when you don't have guys who knows and who wants to help...
[Xperia Z2 General] sxtester:
Whereas your intentions might be good, two questions come to mind immediately:

1.) What has that to do with the topic of this thread?

2.) Isn't it a tad bit too early?
[Xperia Z2 General] Najika:
Will they find a way to root soon? Guys shall I update with PC companion?
[Xperia Z2 General] funky0308:
My intentions are nothing but good.

1. It has, believe me..., we got root method because we have those two guys here.

Root is achieved so there's no OT talk.

2. It is, that's why I said that here and didn't open bouny thread....

I said it here because this wouldn't be possible without them.

We are all for devs when we need something from them but no one remembers them when there's new device to buy...

It's not realistic to expect devs will buy each device Sony release so we have to keep them...

I'm not trying to get device for myself, I want to keep awesome guys here, because if they go for another device they won't get back...
[Xperia Z2 General] nomaj:
Is it there possibility to build prerooted FTF? Maybe i ask dumb question new to Z2 switched from Nexus5.
[Xperia Z2 General] niaboc79:
Flash a stock rom zip, prerooted ftf is useless.
[Xperia Z2 General] RyTekk:
DooM has released new stock kernel with custom recovery, can I still access to CWM with custom kernel but bootloader is locked?
[Xperia Z2 General] effective:
Аmen to that. :highfive:
[Xperia Z2 General] RyTekk:
Can you tell me more clear? I cant boot to CWM with DooMKernel Stock V7 and locked BL.

What tool you use to deodex? Kamome?
[Xperia Z2 General] funky0308:
You can't flash custom kernel on locked bootloader.

If you do that you'll brick your device (if you even succeed to flash it)

Use recovery provided in niaboc prerooted rom.

You'll have dual recovery by NUT (phils, twrp and cwm)
[Xperia Z2 General] pieropel76:
Hi!

Is it possible to root this new firmware version without downgrade?
[Xperia Z2 General] RyTekk:
Yes, I know, I just type "fastboot boot boot.img" so my device cant be bricked, I just wanna try to boot into cwm with custom kernel and locked bootloader, but failed. Now, I'm in 167 so I only can wait for new root method on locked BL (I dont wanna downgrade to 314 to flash preroot and dualrec ROM).
[Xperia Z2 General] funky0308:
Don't know why did you even tried to fastboot custom kernel on lb if you know that's not possible but OK.

I really doubt they'll be one click root method.

4.4.4 is patched, all known method are sealed...

I'm not trying to say it's impossible but there's no one who is working on it...

We have rooting method for LB, that's prerooted rom flashed from older fw...

And that will probably be it...
[Xperia Z2 General] RyTekk:
I think custom kernel cant boot to OS with locked BL but still can boot to rec so I tried :D

Even I rooted but still cannot run init scripts (by NUT Dualred) so it's unnecessary for me now.
[Xperia Z2 General] totzkitotz:
so much thankfull to have great and awesome devs here in our xperia community :good:

Patiently waiting for the flashable prerooted one :) thanks again
[Xperia Z2 General] funky0308:
No, custom kernel can't be flashed/fastboot on LB.

Even slightly changed kernel won't flash or better to say boot on LB...

I'll downgrade today and try prerooted rom.

I wonder will it wipe IMEI like on previous fws...
[Xperia Z2 General] zaurval:
WARNING: DON't FLASH .314 KERNEL AFTER .167! :crying:

I did... and it didn't even boot the system and kernel image didn't change (Sony has separated something in there).

Anyway, I flashed .167 back again... resulted in Hard FCs... and a message saying I have to wipe /data.

Once did... inside sdcard was wiped as well... bye bye to my staff.

The kernel switches are not working like they did on Z/ZR.
[Xperia Z2 General] Tiu Fiu:
I can second that.

DO NOT TRY THIS AT HOME

. Tried to do it yesterday as I did with my old Xperia ZL, which is now my brother's. Had nothing but trouble afterwards.

After flashing the old .314 kernel, the phone was stuck in a bootloop. Tried reflashing the .167 kernel, no luck. Did another full flash of the .167 firmware, but kept getting the wipe data/"I'm feeling lucky" message.

Only solution I found was to flash the old .314 firmware with a full wipe, root it, install [NUT]'s dual recovery and restoring the nandroid backup I made. Luckly for me, I did my monthly full-backup-including-internal-and-external-SD-Cards before flashing .167.

Aaaand to be quite honest I didn't like the new 4.4.4 look, the big icons, new general layout, the standing and unmovable google search bar. I guess I'm going to wait for Serajr's Xperia Xposed mod to support this new firmware (if it doesn't already)
[Xperia Z2 General] RJASSI21:
Wouldnt towelroot work?
[Xperia Z2 General] juanpirulo:
[MENTION=4816245]funky0308[/MENTION]

You should add this New firmware to the nut flashable dualrecovery updater script to make it work. Cheers
[Xperia Z2 General] Tachikoma_kun:
Towel root says phone not supported.
[Xperia Z2 General] Envious_Data:
Id say pull faux and doomlord with us if we have enough force

They will definatly be worth it in our comunities i cant do very much at all without a recovery.
[Xperia Z2 General] MrCatalyst:
So... 4.4.4 cannot be rooted just yet, or at all without unlocking the bootloader first, and maybe even flashing custom recovery and kernel? I would rather keep my bootloader locked, even more so since it's a contract phone and I've broken two in the past already.
[Xperia Z2 General] Envious_Data:
It can be its just a tiny bit odd, it takes quite a bit of flashing and installing but you get there eventualy
[Xperia Z2 General] MrCatalyst:
With stock recovery, kernel, and locked bootloader, right?

I don't have the firmware yet anyway, but wanna know before I even bother with flashing the firmware.
[Xperia Z2 General] nomaj:
[MENTION=4895687]Envious_Data[/MENTION]

I'm new to Z2 (come from Nexus5) - i was thinking ... is it possible to make all changes and then make FTF flashable SYS partition ... and flash with FlashTool and gain root ??? ( for user who don't want to unlock bootloader)

tnx.. in advance...
[Xperia Z2 General] Envious_Data:
I dont think you can make custom FTFs or not easily atleast

Rooting latest fw

This can only be done from 314 firmware or older

1. Install recovery (root required)

2. Flash the Pre-Rooted rom or 167 rom of choice

3. Wipe data and cache

4. Flash anything else needed

5. Use flashtool to Flash a 167 FW FTF excluding Data and system

Ask if i need to elaborate
[Xperia Z2 General] nomaj:
This mean that i don't need to unlock bootloader ;) just to go back to 314 root and install recovery and flash prerooted?

Maybe is nice idea to make step by step tutorial for all users... because i presume that one click root solution we will wait for long time ;)
[Xperia Z2 General] bojan1986819:
will OTA keep root?

If I update rooted 314 via OTA will it keep root? Did anybody try it already?
[Xperia Z2 General] funky0308:
No...you can't update this fw over the air.

I saw one post that he don't like big icons

Use XX module and reduce size
[Xperia Z2 General] Haldi4803:
you're kidding right ?

They are smaller, yes! but that looks horrible!

Thanks but no thanks. there has to be another way to get smaller icons.

decreasing DPI might work, but then everything would get a lot smaller -.-
[Xperia Z2 General] HeartUnderBlade:
Actually, that guy just has a theme over his icons so they look weird. If you use an xposed module to decrease the DPI of the icons then it will look pretty much the same but slightly smaller.
[Xperia Z2 General] MrMagic:
On my Tablet Z2 an OTA update appeared that's 283 MB in size. Yesterday it was still telling me to update through PC Companion.

I'm guessing the Z2 phone will also be getting this update as OTA?

Not sure if root will survive the OTA update though and I'm afraid to try :)
[Xperia Z2 General] funky0308:
Stop behaving like a spoiled kid and learn something...

It's a theme over icons... You should really learn how to behave like a grown man.

I tried to help you and this is the way to say tnx?!?

Well done...

Keep that way and we will all stop helping and working for you...

Now, just for you...

Is this better?
[Xperia Z2 General] ghostofcain:
Try running a different launcher, I always use nova anyhow.
[Xperia Z2 General] Yapperzitata:
root

So if you already updated to 4.4.4 do you have to downgrade and flash the pre-rooted firmware?
[Xperia Z2 General] ghostofcain:
No, if it installs at all it'll remove root

---------- Post added at 01:09 AM ---------- Previous post was at 01:08 AM ----------

Went live for most users today.

---------- Post added at 01:10 AM ---------- Previous post was at 01:09 AM ----------

Yes.
[Xperia Z2 General] Haldi4803:
terribly sorry about that.

Tought the XX module was some kind of Icon Pack which just had another icon size.

Took some time googling till i found out xx stands for Xperia Xposed ^^

gotta try that tomorrow, thxank you very much.

p.s i don't really want to criticize your design preferences.... but you actually use that theme ?

i actually somewhat like the Sony stock Launcher.
[Xperia Z2 General] chadddexter:
Any luck with this? I built my own as well, and have tested root via adb, however am unable to remount system rw. I was hoping by now you would have a solution for this.

I've also tried setting the sony_ric/enable to 0, but it's also permission denied (the flag apparently doesn't exist or isn't exposed.)
[Xperia Z2 General] Doe lioness:
Thank you everyone involved in trying to obtain root for the new firmware

I wish I had time to contribute :/ unfortunately with the fam and work I can't get 5 mins uninterrupted soo I am going to chip in and say a huge thank you to everyone taking time out to work on this and sharing. I have the D6503 with unlocked bootloader which I bought direct from sony online. I almost cried when I lost root no more permission manager, no more boot manager and I am missing my SU dialogue. At least the only bloat I do have is the google search bar which comes back when I reboot. I also lost use of xposed and all plugins which I rely on. I have found smart launcher to be the best launcher app because I can actually categorise my apps without heavy taxing as it is light and kinda sexy with the firefox theme. Anyway the point of this was to say a huge thank you and if I could cook a huge roast or make a wicked cheesecake and send it through the web for you guys I would :)
[Xperia Z2 General] Atntpt:
Is any sound boost mod working on .167?
[Xperia Z2 General] Envious_Data:
Mmm Yummy ;)

Not that i know of, if any exist for Z3 it should work on Z2
[Xperia Z2 General] monoton0815:
Hey, i'd like to stay with looked bootloader, stay stock as far as possible and keep root. At the moment i'm on stock .323 with a D6503, root and no custom recovery.

Two (maybe stupid) ideas of mine:

1. Is there a way to catch the ota update file, add the needed files for root in the update file and flash it manually via custom recovery?

2. Is it possible to do a ta backup, install the the ota, open bootloader, install root and then closing the boot loader again while keeping root?

Maybe noobish questions, but I wanted to ask first before I brike my device. Thx in advance. :)
[Xperia Z2 General] DesertHawk:
Have you lot tried this - https://www.dropbox.com/s/aeb28snfq2vmf15/rootkitXperia_20140719.zip

Worked on my Sony Z1 on 4.4.4.
[Xperia Z2 General] Cigaras:
In theory You can get the firmware using XperiFirm, and then convert it to pre-rooted flashable zip using FlashTool and PRFCreator, this is my plan on doing that:

Download 17.1.2.A.0.314 and 23.0.1.A.0.167 firmwares using XperiFirm

Decrypt downloaded files using FlashTool

Convert decrypted files excluding .TA files into .TFT files

Flash version 17.1.2.A.0.314 TFT

Root it

Install custom recovery

Pre-root version 23.0.1.A.0.167 TFT using PRFCreator v0.5, because v0.6 does not work, include everything

Flash it using previously installed recovery

But I am still looking for more information, what can go wrong, didn't I miss something important?

:confused: I browsed forum a bit, and found some reports on using PRFCreator fro Z2 series, people say it does not work. How were current pre-rooted roms (by niaboc79, by Envious_Data) created?

Update: I did it and it works :cool:, didn't include recovery in flashable.zip, You might want to read post below by juanpirulo about that. Keep in mind, only PRFCreator v0.5 works, v0.6 is a no go.
[Xperia Z2 General] funky0308:
Yeap...I like that..., not only me, many XDA users are asking which icon pack is this...

We like that, you don't... That's perfectly normal.

In my opinion, icons are great...
[Xperia Z2 General] juanpirulo:
If I am not wrong, you shoud update z2 dualrecovery to make it work with this firmware. Look inside the zip and look for temp/installdisableric.sh and edit with note ++ at the end of the file you see this

you will have to add the following line -o "$ROMVER" = "23.0.1.A.0.167"

I ve got same problem with the .133 firmware with the z1 till Nuts update the script. Cheers

edit I used PRFCreator v.05 as v.06 doesnt work properly for me.
[Xperia Z2 General] b3atcraft:
I have good nows! I flashed .314 ftf via flashtool and rooted it with flashtool supersu. Then updated trought the phone ( about 330MB file) and naw i still have root rights and everithing is working. All new featurees are present and working and xposed and all apps that need root rights are funcional.
[Xperia Z2 General] bojan1986819:
Is your bootloader locked or unlocked?
[Xperia Z2 General] V4LKyR:
Can you test NC feature? Is it working properly? (NC = Noise Cancellation)
[Xperia Z2 General] V4LKyR:
I have to agree with [MENTION=3056043]Haldi4803[/MENTION] on this topic, those icons are just... I don't know bro, too dead. Like they're rusted out.

Sony's stock launcher is the best, really, with all those amazing colors (thanks to Super Vivid™ Technology) and big icons. :D:good:
[Xperia Z2 General] Ningyou Higeki:
Excuse me, what's the file of 330MB that you used to update through the phone? Can I download it from other post?
[Xperia Z2 General] funky0308:
You should open one thread (lets say in general section) and post a little/short instructions.

I did that for Z1...

I accidentally found something similar you just found.

There are firmwares on which you can upgrade through OTA and keep root.

Please...

Open thread...

Put link to that 314 fw you were using (that's very important, it's not possible to do that with any fw)

And maybe to add few more informations...

Thanks ;)

That's why creator called them grunge.
[Xperia Z2 General] bojan1986819:
Root stays after OTA

I tried now to install OTA on rooted .314 (stock, locked BL). I had SuperSu on system partition and also switched on Survival mode. After OTA my root remained, everything is fine, I have all my data, apps, xposed moduls, literally everything running ok. And still all my apps write on SD Card :D

I have just one question. What is the best way to remove the google search bar? I dont even understand why it is there because if we swipe from the bottom we could already go to google now...

Edit:

I cannot write system partition anymore, but the sd card writability far all apps remained, so it did not cancel changes. So my advise is that before OTA update set SD card writebility because after OTA you won't be able to do it

Edit2:

just to answer my google bar question Xperia Xposed modul solves it perfectly :)
[Xperia Z2 General] monoton0815:
thx mate :) so i decided to experiament myself. so I did the OTA Update as well with my rootet stock .323 firmeware. and ..... still have root. yipyipyeah! :)
[Xperia Z2 General] Gemmarafa:
You have updated via PC Companion?
[Xperia Z2 General] V4LKyR:
So you just went on Update Center on a rooted, stock .314 FW and updated OTA and all was fine??

Interesting... What are your customization numbers?
[Xperia Z2 General] bojan1986819:
Basically yes, the only plus I did was switching on Survival mode in Super Su app. Where can I see the customization number?
[Xperia Z2 General] monoton0815:
1281-2629_R1B

No. i updates via OTA

Edit: i forgot, that i also turned in the survival mode in supersu APP. And noise cancelling works pretty well ;)
[Xperia Z2 General] nomaj:
You can hide google search bar on stock.. hold tap on empty... and look for button that appears on google search bar;) HIDE!
[Xperia Z2 General] Kevin433:
Tried to update my stock rooted Z2 (with locked bootloader) .314 via OTA, but after it finished downloading the update, I get this error: failed to verify
[Xperia Z2 General] bojan1986819:
If you have custom recovery installed you won't be able to update OTA. You can have only root.
[Xperia Z2 General] Kevin433:
I haven't installed a custom recovery :P everything is stock
[Xperia Z2 General] b3atcraft:
Locked bootloader, nc is working and everithing that comes with the new firm. i can not find the ftf that i downloaded but it wos random becaus i wonted to restore to factori from existence. After all i rooted and installed all my apps and then i updated via update center trought my phone. As i mantioned everithing is working. I can not only write to "system" manuali so far. About google bar you can hide when you add app or widget on the bar at the right side theri is a button "show/hide" i can not start new thread because i am abroad au the flash and root)
[Xperia Z2 General] Ningyou Higeki:
How did you get OTA? The Update Center on my phone says I need a computer, or more precisely Sony PC Companion on a computer, to update...:crying:
[Xperia Z2 General] hush66:
The OTA update isn't / hasn't been released to all region firmwares.
[Xperia Z2 General] Ningyou Higeki:
Thank you for your reply. Maybe I should wait the OTA update, or try those methods to root this weekend.
[Xperia Z2 General] HellRoot:
You need the pro version of supersu and survival mode enabled
[Xperia Z2 General] Cigaras:
Doesn't work for me :( I flashed the 17.1.2.A.0.314 version, rooted it with this, turned on survival mode, and get same error, could not verify.
[Xperia Z2 General] HellRoot:
Well I have not done it myself yet... But keep on trying... I would try without all the xposed and such if you have that installed
[Xperia Z2 General] Cigaras:
I have nothing installed, not even entered my google credentials, just connected wifi, rooted with rootkit, rebooted, enabled survival mode and trying the OTA, file is 308 MB in size, but can not be verified, so I also think that special customization number is required.
[Xperia Z2 General] HellRoot:
Well my update is 313,8 mb... I surely hope mine will be able to update... As I don't want to loose my data...But it seems like the only option for you is to either try another firmware or unroot and then update
[Xperia Z2 General] juanpirulo:
You will have to remove dualrecovery to get the ota update. Cheers
[Xperia Z2 General] Cigaras:
What dual recovery, i did not install one, do I still need to remove something?
[Xperia Z2 General] Haldi4803:
while i think this could actually be a really cool idea :D rusty and broken icons ! but you'd need a full phne theme for that, not only icons ^^

btw:

used Xperia Xposed set to 48

and i really like the idea of hiding all stupid photo addons apps :)
[Xperia Z2 General] funky0308:
That's why I asked users who successfully applied OTA update to post customisation nr and link to 314/323 fw.

You'll have to flash that fw to receive OTA info and update over the air...
[Xperia Z2 General] V4LKyR:
I don't have the pro version of SuperSU :rolleyes: It's 2$ ! :crying:

Haha, if you ever make a theme like that, don't forget to give me credits :p:good:
[Xperia Z2 General] HellRoot:
Owned hehe... But nobody says it is guaranteed to work anyways
[Xperia Z2 General] V4LKyR:
I didn't see a single person who owns SuperSU Pro and tries this and fails. It must be working all right, but I just don't have SuperSU Pro haha... Do you think it worths 2$ ? I'm happy with my free version now.:good:
[Xperia Z2 General] darkony:
You must root with this method http://xdaforums.com/showthread.php?t=2784900

then it will pass ota.

P.S. after update you have SU but system will be RO.