yashsingh1/xdaforums huggingface dataset:
[Sony Cross-Device General] spyfly:
XZ Dual Recovery not installing on Xperia Z Lollipop

Hello,

I installed XZ Dual Recovery on my Xperia Z, but there is no green led glowing on boot. Is there anything wrong with the lastest installer?

When im installing I get the following error:

cannot stat 'byeselinux\byeselinux.ko': No such file or directory

cannot stat 'byeselinux\byeselinux.sh': No such file or directory

cannot stat 'byeselinux\wp_mod.ko': No such file or directory

cannot stat 'byeselinux\sysrw.sh': No such file or directory

cannot stat 'byeselinux\modulecrcpatch': No such file or directory

Full installer log here: http://pastebin.com/TEUYpm2b

It looks like the byselinux folder is missing. Is this required?

Edit: Found out: Eset deleted the files without asking me when unzipping
[Sony Cross-Device General] tom282f3:
Unable to do backup in both recoveries.

Xperia ZL 5.0.2 with XZDR 2.8.1.8

Mount on /system failed.

I know people are having the same problem as me.

Any solution?
[Sony Cross-Device General] Anabolbeast:
having the exact same problem on a normal Z c6603 ..
[Sony Cross-Device General] McBane87:
I think I found a working solution for our RO-Problem in Z-Series.

First of all. Forget about my previous workaround.

Now, two things needed.

(It's really both. Doing only one of them isn't working.)

1.

Because of this:

/dev/block/loop0 on /system/odex type squashfs (ro,seclabel,relatime)

We need to unmount "loop0" in "dualrecovery.sh" before system is unmounted and chroot is executed:

# AS OF HERE NO MORE BUSYBOX SYMLINKS IN $PATH!!!!

export PATH="/sbin"
[COLOR="Red"]busybox umount /dev/block/loop0[/COLOR]
busybox umount -l /system # System

# exec
busybox chroot /recovery /init

2.

Because of some reason I don't know, we need the newest busybox, too.

It's the one in /system/xbin/busybox which needs replacement.

See attachment for my used busybox.

EDIT:

I've added the new Workaround to my unofficial installer and flashables.

You can find them under the links mentioned here:

http://xdaforums.com/showpost.php?p=61339059&postcount=5392
[Sony Cross-Device General] sbm1976:
Thank you sir ,

I have manually edit dualrecovery.sh and also replace busybox with the newer version within the officials .18 release

Installed and its working

Thanks
[Sony Cross-Device General] sword_huang:
:good: Thanks! It is work. I can restore my system from 5.0.2.
[Sony Cross-Device General] DastanShaikh:
It says unable to chmod read only File system...

I run this command -

# mount -o rw,remount /system

But still it says same..

Then i manually changed the permission from file manager to-

Owner- rwx

Group and other -rx

After that I run the second command u mentioned

But it says -

modulecrcpatch (by zxz0O0)

Error: [writefile] /system/lib/modules/byeselinux.ko does not exist
[Sony Cross-Device General] Prior_Ori:
Thank you very much. No problems with mounting. Restored from backup properly.
[Sony Cross-Device General] Anabolbeast:
i did the same thing,edited the dualrecovery.sh manually and replaced the busybox --> phone doesnt boot anymore :/ bricked? :crying:
[Sony Cross-Device General] Arju:
Could you give us more details? Is it dead as a stone or does it start up so that you see the sony splash screen? Does it react at all when you press the power button?
[Sony Cross-Device General] Anabolbeast:
sure,it boots till the sony/xperia bootlogo then (sometimes) it vibrates and boots again till the bootlogo over and over.

the led is sometimes red ;/ but not in every boot attempt..
[Sony Cross-Device General] Arju:
Great! That means it's not bricked. You could probably fix it by using flashtools and flashing stock firmware and then start off fresh which means you have to root it again later on but at least you will be able to make your phone work again. Find the flashtool thread and read up on how to fix your phone from there. :)
[Sony Cross-Device General] McBane87:
If you have an external SDCard you can try putting a File named "donotrun" into "XZDualRecovery" Folder. Just the File without any extension or text inside. This should disable XZDR while you are booting.

---------- Post added at 11:54 AM ---------- Previous post was at 11:45 AM ----------

Sorry forget some Part. Please copy byeselinux (also inside flashable/installer zip file) to /system/lib/modules/
[Sony Cross-Device General] sumitverma1:
Please make recovery for c3 dual d2502 plzz
[Sony Cross-Device General] Anabolbeast:
after flashing a stock 5.0.2 and rooting it with kingroot i cant install dualrecovery.. it seems that the install.bat is too fast in waiting for the root acces,therefore i get an timeout everytime i want to install the dualrecovery..

any help?
[Sony Cross-Device General] McBane87:
Hmm...Very strange. I rooted my device on Lollipop with Kingroot and installed XZDR many times the last days for testing. And I never had problems.
[Sony Cross-Device General] DastanShaikh:
Brother I copied byeselinux.ko....

BUT it's still says-

modulecrcpatch (by zxz0O0)

Error: [writefile] /system/lib/modules/byeselinux.ko does not exist
[Sony Cross-Device General] McBane87:
What sould I say now. The Error-Message is clear.

The FIle isn't existing there. Copy it to this location and make sure that system partition is writeable while you executing modulecrcpatch.
[Sony Cross-Device General] DastanShaikh:
I think system is not writable... How should I make it writable... Using terminal emulator....

I used the mount command as i mentioned earlier but this doesn't work to make system writable....?

Or is there any other way like using file manager.. Because by file manager it's easy to make system writable...
[Sony Cross-Device General] theduke7:
update next
[Sony Cross-Device General] McBane87:
Do it with your PC/Laptop. It's easier that way.

Install ADB: http://xdaforums.com/show....php?t=2588979

After installing that, you just open CMD on Windows and type "adb shell"

(This is only working if your device is configuered with usb debugging)

In this new Shell-Connection, do that:

su
mount -o rw,remount /system
mount | grep system

You should now see a line with mountet system. Look inside the brackets "()". There should be "rw" inside.

If it is "ro" it didn't worked.

After you confirmed RW-Permission for System Partition try the other part again.
[Sony Cross-Device General] theduke7:
here's my experience with the Unofficial Installer by [MENTION=4712883]McBane87[/MENTION] , installed normally through windows installer over the 2.8.17 version...

worked fine , and rebooted the device as normal, entered recovery at 1st reboot (Philz) , mount unmount seems to be working fine, i can't till about other issues though because i didn't flash any Rom or restore any back up :)...

BUT after i clicked restart to system a Weird thing happened... it told me that root is corrupted and if i wanted to install it in a given path (ends with /su) ... i know my device was rooted so for the sake of testing i said No.

when i'm back on LP SUperSU was actually off, and root looked gone, but when i opened SuperSU it asked to update Binaries , which i did, it successfully updated and rebooted , and root is back

so again for the sake of testing i rebooted one more time after that to see if root will go after entreing recovery again, i did reboot and entered Philz again then reboot to system.... ALL went well, root is good recovery is working...

so Thanks [MENTION=4712883]McBane87[/MENTION] good work m8 ;)
[Sony Cross-Device General] guzio14:
Hello,

or work on xperia sp 4.4.4 ( Cyanogenmod 11 to mateoo337 ) ?
[Sony Cross-Device General] dave_id:
it's working fine except at end of flash, it told me:

" root is corrupted do you want to repair"...
[Sony Cross-Device General] theduke7:
yes, it does that, i wrote it on my previous post... if your rom was rooted before press No, and in Lollipop update SuperSU Binaries and your root will be Back... ;)
[Sony Cross-Device General] McBane87:
Looks good. Don't worry about those many not found. It's normal. It's only necessary that there are some matches between the other. And they are there.

Can you now try to do this:

su
insmod /system/lib/modules/byeselinux.ko
dmesg | grep byeselinux
[Sony Cross-Device General] mir2:
Sorry buddy, but I have followed all the steps as you exposed and does not work to me. When I do a backup in the sdcard1 (external memory) tells me the following: unable to mount '/ system'

Now as I have to do to remove dualrecovery and leave everything as it was?
[Sony Cross-Device General] McBane87:
Which Device do you use? Maybe you accidentally did something wrong.

Try one of my "UNOFFICIAL" Versions. You can find them here:

http://xdaforums.com/showpost.php?p=61339059&postcount=5392
[Sony Cross-Device General] kt-Froggy:
FWIW, both your unofficial recoveries (.16 and .18) work great on my ZL. I flashed .18 over .16 via recovery. I didn't flash any ROMs made with PRFC, and have no plans to do it now, so I can't comment on the issue you mentioned earlier (it's supposed to be fixed in .18). But there is no problem mounting /system, and nandroid backup/restore works perfectly (I only tested it in PhilZ, though).

Thank you so much, man! :good:
[Sony Cross-Device General] mir2:
THX NUT, Chainfire, McBane87 and XDA & HTCMANIA People

Hello again friend, I mention the information you asked, so we can help more people.

My device currently

Sony Xperia Z C6603

Lock Bootloader

Rom Stock 10.6.A.0.454 R4E Customized ES 1270-66975.0.2 Generic ES PRE-Rooted

* Rom installed by the previous stable dual recovery XZ-lockeddualrecovery2.7.125-BETA

I first saw the method of installing the recovery and run by flashing the kernel but it seemed a little confused and I did not.

Then I saw your option, as you indicated: http://xdaforums.com/showpost.php?p=61437398&postcount=5544

* I change that line and put the new busybox with these new permissions, but as I said earlier I do not run, I install my perfectly fine and I went to the two recovery, but do not let me back up, unable to mount '/ system'.

Then I decided to uninstall it, for this use the method explained on the first page - How to revert back to original single recovery.

* The only thing that was not quite the busybox, this leave it in the same way you entered: /system/xbin/busybox - With the same permissions 755

Now thank you for showing me the unofficial method: http://xdaforums.com/showpost.php?p=61339059&postcount=5392

* After installing the recovery, the SuperSU asked me update binaries, the update without problems and finally I was able to a complete copy of the nandroid and flash multiple files without problems.

Thank you so much for your effort, the NUT and the Chainfire.

XDA people and HTCMania are best.

PD: Sorry for my english

ONE PROBLEM

One problem I agreed to recovery by NDR application and has stayed with me the black screen, I can do?

UPDATE

power + volume up and I managed to restart and tried to manually enter both recovery and go well, but since the application NDR does not work and that I have selected the recovery well, I can do?
[Sony Cross-Device General] DastanShaikh:
When i run the first command phone reboots...

I tried many times from both pc and phone(terminal emulator)...

I have yet not tried ur unofficial recovery installer...

Does this solves my problem..?
[Sony Cross-Device General] McBane87:
Well, then your byeselinux Module will make your device crash. It was the same on Z-Series.

But with newest Version it should work. At least for Z-Series. Which Device was yours?

If newest Version isn't helping, then I'm afraid I can't help you. In this case someone with C-Programming/Kernel-Hacking Experience is needed, who can modify ByeSeLinux-Module.

As a help for someone you could post output of this:

su
echo 1 > /proc/sys/kernel/kptr_restrict
cat /proc/kallsyms | grep selinux

EDIT:

Or maybe you are already using newest Version and the newer byeselinux.ko isn't working with your device?

In that case you could try older version (2.8.15).
[Sony Cross-Device General] BaDKaRmA:
Is System Mounting Not Yet Fixed on XZ? I am on .18 build.
[Sony Cross-Device General] e753:
I cannot boot my z ultra anymore. Can I install the recovery in fastboot mode? Thank you
[Sony Cross-Device General] McBane87:
Not on "Release" Version.

Try "Unofficial" Version.
[Sony Cross-Device General] [NUT]:
Only with an unlocked bootloader.
[Sony Cross-Device General] [NUT]:
I'm currently uploading 2.8.19, which should become the official release package of the version done by [MENTION=4712883]McBane87[/MENTION].

I have also fixed a booboo by me on the kernel builder, making it impossible to upload new kernel files... :eek:
[Sony Cross-Device General] v7:
I was gonna report the Upload issue.Thanks for fixing :highfive: :)

Tapped from my furious dogo ;)
[Sony Cross-Device General] e753:
Yes i got the bootloader unlocked.

I'm using Windows 7. How can I "fastboot" The recovery?

Thank you
[Sony Cross-Device General] [NUT]:
By using the Kernel Builder to repack the kernel for the ROM you where using and fastboot flashing that.

Unless you have flashed the Emma update to revert the stock Sony changes (FOTA instead of a recovery partition), this is your only way.
[Sony Cross-Device General] v7:
Are you trying to fastboot [MENTION=4904057][NUT][/MENTION]s recovery? I guess that's not possible.You have to use the PC installer for installing the Dual Recovery for the first time.

You can try integrate DualRecovery to your kernel using the Kernel Builder and fastboot it via Flashtool.

Else if you have a Kernel w Recovery integrated,flash it using Flashtool.

Tapped from my furious dogo ;)
[Sony Cross-Device General] [NUT]:
XZDualRecovery 2.8.19-RELEASE released!

RELEASE Change log:

Version 2.8.19:

Updated a few times to try and fix the system mount issues. [MENTION=4712883]McBane87[/MENTION] did the leg work for me in my absence and found a definitive fix after doing some testing together, THANKS A MILLION dude, the community owes you! :good:

TWRP 2.8.6.0 has no new version number but it should be considered updated, some fixes which where included in the git repo from Team Win warranted a 'silent' update.
[Sony Cross-Device General] e753:
Thank you
[Sony Cross-Device General] timobzdun:
For T2 Ultra 19.3.A.0.472 don't work, green led and loading to system. Creating with kernel builder.
[Sony Cross-Device General] digital_ism:
Awesome work man. Its working perfectly now :)
[Sony Cross-Device General] YudiA1:
Working good now :thumbup:

Great job [NUT].

Thank you so much :)
[Sony Cross-Device General] L3RMiNi:
Yay!

Superb work [NUT]! :victory::D
[Sony Cross-Device General] jdjta:
I've got one issue with TWRP 2.6.0.0 that makes me go back to XZDR 2.5.1 (and therefore also to TWRP 2.5.0.0) every time and I tried to search for a solution but couldn't find a good answer. The problem is I can't copy my backups made with TWRP 2.6.0.0 from my XZ to my pc.

I found this possibly has something to do with the new encryption-features. Is there a way to make a non-encrypted backup or to decrypt the files so I can make a copy to my pc? I managed to get an ADB pull once but this doesn't seem to work after I reconnected to my pc. Can somebody help me find a better solution?

Thanks!
[Sony Cross-Device General] [NUT]:
Creating an encrypted backup is optional... I have no idea why it would be a problem to copy these to your pc, the files themselves will be encrypted but will be stored as simple files as such. Don't you mean you encrypted your storage?
[Sony Cross-Device General] jdjta:
Thanks for your quick response! No, the files seem to be locked. When I try to copy the files to my pc I get an error message (there's no text in the error but it says something like "undefined error' and it stops copying the files. I thought this was due to the new encryption but maybe I'm mistaken. I didn't encrypt my storage on XZ or pc and with 2.5 there's no problem. Here's a thread I found about it: http://xdaforums.com/showthread.php?t=2377765 .

Edit: tried again with this latest version and still doesn't work. Getting 'unspecified error' when trying to copy the files. After this I tried to edit permissions as suggested in the thread above using Root Browser. Unfortunately got the following error after applying changes: https://app.box.com/s/rke4qxnxyxvd4i02twqe
[Sony Cross-Device General] [NUT]:
Hmm... could you redo that picture in the same folder but without the error? I want to see the file permissions ...

-EDIT-

Oh yes... am i right when i am assuming you store the backups on internal storage or an ext2/4 formatted sdcard?
[Sony Cross-Device General] troyism:
Ok since the update TWRP is loading up just fine, but no CWM. suggestions? I get green light and vibrate still, press up, it turns purple as if going into recovery, but then just stays at black screen; have to hold up & power to reboot. twrp green light, down, purple, boots into TWRP perfect

I haven't tried reflashing, but will try since it was flashed from twrp 2.4.3.0
[Sony Cross-Device General] Jonathan2677:
This has been discussed a few times in here,nut knows but not enough people have the problem to fix it,mine was like that on 423,then I updated to 244 re rooted and re installed dual recovery now it works,but I still only use twrp
[Sony Cross-Device General] troyism:
I figured as much after going back and reading some more threads. I prefer TWRP myself as well so it's not that big of a deal, but wondered if it was common/uncommon.
[Sony Cross-Device General] jdjta:
I already flashed back to 2.5.1 and deleted the backup 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).

I always use my internal storage to backup because my sd card isn't big enough... Is this the problem?
[Sony Cross-Device General] [NUT]:
That's exactly the information I need, that is something I can test :)

It could very well be the reason yes... I'll try to recreate the issue and device a way to fix it.
[Sony Cross-Device General] [NUT]:
Ok... a workaround for now is to use TWRP's advanced options, after creating a backup you wish to move to the PC:

go back to the main menu

go to advanced

go to filemanager

navigate to /data/media/0/TWRP/BACKUPS/*

SERIAL

*/*

BACKUPNAME

*

select one of the backup files

press chmod button (the one without 755)

type 0664 and press go

repeat 5->7 for each of the files in the backup, you can skip boot and the md5 files.

reboot to system and you should be able to copy the files without problems.

Alternatively you can install adbd Insecure (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.

-EDIT-

Made FAQ section and added this info there... it will be useful for anyone with the same issues :)
[Sony Cross-Device General] [NUT]:
Oh boy... i forgot to list one of the changes :p
[Sony Cross-Device General] drsoran2:
funny, I was testing after installing 2.6.3. (I had 2.6. before because 2.6.2. wouldn't install) if the reboot bug is there and luckily it wasn't for me so I felt glad. Now I found out that you fixed it already but forget to include it in the changelog.

Anyways, the new version works flawless.
[Sony Cross-Device General] d3athAdd3r:
Thanks a lot.. fixed the same issue :):good:
[Sony Cross-Device General] alias_neo:
The script that replaces chargemon gives me problems with my emergency charger pack. For some reason, it wouldn't charge while the device was on, then my battery ran out completely and each time the charge pack tried to boot it into "charge" mode, I'd get the green light, and then the battery on-screen, then the charge pack would auto power-off because no current was being drawn in time (causing the device to power off again).

I'm not sure what the issue is, and it charged fine from the mains, but I had to switch back to the stock chargemon binary for it to charge from the battery pack which unfortunately means I now have no access to the recovery modes.
[Sony Cross-Device General] [NUT]:
Check /system/bin for the existence of an executable named chargemon.stock and check it's size, if it's smaller then 60kb then it's not the executable.

If it's not there or if it is not the executable that would be the cause of your problem. Let me know either way, I'll send you a link to a fix.
[Sony Cross-Device General] alias_neo:
chargemon.stock was there, and it was the binary (I hex edited it to check), I renamed it to chargemon (after naming the script to .bak) and this fixed my charging.

So in short, I found chargmon.stock, and renamed it to chargemon and that fixed my problem, but I have no recovery. I noticed the script is supposed to call chargemon.stock under certain conditions but there appears to be an issue somewhere.
[Sony Cross-Device General] [NUT]:
Maybe my changes broke that yes... I'll test that when I get home later tonight.
[Sony Cross-Device General] [NUT]:
I'm aware of that, byeselinux still needs some kind of fix for the t2ultra...
[Sony Cross-Device General] anakdayak:
Reporting...latest version 2.8.19 working like a charm with no issue on my Z1 stock .270
[Sony Cross-Device General] sumitverma1:
Plz make recovery for c3 dual d2502
[Sony Cross-Device General] shoey63:
Doesn't that device have a true recovery partition now? If so just need root and flash a recovery image, even on LB :cool:

Sent from my D6653
[Sony Cross-Device General] [NUT]:
No, from what I understand, the recovery partition is only available if you have an unlocked bootloader device and flash the new bootloader using sony's flashtool:

http://developer.sonymobile.com/201...for-a-range-of-unlocked-xperia-devices-video/
[Sony Cross-Device General] thunder141:
Can wenn use it in PRF Creator as working recovery?

Thx for all developers for the work
[Sony Cross-Device General] Ratha ITC:
Z1 Lost Recovery with 2.8.19 Installer

My Z1 lost recovery after install 2.8.19 (Installer mode via PC). I've tried to install the previous versions, but It could not help.

My phone has no Recovery now. However, the .XZDualRecovery is sill there... Could be any problem with permission?
[Sony Cross-Device General] Lemmi1:
I tried the newest version 2.8.19 on my Xperia ZR, booted in TWRP Recovery, but system dont mounts, so I cannot do a backup over recovery.

I tought this was fixed in this version. What can I do, that it will work?
[Sony Cross-Device General] McBane87:
Should be solved, Yes.

Do you installed a custom/own Version of Busybox?

What's your Device with running Lollipop saying if you type mount in Terminal?
[Sony Cross-Device General] sbm1976:
latest version 2.8.19 installed XZR lollipop 5.0.2 pre-rooted LB stock ,

System mounted without any issue in both TWRP and Philz Touch

System mounted in CWM also but while rebooting from CWM it says root lost but if I ignore it , it works fine.

Backup and restore feature not tested

thanks.
[Sony Cross-Device General] Lemmi1:
No, I use the busybox, that comes with the dualrecovery and I flashed the new dualrecovery zip.

In TWRP I go to advanced and then terminal command, type select and then mount.

then this appears:

/ # mount

rootfs ib / type rootfs ...

and a lot of other lines I cannot type here. Dont can make a screenshot of this.

When I click on mount, there is only cache, data and external sdcard to mark, the other are uncheckable.
[Sony Cross-Device General] McBane87:
Don't show mount from recovery. Show me mount from lollipop as I sad.