yashsingh1/xdaforums huggingface dataset:
[Sony Cross-Device General] [NUT]:
XZDualRecovery 2.8.22-RC released!

RELEASE Change log:

Version 2.8.22:

Moved most of the files XZDR depends on to /system/.XZDualRecovery, including busybox, which will allow you to use whatever version of any busybox updater apps you can think of, as XZDualRecovery now uses it's private location for anything it might need. Thanks to everyone who helped debugging this release during it's BETA stage :highfive:

Somewhere in the development process of 2.8.22 CWM and PhilZ broke. I was able to fix PhilZ but CWM remained broken after several attempts to fix it. As it's old and quickly becoming obsolete, I removed it from XZDualRecovery. If you really want it back, install 2.8.21 instead.

Made a small modification which should prevent system lockups inside recovery, thanks to [MENTION=4712883]McBane87[/MENTION] for that fix.

The kernel version needs to be fixed due to the missing CWM package, the builder will always fail when working with 2.8.22. As nothing has changed for the kernel version itself other then the missing CWM, I will keep that on 2.8.21 until I fix it.

Changed the unrooted installation option to work with the latest rootkitXperia. This version is able to obtain root on most of the early Lollipop 5.0 ROM versions allowing the installer to work properly. I modified the installer to allow a retry as the nature of the exploit is such that it can fail to gain root and cause a reboot due to the nature of the exploit being used. If you use it, don't give up after one try, try it multiple times before reporting issues.

As it required a little bit more to remove CWM then to just remove it, I am releasing a Release Candidate version first including the changelog.

Please try and report any issues.

When updating to this version from ALL older versions, please download the XZDR-Removaltool.zip from the Toolbox folder, flash that in recovery and then flash this version or use the installer to install. This cleans up the old installation crap and keeps your system partition tidy. If you have installed 2.8.22 before you can skip that (unless you didn't run the removal tool before).

Have fun people :fingers-crossed:
[Sony Cross-Device General] Dilesh Perera:
hi [MENTION=410007]Nut[/MENTION]

i get " File went missing or session expired!" when i try to download Z2-lockeddualrecovery2.8.22-RELEASE.flashable.zip
[Sony Cross-Device General] [NUT]:
whups, try again :angel:
[Sony Cross-Device General] anakdayak:
Hi OP can i just flash the .22 over the .21?
[Sony Cross-Device General] dex87xda:
Nooo, just read instructions! Use removaltool first, then flash new version.
[Sony Cross-Device General] [NUT]:
Because 2.8.22 is using a different rooting tool to install on unrooted installations and 2.8.21 will be kept online as the alternative in case of issues with 2.8.22, 2.8.21 needed a patch.

To not break it as well (when it comes down to CWM) I decided not to change the files at all and instead release a flashable patch.

XZDR-2.8.21_Patch.zip

I realize this might not always work (as it needs to be able to mount system, which is the reason for it to exist as that fails on some of the supported devices on 2.8.21) but it is meant as a way to patch pre-rooted packages during install for now. I'll try to update it in the near future to break the lock on system and allow it to flash on broken installations.

This patch is meant for anyone who can NOT mount system in recovery without trickery, if you can, you don't need it.
[Sony Cross-Device General] eagle25884:
Moin [NUT],

flashed .22 RC over existing .22 Beta.

No Problems at all. Everything works fine. Appreciate your work.
[Sony Cross-Device General] DKYP:
Can I install recovery using 2.8.22 RC on my xperia zr running stock Lollipop with root.[LB].

Thanks.
[Sony Cross-Device General] [NUT]:
Uh, do you want to install a recovery from recovery or am I confusing stuff?

If you have root, you can install whatever version you want...
[Sony Cross-Device General] DKYP:
I wanted to install dual recovery on my xperia zr running stock lollipop 5.0.2 .

It's locked bootloader but rooted. I heard installing dual recovery on lollipop firmwares causes bootloop.

So which version of dual recovery installer should I use to get stable recovery.
[Sony Cross-Device General] [NUT]:
heh, what you heard is at least 5 months old... install whichever you want. I would suggest 2.8.22, as that allows you to install any busybox you want, 2.8.21 locks your device to the busybox included in XZDR itself and will most likely break root and recovery if you replace it.
[Sony Cross-Device General] DKYP:
Is everything working in these recoveries?

I mean nandroid backup and restore, installing stock based roms , etc.
[Sony Cross-Device General] [NUT]:
Dude... don't you think this thread would explode if they didn't?

Install it and see for yourself. No issues (other then a back-light control issue on the Z3 Compact on the latest ROM's) to worry about.
[Sony Cross-Device General] Pandemic:
Bro [MENTION=4904057][NUT][/MENTION]

Can we flash 2.8.22 over the previous 2.8.21 or we need to uninstall it 1st ?

Just curious or i missed something :)

Verstuurd vanaf mijn D6603 met Tapatalk
[Sony Cross-Device General] o-l-a-v:
Read the release notes again. You might find the text in the bottom of NUTs post relevant to your question.
[Sony Cross-Device General] Pandemic:
[MENTION=4423274]o-l-a-v[/MENTION]

It was just a normal question mate ;)

Verstuurd vanaf mijn D6603 met Tapatalk
[Sony Cross-Device General] akkufix:
Well, normal questions should generate normal answers... :p
[Sony Cross-Device General] Yenkazu:
Eh. . .

I don't know how I should say this, but. . .

Latest firmware for Xperia Z1 (14.6.A.1.216) and latest dual recovery 2.8.22, after installing recovery via installer (not flashable) it's should be reboot into recovery, but this time it's failed to reboot into recovery.

Even you force reboot into recovery via NDR utils, you can't.

Solution, turn off phone (not reboot), after that you can boot into recovery (weird solution) xD

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

1. Also, why TWRP folder doesn't exist in internal memory ?

2. Why no more option (enable init.d etc) in XZDR.prop ?

It's only have line like this>

dr.xzdr.version=2.8.22

dr.release.type=RELEASE

dr.gpiokeys.node=/dev/input/event4

dr.pwrkey.node=/dev/input/event3

dr.recovery.boot=twrp

dr.recovery.boot=twrp

Beside that, 2.8.22 working fine on Xperia Z1 latest firmware, thanks for your hard works :3

My Xperia Z1 still on locked bootloader btw.
[Sony Cross-Device General] DKYP:
I used xzrecovery installer to install recovery, it said successfully installed recovery.

But my phone is stuck on black screen.:(

When i try to boot It just vibrates but nothing happens..... Please help
[Sony Cross-Device General] [NUT]:
1: I have nothing to do with what Team Win changes in their releases. I have no idea.

2: No particular reason for it to be missing there... I think it just failed to write the setting... I'll have a look.

shut down your device using Power+vol-up, holding them for 10 seconds. Then try to boot once more.

If it fails, use flashtool to restore the system partition and kernel from a rootable 5.0.2 ROM and retry the installation using option 3. It sounds to me you might have used a rooting method before which is now causing problems...
[Sony Cross-Device General] DKYP:
I tried installing recovery using installer , Now my phone is not being recognized.

It just says connect your device now.

## Drivers problem man.

Now I installed dual recovery without any problems. Thank you..
[Sony Cross-Device General] kingsasha:
i have a custom rom which is built in with XZDualRecovery , i can't enter to any recovery ,

ps i am having problems with my sdcard which isn't mounting automattically

please help
[Sony Cross-Device General] DKYP:
Can you elaborate....

Which custom rom are you using at the moment?
[Sony Cross-Device General] harley1rocker:
Sony zu ultra.Ulocked BL,rooted,hybird concept rom, nuts recovery,...... C6802.

I tried updating to latest recovery. I flashed the clean up zip first. Then flashed the update.......bootloop......lost philz...but retained twrp. Entered twrp tried restoring backup. It said error unable to mount,read only. Backups on sd card. So reflashed old version of nuts and was able to run restore then. Why? I want the update. What did i do wrong
[Sony Cross-Device General] McBane87:
Unfortunately we can't support all ROMs flying around there, maybe something changed in the new release which is working with stock rom but not with yours. Can you please provide the logs mentioned on first thread? And please also attach the output of the command "mount" while you are on normal android (not from inside the recoveries)
[Sony Cross-Device General] Ashray_Vk:
Hey all, any progress on Xperia Z5 premium? I have a dual sim version though.
[Sony Cross-Device General] McBane87:
No need of catlog. Just the files mentioned here in the first thread:

And for the mount output:

Install adb on your windows, please. (Download)

Connect device to your computer, then open CMD and use "adb shell" command.

After that you should be connected to your mobile phone (view on your phone, because on first time it maybe asks for permission).

While you are now connected to your device, type "mount" and copy/paste the output here.

Thanks.

---------- Post added at 08:28 AM ---------- Previous post was at 08:27 AM ----------

As far as I know, still not possible with locked bootloader.
[Sony Cross-Device General] BS86:
2.8.22 works without issues on my Z1c - although the xzdr.prop was missing some lines after the first flash (I used the removal tool to remove 2.8.21 before)

reboot and flash the new .216 FTF with the 2.8.22 included fixed the missing lines in the xzdr.prop (version number was definitely missing)

Xposed v75 is also working without issues.
[Sony Cross-Device General] akkufix:
Cool, TWRP just re-locked my bootloader, after i restored an older "full"-backup from the time as my BL was locked.

I forgot his "ta.emmc.win" in the backup, which made this job.

Sure, phone was soft-bricked after the restore and later, i wondered myself, why i couldn't fastboot a kernel on it anymore. :eek:

Not really belongs to thread, but should show others to take care with backups, specially if they are from another device.
[Sony Cross-Device General] devilmaycry2020:
Hi

i'm using 2.8.22 and put ui.zip to sdcard/TWRP/theme but it didn't work, i have to move it to data/media/0/TWRP/theme and it work, But brightness slider didn't work, brighness didn't change when sliding right or left. Please check. thanks.
[Sony Cross-Device General] phatin:
Will XZRecovery be available for the Xperia t3 (D5106)

Thanks -Chris
[Sony Cross-Device General] [NUT]:
I have released 2.8.22 RC as RELEASE and updated the 2.8.21 patch package. The patch package has a windows install.bat included now, able to install the patch while the ROM is running with 2.8.21 installed.

This is it people. my attention and time will now go to 2.9 again.
[Sony Cross-Device General] harley1rocker:
Thanx for this dude. I was having trouble installing the update via twrp/philz. Clean up and installer zip just would not take. Thanx again
[Sony Cross-Device General] [NUT]:
If you tried to flash the installer package, that obviously doesn't fly well inside recovery...

Are you sure you have the flashable package?
[Sony Cross-Device General] harley1rocker:
Yes i have zip1 and zip
[Sony Cross-Device General] devilmaycry2020:
Hi all

Have anyone got problem with brightness slider in setting ? it didn't effect.
[Sony Cross-Device General] [NUT]:
Just to make sure you got the right packages, can you paste the complete filename of the package you tried to flash as it sits on your disk?

Multiple devices have the same issue. As it's not a urgent thing to fix (as the recoveries are working fine this way, even if the screen is a bit bright) I moved fixing that forward to XZDR 2.9 instead.
[Sony Cross-Device General] Rootk1t:
It's a known bug. Use topic search.
[Sony Cross-Device General] [NUT]:
Instead of keeping the confusion going, I'll just do something about it:

I will be releasing 2.8.22 as 2.8.23 once done repacking. I'm going to perform the same trick as I did with the 2.8.21 fix patch, merging the installer and flashable packages in to one zip. This way the new users will never be confused again and there will only be 1 zip for each device :good:

It's how 2.9 BETA's would be released initially anyway (before it moves in to an app to install), just moving that bit forward a bit :)
[Sony Cross-Device General] [NUT]:
I did not have any time to test it, but I think I figured everything out before actually attempting a build...

2.8.23 RC is online on my website now :cool:

READ_ME_FIRST.txt content:

RELEASE AND INSTALLATION NOTE:

This XZDualRecovery zip is the first combined package to be released.

This means you have downloaded the correct package to include in a pre-rooted
flashable package AND you have the correct package for installing using Windows
or Linux.

RECOVERY FLASHING:

To flash it, just put the zip on your sdcard or internal storage and flash
it in recovery.

INSTALLING FROM PC/MAC:

To install it without recovery, make sure you unpacked the entire zip and install
by starting install.bat for Windows or install.sh in Linux or MacOS X.

If you have any issues with this package, please report it in the DevDB thread on
XDA: [url]http://xdaforums.com/showthread.php?t=2261606[/url]

Signing off,

[NUT]

[url]http://nut.xperia-files.com[/url]
[Sony Cross-Device General] russel5:
Hello [MENTION=4904057][NUT][/MENTION], i realy don't understand why are you make v .22 as RELEASE, because this version don't work at all on z3 compact. (only test installer version)

Your big problem is that byeselinux not inject when phone is boot, because i don't find any strings in your scripts where this file copied to /system/lib/modules. Nowhere... i find where, but module not copy anyway.

But when i copy this file manual i still can't enter in recovery only red led and phone boot up, in log "module not loaded error code 0". Where the second problem i don't know, not find, not want......

Just install v.21. Realy sad, because before v.22 works perfect, but you change so much........
[Sony Cross-Device General] M1P:
Z3c here, xzdr v. 2.8.22, works as expected (flashable version). No problem was found so far.

Sent from my D5803
[Sony Cross-Device General] [NUT]:
If nobody reports it broken after release of the RC version while I don't have a Z3c to test it on, there is no way for me to know it's broken...

If you are able to fix it and to tell me how you fixed it, I'll happily implement it in a fixed 2.8 23 final release...
[Sony Cross-Device General] russel5:
I'm not tested, but i find some code, see and check it please may be i'm a wrong

first script that execute is installrecovery.sh. let's see

if [ "$ANDROIDVER" = "lollipop" ]; then
if [ ! -e "/system/lib/modules/byeselinux.ko" ]; then
${BUSYBOX} chmod 755 /data/local/tmp/recovery/byeselinux.sh
/data/local/tmp/recovery/byeselinux.sh

this code must install byeselinux, but if we see in byeselinux.sh

$BUSYBOX chmod 777 /data/local/tmp/recovery/modulecrcpatch
for module in /system/lib/modules/*.ko; do
/data/local/tmp/recovery/modulecrcpatch $module /data/local/tmp/recovery/byeselinux.ko 1> /dev/null
done
/system/bin/insmod /system/lib/modules/byeselinux.ko

we don't see anything what copy this module only command for inject, but what inject?

Then in first script we see this

# Checking android version first, because byeselinux is causing issues with android versions older then lollipop.
# Thanks to zxz0O0 for this method
if [ "$ANDROIDVER" = "lollipop" ]; then
if [ ! -e "/system/lib/modules/byeselinux.ko" ]; then
echo "The byeselinux module does not yet exist on system, installing it now."
$BUSYBOX cp /data/local/tmp/recovery/byeselinux.ko /system/lib/modules/byeselinux.ko
$BUSYBOX chmod 644 $SECUREDIR/xbin/byeselinux.ko

and module must be copied, but this not happend.

And what means your last chmod 644 if command for copy module in securedir much more lower in script.

May be a'm wrong or not understand, i don't know...
[Sony Cross-Device General] [NUT]:
Well, I'll try to enlighten you on the operation:

https://github.com/xNUTx/XZDualRecovery/blob/2.8-RELEASE/src/installrecovery.sh#L165-L176

# Checking android version first, because byeselinux is causing issues with android versions older then lollipop.
# Thanks to zxz0O0 for this method
if [ "$ANDROIDVER" = "lollipop" ]; then
if [ ! -e "/system/lib/modules/byeselinux.ko" ]; then
${BUSYBOX} chmod 755 /data/local/tmp/recovery/byeselinux.sh
/data/local/tmp/recovery/byeselinux.sh
else
/system/bin/insmod /system/lib/modules/byeselinux.ko
fi
else
echo "This firmware does not require byeselinux, will not install it."
fi

This part of the installrecovery.sh kickstarts byeselinux. If it does not exist on system, it will patch a new kernel module and load it on to the running kernel to disable SELinux. This is required to be able to remount system as SELinux will prevent that from happening in the first place (even before the kernel based RIC protection). byeselinux.sh will do just that, but will not install it, the installation is done here:

https://github.com/xNUTx/XZDualRecovery/blob/2.8-RELEASE/src/installrecovery.sh#L208-L223

# Checking android version first, because byeselinux is causing issues with android versions older then lollipop.
# Thanks to zxz0O0 for this method
if [ "$ANDROIDVER" = "lollipop" ]; then
if [ ! -e "/system/lib/modules/byeselinux.ko" ]; then
echo "The byeselinux module does not yet exist on system, installing it now."
$BUSYBOX cp /data/local/tmp/recovery/byeselinux.ko /system/lib/modules/byeselinux.ko
$BUSYBOX chmod 644 $SECUREDIR/xbin/byeselinux.ko
fi
if [ -e "/system/lib/modules/mhl_sii8620_8061_drv_orig.ko" ]; then
echo "Removing zxz0O0's byeselinux patch module, restoring the original."
$BUSYBOX rm -f /system/lib/modules/mhl_sii8620_8061_drv.ko
$BUSYBOX mv /system/lib/modules/mhl_sii8620_8061_drv_orig.ko /system/lib/modules/mhl_sii8620_8061_drv.ko
fi
else
echo "This firmware does not require byeselinux, will not install it."
fi

The split in these 2 actions was required for the original Xperia Z to accept the installation.

It's logical this way: We load byeselinux (and it will patch a new kernel module once it does not find one on system) to be able to run and install wp_mod to disable RIC. Then the next step is to install byeselinux.ko to the system partition (as RIC has been disabled now and SELinux is set to permissive).

I have no idea (honestly, I don't!) why this fails on the Z3 Compact...
[Sony Cross-Device General] [NUT]:
After explaining it all I went through the various versions of the byeselinux.sh script and I saw one with a bug, which will actually BE the cause of these issues:

https://github.com/xNUTx/XZDualRecovery/commit/94fd5643efa136fcb127ece9dfd1fab7ee212304

I'll check them all, to see if I can fix simple mistakes in target file locations like these...

Thanks for the report [MENTION=4688377]russel5[/MENTION], without it I would never have caught this one :highfive:
[Sony Cross-Device General] russel5:
No problem, bro. Glad to help you.
[Sony Cross-Device General] [NUT]:
[MENTION=4688377]russel5[/MENTION] and everyone else:

I have put a new 2.8.23 online, please download that and try again. This should actually work the way I explained it 2 posts ago...

EDIT:

I've pulled the 2.8.22 release as I can imagine this will cause issues on more then just the Z3 Compact.
[Sony Cross-Device General] russel5:
[MENTION=4904057][NUT][/MENTION] this is :)

=============================================
Step2 : Sending the recovery files.
=============================================
0 KB/s (31 bytes in 1.000s)
17 KB/s (18170 bytes in 1.000s)
cannot stat '..\system\bin\mr.sh': No such file or directory
12 KB/s (12754 bytes in 1.000s)
64 KB/s (65965 bytes in 1.000s)
3 KB/s (3159 bytes in 1.000s)
28 KB/s (29204 bytes in 1.000s)
43 KB/s (699 bytes in 0.015s)
33 KB/s (34473 bytes in 1.000s)
1 KB/s (1202 bytes in 1.000s)
3029 KB/s (96956 bytes in 0.031s)
cannot stat '..\tmp\busybox': No such file or directory
8248 KB/s (3299059 bytes in 0.390s)
8353 KB/s (2183680 bytes in 0.255s)
13 KB/s (13938 bytes in 1.000s)

we don't have any busybox in tmp folder and mr.sh only mr

and script don't work even not start
[Sony Cross-Device General] eagle25884:
Moin [NUT],

flashed the .23-combined.zip over old Version using TWRP and did a few checks. No Problems at all. Thank you.
[Sony Cross-Device General] [NUT]:
Typo's... Loads of them :x

I'll try to fix it tonight or tomorrow at the latest.

Thanks again :good:
[Sony Cross-Device General] russel5:
And the last. Now all works, byeselinux inject as it should (still NOT work on lollipop 5.1.1. see update!), but after first install and reboot i don't get in recovery anyway, just red led and phone boot up.

Then i power off and on, 2 vibro and green led --> enter recovery without any problem. I think first time i not enter in recovery because your script not write what recovery we are need

dr.recovery.boot=null

After reboot and enter we have this

dr.recovery.boot=twrp

BUT upper string stiil exist, ie we have this

dr.recovery.boot=null
dr.recovery.boot=twrp

UPDATE:

i found your big problem with byeselinux on 5.1.1

ANDROIDVER=`echo "$(DRGETPROP ro.build.version.release) 5.1.0" | ${BUSYBOX} awk '{if ($2 != "" && $1 >= $2) print "[COLOR="Red"]lollipop51[/COLOR]"; else print "other"}'`

but script still check

# Checking android version first, because byeselinux is causing issues with android versions older then lollipop.
# Thanks to zxz0O0 for this method
if [ "$ANDROIDVER" = "[COLOR="Red"]lollipop[/COLOR]" ]; then

and we not have byeselinux, script even not patch this module.

And one more can you add in installrecovery.sh this code

if [ ! -f "${DRPATH}/XZDR.prop" ]; then
echo "Creating the XZDR properties file."
${BUSYBOX} touch ${DRPATH}/XZDR.prop
fi
echo "dr.recovery.boot will be set to TWRP (default)"
DRSETPROP dr.recovery.boot twrp
echo "dr.initd.active will be set to false (default)"
DRSETPROP dr.initd.active false
echo "dr.ramdisk.boot will be set to false (default)"
DRSETPROP dr.ramdisk.boot false

because when we are use installer, he is made xzdr.prob and write only version and gpio keys

but in chargemon script

# Initial setup of the XZDR.prop file, only once or whenever the file was removed
if [ ! -f "${DRPATH}/XZDR.prop" ]; then

check this file (already created) and NOT add another string, like recovery.boot, init.d etc. And that's why i can't enter in recovery after installer reboot my phone + XZDR.prob created in first time...

UPDATE2:

After this changes

if [ "$ANDROIDVER" = "lollipop" ] || [ "$ANDROIDVER" = "lollipop51" ]; then

and upper code, all works like a charm. :p
[Sony Cross-Device General] kris555777:
hi [NUT] if i have old XZDualRecovery 2.8.21 first i must remove it before flash new XZDualRecovery 2.8.23 or i can just simply flash newest version?
[Sony Cross-Device General] akkufix:
Well, look in first post... :p

So, no need to backup these files, because it was done after first installation and just flash the new one against the older version.
[Sony Cross-Device General] kris555777:
ok, i read this first but few page's back for previous XZDualRecovery was different installation guide.
[Sony Cross-Device General] akkufix:
Didn't saw this post #6532, sorry. I always just flashed newer versions and it worked.

But to be save, you can use remove tool from his side.

http://nut.xperia-files.com/?ql=85bd752eb601381784d806c40c466e74f15d7ff3
[Sony Cross-Device General] Tamirwig:
Ooh, I've been waiting for this. [NUT], I'm ready to test at your command!
[Sony Cross-Device General] [NUT]:
Yay!

I'll get a test version out as soon as I get home.

Thanks!
[Sony Cross-Device General] Mitsuya Cider:
Which file do I download to update over the current version installed?

Thanks!
[Sony Cross-Device General] [NUT]:
Just the flashable zip, that would be enough. If you have any previous version of XZDualRecovery installed you can also use the updater, even between beta and release versions.