[Z Ultra][TWRP][PhilZ Touch][CWM] XZDualRecovery Q&A

Search This thread

[NUT]

Senior Member
Red burn on fresh install. I did the SuperSU option. Latest ROM;


==============================================
= =
= XZDualRecovery =
= Maintained by [NUT] =
= =
= For Many Sony Xperia Devices! =
= =
==============================================

1. Installation on ROM rooted with SuperSU
2. Installation on ROM rooted with SuperUser
3. Installation on an unrooted (Lollipop 5.0) ROM using rootkitXperia
4. Install ADB drivers to windows
5. Exit

Please choose install action.
[1,2,3,4,5]?1
* daemon not running. starting it now on port 5037 *
* daemon started successfully *

=============================================
Waiting for Device, connect USB cable now...
=============================================
Device found!

=============================================
Getting ro.build.product
=============================================
Device model is C6833
Firmware is 14.6.A.1.216

=============================================
Step2 : Sending the recovery files.
=============================================
0 KB/s (31 bytes in 0.083s)
1612 KB/s (18170 bytes in 0.011s)
5 KB/s (501 bytes in 0.089s)
1383 KB/s (12754 bytes in 0.009s)
2477 KB/s (65965 bytes in 0.026s)
514 KB/s (3159 bytes in 0.006s)
1901 KB/s (29204 bytes in 0.015s)
112 KB/s (693 bytes in 0.006s)
3366 KB/s (34473 bytes in 0.010s)
391 KB/s (1202 bytes in 0.003s)
3944 KB/s (96956 bytes in 0.024s)
3080 KB/s (870760 bytes in 0.276s)
6117 KB/s (3414630 bytes in 0.545s)
7488 KB/s (2431311 bytes in 0.317s)
6805 KB/s (13938 bytes in 0.002s)

=============================================
Step3 : Setup of dual recovery.
=============================================
Look at your device and grant supersu access!
Press any key to continue AFTER granting root access.
-rwxr-xr-x 1 shell shell 870760 Nov 4 05:19 ←[1;32m/data/local/tmp/
recovery/busybox←[0m
Press any key to continue . . .

##########################################################
#
# Installing XZDR version 2.8.22 RELEASE
#
#####

Temporarily disabling the RIC service, remount rootfs and /system writable to al
low installation.
This firmware does not require byeselinux, will not install it.
This firmware does not require byeselinux, will not install it.
Creating /system/.XZDualRecovery and subfolders.
Copy recovery files to system.
Copy chargemon script to system.
Copy dualrecovery.sh to system.
Copy rickiller.sh to system.
Installing NDRUtils to system.
Copy busybox to system.
Copy init's *.rc files in to /system/.XZDualRecovery.
Updating installed version in properties file.
Trying to find and update the gpio-keys event node.
Found and will be using /dev/input/event5!
Trying to find and update the power key event node.
Found and will be monitoring /dev/input/event4!
Speeding up CWM backups.
Make sure firstboot goes to recovery.

=============================================
DEVICE WILL NOW TRY A DATA SAFE REBOOT!
=============================================


=============================================
Your installation has already cleaned up after
itself if you see the install.bat/install.sh exit.
=============================================


=============================================
Installation finished. Enjoy the recoveries!
=============================================

Press any key to continue . . .

Can you please take out your sdcard and then try again?

If it's still not working, attach the logs from the xzdualrecovery folder as described in the 2nd post.
 

loudog3114

Senior Member
Mar 1, 2007
614
95
Can you please take out your sdcard and then try again?

If it's still not working, attach the logs from the xzdualrecovery folder as described in the 2nd post.
I actually ran it first without the sdcard. I ended up getting TWRP installed by just unlocking the bootloader and flashing recovery.
 

vikphogat

Senior Member
Feb 17, 2014
73
34
Need to remove it and gain stock recovery to be able to install ota update

hey @[NUT]. I tried to remove your recovery by deleting the files you mentioned in system/bin/
I faced a problem. There is no files such as
System/bin/dualrecovery.sh
system/bin/mr
system/bin/charger
/system/bin/recovery.cwm.cpio.lzma (or .tar)
instead there are some files i found related to them such as
system/bin/charger_monitor
system/bin/rt.sh
system/bin/install-recovery.sh
system/bin/mv

also there i found
system/bin/chargemon &
system/bin/chargemon.stock both files.

now help me what to delete and what to rename to be able to revert to stock.

ALSO IF YOU CAN GIVE AN UNINSTALLER FLASHABLE ZIP, THAT WILL BE AWESOME. THANKS.
 
Last edited:

[NUT]

Senior Member
hey @[NUT]. I tried to remove your recovery by deleting the files you mentioned in system/bin/
I faced a problem. There is no files such as
System/bin/dualrecovery.sh
system/bin/mr
system/bin/charger
/system/bin/recovery.cwm.cpio.lzma (or .tar)
instead there are some files i found related to them such as
system/bin/charger_monitor
system/bin/rt.sh
system/bin/install-recovery.sh
system/bin/mv

also there i found
system/bin/chargemon &
system/bin/chargemon.stock both files.

now help me what to delete and what to rename to be able to revert to stock.

ALSO IF YOU CAN GIVE AN UNINSTALLER FLASHABLE ZIP, THAT WILL BE AWESOME. THANKS.

Look at the toolbox folder of xzdualrecovery on my website.
 

martin132014

Senior Member
Jan 14, 2011
935
114
@[NUT] can anyone solve this problem i have about twrp...the sliders is half across the screen..i cant flash like this..trying to flash others twrp version doesnt solve the problem.... uploadfromtaptalk1449841526095.png
 
  • Like
Reactions: ali.ghorbani

wellison

Senior Member
Oct 19, 2011
91
11
INSTALLER: How to install using the installer:
  1. Make sure you have USB debugging turned ON.
  2. download 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 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).
  7. 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 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)
/system/bin/recovery.philz.cpio.lzma
/system/bin/charger
/system/bin/dualrecovery.sh
/system/bin/mr

Rename /system/bin/mr.stock to /system/bin/mr to restore stock functionality, then inside /system/bin/ rename chargemon.stock to chargemon check its permissions (should be 755 or otherwise visible as -rwxr-x-r-x). Done!


When installing custom ROMs:
Be sure to flash 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.

Defaults:
  • The default on first boot with the boot-to-recovery flag set by any recovery is PhilZ Touch Recovery.
  • Init.d support is disabled by default, set dr.initd.active 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!


I using Xperia Z Ultra C6833 and need to remove XDualboot recovery to get stock recovery from Sony, my rom stock .236

i cant find this files :

/system/bin/dualrecovery.sh to delete
/system/bin/mr.stock to rename

i cannot understand how to use XZDR-removaltool.zip

pls help
 
Last edited:

[NUT]

Senior Member
I using Xperia Z Ultra C6833 and need to remove XDualboot recovery to get stock recovery from Sony, my rom stock .236

i cant find this files :

/system/bin/dualrecovery.sh to delete
/system/bin/mr.stock to rename

i cannot understand how to use XZDR-removaltool.zip

pls help

Just flash it from recovery.

Remember that sony does NOT have any kind of stock recovery...
 
  • Like
Reactions: ali.ghorbani

ali.ghorbani

Member
May 19, 2014
16
2
Qa'em Shahr
working on android 5.1.1

Hey guys. I have updated my Z Ultra to the latest version which is Android 5.1.1 and with build number of 14.6.A.1.236 and my phone model is C6833. and my phone is not rooted.
My question is that does it work on my phone? or do you know any method for rooting my phone? thanks a lot:)
 

[NUT]

Senior Member
Hey guys. I have updated my Z Ultra to the latest version which is Android 5.1.1 and with build number of 14.6.A.1.236 and my phone model is C6833. and my phone is not rooted.
My question is that does it work on my phone? or do you know any method for rooting my phone? thanks a lot:)

The only way back to a rooted 5.1.1 is to go down to 5.0.2 (kernel and system without wipe will be enough), then install xzdr 2.8.25 to eventually flash an update package created with prfcreator (see cross device section).
 
  • Like
Reactions: ali.ghorbani

PDesire

Inactive Recognized Developer / Contributor
The only way back to a rooted 5.1.1 is to go down to 5.0.2 (kernel and system without wipe will be enough), then install xzdr 2.8.25 to eventually flash an update package created with prfcreator (see cross device section).

Hello RC Bro :D

As far as I know KingRoot works also on 5.1.1 now :)

That means it could be possible that we don't end anymore to downgrade to root the latest version :)

But I am damn scared about dm-versity on all Sony Stock phones (not easy to break this, but I think we can use a module again like you did with byeselinux.ko) :D

Your PDesire
 

[NUT]

Senior Member
Hello RC Bro :D

As far as I know KingRoot works also on 5.1.1 now :)

That means it could be possible that we don't end anymore to downgrade to root the latest version :)

But I am damn scared about dm-versity on all Sony Stock phones (not easy to break this, but I think we can use a module again like you did with byeselinux.ko) :D

Your PDesire

KingRoot still sends your IMEI number to some undisclosed location for an unknown reason. It's also still closed source. I still don't trust it...

Dm-verity does it's checking before we can hijack the boot... So we can't stop it from causing a bootloop...
 

PDesire

Inactive Recognized Developer / Contributor
KingRoot still sends your IMEI number to some undisclosed location for an unknown reason. It's also still closed source. I still don't trust it...

Dm-verity does it's checking before we can hijack the boot... So we can't stop it from causing a bootloop...

Uhh.... That would mean we have to modify kernel, but for LB we have also to keep the certifications.... This will be the hardest challenge ever, but we (XDA) got much fixed then this too

BTW, The TA registering that the kernel is stock or.something different?

As far as I have seen, the TA partition are full of XML files (also every Unlock and Relock will be registered. Serial number and version number too) but also there are marlin keys (seems SHA encrypted or something like)

Is it possible that the ta_param_loader binary loads the keys? What happens if u hijack it and then UB with all Features?


Thanks :)


Your PDesire
 

ali.ghorbani

Member
May 19, 2014
16
2
Qa'em Shahr
rooting with PRF creator

Hi there. Excuse me but I have a question about rooting build number of 14.6.A.1.236 . Can I use Prf creator in this forum http://forum.xda-developers.com/crossdevice-dev/sony/tool-prfcreator-easily-create-pre-t2859904 ? is it safe I mean my phone will not be hurt? I mean first I download stock firmware ftf file and put it in the software and add SuperSU zip file and blend them or mix them together and finally flash the result with flashtools. can I use this method for rooting my device? Thanks:)
 

damir_nis

Senior Member
Jul 24, 2010
94
10
Hello sorry to bother, but just need a quick answer, when installing a custom ROM i forgot to install the recovery. What would be the easiest way to install it now, tried to use the .bat installer from windows and nothing happens.

Z ultra c6833, supersu, AICP rom.

Thank you
 

fnldstntn

Senior Member
Dec 23, 2011
342
145
LG Nexus 5X
Nokia 5
Hello sorry to bother, but just need a quick answer, when installing a custom ROM i forgot to install the recovery. What would be the easiest way to install it now, tried to use the .bat installer from windows and nothing happens.

Z ultra c6833, supersu, AICP rom.

Thank you

http://forum.xda-developers.com/xpe...uide-c6833-maybe-bootloader-recovery-t3131386
Use this guide and install the new bootloader, after that you wont need to reinstall twrp ever again.

And here is the latest twrp. Use this. http://forum.xda-developers.com/xperia-z-ultra/development/twrp-recovery-2-8-7-0-2016-02-03-t3307043
 
  • Like
Reactions: damir_nis

damir_nis

Senior Member
Jul 24, 2010
94
10

fnldstntn

Senior Member
Dec 23, 2011
342
145
LG Nexus 5X
Nokia 5
When i install Emma i can see it running in task manager but it is not starting, any advice.

I did this long time ago and i dont remember. You can skip the all Emma thing and flash the latest stock untoched stock firmware with flashtool.
http://xperiafirmware.com/8-firmware/41-sony-xperia-z-ultra-c6833

---------- Post added at 02:13 ---------- Previous post was at 02:10 ----------

Or if flashet the last firmware before just install the recowery with the new bootloader way.
 

damir_nis

Senior Member
Jul 24, 2010
94
10
I did this long time ago and i dont remember. You can skip the all Emma thing and flash the latest stock untoched stock firmware with flashtool.
http://xperiafirmware.com/8-firmware/41-sony-xperia-z-ultra-c6833

---------- Post added at 02:13 ---------- Previous post was at 02:10 ----------

Or if flashet the last firmware before just install the recowery with the new bootloader way.
I am on a custom ROM don't want to go trough all the prices again. If i flash a stock ROM i will need to do everything from the beginning.

Thank you
 

Top Liked Posts

  • There are no posts matching your filters.
  • 37
    -=[XZDualRecovery]=-
    PhilZ Touch & CWM & TWRP
    *** For Locked and Unlocked BOOTLOADERS! ***


    Welcome to the Xperia Z Ultra Questions & Answers thread!

    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.

    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: 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
    Xperia Z3: D6603, D6633, D6643, D6653, D6616
    Xperia Z3 Compact: D5803, D5833
    Xperia Tablet Z3 Compact: SGP621, SGP641, SGP651

    To follow development, be sure to check the DevDB thread!
    28
    INSTALLER: How to install using the installer:
    1. Make sure you have USB debugging turned ON.
    2. download 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 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).
    7. 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 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)
    /system/bin/recovery.philz.cpio.lzma
    /system/bin/charger
    /system/bin/dualrecovery.sh
    /system/bin/mr

    Rename /system/bin/mr.stock to /system/bin/mr to restore stock functionality, then inside /system/bin/ rename chargemon.stock to chargemon check its permissions (should be 755 or otherwise visible as -rwxr-x-r-x). Done!


    When installing custom ROMs:
    Be sure to flash 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.

    Defaults:
    • The default on first boot with the boot-to-recovery flag set by any recovery is PhilZ Touch Recovery.
    • Init.d support is disabled by default, set dr.initd.active 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!
    18
    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! :highfive:
    • @Tamirwig and @shoey63 for their excellent job at testing early BETA's (Xperia Z)
    • @gregbradley for his extensive testing on the Xperia Z1

    Well, enjoy! :fingers-crossed:

    The origins of this XZDualRecovery package are in the packages done by:
    Krabappel2548, Cpasjuste and DooMLoRD
    Thank you for your excellent work guys! :victory:
    Your thanks (and donations) should (also) go out to them, they deserve it! :highfive:
    5
    Awesome, and thank you! I can't see a reason why i should flash this if i already have recovery/TWRP installed? Or? Would you recommend me to install this one, or isn't it that big of a deal?

    No, it's a personal preference really :)

    XZDualRecovery has been created with choice in mind. It's feature rich and more are coming but if you can do without the features... :)
    4
    Hello @[NUT] , Why with TWRP I can not enter my SD card? I see 0MB...

    With Phil'z Touch no problem but i prefer TWRP

    Thanks

    That actually depends, what filesystem does the sdcard contain?

    @[NUT] hey quick question for you anyone here wanting to chime in..
    So I'm using the CM12 official nightlies and I flashed the 20150125 release
    and than flashed the the dual recovery flashable zip immediately after and before rebooting as stated in the OP and when the 20150126 nightly was released I went to boot to recovery only to find myself in Cyanogens Recovery.. Any ideas as to why that would have happened? I flashed the flashable dual recovery through TWRP and didn't think much as to check it afterwards.. I ended up using Cyanogens Recovery to update my nightly and that did work fine but CM's recovery will not allow me to flash your dual recovery because the signature verification fails.... Just curious to know how would I get back your dual recovery? Thanks!

    This recovery package is for Sony STOCK (based) ROM's only!

    My apologies but my buddy introduced me to an app just a short while ago and its free on the play store.. To anyone getting hung up with missing a recovery download Rashr its free on the Play Store and it allows you to backup your current recovery and kernel and allows you to flash a recovery right from the storage or you can download one via the app itself and I can confirm it picks the correct device model and flashes flawlessly!!!!!!!! I'm now running the official CM12 20150126 nightly and have TWRP 2.8.4.1 installed woohooooo

    Sent from my Xperia Z Ultra using XDA Free mobile app

    Glad you got it fixed though.