[DEVDB][TWRP][PhilZ Touch] XZDualRecovery 2.8.26 RELEASE

Search This thread

mir2ruso

Member
Nov 28, 2012
17
1
I have version 2.3 and would like to upgrade to this 2.7.
I downloaded the file to flash and to update it.
But not now how to flash it from recovery, it becomes like a normal ROM?
 

Pi3rluigi

Senior Member
Sep 21, 2011
739
179
Turin
I got a rooted Z1compact but can't have SuperSu binary installed, so decided to flash custom recovery and try to update them from there
But this is the result after I choose option 3
==============================================
= =
= XZDualRecovery =
= Maintained by [NUT] =
= =
= For many Sony Xperia devices! =
= =
==============================================

Choose an installation option:

1/ Installation on device rooted with SuperSU
2/ Installation on device rooted with SuperUser
3/ Attempt installation on an unrooted device

Q/ Exit

Enter option:

3




Using TowelRoot to attempt an installation.
* daemon not running. starting it now on port 5037 *
* daemon started successfully *

=============================================
Step1 : Waiting for Device.
=============================================

Succes

=============================================
Device and firmware information:
=============================================
Device model is D5503
Firmware is 14.4.A.0.108

=============================================
Step2 : Sending the recovery files.
=============================================

mkdir failed for /data/local/tmp/recovery, File exists
1 KB/s (29 bytes in 0.023s)
956 KB/s (15757 bytes in 0.016s)
131 KB/s (501 bytes in 0.003s)
900 KB/s (11842 bytes in 0.012s)
2578 KB/s (56834 bytes in 0.021s)
833 KB/s (3082 bytes in 0.003s)
96 KB/s (385 bytes in 0.003s)
2578 KB/s (657704 bytes in 0.249s)
2805 KB/s (2689454 bytes in 0.936s)
2781 KB/s (1874765 bytes in 0.658s)
2726 KB/s (2482195 bytes in 0.889s)
511 KB/s (8759 bytes in 0.016s)

=============================================
Step3 : Setup of dual recovery.
=============================================

=============================================
Attempting to get root access for installation using TowelRoot now.

NOTE: this only works on certain ROM/Kernel versions!

If it fails, please check the development thread (Post #2) on XDA for more details.
=============================================

=============================================
Sending files
=============================================
402 KB/s (1572 bytes in 0.003s)
1765 KB/s (13592 bytes in 0.007s)
2657 KB/s (197320 bytes in 0.072s)
1524 KB/s (9496 bytes in 0.006s)
1872 KB/s (13672 bytes in 0.007s)
Copying kernel module...
1938 KB/s (34473 bytes in 0.017s)
206 KB/s (765 bytes in 0.003s)
1894 KB/s (13592 bytes in 0.007s)
Kernel version is 3.4.0-perf-g0109737
Version does not match 3.4.0-perf-ge4322cd, needs patching...
1+0 records in
0+1 records out
19 bytes transferred in 0.001 secs (19000 bytes/sec)
Kernel module patched.

modulecrcpatch (by zxz0O0)

module_layout: match
__aeabi_unwind_cpp_pr1: match
kallsyms_lookup_name: not found
printk: not found
mem_text_write_kernel_word: not found
__aeabi_unwind_cpp_pr0: match
successfully patched

=============================================
Installing using zxz0O0's towelzxperia (using geohot's towelroot library)
=============================================

towelzxperia (by zxz0O0)
thanks to geohot for libexploit

doing the magic
creating vm (loljavasucks)
libdvm opened (loljavasucks)
cleaning up
=============================================

REMEMBER THIS:

XZDualRecovery does NOT install any superuser app!!

You can use one of the recoveries to root your device.

=============================================
/system/bin/sh: /system/xbin/busybox: not found
usage: tr [-Ccsu] string1 string2
tr [-Ccu] -d string1
tr [-Ccu] -s string1
tr [-Ccu] -ds string1 string2

=============================================
Installation FAILED!

Please copy and paste the contents of
this window/screen to the DevDB thread.
=============================================
Should I have to unroot, but how? If superSu doesn't work ?
 

wingcook

Senior Member
Sep 18, 2010
97
36
Known Issues:
....


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.
....

I notice that the above is marked out and should be fixed. I installed the "TabZ-lockeddualrecovery2.7.154-BETA.installer" and I am still getting this message. This is an SGP311, so hopefully not an issue. Is there anything I can change to get this to see the correct tablet?

Thank You.
 

djnos

Member
Apr 25, 2014
18
0
doesnt work on 4.4.4

ive been doing alot fo reading, and suprisingly no one has said how to use this if your ALREADY on 4.4.4 with the update,
i think i probably need to go back down to 4.2 then try and install this recovery, but how??
i want to get the recovery done, then get root, then go back to 4.4.4
any help guys?
 

guhvanoh

Senior Member
ive been doing alot fo reading, and suprisingly no one has said how to use this if your ALREADY on 4.4.4 with the update,
i think i probably need to go back down to 4.2 then try and install this recovery, but how??
i want to get the recovery done, then get root, then go back to 4.4.4
any help guys?

First you'll need to post in the correct forum/thread. This one is about XZDualRecovery. Next you'll need to do some searching. Next piece together your results and the way will become clearer. I know this because I've done this twice in the last 3 days. I have a different problem, I can't write to my external sdcard. Grab 4.4.2 and flash via flashtool. Root then install recovery. Flash via recovery the 4.4.4 zip that is pre-rooted.

HTH

Sent from my SGP311 using XDA Free mobile app
 

taboo5200

Senior Member
Feb 2, 2011
65
74
Xperia T3

Hi, I have an Xperia T3 (D5103) with a locked bootloader and I'd like to install this, but I see that my device isn't listed. Should I take a gamble and install one of these, or wait for (and assist in, where necessary) support to be added?

First of all, send me a kernel.sin to take a look at the init
Since @[NUT] has stated in the above post that access to the device's kernel.sin is needed to add support, here's two of them for the D5103 (18.1.A.1.14 and 18.1.A.1.21).

Thanks in advance.
 

Attachments

  • D5103_18.1.A.1.14.7z
    7.2 MB · Views: 30
  • D5103_18.1.A.1.21.7z
    7.2 MB · Views: 39
Last edited:

RedSkyRoad

Senior Member
Nov 11, 2010
3,035
355
Johannesburg
@[NUT]

I've tried to revert to a single recovery with this:

Code:
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.

but I cant remove dualrecovery.sh and I have NO recovery now...

Can someone with knowledge please help?

---------- Post added at 01:58 PM ---------- Previous post was at 01:50 PM ----------

Is it the dualrecovery.sh file that prevents me from adding my own single recovery? I cant delete it because the file is R/O

Please Help

Or better yet, How do I transform a recovery.img to a LZMA file?

I even flashed the dual recovery again but I cannot get into a recovery. THERE IS NONE.

Please [NUT], help
 
Last edited:
  • Like
Reactions: spdhakad

v7

Retired Forum Moderator / Inactive RC
May 17, 2014
7,958
8,411
Arkham
I have Xperia ZR 4.4.4 stock rooted.I installed the dual recovery and it worked.
Then I updated the busybox with busybox installer and now the recovery doesn't work.The phone vibrates on keypress on boot but doesn't load recovery
Pls Help

Sent from my C5502 using XDA Free mobile app
 

v7

Retired Forum Moderator / Inactive RC
May 17, 2014
7,958
8,411
Arkham
How to fix the issue??

Sent from my C5502 using XDA Free mobile app
 

v7

Retired Forum Moderator / Inactive RC
May 17, 2014
7,958
8,411
Arkham
Uninstall Busybox updater, reinstall recovery, and don't try updating Busybox anymore.

i did as you said but its not working.
uninstalled busybox,installed recovery but cannot enter recovery
Cannot boot to any recovery.
The phone vibrates but no recover :(
.Please help
 

[NUT]

Senior Member
XZDualRecovery 2.7.155 Released!

It's time for an update, TWRP has landed at 2.8.2.0, though it has not yet been released with a changelog, this is what they did to it up to 2.8.1.0:
What's new in 2.8.1.0:

MTP fixes and improvements - you can now copy zips to the root of storage - thanks to _that
TrueType Font support - optional as it takes up a decent amount of space so may not be available on all devices - thanks to Tassadar
Temperature support - thanks to bigbiff
Various other bugfixes and tweaks

What's new in 2.8.0.1:

Fix a bug that caused weird graphics and touch issues

What's new in 2.8.0.0:

Add MTP support to recovery thanks mostly to bigbiff with a little help from Dees_Troy
Add command line capabilities - you can now execute various TWRP features via adb instead of the touchscreen
Add support for color in the console and give error, warning, and highlight lines different colors
Track backup and restore progress based on file sizes to provide a much more accurate indication of progress
Improve handling of /misc thanks to mdmower
Improve setting of time on Qualcomm devices thanks to [NUT] :eek:
Allow using images on slidervalue GUI objects thanks to Tassadar
Allow using variables and addition and subtraction in variables for easier theming
Add support for 1440x2560, 280x280, and 320x320 resolutions and update 240x240
Allow ui.xml file to include additional xml files to help break up the theme and make TWRP easier to maintain
Other minor fixes and improvements

Over the course of the last year or so, bigbiff has worked to migrate various Java functions from Android's MTP implementation to bring you a fully C++ based MTP implementation that allows you to transfer files to both emulated storage and Micro SD cards. It's confirmed to work on various Nexus devices but we may have to make some changes on other devices to keep Windows happy. Windows is very picky about USB IDs and its drivers. We have tested it on Windows 7 and 8 as well as Ubuntu 14.04 Trusty. MTP is enabled by default, but we do toggle it off and on automatically during certain operations such as if you choose to wipe a storage partition. You can enable or disable MTP under the mount menu in TWRP. For more about what MTP is here.

Note: Due to a weird bug with our MTP setup, you cannot copy a zip file to the root of storage with Windows. You can change the .zip to something else like .txt and then copy it to the root and rename the file back to .zip once it's copied to the device. You can also copy the zip into any subfolder.

Command line support is also now available. You can perform various OpenRecoveryScript commands via the adb shell. Depending on what you are doing you may wish to do a "twrp set tw_mtp_enabled 0" and then reboot to prevent the MTP auto toggle from killing your adb interface. You can use this option to create and restore backups, wipe, install zips, and more. Via adb shell, type twrp followed by a space then enter the OpenRecoveryScript command and hit enter. Find more OpenRecoveryScript commands here.

Together with that I included the latest Z2 ROM versions so the installer will install the root fixes correctly on them. Thanks @norti for adding that.

Working on the Z3 version still, I promise it will come ASAP, but if the past few months have been a clear example: it can still be a while away.

As always, 2.7.155 can be found on my downloads page: http://nut.xperia-files.com. I have tested and confirmed it working fine on the Z, Z1, Z2 and will be testing it soon on the T.
 
Last edited:

hussein1

Senior Member
Mar 17, 2013
606
513
New York City
I'm having issues with my Xperia T, so I am unable to give it a proper test :rolleyes:

Please do speak up if you have been able to test 2.7.155 on it!
Thank you for your very hard work without interruption.[NUT]
But why not update PhilZ Touch recovery to PhilZ Touch 6.59.0!!?:(
Does not support the Android 5.0 PhilZ Touch 6.48...:crying:
Does not support the Android 5.0 TWRP 2.8.1 ...:crying:
Android 5.0 only supports the recovery of TWRP 2.8.2 & PhilZ Touch 6.59.0.:p
 
I'm having issues with my Xperia T, so I am unable to give it a proper test :rolleyes:

Please do speak up if you have been able to test 2.7.155 on it!

Thanks for the update and for your hard work. But I'm having some issues with my Xperia ZL in TWRP 2.8.2.0. The screen doesn't turn off after screen timeout. It just goes blank. And the brightness. It just works upto 50%. Reducing it further doesn't dim the screen. Tried restoring defaults. And same issues. I'm on stock ROM and kernel KK 4.4.4
 
Last edited:

[NUT]

Senior Member
Thank you for your very hard work without interruption.[NUT]
But why not update PhilZ Touch recovery to PhilZ Touch 6.59.0!!?:(
Does not support the Android 5.0 PhilZ Touch 6.48...:crying:
Does not support the Android 5.0 TWRP 2.8.1 ...:crying:
Android 5.0 only supports the recovery of TWRP 2.8.2 & PhilZ Touch 6.59.0.:p

TWRP is version 2.8.2.0, so it supports Lollipop...

PhilZ on the other hand won't compile on my build environment... and because they both are a big leap forward, I decided to split releases, just to make sure you would still have a working recovery. I have asked @shoey63 to take over philz building again. If he is successful, one of the near future releases will have the latest PhilZ.

Thanks for the update and for your hard work. But I'm having some issues with my Xperia ZL in TWRP 2.8.2.0. The screen doesn't turn off after screen timeout. It just goes blank. And the brightness. It just works upto 50%. Reducing it further doesn't dim the screen. Tried restoring defaults. And same issues. I'm on stock ROM and kernel KK 4.4.4

Whoops :eek:

I forgot to include the secondary brightness path in odin's BoardConfig :D

2.7.156 is on it's way for ZL.

EDIT: online NOW
 
Last edited:

Top Liked Posts

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

    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: 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 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.

    XZDualRecovery User Manual

    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
    • @russel5 for his tinkering and general debugging help :cool:

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

    Downloads:
    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! :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:

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

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


    Version Information
    Status: Stable
    Current Stable Version: 2.8.26
    Stable Release Date: 2016-02-22

    Created 2013-07-18
    Last Updated 2016-02-22
    250
    Hello guys,

    I noticed there are some problems getting dualrecovery to work on Lollipop. I created a small hack to bypass the SELinux enforcement (wonder why no one else created it already). Anyway I attached a little bat file to fix dualrecovery again (tested on Z3C).

    Source will be released in the next days and probably also integrated in the official dualrecovery.

    Happy eastern.

    Edit: Source available here https://github.com/dosomder/byeselinux
    136
    Known Issues and Frequently Asked Questions

    Known Issues:
    All known issues in PhilZ, TWRP and CWM on locked boot loaders apply, see their respective threads for more information.

    Busybox updaters can kill XZDualRecovery, see the FAQ below for more information.

    Frequently Asked Questions:

    How to set the correct time & date in PhilZ 6.59.0
    • Boot to PhilZ Touch;
    • Tap 'Recovery Settings';
    • Tap 'Gui Preferences';
    • Tap 'Time Settings';
    • Tap 'Change date and time';
    • Tic one of the last 3 options in this menu to try it;
    • Reboot to PhilZ Touch to see if it sticks, if not, try another and reboot to see if it helped, do this for all options to try them;
    • If one of them does help but does not stick at reboot, tic 'Try Force Persist on Reboot' once (it will un-tic itself after a reboot).
    • Done! :)

    NOTE: if it's close to being correct (max 15h difference before or after your time) you need to correct the timezone.


    About TWRP 2.6 and the use of INTERNAL STORAGE
    [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 2.8.21 and older 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! :highfive:

    The 2.8.22 and later installer package uses rootkitXperia for various Xperia phones, it is able to gain root on all of the currently supported devices -if they are running the correct Lollipop version- allowing to install XZDR.

    Thanks go to @cubeundcube and @zxz0O0 respectively for developing and making some changes to allow me to utilize it for XZDualRecovery installation. Thanks guys!


    XZDualRecovery's (2.8.21 and older) Busybox dependency and compatible Busybox updaters

    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.

    @vaisakh7 found a busybox updater which seems to be compatible with XZDualRecovery: Busybox On Rails, which installs a version of busybox created by stericson, which leads me to believe his Busybox installer should also install a version which works together with XZDualRecovery.

    Either case, be careful with updating busybox as there still is a possibility it will break your ability to enter recovery or even break full root, which means you might not be able to recover from the broken situation. Your best bet is the installer version, using that to break the lock on the system partition and reinstall the correct busybox.

    XZDualRecovery 2.8.22 and newer do not suffer from this dependency, you can use whatever busybox updater app you like when you have 2.8.22 or newer installed.


    I installed XPOSED on Lollipop and now I am experiencing a boot loop!

    @ondrejvaroscak found a workaround to fix your bootloop issues: [WORKAROUND] Bootloops with Xposed in Lollipop

    While using the installer I get the message "This device is unauthorized" and I can't install XZDualRecovery!

    Authorizations... The latest versions of adb and android need this, it's nothing XZDR related. If you have USB debugging turned on, and your mobile disconnected from your PC, just make sure you 'revoke all authorizations for USB debugging' in the developer options menu. Then reboot your phone and before doing anything else, make sure you're looking at the home screen on your device, then hook up your USB cable. Your mobile should then ask if the connected PC is authorized or not. Once answered you can start the installer.
    122
    A small update on progress:

    The issues with XZDR are mainly caused by Sony actually properly setting up SELinux support for the very first time on the LP ROM's, something they neglected in all of the KK releases. This makes the LP version a lot more secure, which is a good thing. The problem is that I now know what to fix, but am still looking in to how to fix it. :angel:

    For the techies among us:

    During INIT the hijack still works, but the script is not able to change anything on the rootfs, it allows you to create a folder and if you mount a tmpfs on it you can write stuff to it, but if you try to write anything to the folder as it is (without tmpfs) it will not allow you to do so. This is because the SELinux context of my scripts is not set correctly, so the kernel blocks just about everything I try to do. I'm busy configuring and compiling a new busybox to include in XZDR with better SELinux support, as the one I am currently using is lacking the extended SELinux support I will need to fix this.
    The other problem is that init is less easy to override with the init from the recoveries, it simply continues the LP boot, I am in the progress of including 2nd-init support ( created by SkrilaxCZ ) and will be integrating parts and ideas of the safestrap project by Hashcode to fix these issues.
    The last but not least problem is that I can still mount the SDCard, but I am unable to write to it, most likely also due to the SELinux restrictions. If you remove the SDCard from the device it will use /cache which seems to be set up with less strict permissions and it will be able to do just about everything, except boot the actual recoveries.

    Last night I worked from 23:00PM all the night up to 6:30AM, pulling an almost an all-nighter. I'm not giving up just yet :cowboy:

    My thanks go to @Hashcode for a late night chat (for me that is, he was at work as he is located on the other side of the globe!) which helped me find the most likely cause.