[Xperia Z3 General] arikdahn:
UPDATE: I believe I have done it! I think SuperSU is ever so slightly ahead of Kingroot. Also this is a fitting last post. I break this down pretty well so that anybody could do it. How I wish I could have just gone to the last page of this thread and had a step-by-step.

This applies to T-Mobile's likely-final software release for the Xperia Z3 android 5.0.2 on build 23.1.C.0.399 and probably others so follow at your own risk if you deviate.

What I did:

1) Rooted via Kingroot app on Google Play. Run rootchecker after it's done its business to make sure. DO NOTHING ELSE IN THE APP. Doing so may prevent SuperSU from kicking its ass later.

2) Downloaded and upacked to desktop the file for Xperia Z3 from here:

http://nut.xperia-files.com/path/XZDualRecovery/XZDualRecovery_2.8.26

Z3-lockeddualrecovery2.8.26.-RELEASE.combined.zip

3) Disabled antivirus

4) Installed USB drivers via Windows 7 plug-n-play. Unplug phone.

5) Downloaded SuperSU recovery flashable zip from here:

http://www.supersu.com/download#zip

6) Ran install.bat from extracted ZXDualRecovery zip

7) Enabled developer options in phone, enabled USB debugging, revoked USB devices, rebooted phone, plug in phone.

8) Connect Phone, wait for device to register in windows.

9) Okayed communication from PC.

10) Place in USB Install Mode on phone.

11) Choose option 2 to install to device rooted by SuperUser. Kingroot has blocked option 1 (old method)

12) Enter TWRP (Automatic) and go to Backup, check all boxes, create Nandroid by sliding the slider

13) Reboot, ensure phone boots. Put SuperSU.zip on the external flash drive. Go to your new App: NDR Utils. Choose TWRP as Primary Recovery. Choose Reboot to Primary recovery

14) Flash zip for SuperSU. DO NOTHING ELSE. Do not wipe cache, do not fix permissions. Click REBOOT.

15) Launch SuperSU App. Attempt to update Binaries. It will not, but it will detect Kingroot, and somehow can get rid of it itself using onboard capabilities. It will do so and update binaries.

16) Reboot (Automatic via SuperSU)

17) Check to make sure SuperSU binaries installed by launching the app.

18) Reboot to recovery using the steps from step 13) above.

19) Create another backup using step 12) above

20) Reboot and DONE.

To the best of my knowledge, nobody has indicated how to do this in a clear Step-By-Step for the final build of this ROM. So because I've troubled you all for small chunks of the process I figured I would.

DISCLAIMER TO ANYONE ATTEMPTING THIS: It appears Kingroot is "onto" what it is being used for. Given the behavior of this application, there is no reason for anyone to believe it is not a malicious program, but it is a necessary evil for this purpose. Newer versions of SuperSU are capable of removing Kingroot on their own, but alternative methods may be necessary. I attempted an earlier version of SuperSU and it was incapable of removing Kingroot.

It might remove via debloater. This is the only way to remove the system apps on this phone reliably, so you WILL need it if you intend to keep the bootloader locked. I couldn't get any root-enabled appstore app to do it including ES File explorer and Titanium Backup. It looks like you need a computer to remove system apps on this phone. Fantastic. Debloater works great though so don't be afraid to use it. Use the filter to search for Apps. You can remove them, but they will not be gone until you reboot your device. Hooray no more filecommander and lookout! Debloater can be found here:

https://xdaforums.com/android/software/debloater-remove-carrier-bloat-t2998294

Plug in your phone. Give it root access. Easy peezy.

Then Xposed current framework and installer:

https://xdaforums.com/showthread.php?t=3034811

Version 3.1.1 fixed the bootloop problem, so you shouldn't need the fix zip, or at least I didn't. But if you do, you can find it here:

https://dottech.org/187028/how-to-fix-xposed-boot-loop-issues-on-sony-xperia-z5-z4-z3-tip/

Flash the framework for your device in recovery (arm) and then the installer APK from the ROM using a file browser.

FINALLY Youtube Adblock and minimized playback. SCORE!

Xposed modules worth using you can find by searching in the Xposed store:

Blurred System UI (LP)

Gravity Box [LP]

RootCloak

Xperia/AOSP NavBar Buttons

Xperia Super Radio

YouTube AdAway

YouTube Background Playback

And of course DNS66 (Google PlayStore)

For device-wide adblocking I use DNS66 since there are no proxy settings for adblocking on this device, unless I'm missing something. I really hope I am. This means there's no native adblocking.

I have tinkered with the rest of the available xposed modules and find them of no value. Most have transitioned to doing almost nothing productive unless you pay anyway.

Do not forget to donate to the contributors of the things you used to get from point A to rooted. Remember, accepting donations is always appreciated over charging for intellectual property!