yashsingh1/xdaforums huggingface dataset:
[Xperia Z2 General] silent 92:
Hi I have D6502 Middle East MENA/Arabic - unbranded - 1291-4675

I search for 4.4.2 with same customization number but I didn't find it so I chose 17.1.2.A.0.314 custom rom, rooted it then installed Z2-lockeddualrecovery2.7.154-BETA.flashable_patched recovery

now I want to create pre-rooted stock 23.0.1.A.0.167 Middle East MENA/Arabic

should I include or exclude the options of PRFCreator to get back stock customization number ?

also there is a file called D6502_patch should I include it or not in extract zip in PRFCreator

the file I'm talking about is found here

finally I'll use

PRFCreator_v0.8

Z2-lockeddualrecovery2.8.15-RELEASE.installer

UPDATE-SuperSU-v2.46 for the process
[Xperia Z2 General] rfilipoiu:
you can find busybox inside utils inside flashable.zip;)
[Xperia Z2 General] rfilipoiu:
Yes, for CE1.

Tapatalk
[Xperia Z2 General] silent 92:
Please answer my question !
[Xperia Z2 General] guhvanoh:
No one here owes you anything...
[Xperia Z2 General] darwinzp:
I can confirm that all the steps work on the latest US Tft 23.1A.1.28.
[Xperia Z2 General] tornido067:
am on 5.0.2 is it safe for me to just flash 4.4.2 using flashtool ?or am going to lose ime or something ?should i do anything before downgrading or just flash it via flashtool ?
[Xperia Z2 General] darwinzp:
Backup your important data, you can use flastool then.
[Xperia Z2 General] ksj0823:
Anyone got the link for the latest US 23.1A.1.28 flashable zip?
[Xperia Z2 General] darwinzp:
Here's a link of a Nordic TFT.

http://xdaforums.com/xperia-z2/general/ftf-cutomized-23-1-0-726-cda-1281-9809-t3082166
[Xperia Z2 General] xeningti:
call me a dips*** but i have donne this method before on the first release of LP now im doing exactly again with a new FTF 23.1.a.1.28 and when i complete everything and turn it on im losing my recovery and root...... wtf?
[Xperia Z2 General] daxcimix:
hello,

Sorry for the stupid question.. But if I wanna do a factory reset after I flash a fw with this method I haven't to root again, right?

What I have to backup?

Thank you and sorry for my English.

Inviato dal mio D6503 utilizzando Tapatalk
[Xperia Z2 General] norti:
Yes, it is safe, just flash everything except ta files and wipe everything. Just make a backup from your _internal_ SD card before in case you'll need something from it.
[Xperia Z2 General] eagle25884:
- deleted - (wrong Forum)]
[Xperia Z2 General] geheim01:
Does this method work with Xperia Tablet Z as well??
[Xperia Z2 General] norti:
If the DualRecovery on the Z Tablet works (the latest one from today does), then of course, just use the right files for the specific device.
[Xperia Z2 General] geheim01:
Thanks for your answer, norti!! I'm gonna give it a try then :)
[Xperia Z2 General] power323f:
Works perfect for 5.1.1 too
[Xperia Z2 General] luiis_104:
[MENTION=3580522]power323f[/MENTION] The .... 546?

Send from center of earth....
[Xperia Z2 General] power323f:
Yes it is.
[Xperia Z2 General] norti:
Updated OP with latest PRFCreator instructions.
[Xperia Z2 General] SwiftSmoke:
unfamiliar error?

Hey guys just need clarification if what I got was an installation breaking error or problem with SU and recovery zip being installed?

the "Set_perm: some changes failed" bit yeah i know I installed kernel etc but it worked for me before and i cant remember if this appeared before. I did include SU and recovery zips on sd card so installed them separately after I seen this just to be sure, But did i need too?
[Xperia Z2 General] Jackos:
You need to use TWRP.
[Xperia Z2 General] saccet:
So no need to exclude PARTITION anymore on Flashtool? Only SYSTEM?

Confusing because CodeQuote is different to text explanation...
[Xperia Z2 General] norti:
Thanks for reporting, the x is back where it belongs! ;)
[Xperia Z2 General] A. User:
Thanks very much for this useful guide. Have been using it to upgrade my Xperias ever since I stumpled across it.

I have one question though; I have prepared all the my FLASHABLE.ZIPs following the "older" version of this guide, which was for PRFCreator v0.5.

Is it better for me to create a new ZIP with v1.1 or is the endresult the same? :confused: Want to update my Z3 to 5.1.1. (23.4.A.1.232). THX
[Xperia Z2 General] norti:
There is no much difference, v1.1 tries to flash sin and modem update files right on the device (if you use that option), otherwise the process is almost the same, just with other tools. So either you use the legacy mode in v1.1 which is the same as in v0.5 or use the new methods. I'll still recommend to flash kernel and other important modem parts through Flashtool after the update. Just to be sure ;)
[Xperia Z2 General] mr.didi:
Tq for guide.. Work perfect on my 5.1.1(.232) :):)
[Xperia Z2 General] connta:
can you answer me why this is only for locked bootloader, i am looking into installing androplus kernel and i already have latest .264 installed by your method rooted and with dual recovery, i am aware that androplus kernel needs dualrecovery uninstalled and that it installs its own recovery but beyond that i do not understand why i wouldnt be able to use this for after i unlocked the bootloader and isntalled custom kernel, any clarification would be wellcome
[Xperia Z2 General] norti:
You can use the tutorial but for the kernel part you'll need to figure it out on your own (because obviously you can't flash the stock kernel during the process).
[Xperia Z2 General] connta:
thanks for a swift replay but i will try and pester you a lil more :D

i already used your tutorial and made .264 that has dual recovery + super su, working great, its installed right now

now i would like to:

1. unlock the bootloader

2. then in recovery uninstall dual recovery as per custom kernel guide

3. install custom kernel, with it it will install multirom recovery (essentially, again, twrp but compatible with kernel)

4. reboot to system (if all goes well i should be having custom kernel with its recovery and rooted system)

now the tricky part

5. i need to install DRM restore and as a final part of DRM restore i need to do dalvik/cache wipe and factory reset from recovery, will this then revert kernel changes to default since thats how i initially installed the package created by your tutorial or will my custom kernel be kept after factory reset?

hope its not too much bother, its actually a very simple question im just lacking experience in the matter
[Xperia Z2 General] tazoman:
Tried this method to root on Marshmallow doesn't work

I tried this method with marshmallow but it doesn't work.
[Xperia Z2 General] RedSkyRoad:
As well - how do I get back to flashmode? Vol-down + USB does not put my phone in flashmode.

I'm stuck in a bootloop
[Xperia Z2 General] ShinichiYao:
just try this~

http://180.175.153.12:8081/Z2/Z2.gif

http://180.175.153.12:8081/Z2/Z2_RecRootV2.zip
[Xperia Z2 General] mosesthella:
Hi, may I know why you did not add a recovery?
[Xperia Z2 General] ShinichiYao:
recovery is already included in the Z2_RecRootV2.zip
[Xperia Z2 General] Parul.Prabhat:
I tried your prerooted method but ended up with bootloop. although I was using RecRoot v2 with busybox fix. still got random restarts every 2 mins or so. i guess its not such a good idea to have foldermount (i used on 5.1.1). Are you still rooted with recovery and no random restart/bootloop issues? if yes then please give a detailed instruction. as of now i have restored 5.1.1 nandroid backup that i made :angel::cowboy: otherwise my phone was semi bricked :eek::rolleyes:

---------- Post added at 02:41 PM ---------- Previous post was at 02:40 PM ----------

also, did you wipe all your data from 5.1.1? :confused:
[Xperia Z2 General] ShinichiYao:
Everything is exactly the same as the 1st floor except the way making prerooted zip, and no need to wipe anything.
[Xperia Z2 General] Parul.Prabhat:
1st floor?? Did you flash partly with PRF zip and then with flashtool?

---------- Post added at 03:26 PM ---------- Previous post was at 03:10 PM ----------

Norti, please guide me how to get root+recovery on 6.0.1 pls help!!! My device is D6502 5.1.1 rooted with recovery. 5.1.1 was rootable but 6.0.1 is not. Please please help !!!
[Xperia Z2 General] norti:
As I read, MM needs other fixes to have proper root, but as of now I don't have the Z2 anymore, so I can't test and correct the first post, sorry.

Look for a thread with proper rooting on MM and you'll find the needed zips to flash after updating.
[Xperia Z2 General] ShinichiYao:
Yes! As now there is RecRoot V3 for you to try.

http://180.175.153.12:8081/Z2/Z2_RecRootV3.gif

http://180.175.153.12:8081/Z2/BETA-SuperSU-v2.71-SystemMode.zip

http://180.175.153.12:8081/Z2/Z2_RecRootV3_combined.zip

You may flash this last in case.

http://180.175.153.12:8081/Z2/z2TWRP3020.zip
[Xperia Z2 General] mannte:
Confirmed update to android 6 with RecRootV3. Recovery and Root survived the flash.
[Xperia Z2 General] saccet:
Did you keep all applications and settings? Or did you do a full wipe?

Did you come from 5.1.1?
[Xperia Z2 General] mannte:
I didn't do a full wipe. I lost the apps that were on my sd card but that was probably because my sd card was corrupted and I repaired it with Windows. I kept the other apps and setting. I updated from 5.1.1 with dual recovery
[Xperia Z2 General] ShinichiYao:
This will keep everything including root, settings, sms, app data, user data, just like official update.

The most important thing is DO NOT reboot after flash prezip file, just power off and use Flashtool to flash ftf again, exclude PARTITION and SYSTEM.

If you use xposed framework, uninstall it before update. You can reinstall it after everything done.

RecRootV3 already has SuperSU inside. So you can put a dummy file in SuperSU position instead.

http://180.175.153.12:8081/Z2/dummy_flashable.zip
[Xperia Z2 General] kinsah:
I would like to thank you ShinichiYao for the modded SuperSU and RecRoot. I've installed with these files the D6543 23.5.A.0.570 update, keeping root and recovery on Marshmallow 6.0.1. :good:

I did a little guide in brazilian thread with your source and quote, because there no dev or user posted something as here. (link)
[Xperia Z2 General] kinsah:
Dear ShinichiYao, can I use this method for the new 23.5.A.0.575 version?
[Xperia Z2 General] ShinichiYao:
Yes, I've already updated a week ago.
[Xperia Z2 General] norti:
What FTF are you trying to flash exactly? Did you by chance unlocked your bootloader? Did you try to remove and install the drivers again for your phone?

I also use the latest version without problems. If the problem persists please report it to the Flashtool thread.
[Xperia Z2 General] norti:
Did this work?
[Xperia Z2 General] RedSkyRoad:
I've tried the Customized DE and AU builds. All my drivers are installed. My own carrier's FTF flashes without a problem. I thing it's the FTF creation that is broken...
[Xperia Z2 General] norti:
I don't understand one thing: you wrote in another thread that you updated via OTA to the latest firmware, why don't you use then your carrier's ftf as a base, why bother with other regions? Basically they are all the same but you could run into errors when flashing baseband files...
[Xperia Z2 General] norti:
OK, tried again, but this time I'm running into mount errors too with the installer... I'll create a modded recovery zip then and update the first post until [MENTION=4904057][NUT][/MENTION] fixes it.

UPDATE: I've updated the first post, please download the patched recovery from 3.3 and flash it through recovery. That should fix system R/W mount.
[Xperia Z2 General] Ningyou Higeki:
I just found a flashable .zip file that can fix the system mounting problem in a Chinese forum, and I decided to upload it. Seems no need anymore...:highfive:
[Xperia Z2 General] lee480:
I also created a zip to fix it:

http://xdaforums.com/xperia-z2/general/fix-fix-unmountable-t2933825
[Xperia Z2 General] Ningyou Higeki:
New problems here, I can't import or save Contacts...
[Xperia Z2 General] kirpeace:
It is working for me.
[Xperia Z2 General] nomaj:
Yes... rooted and installed recovery on PC.

But also edited recovery script... and flashed after update.
[Xperia Z2 General] freddykruger67:
Perfect work

Szia, köszönöm a tökéletes munkád, újra büszke vagyok hogy MAGYARNAK születtem !!! :) Gábor
[Xperia Z2 General] ravdo:
Can anyone confirm that PS4 remote play works on Rooted phone or not?

I want to try this method, but I need to make sure first.

Thanks :D
[Xperia Z2 General] norti:
Please use english and delete the full quote, no need for it ;) Thanks!
[Xperia Z2 General] norti:
I don't have a PS controller, but the option is there and you can pair the phone with it, so it must be functioning.
[Xperia Z2 General] Ningyou Higeki:
Help! Although I have root and system R/W now, there's something wrong with my Contacts now. I can't import contacts from SIM or internal SD card, or add a new number. What should I do now?
[Xperia Z2 General] norti:
That's not related to this topic or process. Did you make a backup of your contacts before the upgrade? If so than look for the vcf file created on your internal or external SD card, if it is still there and not corrupt.
[Xperia Z2 General] Ningyou Higeki:
Yes, I made a backup and I can find it. When I tap "Import", it says Contacts imported after the process but none is in my phone.

---------- Post added at 08:11 PM ---------- Previous post was at 07:25 PM ----------

OK, I gave up and wiped data. Things go right now. Another one hour to restore my data...
[Xperia Z2 General] quim-net:
perfect, smooth, quick, simple ...

hi

perfect, smooth, quick, simple (for beginners) no problems, a very simple way to make the upgrade to 4.4.4 I he had 4.4.2 and I have not lost my data and files from the device.

PD: root works well

thank you very much :good:
[Xperia Z2 General] RedSkyRoad:
Hi,

The OTA does not install if there is a custom recovery. It just hangs. Thus, I deeded a 167 FTF. I finally got it working thanks. My Java was outdated and caused the FTF creation to fail. After updating java, my FTF creation included ALL the files and I could run your full process.

I just flashed your patched recovery. Should this recovery also be used to create the ZIP?
[Xperia Z2 General] norti:
Good to hear that! Yes, you should use the patched recovery for creating pre-rooted updates.
[Xperia Z2 General] kokesh:
Isn't it somehow possible to add su directly to .167 FTF and change permissions accordingly? I guess you would need Sony's keys to do that. Or does Flastool support flashing unsigned files?
[Xperia Z2 General] abasba:
i cant mount /system partition.What can i do.Xposed cant work without /system R/w perm.Waiting help
[Xperia Z2 General] RedSkyRoad:
About the recovery... I know that the monxDIFIED rom flashes TWRP 2.8. Is there a chance you can maybe include that in the recovery instead of TWRP 2.7?

---------- Post added at 06:15 PM ---------- Previous post was at 06:10 PM ----------

Flash the patched ZIP in step 3.3
[Xperia Z2 General] ravdo:
I can confirm PS4 Remote Play doesn't work because of SuperSU lol

But if you remove the SuperSU, it works >_<

This rooting method works great, though :D

Edit: It looks like the apps that already given root permission with SuperSU are still working fine even though I've removed the SuperSU. And the Remote Play also works great.

So for now I'm gonna use this setup, and I'll just re-flash SuperSU through recovery when I need it, lol
[Xperia Z2 General] freddykruger67:
so sorry

I did not can properly that this a big problem of this size does not turn more !
[Xperia Z2 General] vijayjeeva:
Hi

Can i use the same procedure to root .314 stock rom ?

Thanks in advance

vijay
[Xperia Z2 General] DelacroixEX:
How do i download that patched flashable zip? Im on android chrome browser. It keep opening up a preview of what inside the zip. Sorry for the very2 noob question.
[Xperia Z2 General] tchalee:
Have you tried with a xposed modul (dont remeber the name exactly, root something...), you can hide root for any application.

Maybe that work.

Sorry for me english and thanks for this tutorial [emoji106]

Edit: The name is "Rootcloak", test it next time you have too install supersu :)
[Xperia Z2 General] ravdo:
Not yet.

I did try the cydia one from playstore, and it didn't work. Maybe I did something wrong, lol

For now, I'll just remove the SuperSU, because all my apps which need root are still working (even after reboot) :)
[Xperia Z2 General] norti:
There are several easier root methods to root that firmware, you can find them in the FTF thread.

Turn on desktop mode in Android's Chrome, then you can download it. The mobile page version of Drive is something that I don't understand why exists.
[Xperia Z2 General] DelacroixEX:
Tried several times using chrome but never get it. Lastly using dolphin then okay.

Thanx btw

Sorry for my broken english
[Xperia Z2 General] funky0308:
[MENTION=838895]norti[/MENTION]

Could you, or anyone else post a screenshoot of flashable.zip tree?

I would like to compare your results with mine.

Only META folder in zip, is that OK?

I see I have system as an image in folder but just wanted to be sure before I tried it...
[Xperia Z2 General] norti:
That's correct: only META-INF folder + system.ext4 + SuperSU.zip + dualrecovery.zip and one busybox binary should be in the flashable.zip (if you didn't include kernel and other stuff in PRFCreator).
[Xperia Z2 General] tazoman:
Worked for me!

Just rooted it on the latest .167 with the steps here. But .167 isnt that good... it's a bit smoother but i hate the new homescreen.
[Xperia Z2 General] alinghi100:
I do not have "TA" when trying to exclude in flashtool... is it normal? I read that if this box is not present it's like it is excluded right? I flashed like this and my x reality still works so it's all ok right?
[Xperia Z2 General] norti:
It means, that the FTF doesn't have the .ta files (nobody needs them anyway).
[Xperia Z2 General] rohorubo:
Just did all the steps. It seems to work. Can change DPI, Titanium is working. The only thing I have is: mobile data always deactivates after 2-3 seconds although I do have the rigt APNs in settings. Any idea?

edit: of course I took the FTF for Switzerland ;)

edit2: I did a clean install (point 11 I selected all three options to wipe). After that, I do have mobile data working, also root is working ;) titanium backup is just restoring ;)

So big, big thanks [MENTION=838895]norti[/MENTION] ;)
[Xperia Z2 General] bdithug:
Not sure how the OP feels about this, but when I get a chance, I'm going to use this method to create a flashable pre-rooted zip of the North American region firmware. I'll see if I can find a free site to host it and will post a link in this thread or create a new one. If everyone does that, there should be a collection of pre-rooted flashable zips for each region which might cut down on some of the duplicate posts / threads.
[Xperia Z2 General] norti:
You can create that and put it in this topic, but I can't/won't make another thread with the packages, because there is already one maintained with the stock FTFs. I wrote this tutorial to be able to use those to get the pre-rooted update packages from any of the stock FTFs. I don't think it's necessary to upload separate GB files if you can do it yourself in just a few easy steps :)

Of course you can create pre-rooted update packages for linux/mac users, who can't make benefit of the PRFCreator (or don't want to use [NUT]'s Linux VM/script) :) Feel free to make a new collection in a thread or add them here in one post, that, I can link in the OP too ;)
[Xperia Z2 General] bdithug:
Yea that's true, very good point about having multiple GB files.

---------- Post added at 11:29 AM ---------- Previous post was at 11:04 AM ----------

Just downloaded v5 of PRF Creator, and Norton picked up a Virus
[Xperia Z2 General] VaLee:
Worked perfectly, NC and rw-system all good, can't find any issues so far. Thanks!
[Xperia Z2 General] ghostofcain:
[/COLOR]

Then use a different launcher, Android is all about freedom, don't like the home screen then change it.
[Xperia Z2 General] chesterr:
Well I know this is for Z2 but tried the same method on my Z2 Tab but didn't work and then I tried lee480's patch and the nut's remount fix didn't seem to work for me.

Edit: No wonder it didn't work that you have patched the recovery file huh.
[Xperia Z2 General] JJD809:
Worked like a charm for me.
[Xperia Z2 General] bdithug:
Nobody's antivirus detected a virus in PRFCreator v0.5? Norton keeps deleting the exe file automatically as soon as I unzip it.
[Xperia Z2 General] VaLee:
https://www.virustotal.com/en/file/b77c3c97092fbe83adb936e94a75149ac72e72a1d440d7bdd6c0201580b1e131/analysis/1415654946/

It's clean.
[Xperia Z2 General] bdithug:
Weird that only Norton was picking it up.. I didn't even know about virustotal, thanks!
[Xperia Z2 General] kirpeace:
How does NC feature enabled? Only with NC head phones only as I don't have any head phone to test
[Xperia Z2 General] illphone:
Hi,

I have created an update German prerooted flashable zip from "Germany - unbranded - 1281-4640" in this post following this guide. Runs perfectly, thanks for the instructions!

You can download it from Mega here:

https://mega.co.nz/#!Go4GjQjT!ld71SKDzIChV417i5L-5wRwx9oMga28zvlC1OrWePu4
[Xperia Z2 General] online22naveen:
perfect

thank you, its working perfectly :good:
[Xperia Z2 General] chesterr:
I just tried it on my phone I still got the remount issue. and I tried the remountfix zip and lee's zip file, yet I got the issue.

Couldn't think where exactly It went wrong.
[Xperia Z2 General] norti:
Please provide phone model, firmware version, customization number.
[Xperia Z2 General] chesterr:
d6503 hk_1281-5473_23.0.1.a.0.167

another thing that I found out that remount fix breaks root.
[Xperia Z2 General] Advali:
I'm just curious. Is it safe to skip step 11 and flash everything in TWRP (with all options checked in PRFcreator)? Will it have any mounting issues?

Thanks in advance.
[Xperia Z2 General] norti:
That's safe too, I just like to do it clean with flashtool: flashmode seems to be safer than recovery for baseband and boot, etc. flashing. It isn't related to the system R/W mount process, only the RIC is.
[Xperia Z2 General] norti:
It can't break root, but you can flash the supersu.zip in the recovery again if you run into problems with root access.

Try to make a clean update with wiping data during the process (make a BACKUP - with Titanium Backup or TWRP - before!).
[Xperia Z2 General] chesterr:
My steps were,

1.created zip with PRFC excluding all those kernel etc,

2.backed up everything using TB and TWRP

3.copied the zip file to external srtorage,

4.boot in to revovery and wiped everything to istall the flash and then installed the flash, wiped cache and dalvik,

5.power down

6.excluded partition, TA and system, and i checked that no final verification just like you instructed.

7.bootedup phone and set up the phone and let TA to update,

8.signed into google account and downloaded root explorer and checked mount and it's not there.

9.then I rebooted to TWRP again flashed lee's zip and rebooted but still it's not working.

10.then rebooted to recovery and flashed nut's remount fix zip and rebooted but it broke my root saying the device is not rooted but then I flashed the SU.zip but it didn't work for me.

:rolleyes::confused:
[Xperia Z2 General] ravdo:
Did you use the patched XZDualRecovery for the flashable.zip in PRFC?
[Xperia Z2 General] V4LKyR:
I've successfully built my own ROM with this guide. My phone's customization number is 1281-4640, which is Customized DE. (German) But I was using niaboc79's pre-rooted ROM, because I wanted root on 4.4.4. It's based on a generic RU FTF, so NC wasn't working on it.

And then I found this guide and created a pre-rooted ROM with my own stock FTF with 1281-4640 customization number. Flashed it and everything is great. It's just a 4.4.4 rom with root, no problems at all, working fine. NC is working now too. So I guess some features of phone are based on customization number stuff.
[Xperia Z2 General] bjbe70:
Thanks! Can I start from step 8 with it?