[Sony Xperia XZ ROMs, Kernels, Recoveries, & Other ] __Andrew_:
Xperia XZ Dual Sim (F8332) Active and working

To stop others from asking over and over again, this ROM is WORKING on Sony F8332/Dual Sim variant XZ.

Note for beginners, unlocking your bootloader will nullify your DRM keys (keys essential for X-reality, image enhancement, etc). Hence, it is advisable to do a full backup should anything go wrong and you want to go back. However, the DRM key patch here will fix it. Also, flashing the patch will automatically give you access to root settings. Yes, you are now ROOTED. And again, it WORKS. After testing this ROM, I can honestly say I am really impressed and that this is definitely an improvement on the stock OREO. Below are some of the notes I've taken after testing it on my F8332. The following fixes may or may not work for F8331 but personally, I don't see any harm on trying. Worst case scenario is a soft brick phone on bootloop - and that's fixable. But please, proceed with full caution and with full liability shall anything go wrong.

- Battery is improved from stock. It loses 1% for every 3 hours of Standby with all the notifications still coming through and wifi turned on. I improved it by using ForceDoze. Now, I only lose 1% for every 7 hours with wifi automatically turned off and notifications (calls, SMS, FB Messenger only) going in via mobile data.

- You can update to the latest version of the Magisk app(again, just the app. Not the zip file) but I found out that flashing the 15.3 zip file will negate the DRM fix for X-reality and other functions. If you happen to install the zip file, just start over from Recovery and that should fix it.

- Follow the exact procedures listed by OP. After reboot, immediately check if X-reality and camera are properly working. If not, reboot to Recovery to access TWRP. Wipe Dalvik and internal cache. Flash the DRM fix then reboot. This alone should fix it.

- If you are on a bootloop (softbrick), hold down the Volume up and power button. This will force reboot the phone. Once it does, turn it off and access the recovery menu in TWRP. Wipe data, Dalvik, and internal cache then start over. If for any reason this doesn't work on you, hold down the Volume up and power button until it kicks you out of the bootloop.

- If TWRP is asking for a password, tap cancel then go to Wipe settings and format the data. Needless to say, this will wipe everything so it's advisable to save the zip files in an SD card. This fix will also work if you can't wipe your cache and data. The reason behind this is because you flashed a TWRP that is not compatible with your firmware version (Sony is very meticulous in the wrong ways) or you have a kernel that isn't either.

Question to OP or any higher devs:

- I'm getting a persistent notification to update my system to 41.3.A.2.58 but that is the stock version I started with. I can fix the notification myself but I'm just wondering if updating the device via OTA will negate the patches (I'm assuming a new set of patches have to be flashed). I was under the impression that once the device is rooted, it normally doesn't receive any OTA's anymore and should be updated via manual flashing. Should I go with OTA or manual flash?

Again, great job OP! :good: