Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[DEVDB][TWRP][PhilZ Touch][CWM] XZDualRecovery 2.7.1XX RC


3rd May 2013, 02:26 AM   |  #1  
[NUT]'s Avatar
OP Recognized Contributor
Flag Cyberspace and the Universe
Thanks Meter: 6,251
4,158 posts
Join Date:Joined: Oct 2012
Donate to Me
PhilZ Touch 6.48.4 & CWM & TWRP
*** For Locked and Unlocked BOOTLOADERS! ***

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

If you have an unlocked bootloader and chose to keep the STOCK Sony kernel, you can also use this MOD.

Currently supported XPERIA models:
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: C5602, C5603, C5606
Xperia T, TX, TL and V: LT30p, LT29, LT30at, LT25i
Xperia S: LT26i
Xperia SP: C5302, C5303
Xperia T2 Ultra: D5303, D5322

I will be adding more and more devices to the list in the near future, keep your eyes on this 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!


INSTALLER: How to install using the installer:
  1. Make sure you have USB debugging turned ON.
  2. download XZ/ZL/TabZ/Z1/ZU-lockeddualrecovery[VERSION]-BETA.installer.zip from http://nut.xperia-files.com
  3. Windows:
    1. unpack at C: or somewhere you will remember!
    2. navigate to the resulting directory and look for install.bat, double click it to run;
  4. Linux:
    1. unpack in your home folder with 'unzip XZ/ZL/TabZ/Z1/ZU-lockeddualrecovery[VERSION]-BETA.installer.zip'
    2. navigate to the resulting directory and 'chmod +x install.sh', then execute it, follow instructions.
  5. Your phone WILL reboot when installation has completed and it will go into the default recovery for the first boot.
  6. Reboot to system from recovery to allow the installer to clean up after installation (it is safe to skip this step).

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.zip from http://nut.xperia-files.com using CWM or TWRP.

How to remove:

Delete the following files:
/system/bin/recovery.twrp.cpio.lzma (or .tar)
/system/bin/recovery.cwm.cpio.lzma (or .tar)

Then inside */system/bin/ rename chargemon.stock to chargemon check its permissions (should be 755 or otherwise visible as -rwxr-x-r-x). Done!

How to revert back to original single recovery:

This recovery MOD leaves your original recovery.tar in place.
You can overwrite the chargemon executable in /system/bin/ from this MOD with your backup made earlier and change its permissions to 755 (-rwxr-x-r-x).
You can then remove /system/bin/dualrecovery.sh (if it is there), /system/bin/recovery.twrp.cpio.lzma (or .tar), /system/bin/recovery.philz.cpio.lzma and /system/bin/recovery.cwm.cpio.lzma (or .tar) and reboot.

When installing custom ROMs:
Be sure to flash XZ/ZL/TabZ/Z1/ZU-lockeddualrecovery[VERSION]-BETA.flashable.zip from http://nut.xperia-files.com 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.

To enter Vanilla CWM, you will need to use the (free) NDRUtils app from the Play store

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 from starting up, this means when running XZDualRecovery the Remount-Reboot fix is no longer needed.

  • The default on first boot with the boot-to-recovery flag set by any recovery is TWRP.
  • In your XZDualRecovery folder in either /cache or /storage/sdcard1 you will find a file called XZDR.prop. Set dr.default.recovery=cwm to dr.default.recovery=philz to change the default recovery to TWRP. The button choice however takes precedence, so you can always overrule the default!
  • You can also change back to 'Vanilla CWM' if you wish by changing dr.vanilla.cwm=false to dr.vanilla.cwm=true in the XZDR.prop file.
  • Init.d support is disabled by default, set dr.enable.initd to true to enable 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 this 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!

Future plans:
  • Creating a self-contained installer for Linux and making that work on Apple MacOS X

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.
  • @lancebukkake 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!
  • @Tamirwig and @shoey63 for their excellent job at testing early BETA's (Xperia Z)
  • @gregbradley for his extensive testing on the Xperia Z1

GitHub Repository:

All past, current and future releases will appear on http://nut.xperia-files.com/ for download, also providing a QR code for easy downloading on your mobile The flashable file will bring any previous version to the latest release.

Well, enjoy!

The origins of this XZDualRecovery package are in the packages done by:
Krabappel2548, Cpasjuste and DooMLoRD
Thank you for your excellent work guys!

Your thanks (and donations) should (also) go out to them, they deserve it!

XDA:DevDB Information
XZDualRecovery, Tool/Utility for the Sony Xperia Z

[NUT], AngelBob , shoey63 , Olivier, Krabappel2548, DooMLoRD, Cpasjuste, Tungstwenty, sijav
Source Code: https://github.com/xNUTx/XZDualRecovery

Version Information
Status: Stable
Current Stable Version: 2.6.3
Stable Release Date: 2013-07-18
Current Beta Version: 2.7.123
Beta Release Date: 2014-04-30

Created 2013-07-18
Last Updated 2014-12-17
Attached Thumbnails
Click image for larger version

Name:	image1resize.jpg
Views:	45465
Size:	37.7 KB
ID:	2315159   Click image for larger version

Name:	image2resize.jpg
Views:	40120
Size:	35.8 KB
ID:	2315160   Click image for larger version

Name:	image3resize.jpg
Views:	23264
Size:	34.7 KB
ID:	2315161   Click image for larger version

Name:	image4vlv.jpg
Views:	21947
Size:	30.6 KB
ID:	2315162   Click image for larger version

Name:	image5resize.jpg
Views:	20373
Size:	40.7 KB
ID:	2315163   Click image for larger version

Name:	image6resize.jpg
Views:	15993
Size:	29.3 KB
ID:	2315164   Click image for larger version

Name:	image7resize.jpg
Views:	18946
Size:	28.3 KB
ID:	2315165   Click image for larger version

Name:	sigpic4666971_18.gif.png
Views:	14501
Size:	44.7 KB
ID:	2315166   Click image for larger version

Name:	eIDZ.png
Views:	18698
Size:	17.4 KB
ID:	2315168   Click image for larger version

Name:	fYob.png
Views:	17990
Size:	33.8 KB
ID:	2315170   Click image for larger version

Name:	WujW.png
Views:	13901
Size:	26.5 KB
ID:	2315171   Click image for larger version

Name:	AgsV.png
Views:	28597
Size:	16.9 KB
ID:	2315173  
Last edited by [NUT]; 18th July 2013 at 02:03 AM.
The Following 405 Users Say Thank You to [NUT] For This Useful Post: [ View ]
3rd May 2013, 02:26 AM   |  #2  
[NUT]'s Avatar
OP Recognized Contributor
Flag Cyberspace and the Universe
Thanks Meter: 6,251
4,158 posts
Join Date:Joined: Oct 2012
Donate to Me
Known Issues and Frequently Asked Questions
Known Issues:
All known issues in TWRP and CWM on locked boot loaders apply, see their respective threads for more information.

Be especially careful with the cache partition when using CWM. Hopefully version 2.0 solved the cache issues but in case of problems with /cache use the FTF in my files to restore the cache partition if yours ever stops mounting due to the CWM issues, read this and this for more info on that.

Busybox Updater/Installer: If you have XZDualRecovery installed, un-install any Busybox updating app/tool as most if not all of them will install a version of busybox which does not support the lzma compression applets XZDualRecovery depends on. The version installed together with XZDualRecovery is very stable and I have yet to hear anyone complain about it's stability.

exFAT Warning: If you are using an exFAT formatted sdcard there are 2 things to take in to account: CWM currently does not know how to handle them at all. In TWRP it could be that it can't mount it, though it can use it: you need to eject the card and reinsert it, you will be able to mount and use it afterwards.

device configuration: both recoveries think they are running on an Xperia Z ("yuga"), so users of a ZL or Tablet Z might run in to a ROM or MOD which checks the device ID and will claim it's not an "odin" (ZL) or "pollux_windy" (TabZ)... this is something I will fix in some future release.

Frequently Asked Questions:

About TWRP 2.6 and the use of INTERNAL STORAGE

Originally Posted by jdjta

[snip]...but permissions are set like: Srw-Srw-r (644) (It seems like the 'S' is the problem, I'm sure GID and UID are ticked)...[snip]

A workaround for this issue is to use TWRP's advanced options, after creating a backup you wish to move to the PC:
  1. go back to the main menu
  2. go to advanced
  3. go to filemanager
  4. navigate to /data/media/0/TWRP/BACKUPS/*SERIAL*/*BACKUPNAME*
  5. select one of the backup files
  6. press chmod button (the one without 755)
  7. type 0664 and press go
  8. repeat 5->7 for each of the files in the backup, you can skip boot and the md5 files.
  9. reboot to system and you should be able to copy the files without problems.

Alternatively you can install adbd Insecure by @Chainfire (non-free app from Play, or for free from it's XDA thread) and run ADBd itself as root, which elevates the rights and omits the issue all together.

I think it's a feature and not a bug (as it secures your backups), but I'll try to convince Team Win to make the setuid/setguid a choice rather then a default.

Installation of XZDualRecovery on UNROOTED devices
The installer package uses Easy Root Tool for various Xperia phones, it is able to gain root on all of the currently supported devices, allowing to install XZDR.

Confirmed working:
  • Z - C6603
  • Z1 Compact - D5503 (doesn't seem to work on JellyBean), SO-01F (docomo)
  • Z1 - C6903,
  • Z Ultra - C6802, C6833
  • ZR, C5502
  • Z2 - D6503
  • Z2 Tablet - SGP511, SGP512
  • ZL2 - SOL25

If you want to help me perfect this list, use the tool done by @zxz0O0 in his topic and try to root your device. When testing also try older ROM versions, the latest FW versions may have been patched.

Thanks @zxz0O0 for the initial list.

The rootless installation has been made possible by:
  • @geohot: Root exploit
  • @MohammadAG: Disable RIC kernel module (Link)
  • @cubeundcube: Disable RIC on Z2 phone (findricaddr/writekmem)
  • @zxz0O0: for creating the initial tool where I have based this unrooted install option on.

Thanks for your hard work guys!
Last edited by [NUT]; 20th June 2014 at 01:13 PM.
The Following 69 Users Say Thank You to [NUT] For This Useful Post: [ View ]
3rd May 2013, 02:26 AM   |  #3  
[NUT]'s Avatar
OP Recognized Contributor
Flag Cyberspace and the Universe
Thanks Meter: 6,251
4,158 posts
Join Date:Joined: Oct 2012
Donate to Me
Change log
BETA Change log:
BETA releases will only appear on http://nut.xperia-files.com and the DevDB thread and as soon as enough people report it to be working fine will it move in to the Q&A thread as a RELEASE version.
Version 2.7.101:
  • KitKat security breakdown, XZDualRecovery disables all the Sony&KitKat security measures, making sure you have a 100% accessible system partition.
  • Migrated to CM11 to build all the recoveries
  • Updated PhilZ Touch Recovery to 6.25.0 on all devices, thanks to @shoey63
  • Updated CWM to on all devices
  • Updated TWRP to on all devices (Including some patches which fix bugs but oddly didn't warrant an increase of the version number!)
  • Fixed mounting the external and internal SDCard on the Xperia T/V/TL/TX (Tested only on JB4.1)
  • Introduced the XZDualRecovery Advanced Stock kernel, integrating core XZDR functionality, because of this the NDRUtils app can be used to reboot to any recovery. The kernel version does not yet support the init.d implementation, next version should introduce it.
  • Various changes and updates too small to mention.


Bug reports should from now on be reported using the DevDB bar at the top of this page. Make sure you include EVERYTHING you possibly can when reporting bugs. I will from now on IGNORE all bug reports on the topic. If I request you or anyone else to create a bug report as a result of a help request, PLEASE DO SO: your bug will NOT get fixed otherwise!!

Version 2.7.94:
  • Redone xzdualrecovery.sh, it now assumes the recovery.fstab will be correctly configured and it will be able to mount system and userdata.
    For some reason it still causes a reboot on the Xperia T family, but not on all devices... I'm not sure why.
  • Redone my CM repo folder structure... adapted the build suite accordingly.
    This has been done because I kept running in to problems while trying to build any other branch on the CyanogenMod repo's...
    As a result I hope to be able to build a version for the Xperia P and J soon.
  • Redesigned DRGETPROP and DRSETPROP to work more precise, it was not able to differentiate between an unset but present variable or a variable which was completely missing.
  • Installation of XZDR now sets the current version and release stream on the properties file, for furure use and reference to what version has been installed.
  • The installation routine now also creates /system/.XZDualRecovery and copies busybox in to it. Once a user installs a Play busybox and breaks compatibility because of missing lzma functionality chargemon.sh will now nolonger crap out and stop operation but copies the required busybox back to /system/xbin. This change was getting more important by the second as the Z1, Z1 Compact and Z Ultra with their JB4.3 built-in kernel protection of system and rootfs will lose full root once that happens, making it impossible to restore a good busybox...
  • Tried to fix PhilZ's mount settings for sdcard0 and 1 on the Xperia T family again...
  • This time built CWM against CM10.1 for the Xperia T, hoping this will at least make CWM work ok.
  • Changed the base of the Z1 Compact and ZR to the base of the larger brother model. Only replacing the res and recovery, hoping this will fix some issues mounting stuff.
Remaining issues to be solved:
  • PhilZ mount USB feature isn't working correctly... it seems I've mixed up the USB product id's on the Z1 and Z Ultra releases;
  • Creating a backup of SD-EXT partitions is still not possible.
Version 2.7.92:
  • Updated PhilZ Touch to the latest official release for every supported device.
  • The 720x1280 resolution devices should now have a smaller font size in PhilZ Touch.
  • Fixed TWRP for the Xperia SP, touch will now work OK.
  • I hope to have fixed the PhilZ's touch issues on the Xperia SP.
  • I hope to have fixed PhilZ's sdcard0 mount issues on the Xperia T/V/TL/TX and SP.
  • Improved the way properties are set by the chargemon and dualrecovery.sh scripts.
  • Initial setup of the XZDR.prop file will now use the improved properties set functionality.
  • XZDualRecovery will now boot straight in to the recovery set in the XZDR.prop file's 'dr.recovery.boot' setting when a 'boot' trigger file is found or when 'reboot recovery' is used, a change proposed by @shoey63.
  • XZDualRecovery will now store the recovery choice by button in the XZDR.prop file. This way 'reboot recovery' from the recovery takes you straight back in to the same recovery. To be able to switch you can 'reboot system' and button choose the 'other' recovery or boot to system and use NDRUtils.
Version 2.7.86:
  • A batch scripting error in .85 caused it to not be able to install using option '1' nor by using option '2' in the revised menu
Version 2.7.85:
  • A batch 'whoops' in .83 caused it to not be able to install using option '1' in the revised menu
  • XZDR 2.7.84 introduced the disableric patch for the Xperia Z1 Compact only.
Version 2.7.83:
  • The installer package can now install even on unrooted phones It is using rootkitXperia for this and it will ONLY work on specific ROM versions. If you could root your ROM using @Bin4ry's latest rooting tool using option 0 or could root it using rootkitXperia from the thread by @RyokoN, it is VERY likely that it will install just fine
    NOTE: It will only install XZDualRecovery, after installation you will still NOT have a rooted ROM! You can flash the latest SuperSU or SuperUser update packages from recovery or use the built in rooting options in the recoveries.
  • Removed the always checking of the input devices for the volume and power keys. It will now search once and store the input device in the XZDR.prop file. If you ever wish to make it search for them again, remove dr.gpiokeys.node and dr.pwrkey.node from the properties file. This change should speed up the boot even more
  • Updated the search engine to be able to find the power button input node on the Z1 and it's brothers and sisters. The older version could only find the power button on the Xperia Z and it's brothers and sisters
  • As a reminder: 2.7.82 was only released for the ZR and Z1C, because of an incorrectly aligned TWRP. This version should not change that fact
Version 2.7.81:
  • Updated dualrecovery.sh to work with a reasonably big change: Before this version it would try to clean up the kernel ramdisk before unpacking the recovery ramdisk. Instead it will now create a folder, unpack everything there and then chroot in to that folder executing the recovery's init. This prevents accidental wiping of partitions or mount locations XZDualRecovery does not know about and does not unmount before it starts recovery.
  • By default, all previous versions would copy all the recovery files from /system/bin to /sbin. It will now only copy the one which it will be using. This speeds up booting a bit, which is always good
  • Updated the rickiller script to hopefully fix the remount issue on the Xperia ZR.
  • PhilZ will now have a correctly sized button bar on the Xperia T, Xperia ZR and Xperia Z1 Compact.
  • Hopefully fixed the TWRP theme on the Xperia ZR.
Version 2.7.80:
  • Fixed a bug in the chargemon script, somehow something got deleted at some point which explains why people saw XZDR blow itself to bits after updating to 2.7.78
  • Revised the rickiller once more... hopefully this time to stay this way for quite some time to come. It now makes sure you do not need a patched kernel when using XZDR on a Z1 and Z Ultra with an unlocked bootloader.
Version 2.7.78:
  • Updated PhilZ, patched to allow texfat mount through minivold, this will dramatically increase backup speed (Z1 and ZU).
  • Added trigger to make 'reboot recovery' work, thanks to @shoey63
  • PhilZ Touch Recovery init will now set SELinux to permissive (as do Sony's own roms!)
Version 2.7.77:
  • PhilZ brightness issues on the Z1 solved.
  • Updated PhilZ to the latest build for the Z1 and Z Ultra only.
  • Mounting exfat sdcards in PhilZ fixed. (NOTE: does not work on GPe kernels!)
  • Mounting multi partition sd cards should now work correctly.
Version 2.7.76:
  • FINALLY cracked the time_daemon issues for good Date and time will be set correctly in the recoveries, the timezone will be offset maybe, TWRP and PhilZ allow for a configuration of that to correct it to the right time.
  • Updated the way EXT formatted sdcards are mounted. It now will attempt to mount it using the correct FS type.
Version 2.7.75:
  • Now including NDRUtils in the installation packages. Whenever the app is updated, Play should do that for you.
  • Updated the mr script, debugged by @Tungstwenty, it is now confirmed working.
Version 2.7.74:
  • Restored the use of apps which allow you to boot to recovery to perform a specific task, based on an idea from @Tungstwenty.
    NOTE: This feature is largely untested but it should work OK
  • Restored the Volume-UP key in it's former glory. If you wish to boot to Vanilla CWM, you MUST use NDRUtils.
  • Eventhough it impacts speed on exFAT formatted SD cards, I've reverted PhilZ to use the minivold to mount the SDcard1 and USB disks, to fix the compatibility with the Z1 and Z Ultra.
Version 2.7.73:
  • Fixed a little time daemon thingy which had a major consequence on the Z1/ZU
    NOTE: Z1 and Z Ultra Users who have 2.7.72 installed, update ASAP and do not try to install any ROM with .72!
Version 2.7.72:
  • Merged timedaemon.sh and xperiablfix.sh to one script. They had a tendency to bite each other...
  • Updated the RIC killer, for any other device then the Z1 it was no longer working!!
  • Updated Vanilla CWM to
  • Updated PhilZ Touch to
  • Updated adb binaries in the installer to the latest from Google.
Version 2.7.70:
  • Small issue resolved with the XZDR.prop generation.
  • Updated the RIC killer, it now successfully prevents Z1 and ZU on the 14.2.A.0.290 ROM from setting up the kernel based system and rootfs protection
Version 2.7.66:
  • Simplified the XZDR.prop settings. These changes breaks compatibility with the app from @AngelBob, he is working on a new version to support them.
  • Updated the RIC killer, it should now prevent Z1 and ZU JB4.3 ROM's from setting up the kernel based system and rootfs protection Thanks go to @Androxyde for testing something we both (separately) considered a possibility to fix the issue, he confirmed it was on his Z1!
Version 2.7.65:
  • Updated the stock ramdisk feature. To aid in the development of a working 'stock ramdisk' and to have an easy choice at boot whether to boot it or not dr.insecure.ramdisk now takes the option 'power' which will make XZDualRecovery prompt a second time with an yellow/amber LED. Pressing the POWER button once or twice while it is lit will select the insecure ramdisk to boot. If no power button press has been recorded, it will simply continue to boot the kernel ramdisk.
  • All work to get the insecure ramdisk to boot will now have to be done from the insecure ramdisk. Other then unpacking the ramdisk and starting it's init, XZDualRecovery will do nothing to prepare the device to run the insecure ramdisk.
  • Updated the installrecovery.sh script which will run when installing with the installer. Thanks go to @itzankov for pointing me to a solution to his 'Toolbox!' errors by PM.
  • Improved small tidbits here and there, specifically how XZDualRecovery updates or creates the XZDR.prop file.
Version 2.7.63:
  • Revised my Linux install script to support Mac-OS X at last Use a terminal and the Linux guide to install.
Version 2.7.62:
  • Revised some bits of code, which where causing bootloops. The code now takes the safest route again, eliminating the chance of a bootloop due to XZDualRecovery's configuration defaults.
  • Simplified the package count, now the installer is for both windows and Linux, the flashable zip is for updating and installing.
  • Updated the linux adb included in the installer. It seems it was working but not for everybody.
Version 2.7.60:
  • Corrected a mistake in the flashable packages, if an insecure ramdisk was not present inside the zip, it would fail the installation
  • Improved the insecure ramdisk implementation, now dr.ramdisk.location will contain the path/to/filename.ext to make it easier to use any space you like for testing.
Version 2.7.59:
  • Added init.d support, it will create the init.d folder by default but to enable it set dr.enable.inid to true.
  • Fixed mounting external sd cards on the Z1 and ZU JB4.3 ROM's
  • Added custom ramdisk support. It will now be able to run a customized ramdisk to boot a ROM! By default this will be disabled. Set dr.insecure.ramdisk to true and make sure that ramdisk.stock.cpio.lzma has been put inside /system/bin to start using that.
  • When a file called ramdisk.tar or ramdisk.stock.cpio has been put inside /data/local/tmp it will substitute the ramdisk.stock.cpio.lzma and the script will know how to extract their contents. This has been created for those ROM's (Z1/ZU JB4.3) which do not have easy access to the system partition to aid in the development fase.
  • Moved the time_daemon to a script run in the recovery ramdisk to set the time. This prevents the Z1/ZU from rebooting after 40 seconds.
  • Implemented a revised remount-reboot script, which will open up the system and rootfs when running a stock kernel on an unlocked bootloader. It will know what kind of rom you run so it won't do anything it does not have to when running on a different phone or rom which does not have the same issues as the Z1 and Z Ultra on JB4.3.
Version 2.7.43:
  • Applies to the ZL, Z1, ZU and TabZ releases only, but to keep them with the same version number I also updated the (unchanged) XZ package: replaced the default.prop inside the PhilZ Touch ramdisk with the one from CWM, to make sure it identifies itself as the device you are working with.
Version 2.7.42:
  • Improved the anti-filesystem locking system, made it a service instead of a script that gets executed.
Version 2.7.41:
  • EXPERMENTAL SUPPORT: New devices added: Xperia Z Ultra and Xperia Z1.
  • Changed the way XZDualRecovery kills the last remaining processes keeping a lock on /system, /cache and /data. This was originally created for the Z1 and Z Ultra to fix a time_daemon issue causing the phone to reboot after 40 seconds but I've put this in general use for all supported models. If you enter any of the recoveries and you see your LED first flash and then constantly burn RED and the reason to enter recovery was to flash any ROM or to restore a backup: STOP AND REBOOT, gather logs and send them to me/attach them here, DO NOT TRY TO FORMAT/RESTORE: it will render your device USELESS and will require you to reflash your phone using an FTF... You have been warned!
  • Updated Vanilla CWM to
  • Updated PhilZ Touch Recovery to 6.01.2
Version 2.7.34:
  • Changed from flag files to a property file. Inside the XZDualRecovery directory you will find XZDR.prop with currently only 2 settings, replacing the flagfiles. If you have them, XZDualRecovery will take note and save these settings in to the property file for you before deleting them.
  • The first packages have been released for use specifically on the various models I try to support. Tablet Z users can now use TWRP in landscape if they download the TabZ packages. Eventually I will move them all back to one consolidated package.
  • Fixed the system restore issues with the BETA line which popped up since .22 was released.
  • Modifications to the scripting continued... does it ever end?
  • XZDualRecovery now copies the preperation.log to the XZDualRecovery folder, makes it a little easier to collect the logs.
  • TWRP can now backup and restore the TA partition (READ THE WARNING!)
  • TWRP is finally built on the CM10.2 repo
Version 2.7.28:
  • Many, and I really do mean MANY, changes to the scripting, preparing it for use on every model Xperia I might want to support.
    The main changes:
    • New gpio-keys detection system (volume keys event input), this one will never break sensors ever again!
    • Repeating code removed and put in a single function, makes it leaner!
    • Some model Xperia phones have chargemon fire so early that the ROM did not yet load /system/build.prop yet, so I made a getprop replacement to get the info I need.
    • ALL release packages now tell you which version you are installing. To check before install, see dr.prop for the version.
  • Code cleanup round 2
  • Finished removing unneeded files from the installation packages
Version 2.7.22:
  • Getting lazy means mistakes can get caught up in the release versions... cutting and pasting code between projects not always works well!
  • General cleanup, removing files which where no longer needed...
  • Oh my... i totally forgot to add PhilZ Touch' new package to the installation routine... DOH!
  • Now also simplified the Linux installer, one install.sh, menu to choose app.
Version 2.7.21:
  • FINALLY fixed the exfat sdcard mount problems in TWRP, it will now mount any sdcard correctly (Thanks to @delewer: it was his work helping to debug XZDualRecovery for the Z1 which gave me the hint how to crack this!)
Version 2.7.16 2.7.20:
  • Updated to the latest PhilZ Touch Recovery (v5.18.2 - cwm
  • New feature: 'Vanilla' CWM! ( If you run into problems with PhilZ Touch and want to make sure it was not the cause or you just don't like to use PhilZ Touch, you can now put a file called 'cwm' (without extension!) inside the XZDualRecovery folder in either /cache or on your external sdcard to make it boot to 'Vanilla' CWM. The default remains to boot to PhilZ Touch Recovery with a press of the Vol-UP button.
  • Now includes 3 recovery files. PhilZ touch moved to it's own.
  • New build kitchen to make it easier to support other devices, please do test and report if anything is wrong: It was a lot of work, so I might have goofed up somewhere...
  • Switched to the CM 10.2 tree's for building my own recoveries (which gave me issues on TWRP).
Version 2.7.14:Version 2.7.13:
  • PhilZ Touch Recovery has been largely debugged for public release, so this is the first release with a fully functional touch interface, please provide feedback either here or on PhilZ own thread .
Version 2.7.9:
  • After quite some debugging, I've finally found the way to eliminate the need for a specialized driver. Now the ADB Sideload and general ADB functionality will work with the latest flashtool drivers (thread, release post) maintained by @DooMLoRD! The link here is a mirror I've set up for DooMLoRD with his permission.
  • As an added bonus, it is now possible to mount the SD card as mass storage device (in CWM Advanced only) on your PC (Thanks go to @Tamirwig for the discovery that it works, my focus was on the above, i totally missed it!)
Version 2.7.3:
  • Updated TWRP to
Version 2.7.1:
  • Updated TWRP to
  • Updated CWM to (Advanced 5, by @Phil3759).
  • Attemtped to fix the ADB sideload functionality for the XZ. It now works ok on Linux systems, Windows needs a little more work.

Changelog from Team Win:

What's new in
  • Proper backup and restore of SELinux contexts (thanks to Tassadar)
  • Pull in some ROM information for backup name generation
  • Merge all recent patches from AOSP bringing TWRP up to date with Android 4.3
  • Add 1200x1920 theme (thanks to Tassadar)
  • A few other fixes and tweaks

What's new in
  • Initial SELinux support (only a few devices, need testers so come by IRC if your device doesn't have it and needs it)
  • Initial support for f2fs file system formatting (Moto X)
  • Update SuperSU install for 4.3 ROMs
  • Fixed a permissions bug on files created during backup
  • Fixed a bug that caused TWRP to not wait for compressed backups to finish causing 0 byte files and md5sums to not match
  • Fixed decryption of encrypted data so that both TouchWiz and AOSP decryption are possible
  • Ignore lost+found folder during backup and size calculations
  • Various other minor bug fixes and tweaks

What's new in

Special Note: If you are running a custom theme, some of the changes in will likely not be visible with your custom theme.
  • Can encrypt a backup to prevent theft of private data from your backup files
  • Updated graphics / icon courtesy of shift
  • Updated exFAT to latest commits
  • Fixed a problem with Samsung TouchWiz decryption
  • Update SuperSU binary
  • Fixed saving of backup partitions list
  • Fixed saving of last used zip install folder
  • Fixed backup of datadata on devices that use a separate partition for datadata
  • Fixed some issues with the advanced wipe list (android_secure, can now wipe internal storage on data/media deivces and wipe data on the advanced list no longer formats the entire data partition)
  • Fixed some problems with partitioning a SD card
  • Various other bug fixes and tweaks

Notes about encrypted backups:
Why encrypt your backups? -- Most people store their backups on the device. Any app that has permission to access storage could potentially read your backup files and try to harvest your data. Encrypted backups also provide an added layer of security if you move your backups to other storage devices or to the cloud. The encryption that we're using is probably not strong enough for enterprise level security, but should be strong enough to make it significantly difficult to get to your data.

Encryption is using OpenAES which uses AES 128-bit cbc encryption. If you happen to use a longer password (over 16 characters) then the encryption strength improves to 192 or 256 bits. Do not forget your password. If you forget your password you will be unable to restore your backup. We don't encrypt the entire backup. Encryption is very CPU intensive and can be fairly slow even when we spread the workload over multiple cores even on the latest high-end devices. To ensure that encrypted backups don't take forever, we don't encrypt any other partitions besides /data and in /data we don't encrypt /data/app (or other app related directories where apks are stored) and we don't encrypt dalvik cache.

What's new in

Special Note: If you are running a custom theme, the changes in will likely not be compatible with your theme.
  • Added scrollable partition lists for mount, backup, restore, wipe, and storage selection
  • Add new SliderValue GUI element for selecting brightness and screen timeout (thanks to Tassadar)
  • Re-work AOSP and TWRP code to improve license compatibility between GPL and Apache
  • Added official theme for 1080x1920 portrait devices (HTC DNA, HTC Butterfly, Oppo Find 5, Sony Xperia Z, etc)
  • Fixed a problem with directory permissions on split archive backups
  • Fixed a problem with md5 verification of backups
  • Added a search function to libtar (thanks to kokotas)
  • Improve handling of XML errors (fix permissions)
  • Fixed handling of subpartitions
  • Improvements to recovery.fstab flags
  • Fixed a problem with decryption not being able to locate the decryption key in some situations
What's new in
  • Added another libtar hardlink workaround to fix restore of some backups (usually related to Ubuntu Touch)
  • More fixes for the file selector
  • Switched from using busybox md5sum to a direct C function call
  • Fixed capturing the exit status of tar based backups/restore - TWRP will display that there was an error if there was one again
  • Update exFAT to latest commits
  • Added a build flag to disable using the ioctl for screen blanking

If you have a human readable changelog for CWM, please let me know where to get the info!
Last edited by [NUT]; 31st March 2014 at 12:11 PM.
The Following 60 Users Say Thank You to [NUT] For This Useful Post: [ View ]
3rd May 2013, 07:16 AM   |  #4  
krabappel2548's Avatar
Recognized Contributor / Recognized Developer
Flag Zichem
Thanks Meter: 15,690
6,369 posts
Join Date:Joined: Nov 2011
Donate to Me
I'll give you twrp

Sent from my C6603 using xda app-developers app
The Following 19 Users Say Thank You to krabappel2548 For This Useful Post: [ View ]
3rd May 2013, 07:33 AM   |  #5  
[NUT]'s Avatar
OP Recognized Contributor
Flag Cyberspace and the Universe
Thanks Meter: 6,251
4,158 posts
Join Date:Joined: Oct 2012
Donate to Me
Originally Posted by krabappel2548

I'll give you twrp

Sent from my C6603 using xda app-developers app

Thanks, that would be great

Sent from my C6603 using xda app-developers app
The Following 8 Users Say Thank You to [NUT] For This Useful Post: [ View ]
3rd May 2013, 09:20 AM   |  #6  
Michealtbh's Avatar
Senior Member
Flag Belfast
Thanks Meter: 844
2,720 posts
Join Date:Joined: Nov 2010
Will this also work with unlocked bootloaders, or is there anything similar for unlocked bootloaders?

Apologies if this is a silly question but I'm new to XZ and I'm still trying to get my head around the weird recovery situation
3rd May 2013, 09:25 AM   |  #7  
[NUT]'s Avatar
OP Recognized Contributor
Flag Cyberspace and the Universe
Thanks Meter: 6,251
4,158 posts
Join Date:Joined: Oct 2012
Donate to Me
Originally Posted by Michealtbh

Will this also work with unlocked bootloaders, or is there anything similar for unlocked bootloaders?

Apologies if this is a silly question but I'm new to XZ and I'm still trying to get my head around the weird recovery situation

Yes, it should work with unlocked bootloaders when you are still clinging on to the stock kernel. DooMLoRD's DooMKernel v6 has the same functionality built in, so when using his kernel this package will not be needed.
The Following 3 Users Say Thank You to [NUT] For This Useful Post: [ View ]
3rd May 2013, 10:54 AM   |  #8  
[NUT]'s Avatar
OP Recognized Contributor
Flag Cyberspace and the Universe
Thanks Meter: 6,251
4,158 posts
Join Date:Joined: Oct 2012
Donate to Me
Installer released!
The Following 2 Users Say Thank You to [NUT] For This Useful Post: [ View ]
3rd May 2013, 04:49 PM   |  #9  
venky716's Avatar
Senior Member
Flag Mumbai
Thanks Meter: 310
656 posts
Join Date:Joined: Sep 2011
Originally Posted by [NUT]

Installer released!

Man u r fast !!
3rd May 2013, 05:46 PM   |  #10  
[NUT]'s Avatar
OP Recognized Contributor
Flag Cyberspace and the Universe
Thanks Meter: 6,251
4,158 posts
Join Date:Joined: Oct 2012
Donate to Me
Originally Posted by venky716

Man u r fast !!

Having a good and clean base by Krabappel2548 helps to get started, it's basically his installer package modified to support this dual recovery.

Sent from my C6603 using xda app-developers app

The Following 3 Users Say Thank You to [NUT] For This Useful Post: [ View ]
Post Reply Subscribe to Thread

cwm, doomkernel, locked bootloader, recovery, twrp
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes