[Xperia Z3 Compact General] fluffi444:
[GUIDE][Z3C] Back to LB & stock kernel & full stock DRM support (TA Backup needed !)

This is for Z3 compact and LP FW 23.4.A.1.264 with stock (or stock based) FW installed and UB and DRM fix installed! - NO custom ROM (CM/AOSP/etc) support !!!

This is for those who used DRM fix (http://xdaforums.com/crossdevice-dev/sony/xperia-z1-z2-z3-series-devices-drm-t2930672) and want to go back to stock kernel and locked bootloader to get full stock DRM functionallity back!

This will bring back full stock DRM support, without loosing any data or system files. No Wipe or full stock FW flashing needed!

For sure your TA Backup is mandatory! If you do not have a TA Backup - This is not for you!

Actually I don't know if this will work also on Z2 and Z3 - Logically yes - But NOT tested by me!

Tested only with 23.4.A.1.264 (SLiM 4.9), AndroPlusKernel V72 with (old) DRM Restoration V2. But V3 should work also.

Fell free to test and report for Z2 and Z3 as well as DRM Restoration V3.

I guess most of you (who are thinking about to use this) are on LP and UB with AndroPlusKernel or AdvancedStockKernel...

Maybe because of starting new and full stock with MM :)

Whats needed:

- Root and working recovery - USB Debugging on / Unknown Sources on (as usual...)

- FlashTool (http://www.flashtool.net)

- NUT's XZDualRecovery flashable (http://nut.xperia-files.com/path/XZDualRecovery)

- Stock TFT LP FW for your device (http://xdaforums.com/showpost.php?p=66275951&postcount=2028)

- Your TA Backup made with Backup TA v9.11 (http://xdaforums.com/showthread.php?t=2292598)

- DRM_Function_Restoration_Z3C_Lolipop_V2_RestoreStock.zip (see attachments)

Here we go...

00.) Make a Full Nandroid Backup (for security reason!)

01.) Put Zxx-lockeddualrecovery2.8.26-RELEASE.combined.zip and DRM_Function_Restoration_Z3C_Lolipop_V2_RestoreStock.zip to external SD Card

02.) Boot to recovery and flash XZDualRecovery (If you are already on XZDR you do not need this)

03.) Do not reboot - But Power Off your phone!

04.) Open FlashTool and choose Flash Device (flash symbol) and Flashmode

05.) Setup as shown an the picture (NO wipe / Exclude everything but not BOOT_DELIVERY / FOTAKERNEL / KERNEL) / MiscTA exclude both)

06.) Klick Flash and follow the instruction of FlashTool (Push and hold vol down and plug USB) - Klick on NO if FSC script pop-up comes up!

07.) Start your Phone (first boot goes to recovery - just do another reboot to system) and let it boot completely.

08.) Plug USB to phone and Restore TA with Backup TA v9.11 (Say NO to Reboot phone)

09.) Restart Phone directly to Recovery.

10.) Flash DRM_Function_Restoration_Z3C_Lolipop_V2_RestoreStock.zip and reboot to system - DONE!

There is a faster way (for restoring TA) but I decided to use official batch program of Backup TA v9.11 for security reasons.

For those who know how to handle it - direct restoring of TA.img via recovery (or script) is also possible - but no further words regarding this!

Thanks to:

[MENTION=4904057][NUT][/MENTION]

[MENTION=2807379]Androxyde[/MENTION]

[MENTION=5261329]DevShaft[/MENTION]

[MENTION=4699816]jimRnor[/MENTION] and Team EXR machao44 and Team YKG LNHJ

[MENTION=4708091]istux[/MENTION]