yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 General] Siudzix:
I used Flashtool to unlock bootloader and flash firmware. Then ADB to flash kernel, rest was copied to my device and flashed by TWRP.

I have problems with Camera App and Album - but i'm working about it. Album is working now - I used this link http://xdaforums.com/showpost.php?p=64854923&postcount=23. Now i have to install Java 7 to get this program working and deodex Camera App.
[Xperia Z5 General] alphatact1cs:
You've installed XPOSED. After that you have to follow this guide: http://xdaforums.com/crossdevice-dev/sony/z4-z5-z5c-fix-camera-fc-installing-t3246962

Somebody posted the CameraCommon.apk already, so you dont need to deodex it yourself. You'll have to search a little bit.
[Xperia Z5 General] Siudzix:
Yes, I thought that you can not use apk from another firmware (mine is .152, they have .200) but it's working. So... good work :)

Um, because of that my firmware wasn't flashed. So i unlocked bootloader, and did everything besides(?) flashing ROM. It's normal ?

Edit 2 :

OK, uninstalled Flashtool with deleting files from C:/Users/xxx/.FlashTool then downloaded 0.9.19.8 and patched it to 0.9.19.10. Flashtool started normally and I sucessful flashed ROM and kernel. It's working :)
[Xperia Z5 General] alphatact1cs:
You only change Kernel and Recovery, the ROM is already on your device. If you want a CostumROM, you can easily flash it through TWRP.
[Xperia Z5 General] 123Yamaha123:
How you patched flashtool to 0.9.19.10? I Just starter with my z5c.
[Xperia Z5 General] alphatact1cs:
1) Open root directory of Flashtool.

2) there you will find a file: x10flasher.jar

3) delete this file and replace it with the new patch file from Flashtool website

Patch file / instant download: http://www.flashtool.net/patch/windows/x10flasher.jar
[Xperia Z5 General] kuzibri:
Hi my dear friend,

have a look here: http://xdaforums.com/showpost.php?p=65165059&postcount=8

kindest regards, kuzibri
[Xperia Z5 General] zacharias.maladroit:
Great guide !

Works as advertised :D

[MENTION=6761463]alphatact1cs[/MENTION]

Please add that after unlocking the bootloader & with the firmware

it takes quite a few minutes until it's finished with an Android + Animation (backing up DRM keys ?) when the firmware version 200 was on the phone

I nearly got into a panic since I wasn't sure if the phone wasn't bricked after all :cowboy:

Also recovery.img doesn't work with the custom ROM (the Aroma Installer just quickly finishes without doing anything),

you really need AndroPlus' twrp for the installation to work.

And booting into recovery (for the first time ?) via the volume button leads to a bootloop,

but that's not a problem since you can boot into recovery for the first time (in fact it's a pre-requisite according to [MENTION=2458514]bazhip[/MENTION] to work),

so I did a

fastboot boot twrp-2.8.7.0-E6653-20151130_material.img

In order for TWRP & the ROM installation the AndroPlus kernel with SELinux permission might be needed (enforce appears to cause trouble in that case)

The partition mounting doesn't work that smoothly in TWRP but selecting the external SD card appears to mount it automatically,

at least System + Data + Cache partitions have to be mounted (manually !) for the installation to succeed,

Aroma Installer doesn't seem to automatically mount it.
[Xperia Z5 General] alphatact1cs:
Thanks [MENTION=3037651]zacharias.maladroit[/MENTION] :)

1) Yeah thats true :D I will add it. I want to rewrite my guide anyway, its very hard because there is so much information.

2) I havent tried Aroma yet, because I sent my device to Sony (they didnt repair it, because of warrenty ... blablabla). I will add it later.

3) I had no problems with AndroPlusKernel and TWRP. I tried [MENTION=2458514]bazhip[/MENTION] kernel before, and I had serious problems with this kernel.

4) Again, TWRP works fine with AndroPlusKernel and StockROM for me. I will try Aroma, but I have to get my Z5 back.
[Xperia Z5 General] zacharias.maladroit:
Thanks to you, you helped a great deal to make things clear,

it was pretty confusing to collect all this data on my own,

luckily I found this guide yesterday which cleared several points up :cowboy:

Following [MENTION=2458514]bazhip[/MENTION] 's advice was spot on: booting the recovery via

fastboot boot

, afterwards booting into recovery/TWRP via button works flawlessly now.

Yes, now it works, another ROM beside Stock isn't really necessary if you're fine with that
[Xperia Z5 General] bhumi281:
E6683

Thank you so much for this guide! Was waiting for the "not tested" warning to go before i tried the root. Works well. Confused me a lot since its my first Sony (Samsung's rooting used to be a lot easier). Anyway Thank you sooo much!!! :) :)

To anyone else who will be rooting, make sure you backup your data first. It erases everything :crying:

Also, i couldn't enter into recovery using the buttons . Had to use commands via adb.
[Xperia Z5 General] ChristianLetti:
Hello guys,

Since the DM-Verify and Sony's security has beaten the Locked bootloader root, I'm willing to unlock it and restore DRM and stuff...

Does anyone know about any possible trouble with Marshmallow after doing this procedure?

Thanks :)
[Xperia Z5 General] alphatact1cs:
You will get no updates after unlocking your bootloader, so you have to download it manually. When Marshmallow is released, it will be downloadable in XperiFirm soon.
[Xperia Z5 General] Wasted1300RPEU:
is that a 100% sure? The bootloader will probably stay unlocked and root will be gone, if I update to MM right?
[Xperia Z5 General] alphatact1cs:
Bootloader

Bootloader stays unlocked, except you lock it again.

Updates

You will not get any OTA (OverTheAir) Updates after unlocking. That means you have to update your firmware manually.

Upgrade to Android 6.0

Download MM via XperiFirm and flash it with Flashtool, root it, reinstall everything.

OR

Wait for a MM Custom ROM that do this things for you.
[Xperia Z5 General] nreuge:
You mean:

Rename twrp-3.0.0-0-E6653-20160207.img to twrp.img and type:

fastboot flash recovery twrp.img

This thread should be sticked!
[Xperia Z5 General] alphatact1cs:
Yeah, thats what I meant. I will correct it :)
[Xperia Z5 General] drift devil:
I also uninstalled YouTube with the "system apps" uninstall app and then reinstalled from Playstore but didn't help.
[Xperia Z5 General] alphatact1cs:
I think XDA is a bit buggy at the moment, so I inserted some details.

AROMA ROM is not my job, sorry. I have it on my phone and there are some known bugs.

You can try to install OGYoutube (a better Youtube with download and background play).

1) Uninstall YouTube with root uninstaller

2) go into PlayStore, search YouTube app and disable AutoUpdate

3) download OGYoutube and XPOSED LoginFix (http://www.mediafire.com/download/pukng1a2h0nwho4/YouTube+v1.2.apk and http://ogmods.net/home/DownloadFile?Id=OGXposedA)

4) install both and enable XposedFix in XposedApp

5) enjoy, I hope this helps
[Xperia Z5 General] zacharias.maladroit:
after the first boot - do a reboot -> into recovery

otherwise the partitions won't be mounted correctly & flashing will run into trouble.

It takes several seconds (or a few minutes) to reboot into recovery - but then you're good to go

please add :)
[Xperia Z5 General] alphatact1cs:
Please check. Is that what you meant?

XDA isnt stable at the moment. I get ERROR 500 all the time.
[Xperia Z5 General] zacharias.maladroit:
Perfect, thanks ! :cool:

XDA works fine here, might be that the server is overloaded or some other issues (is XDA using round robin/load balancing with several physical or virtual servers ?)
[Xperia Z5 General] drift devil:
Thanks. I have done as you have suggested however a few things to advise. When i install the Xposed app, the open option is greyed out so im unable to enable Xposefix. Then when i try Youtube i get the normal error message however at the bottom of the phone i also get " It looks like your devices doesnt support all qualities.If you keep getting this message try to disable enable all qualities option" This option is already disabled by the way. Thanks
[Xperia Z5 General] alphatact1cs:
Okey...

What model? --> E6xxx

1) Did you installed Xposed simultaneously with AROMA?

2) You cant just install Xposed App, you need the zip AND apk file.
[Xperia Z5 General] drift devil:
Do you mean while im in recovery ? Install Aroma then Xposed zip and then youtube APK and then boot into OS?Thanks
[Xperia Z5 General] alphatact1cs:
1) When installing AROMA you are able to install XPOSED, arent you? You can install it afterwards, but its easier to install it while installing AROMA.

2) you will find the XposedApp in your AppDrawer

3) then install OGYoutube.apk and xposedfix.apk

4) enable xposedfix.apk in XposedApp
[Xperia Z5 General] luke2007:
wow thanks for that guide, big effort. it does thou leave me confused, wich is because me being a noob. i simply want to root the original rom (i dont want to install custom roms etc) my z5 and have all the camera features working (thats the important part for me). to get that do i need to do all those steps mentioned in this guide (like the aroma thing?)? Will all the cam functions work as if i never unlocked the bootloader?

thank you.
[Xperia Z5 General] alphatact1cs:
1) You cant root the Z5 without unlocking the bootloader.

2) When you unlock the bootloader all camera features will be lost.

3) You need to install a new kernel and a new recovery to install a fix which re-enables the camera features.

So yeah, all steps I mentioned. Some are "OPTIONAL", but then they are marked. Rooting the Z5 isnt easy :/

alphatact1cs
[Xperia Z5 General] DJBhardwaj:
For the noobs: http://www.droidorigin.com/install-twrp-root-xperia-z5/

thank [MENTION=6761463]alphatact1cs[/MENTION] for his awesome guide
[Xperia Z5 General] alphatact1cs:
Im sorry, but your guide will not work. You cant root the Z5 the way other phones might be rooted. There are some important steps missing (OEM unlock, enable USB debugging, drivers - ADB isnt enough, .....). You wrote "copy kernel to phone storage", but how? The Z5 will not boot after you installed costum recovery so you cant plug in your phone to the computer, you need to push the kernel via ADB. And so on.

I dont know what to say. I dont think my guide is the best, bu in yours there are some parts missing
[Xperia Z5 General] DJBhardwaj:
Will add the following ASAP. Thanks for pointing out. :cool:
[Xperia Z5 General] atlantisu21:
Ok, in short way:

1. Unlock bootloader

2. Install recovery

3. Instal super SU

Right?

I must flash new kernel or not? Is work fine with default?

And why XPOSED - not recommed ?
[Xperia Z5 General] alphatact1cs:
a)

2. recovery AND kernel

b)

- Kernel from AndroPlus works great

- you have to deodex your system if you install Xposed, otherwise Camera, Album and some other apps will not work.
[Xperia Z5 General] kishanbpatel:
hi I have a locked bootloader how can I unlock my bootloader I need to root my phone and flash tool does not allow me to do so can u please check it out I need it urgently thanks
[Xperia Z5 General] harrywarry:
Why doesn't flashtool work. What codes do you get..?

It is the easiest way to use flashtool
[Xperia Z5 General] alphatact1cs:
Follow my GUIDE from the beginning and then tell me:

1) Whats your bootloader status? Is unlock allowed?

2)Did you tried Minimal ADB instead of Flashtool?
[Xperia Z5 General] kishanbpatel:
I followed your guide my phone says bootloader unlock not allowed
[Xperia Z5 General] harrywarry:
In that case you have no luck.... As far as I know your bootloader can't be unlocked.
[Xperia Z5 General] alphatact1cs:
Thats right. In this case ROOT isnt possible on your Z5. Your provider probably blocked this option.
[Xperia Z5 General] Dreamvoxide:
HELP

Hi, I have one Sony Xperia Z5 E6683 (Dual Sim), Android 5.1.1, Kernel 3.10.49 and Build 32.0.A.6.152.

Is it confirmed to work on the Sony xperia z5 E6683? how does it work? What should I do to make...
[Xperia Z5 General] alphatact1cs:
It will work the same way, but you need a different kernel and recovery. The kernel for Z5 DUAL uses a different SIM card script.

KERNEL + RECOVERY: http://xdaforums.com/showpost.php?p=64940325&postcount=2

Use the one for DUAL support. It has a build-in recovery, so you can skip installing an additional recovery.

OR

ROMAur: http://xdaforums.com/z5-premium/development/ub-romaur-v1-0-xpz5p-170-fast-stable-t3259875

Ist something like a Costum ROM, but still a littlebit buggy. But first you need to install a kernel and recovery like the one above.
[Xperia Z5 General] Dreamvoxide:
Sorry, Can someone explain in simple steps what should I do to effetture the root? I am beginner.

And with Root can I to disable data roaming notification?

Thank´s
[Xperia Z5 General] 9006:
Credits to all those involved in the guides.

Unfortunately I have Bootloader unlock allowed: No so disappointingly I guess that means I'm out!
[Xperia Z5 General] monx®:
Try enabling OEM unlock in Developer options setting panel.
[Xperia Z5 General] 9006:
Unfortunately not, even after a restart.
[Xperia Z5 General] alphatact1cs:
You have to enable "allow OEM unlock" in developer options if bootloader unlock is already allowed, otherwise you cant unlock it. It does NOT allow unlock if the bootloader is locked.
[Xperia Z5 General] raunaldo7:
Z5 E6603

Hi Guys!!

Mi question is... This guide will work on the Xperia Z5 E6603 with Marshmallow 6.0? :confused:
[Xperia Z5 General] alphatact1cs:
You can try E6653 kernels on your own risk. It should work because there isnt a huge difference between E6603 and E6653. There isnt a kernel build for E6603 and MM at the moment, so youll have to decide for your own.

alphatact1cs
[Xperia Z5 General] Oneironautics:
Thank you alphatact1cs for a comprehensive guide. Much appreciated. I'm currently thinking I can't stand the z5 without root and xposed and I'm wondering of it's still necessary to deodex the rom for xposed to work since MM was released?
[Xperia Z5 General] alphatact1cs:
Ive tested it yesterday, no need to deodex system with MM.
[Xperia Z5 General] luongvancanh:
Hi all,

I use phone Z5-E6883, upgrade to 6.0

After unlock bootloader, I flash kernel " Z5_AndroPlusKernel_v20". However, reboot was loop.

Please help me: what is kernel is good for Z5-E6883?

Thanks
[Xperia Z5 General] alphatact1cs:
Yeah, its obvious that youre phone is stuck in a bootloop.

1) Youre phone is a Z5 Premium, not a normal Z5.

2) AndroPlusKernel is ONLY for E6653 (and E6603)

Anyway, maybe youll have luck here: http://xdaforums.com/z5-premium/development/kernel-aur-kernel-v1-2-4-t3336423 :)
[Xperia Z5 General] raunaldo7:
So... AndroPlusKernel works in a Z5 E6603 MM? :rolleyes:
[Xperia Z5 General] mead_182:
Worked like a charm!

I can confirm that this worked flawlessly on my Xperia Z5 (E6653) Running 32.1.A.1.163 (MM 6.0). Everything from BL unlock to installing Xposed.

Thank you [MENTION=6761463]alphatact1cs[/MENTION]!!! You’ve made one of the more ‘involved’ root procedures I’ve ever done into something rather tolerable. It would have been a lot more difficult if I had been jumping between guides and forums. :good::good:

For some reason I had to install the DRM fix regardless of using the latest “AndroPlusKernel” (Z5_AndroPlusKernel_Permissive_v20.zip). Which really wasn’t a big deal haha. After that all Z5 features were restored fine (XReality, etc.).

Also, if anyone else is having trouble entering Flash Mode on their Z5, it helped for me to change USB port (from 3.0 to 2.0 specifically). For some reason everything worked fine on USB 3 except for Flash Mode.

For those who are wondering, the following Xposed modules worked flawlessly for me:

-APM+ (Advanced Power Menu) (To make booting into different menus easier).

-Xperia/AOSP NavBar Buttons (To change the height of the NavBar, see screenshot :D)
[Xperia Z5 General] luongvancanh:
Kernel work for E6883 (kernel-aur)

Thanks, it work for E6883.
[Xperia Z5 General] alphatact1cs:
Thank you :)

1) I added that USB 2.0 ports are preferred to use (I had the same problems like you before).

2) In general, AndroPlusKernel_v20 comes with DRM Fix, but anyway, I added it in my guide.

3) I use the same Xposed Modules + OGXposed (for OGYoutube) and Flat Style Colored Bars. The NavBar on MM is a ""littlebit"" large. :D

btw, nice theme, which is it?
[Xperia Z5 General] mead_182:
Oh thanks! :D I never even heard of OGXposed! I just searched it now, and the moment I saw it's description I downloaded it immediately! Same as Flat Style Colored Bars haha! Thank you. You're the guy that never stops giving! :victory:

I'm using a combination of themes and launchers. I'll list them for you :)

-Nova Launcher (free) + It has a setting for Root users to disable the clock only on the "default home screen".

-XWidget (free) and downloaded the "Galaxy S7 Widget Concept 2".

-Materialistik ($1 something) Massive icon set that works with most launchers.

-Wallrox (free) for heaps of beautiful 'simplistic' style wallpapers.

aaaaaand yeah I think that was it...

Thanks again dude, my Z5 has been given a refreshing new life. It feels and behaves like a whole new phone.
[Xperia Z5 General] agentsandy007:
Unlocking Bootloader

i have this prob while starting flashtool.

plz help.

running win 10. minimal adb and fastboot recognize my device.

but flashtool seems to stuck at this place.

shud the adb debugging be on / off.
[Xperia Z5 General] harrywarry:
And what exactly is the problem? Did you wait till the end?
[Xperia Z5 General] gm007:
Try to launch flashtool in Windows 7 compatability mode.
[Xperia Z5 General] alphatact1cs:
That has nothing to do with your phone ore something else. Flashtool downloads new devices during the process. Disconnect your phone, try again and then connect your phone.

Question: Did you use the official version from this site: http://www.flashtool.net/downloads.php ? Did you installed the latest patch?
[Xperia Z5 General] agentsandy007:
I was just impatient. Had to wait a long time for flashtool to get its things done.

Anyways Running Aur Rom now.

Its quite fast and stable( for now)

Need to tweak some xposed apps.
[Xperia Z5 General] korom42:
noob question , I've download the new firmeware separtly via XperiaFirm , in which floder should I put now to start flashing ?

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

my Z5 is rebooting itself into system while I am on flash mode after 3-5 minutes , is this normal ?

I've successfully flashed the new firmware by applying a tuto of how create a ftf file
[Xperia Z5 General] alphatact1cs:
1) XperiFirm only downloads a folder with files in it. Flashtool with the included XperiFirm automaticly packs these files into a FTF file which can be flashed. Im sorry, but I dont know how to do it if you didnt use Flashtool for downloading.

2) This happen to me to sometimes. Try to reinstall the drivers correctly.
[Xperia Z5 General] BigCow234:
Hi,

I had an issue while trying this out last night. I followed the steps right up to flashing the kernel. After flashing the kernel, the phone won't boot. When I press the power button, the phone vibrates, but screen remains blank with no flashing light. I'm on 5.1.1, unlocked bootloader, and I used Z5_AndroPlusKernel_Permissive_v20. The phone can still charge when I plug it into the charger, and vibrates when I press the power button so I'm guessing it's not entirely bricked.

I can still get the phone into fastboot. I tried reflashing the kernel several times but doesn't seem to work. Can anyone suggest to me what to do next?
[Xperia Z5 General] gm007:
Flash a kernel compatible with 5.1.1 cause i think the kernel u flashed is for MM.
[Xperia Z5 General] bplogan:
for some reason I am unable to mount anything either on the int sdcard or the ext sdcard.

I have unlocked the BL, installed the kernel suggested at the top of this thread and am using twrp 3.0.0.-0

Everything looks okay but there is nothing mounted in twrp when i try to mount it just very quickly vibrates then nothing, no boxes get ticked. If i fiddle around with the settings, i can eventually mount the extsdcard, but obviously i can't dump a rom onto the phone.

any thoughts?
[Xperia Z5 General] alphatact1cs:
Okey, I will try to fix it with you.

Your model is a Z5 E6653?

1) Use AndroPlusKernel_v14. AndroPlus said that that v20 is compatible with LL and MM. Anyway, try v14 for now.

2) If this doesnt work reflash ROM with Flashtool and WIPE everything (you can choose that in the right column).

3) Try again. Yes, its not that easy. I have also some problems when I try new kernels for compatibility checks.
[Xperia Z5 General] alphatact1cs:
I need some information:

Model:

OS version:

Kernel:
[Xperia Z5 General] bplogan:
thanks for the reply, i just managed to figure it out.
[Xperia Z5 General] alphatact1cs:
Okey, but it would be intresting how.
[Xperia Z5 General] bplogan:
like always i had spent too long late at night and was no longer thinking properly...

I had a MM firmware, i just came from stock, so i think i had a mismatch kernel
[Xperia Z5 General] BigCow234:
Yup, my model is Z5 E6653. I flashed AndroPlusKernel_v12 and everything worked again. Followed through the rest of your instructions, short of restoring DRM keys as I do not have a clean SD card. Will it work if I use internal storage?

Another question, is it possible for me to encrypt my phone and SD card? Will this cause any problems?

Sorry for the questions, I'm new around here...
[Xperia Z5 General] alphatact1cs:
You can copy DRM.zip where ever you want. It doesnt matter if its an internal or external storage. But keep in mind, if you flash OS again via Flashtool the zip's will be lost.

But in general you dont need a clean SD card, sometimes I use the ones from my GoPro.

I've never done that and I´m not able to try this at the moment. Sorry :(

alphatact1cs
[Xperia Z5 General] harringtonmarlow:
twrp no OS installed

Hey Guys,

I have used the XDA forums for all my rooting needs over the last 5 years but seem to have hit a wall rooting my new Z5 E6653 via the above posted method.

Unlocked the bootloader fine, flashed kernel and recovery etc, but when I am attempting to install SuperSU, this is where I am stuck.

TWRP recorvery is stating that I have no OS installed. It seems no matter what I do has no persistent effect and I am unable to access the internal memory to install the SuperSU zip.

I am able to mount the external SD, and when attempting to install I get a bunch of red missing directories listed [I assume the internal structure], then SuperSU states install completed but no root.

Has anyone run into twrp doing this?

This process was indeed more complicated than rooting my previous Z1, but confident in the results.

Alas, I am caught here, any help would be greatly appreciated.

Thanks in advance guys

Edit: Android Version 5.1.1
[Xperia Z5 General] alphatact1cs:
Hello :)

I need some information:

phone model (E6653, E88xx, ...)?

Kernel version (AndroPlus_v10, Monx_v1e,...)?

TWRP version?

Have you done a fresh installation of Android with Flashtool?

The problems you have are the ones from the beginning were TWRP was buggy on the Z5. But it has been fixed a long time ago.
[Xperia Z5 General] rajdeep312:
How to manually install xposed on e6683 dual marshmallow because i cant boot to twrp
[Xperia Z5 General] axlmet:
Question

Hi guys.. i have a z5 e6603. will this method work on it? Thanks
[Xperia Z5 General] harringtonmarlow:
Hi mate,

Model: E6653

Kernel: Z5 1sim from front page. --Androv21 gave black screen on boot.

TWRP: Front page version 3.0.0 E6653

Fresh install: No, I don't believe so. Attempted root on brand new, out of box Z5. Skipped the two optional ROM flash options. (this may be my area of problem)

The files used were supplied on front page.

Thanks mate, let me know if more details required. Appreciate the time.