[NUT]'s downloads
For the bittorrent downloads, I suggest using uTorrent. If you are unable to download them due to ISP or network restrictions, use zbigz.com.
Home > XZDualRecovery > User Guide
XZDualRecovery User Manual
TWRP 2.8.7.0 & PhilZ Touch 6.59.0

I proudly present you the first and only DUAL RECOVERY for locked boot loaders on our lovely Xperia phones! :cool:

If you have an unlocked bootloader and chose to keep the STOCK Sony kernel, you can also use this MOD.
User Guide
Written by [NUT]
Viewed: 179344 times
Published: 14 December 2015
Updated: 25 January 2016

Currently supported XPERIA models:
These are also links to the device specific Q&A threads.
Xperia Z: SO-02E, C6602, C6603, C6606, C6616
Xperia ZL: C6502, C6503, C6506
Xperia Tablet Z: SO-03E, SGP311, SGP312, SGP321, SGP351
Xperia Z Ultra: C6802, C6806, C6833, C6843
Xperia Z1: C6902, C6903, C6906, C6943, C6916
Xperia Z1 Compact: D5502, D5503, D5506
Xperia Z2: D6502, D6503, D6506, D6543, D6563
Xperia Tablet Z2: SGP511, SGP512, SGP521, SGP551, SGP561
Xperia ZR: C5502, C5503, C5506
Xperia T, TX, TL and V: LT30p, LT29, LT30at, LT25i
Xperia S: LT26i
Xperia SP: C5302, C5303
Xperia T2 Ultra: D5303, D5322
Xperia Z3: D6603, D6633, D6643, D6653, D6616
Xperia Z3 Compact: D5803, D5833
Xperia Tablet Z3 Compact: SGP621, SGP641, SGP651

I will be adding more and more devices to the list in the near future, keep your eyes on the DevDB thread for them to be released :)
I will also start a Q&A thread for each of the models officially supported, once released from the experimental stage.

RomAur users read this post first before flashing XZDualRecovery!

UNANNOUNCED PACKAGES ON THE DOWNLOAD SITE CAN LEAD TO UNEXPECTED BEHAVIOR, PLEASE BE CAREFUL WITH THEM!



INSTALLER: How to install using the installer:

  • Make sure you have USB debugging turned ON.
  • Download XZ/ZL/TabZ/Z1/ZU-lockeddualrecovery[VERSION]-[RELEASE/BETA].[installer/combined].zip
  • Windows:

    • Unpack at C: or somewhere you will remember!
    • Navigate to the resulting directory and look for install.bat, double click it to run;

  • Linux:

    • Unpack in your home folder with 'unzip XZ/ZL/TabZ/Z1/ZU-lockeddualrecovery[VERSION]-[RELEASE/BETA].[installer/combined].zip'
    • Navigate to the resulting directory and 'chmod +x install.sh', then execute it, follow instructions.

  • Your phone WILL reboot when installation has completed and it will go into the default recovery for the first boot.
  • Reboot to system from recovery to allow the installer to clean up after installation (it is safe to skip this step).
  • Enjoy DUAL RECOVERY!


How to install or update using a previously installed (XZDualRecovery) recovery:
Create a backup of /system/bin/chargemon and keep it somewhere safe, then just flash XZ/ZL/TabZ/Z1/ZU-lockeddualrecovery[VERSION]-BETA.[flashable/combined].zip using PhilZ Touch or TWRP.

How to remove:
Download the XZDR-removaltool.zip and flash it in any recovery. Done! :cool:

When installing custom STOCK BASED ROMs:
Be sure to flash XZ/ZL/TabZ/Z1/ZU-lockeddualrecovery[VERSION]-BETA.[flashable/combined].zip after installing the ROM and before you reboot, this way you will not lose recovery!

How to use:
At boot, once you feel the phone vibrate and while you see the green led burn:
- press VOL-UP for PhilZ Touch;
- press VOL-DOWN for TWRP.

Vanilla CWM has been removed from the releases since 2.8.22, if you still use 2.8.21 or older, CWM can only be entered using the NDR Utils app.

2.x Features:

  • When you have a SDCard1 and the XZDualRecovery is able to use it, you can put a file called 'donotrun' inside the XZDualRecovery log folder to make XZDualRecovery escape following boot attempts.
    If you find yourself in a bootloop situation, take out your SDCard1 and put that file in the directory if it exists using a PC. Reboot your phone with Power+Vol-UP and you will be able to boot your phone as if there was no recovery there!
  • XZDualRecovery will signal the escape or any reason why it would not be able to continue normal operation with a 2 second burn of your LED in the color RED. A reason would be a broken /cache and no SDCard1 or a busybox in /system/xbin which does not support the lzcat command. If you see that, check /tmp/XZDualRecovery for a logfile there, it will tell you why.
  • XZDualRecovery will try to use your SDCard1 for logging and functionality, if it has been formatted with ext2/4, FAT16/32 or exFAT. NTFS is currently unsupported.
  • XZDualRecovery now prevents the RIC service/protection from starting up, this means when running XZDualRecovery the Remount-Reboot fix is no longer needed.


Defaults:

  • The default recovery on first boot or when XZDR.prop can't be found/read is TWRP.
  • In your XZDualRecovery folder in either /cache or /storage/sdcard1 you will find a file called XZDR.prop. This file holds all the configurable options.
  • Init.d support is disabled by default, set dr.enable.initd to true to enable it.
  • Byeselinux is unloaded by default, set dr.keep.byeselinux to true to keep it.
  • Insecure ramdisk support is disabled by default, set dr.insecure.ramdisk to true to enable it, set to 'power' to boot it by pressing the power button at boot.


Error reporting:
Please, when reporting errors or problems:

  • Put up a notice in the DevDB thread providing the package name you used to install or update;
  • Include ROM name and/or FW version numbers;
  • Include what SU apk you are using (SuperUser or SuperSU)
  • Send me the contents of all the log files from right after a failed boot attempt or a link to an archive containing these logs by PM (that's including the .old rotation logs!). If you have no website or online location to store the logs, PM me for an email address to send them to.
  • Logs can be found inside:

    • /cache/recovery
    • /tmp/XZDualRecovery
    • /storage/sdcard1/XZDualRecovery
    • /cache/XZDualRecovery (if the previous exists, this one will not!)

    NOTE: I need them ALL!

I really need them to troubleshoot what failed and what worked OK. Thank you!

Suggestions?
Please do post, I've got loads of ideas myself but you might have the best one yourself! :)

Special Thanks:

  • DooMLoRD for all his excellent work on our much loved Sony phones!
  • The Team Win developers for TWRP
  • The ClockWorkMod developers for CWM
  • @alexocean for his awesome job testing almost all FW releases and the discovery of SuperSU causing problems for the installation of this recovery!
  • @RoberM for testing
  • @surdu_petru for testing and handy pointers
  • @Androxyde for allowing to use his linux and mac adb binaries.
  • [MENTION=4567848]lancebukkake[/MENTION] for finding the TWRP 'fix' to use exFAT formatted sdcards!
  • @delewer for the final fix for TWRP and its use of exFAT formatted sdcards
  • @DevShaft for some code help on the windows installer (the menu!)
  • @Androxyde again, but now for his bash code/script suggestions... oh boy this guy is a genius! :highfive:
  • @Tamirwig and @shoey63 for their excellent job at testing early BETA's (Xperia Z)
  • @gregbradley for his extensive testing on the Xperia Z1
  • @russel5 for his tinkering and general debugging help :cool:


GitHub Repository:
https://github.com/xNUTx/XZDualRecovery

Xperia Files

Project Details

Project name: Xperia Files
Maintainer: [NUT]
Last Update: 23-02-2016

Related Articles