yashsingh1/xdaforums huggingface dataset:
[Sony Cross-Device General] Sun_:
after a lot of attempts , and after run byeselinux from [MENTION=3975929]zxz0O0[/MENTION], i installed finally the dualrecovery 2.8.3 succefully!

and first after installing recovery i got sys R/W.
[Sony Cross-Device General] pr0jesse:
How?! When i try byeselinux i get 'System cant find path...' Please help!
[Sony Cross-Device General] Sun_:
my Device is Z3 D6603 (locked Bootloader) on prerooted stock Lollipop ...
[Sony Cross-Device General] kunaltyagii:
can you please tell the steps you followed? i used the same byeselinux patch but dont have r/w access
[Sony Cross-Device General] Sun_:
updated to SuperSu 2.48 , untick Mount namespace separation, reinstall ES Fole explorer
[Sony Cross-Device General] [NUT]:
Actually... I want root, but I also want to be able to control which app is allowed to do anything as root. This is why I install the supersu app.

At the same time you want selinux to be turned on watching over your data as a guardian unless you need to do something specific which warrants turning it off.

It's about choices. The patch gives you near to no choice. I want xzdr to do so, at any given time.
[Sony Cross-Device General] kunaltyagii:
i'm already on lollipop, with working recovery, if i update the supersu now and follow rest of it do you think it'l work?
[Sony Cross-Device General] Sun_:
no garrantie my friend ;)
[Sony Cross-Device General] Chinchill4:
Guys, I've problem. I'm running Xperia Z3 lollipop .690

After installing recovery I can't restart phone without clearing dalvik/art cache.

Without this phone is blocking on startup animation.

What can I do? Because restarting art cache takes about 5-6 mins everytime.
[Sony Cross-Device General] Sun_:
that is not the recovery, uninstall Xposed
[Sony Cross-Device General] FabianLaRose:
You must've installed Xposed. Uninstall it ;)
[Sony Cross-Device General] stewartk:
Do u have this file available to flash from recovery
[Sony Cross-Device General] [NUT]:
Yes sir http://www.fun-industries.nl/xda/?dlid=bG9ja2VkZHVhbHJlY292ZXJ5Mi4yLUJFVEE=

:)
[Sony Cross-Device General] demon2112:
Omg...you have a full time job of linking everything haha :p
[Sony Cross-Device General] [NUT]:
Yah, you'd day the files would be easy enough to find... But I guess not :p
[Sony Cross-Device General] Admiral AnimE:
It's the same. :( Daemon started, waiting for device.

Edit: I tried both 2.4 and 2.5
[Sony Cross-Device General] lancebuks:
Is USB debugging enabled?
[Sony Cross-Device General] Admiral AnimE:
lol really? That worked, but seriously, post it in the OP. I'm currently at step 3, it says look at the device and grant supersu access, but i don't see anything?

Edit: worked!
[Sony Cross-Device General] mmamedov:
I installed it, it gives me success, but I can't get in recovery (there is no Orange LED or Vibration on boot)

UPD: I was installing via flashtool, tried to install with your toolkit and it worked!! Thanks alot!

Here is my device's information:

C6603 Stock JB4.2.2 10.3.A.0.423, UB
[Sony Cross-Device General] lancebuks:
not Orange - when you first turn the phone on you should see a Green LED, at this point you can either press volume up (to enter CMW) or press down (to enter TWRP).
[Sony Cross-Device General] mmamedov:
I know I meant green sorry. There wasn't any LED light. I've got custom recovery via toolkit for Locked bootloaders on my phone with Unlocked Bootloader.
[Sony Cross-Device General] [NUT]:
I will... It seems I'm so used to having that enabled it never crossed my mind... :eek:
[Sony Cross-Device General] Tamirwig:
This must be because of the different paths in 4.2.2 (like data/media/0 for internal storage instead of data/media)... It's likely that the path for the ext-sd is incorrect for 4.2.2 in both.

But I can't access (mount) the external SD in either CWM or TWRP. Running latest XZDualRecovery (2.5 Beta). Running 423 modified firmware (important bit is - it's based on 4.2.2). Card is Sandisk 32GB Class 10 formatted as exFAT (Maybe that's why? Could it be that neither CWM or TWRP know how to handle exFAT?) and my BL is unlocked.

This poses a bit of a problem, as I want to do a full wipe of internal storage and install a ROM from the external SD...
[Sony Cross-Device General] atamig:
can I use this installation with the CM 10.1 Rom? I want to use the twrp recovery with the cyanogen Rom.
[Sony Cross-Device General] [NUT]:
[MENTION=4567848]lancebukkake[/MENTION] found a solution to that: eject and re-insert your SDCard, and try to mount it again.

I'll put in a bug report on it with Team Win as it seems it really is a TWRP issue.
[Sony Cross-Device General] [NUT]:
Most likely not... but who knows... just don't forget to have a solid backup before you try.
[Sony Cross-Device General] Tamirwig:
Thanks, that did the trick. :D

Does CWM behave the same btw? For some unknown reason I prefer CWM to TWRP...
[Sony Cross-Device General] [NUT]:
Not sure... from what i understand CWM has no exFAT support ... but you might just give it a try :)
[Sony Cross-Device General] Tamirwig:
Will do, thanks. :)

Now if only USB mounting worked on either... (TWRP has the Otg option, but it doesn't work...)
[Sony Cross-Device General] sitelister:
I am unable to access recovery on RomAUR 7.0. Device boots, I get the green light and I mash the up or down button but nothing happens.

I also tried using CWM to flash the zip and even that didn't work.

Thoughts?
[Sony Cross-Device General] [NUT]:
Well, are you sure you have installed the BETA

package?

Hmm, how is that formatted? I have been able to use a flashkey myself, with fat32...
[Sony Cross-Device General] Chinchill4:
I've made a backup before installing xposed.

After problems I did restore, but the problem doesnt disappear. How is it possible?
[Sony Cross-Device General] FabianLaRose:
Had it too. After backup I cleared cache and art cache. That worked for me.
[Sony Cross-Device General] Chinchill4:
Unfortunately, I have to do it all the time :/
[Sony Cross-Device General] pr0jesse:
If 2.6.8 A3 works on lollipop ( on Z2 *03), can we install xposed then? I miss gravitybox...:(
[Sony Cross-Device General] ondrejvaroscak:
Can you guys discuss it on Xposed related forums as it is not related to recovery? And perhaps flash new stock from Flashtool if you fckd backup/restore.
[Sony Cross-Device General] juanpirulo:
Did you wipe system before restored your backup? . cheers
[Sony Cross-Device General] thlinh130295:
I think i got problem now,

1) I flash bye.bat in byeselinux.zip of zxz0O0, then flash recovery 2.8.3, well it worked but just for the first time, then if i reboot again, it return cant open recovery again.

2) is that only the 2.8.3 worked with this method, i try with 2.8.6 but no hope
[Sony Cross-Device General] pr0jesse:
Sorry man, just curious if it works.. I tested the recovery and it doesn't work on the z2 D6503... And I can't get the byelinux(?) Fix working...
[Sony Cross-Device General] belblade:
so... i'm on a pre-rooted 4.4.4. with R/W and dual-recovery (Z3C), can I flash a pre-rooted 5.0.2 via recovery (that includes 2.8.3) and before rebooting flash the 2.8.6 ? would that work ?
[Sony Cross-Device General] FcukBloat:
http://xdaforums.com/showthread.php?t=3076161
[Sony Cross-Device General] FabianLaRose:
I just answered but I get it. Sorry ;)
[Sony Cross-Device General] ffira04:
working

Dear [MENTION=4904057][NUT][/MENTION]..I can confirm your flashable zip of XZDR 2.8.6 attempt 3 is working nicely on preroot lollipop for z2 23.1.A.0.690

Thanks brother:good::good::good::good:

here is the attachment
[Sony Cross-Device General] luiscarlospv:
Hello man, as did the installation process? 4.4.2 with recovery to .zip 5.0.2 pre rooted and flashable recovery?
[Sony Cross-Device General] ondrejvaroscak:
Face the truth, ONLY working recovery on Lollipop LB is 2.8.3 with byelinux. Versions 2.8.5 and 2.8.6 dont work for now.
[Sony Cross-Device General] Konvict64:
I just made my own pre-rooted French ftf of lollipop with recovery 2.8.3 then execute byeselinux. R/W just go away and root also. After flash it, recovery version is 2.8.5... It works for me. I can go in recovery but can't have full root or mount rw system.
[Sony Cross-Device General] ondrejvaroscak:
Recovery version is 2.8.3

You booted into TWRP that is version 2.8.5.0

These are different things. Xzdualrecovery version 2.8.3 includes TWRP version 2.8.5.0.

Install SGP621-RICDefeat.zip and reinstall File Manager and you will have RW
[Sony Cross-Device General] [NUT]:
To anyone who did a

failed

installation of Attempt 3, please try again and after the boot to ROM after installation, please check if /proc/last_kmsg exists. If it does, please send it to me. You will need root access to read and copy that file.

Special attention for all people still on KitKat: I really need one from a KK user as well as one or a few from a LP user...

I'm facing 2 hunches right now, I want to make sure I'm pursuing the correct one...
[Sony Cross-Device General] ondrejvaroscak:
2.8.6 Attempt 3

Confirming failure on Attempt 3, attached logs and cmd out from both win installed and flashed tries.

Both recovery and system r/w lost.

After booting, double vibration, but LED goes RED instead of violet.
[Sony Cross-Device General] mardrest:
I have a Z3C D5803 with .690 and i dont have the file last_kmsg after 2 installs of attempt3

Here are the cmd and the xzdualrecovery folder zipped
[Sony Cross-Device General] pepzin:
Z3 D6603, prerooted stock .690, no last_kmsg.
[Sony Cross-Device General] benjieb:
I to understand you want to do it your way... And as a voice of the community I thank you for precisely that.

[MENTION=4688377]russel5[/MENTION], with all due respect, please remain silent.
[Sony Cross-Device General] mardrest:
Z3c d5803 with lp Tried lockeddualrecovery 2.8.6 a4 and no success. Installed on rw system rooted. Here are the files
[Sony Cross-Device General] MaSsAcRe1992:
z2 lollipop?

ALso I can install it via PC on my z2 with rooted stock lollipop?
[Sony Cross-Device General] ondrejvaroscak:
Install what? Recovery? Yes. Version 2.8.3 works if you install also byeselinux via your PC and SGP621-RICDefeat.zip for full RW access.
[Sony Cross-Device General] pepzin:
There is something wrong with byeselinux. I got it working by editing dualrecovery.sh:

ECHOL "Model found: $MODEL ($PHNAME - $VERSION)"
[B]EXECL rmmod byeselinux
EXECL insmod /system/lib/modules/wp_mod.ko
[/B]
EXECL mount -o remount,rw rootfs /

After that it is working for me. I know you want a nicer solution, but I hope this will help you NUT.

edit: Never mind, TWRP is unable to mount /system, and /sbin/postrecoveryboot.sh ends with ERROR=1

edit2:See my next post, I've mounted it manually.

(I'm on Z3, 5.0.2)
[Sony Cross-Device General] ffira04:
yup..i go from 4.4.2 with recovery to 5.0.2 pre rooted and flashable recovery..all working perfectly :D:D:D
[Sony Cross-Device General] pepzin:
I've been experimenting with this some more, and has been able to mount /system in TWRP using the terminal.

First thing I tried was

rmdir /system/bin

(why was it there?) and then i did

mount -o ro,barrier=1 /dev/block/platform/msm_sdcc.1/by-name/system /system

Just finished backing up /system, but this is a very ugly hack.

edit:For some reason /system needs to be mounted ro, but directly after it has been mounted, I can remount it rw.
[Sony Cross-Device General] MaSsAcRe1992:
thanks for the answer, but how can i install biselinux and what ist it? I have looked bootloader, sorry im new to this biselinux thing :D

So install the recovery via PC, than boot into it and flash SGP621-RICDefeat.zip ?

what about wipe cache/ dalvik after that?
[Sony Cross-Device General] vinicioh23:
question

What's the point of having dual recovery? Can you tell me?
[Sony Cross-Device General] esps:
http://xdaforums.com/wiki/Recovery
[Sony Cross-Device General] kunaltyagii:
he's asking about the word "DUAL" i think..
[Sony Cross-Device General] [NUT]:
Choice.
[Sony Cross-Device General] TheV:
Thanks for the feedback. Haven't had any luck with .690 either. Thought I would just add my 2cents for .726 as well. I'm sure NUT will iron it out soon enough.
[Sony Cross-Device General] [NUT]:
Ugly hack or not, you helped track down a difference between Z2 and Z3, because there is no such problem on the Z2 I am using... it makes it extremely weird to say the least.

Well, the installer should actually have no problem to identify a new ROM with the need for the disableric solution because it searches through the init files for the offending parts and will apply the disableric solution accordingly, the list of firmware's included in the installdisableric.sh is only for the flashable update as it won't be able to search through the original init files.

I'm starting to wonder if there is a way to detect if byeselinux is required or not, I am guessing the issues with older ROM versions are caused by testing the byeselinux module on the running kernel... because some of you have experienced a premature reboot, probably caused by a kernel panic.

hmmm ... *pondering*
[Sony Cross-Device General] pr0jesse:
Is it normal that when the cmd says "Cannot stat... ...: No such file or directory" at every step?
[Sony Cross-Device General] FcukBloat:
hi guys, until latest version is fixed, I am using 2.8.3: is there somewhere a flashable zip of zxz0O0's fix? this way, I could add it to my own prerooted fw with PRF creator (extra zips) while right now after flashing it I have always to connect phone to PC to run the .bat file ;(

TIA!
[Sony Cross-Device General] ondrejvaroscak:
Hm, so far its the only recovery for locked bootloader on XPERIA Z.

---------- Post added at 10:50 ---------- Previous post was at 10:47 ----------

You are a real massacre, really. Did you bother to read instructions?

Byeselinux is a script that disables enforcing Selinux, hence makes XZDualRecovery 2.8.3 working. You run it from Windows/Linux while connected to mobile over USB. You need to be already rooted.

SGP621-RICDefeat.zip is NOT flashable. You unzip it in PC, and like byeselinux, you run it while connected to your mobile. It disables RIC, hence enabling remounting filesystem in writable mode.

You need to uninstall and reinstall your file manager (Root explorer, ES File Explorer) after installing SGP621-RICDefeat.zip

Guys, I really wonder how many times I and others have to write it down.
[Sony Cross-Device General] [NUT]:
Eh, no, you probably only unpacked the batch file (install.bat) ... make sure you unpack the entire zip file.
[Sony Cross-Device General] [NUT]:
As many times as there are people who don't RTFM or know how to use the SEARCH function on these forums. *sigh*

Best is just to ignore people and assuming the silence tells them to search instead of ask. ... forums users are trigger happy: 'shoot first, ask questions later' should be translated to 'ask questions first, RTFM/Search if no answer comes'...

Anyway: IF I adapted the installer the correct way, SGP621-RICDefeat.zip should not be necessary anymore... please do confirm or deny that :)
[Sony Cross-Device General] [NUT]:
Currently uploading Attempt 5.

I created a way to check if byeselinux is required or not and implemented it.

This means that all devices running KITKAT should now work problem free. Lollipop is still a big unknown.

-- EDIT --

installers only this time, because the same fix has not yet been applied to the flashable updater.
[Sony Cross-Device General] amazingd:
d5833 with 23.1.A.0.726 firmware rooted

no r/w

cannot enter recovery....

:<
[Sony Cross-Device General] ondrejvaroscak:
Attempt 5 failure

Failure of Attempt 5 installer D6603 .690 (from XZD 2.8.3 + bye + SGP RICDefeat)

No dual vibe, no rw.
[Sony Cross-Device General] E66666666:
Start over freshly from a rooted 4.4.4 2.93 f/w.
[Sony Cross-Device General] Bird40:
2.8.6 A5 does not work for my device SGP521 with 4.4.2.

Root lost.
[Sony Cross-Device General] [NUT]:
&

No need to do anything, the installer will work fine next round: you did not lose root, just r/w access. Next attempt version should install just fine.

DO NOT REINSTALL (There really is

NO NEED FOR THAT

!)

Attempt 6 now building and uploading. This version has been modified at multiple points and provides some more insight at boot time. It is critical I get all the info with this version, so both the CMD output and the XZDualRecovery folder contents are important.

It will be online in a few minutes.
[Sony Cross-Device General] :
2.8.6a5 works fine for me on CM12, should I even update to a6 once it's out?
[Sony Cross-Device General] pr0jesse:
So this will work on all Lollipop devices?
[Sony Cross-Device General] [NUT]:
no promises yet... so... try and see, then report to me :)
[Sony Cross-Device General] [NUT]:
Well... that's a nice bonus, it's not meant to work on CM12, but it sounds like byeselinux might play a role there too...

I doubt if it is worth updating though.
[Sony Cross-Device General] pr0jesse:
Will try and report when its online :)

Attempt 5 didnt work for me, so do i need to delete those files or just install attempt 6 without deleting something?
[Sony Cross-Device General] davze:
Works for me. Running Z3C 23.1.A.0.690 comming from 2.8.3 with byeselinux.

Thank you for your work!
[Sony Cross-Device General] [NUT]:
Just try it, no need to reset anything.

o_O

can you provide me with the logs anyway?

And, which 'Attempt' version did you use?
[Sony Cross-Device General] [NUT]:
Can you also zip up the XZDualRecovery folder (either in /cache or on your sdcard1) and attach it here?
[Sony Cross-Device General] :
If it is of any use to you, NUT, this is what happens on CM12:

- After the Sony logo shows up, the LED is red for a moment

- turns purple (indicating that I can boot into the Cyanogen Recovery)

- roughly 2 seconds after that it turns green and the phone vibrates shortly, leaving me with the option to either boot into TWRP or PhilZ.

Thanks again for your work.
[Sony Cross-Device General] davze:
Of course. Attempt 6. Here you go.
[Sony Cross-Device General] [NUT]:
Hmm, the Lollipop check fails on that version, the other stuff actually worked.
[Sony Cross-Device General] E66666666:
Failed. Attempt 6. Red light, can't boot into recovery.

Just having su working is enough right? No need for system r/w access?
[Sony Cross-Device General] [NUT]:
Okay... I think I nailed it :o

First of all: anyone who has attempted any of the trial/debug versions or anything else then 2.8.3 (with or without byeselinux):

Make sure you have 2.8.3 working, ironically to break it up again, download XZDR-Removaltool.zip from the 'XZDualRecovery Tools' folder on my website and place it on your sdcard.

Boot to any of the recoveries and flash the removal tool. This will remove all traces of XZDR on your device (with exception of the byeselinux and wp_mod modules at this point).

Then use the installer to install Attempt 7, available on the downloads page NOW.

I just did this on my Z (latest KitKat) and Z2 (Lollipop) both with an unmodified stock kernel (although they both do have an unlocked bootloader), and they are both working fine after the first attempt to install it, booting straight in to recovery after installation.

Please perform the above steps and let me know what happens :fingers-crossed:
[Sony Cross-Device General] [NUT]:
Yes sir, no worries about R/W.
[Sony Cross-Device General] pr0jesse:
attempt 6 (failed) zip file from z2 D6503 if you need it.
[Sony Cross-Device General] [NUT]:
Thank you for testing.

Check Post #4256 and follow the cleanup guide to try again.
[Sony Cross-Device General] :
Is it advised to also use the XZDRremovaltool if I already have 2.8.6 installed and then go on with the installation just as you instructed?
[Sony Cross-Device General] E66666666:
Hmmm, but previous attempts to install 2.8.6 killed the recoveries, so I assume these three steps are for those who have a working recovery right? The reinstallation of 2.6.3 seems to fail.
[Sony Cross-Device General] ondrejvaroscak:
To confirm I would need to start from scratch, means flashin .93 rooting, prerooting and flashing prerooted Lollipop. I had some issues on 2.8.3 recovery not having system r/w until I installed RIC defeat. So if you want me to, I can do that marasm again, not having anything critical on my mobile o can go clean wipe..
[Sony Cross-Device General] toudas:
Hmm, doesn't work

D6603, .690, A7, all 3 steps done.
[Sony Cross-Device General] pr0jesse:
Trying it now! but my dpi changed after the byeselinux so i fix that first...
[Sony Cross-Device General] [NUT]:
If you honestly want a good result at testing 2.8.6 Attempt 7 and confirm my results, you should. But it's a kind request, you don't HAVE to.

As long as you have root and perhaps wp_mod.ko inside /system/lib/modules or /data/local/tmp/ you have a way out of your predicament:

adb shell to your device, type su to gain root access, then;

type /system/xbin/busybox insmod /path/to/wp_mod.ko and then

try to remount /system with 'mount -o remount,rw /system'.

If you don't get a 'permission denied' warning, try to run the 2.8.3 installer again right after that (

not

closing the adb shell!).

If you can, please do. No matter what it takes to get 2.8.3 to work (again) is required to be able to flash the removal tool... or you need to remove all of XZDR by hand...
[Sony Cross-Device General] toudas:
Xperia Z C6603 LB KK 292 A7 works great.
[Sony Cross-Device General] [NUT]:
Please also provide me the XZDualRecovery folder contents (either in /cache or on sdcard1)
[Sony Cross-Device General] chintzle:
Can't get back to 2.8.3.

Don't now how to do this... :-/ (No Access to Recovery, root still active)
[Sony Cross-Device General] pepzin:
A7 works on my Z3 .690!

Great job NUT :good:
[Sony Cross-Device General] [NUT]:
I had a laugh out loud about your NDR Utils experience :laugh: [MENTION=5321428]AngelBob[/MENTION] has some work to do there ;)

But otherwise:

:victory:

Thanks for testing and sticking with me mate :highfive:
[Sony Cross-Device General] E66666666:
I can't find any wp_mod.ko, copying it straight from the easyroottool folder to /data/local/tmp and doing /system/xbin/busybox insmod /data/local/tmp/wp_mod.ko results in invalid module format. Mounting also failed because of no permissions.

I think I'm stuck here somewhat.

Time for a reinstall, I guess? I did some things, probably, which resulted in this.
[Sony Cross-Device General] [NUT]:
:highfive:

One thing: you do have a locked bootloader, right?

[MENTION=6351145]ondrejvaroscak[/MENTION] you also have a locked bootloader?
[Sony Cross-Device General] [NUT]:
No, stop there and then, wait for me to edit this post with a (manual) solution.

-- EDIT --

Inside the A7 installer you will find a 'files' folder which contains the 'byeselinux' folder. Go to the byeselinux folder in a CMD window, then perform this manual script:

adb push ../busybox /data/local/tmp/busybox
adb push wp_mod.ko /data/local/tmp/wp_mod.ko
adb push modulecrcpatch /data/local/tmp/modulecrcpatch
adb push sysrw.sh /data/local/tmp/sysrw.sh
adb shell

Then in ADB do these steps:

su (= to elevate to root)
cd /data/local/tmp/
chmod 755 busybox (make binary executable)
chmod 755 modulecrcpatch (make binary executable)
chmod 755 sysrw.sh (make script executable)
./sysrw.sh (to run the script, and yes, the ./ is required!!)

You should then have R/W access again. You can now start the appropriate install script depending on your operating system.
[Sony Cross-Device General] ondrejvaroscak:
I will also try clean way, down to fresh KK, root, preroot LP without recovery and installing A7 from Win when LP installed, so no previous 2.8.3 in Lolli. Not sure if can make it right now, my bf stresses me to go out because of excellent weather we have here (after days of misery and cold).
[Sony Cross-Device General] E66666666:
Ah, I'll wait then. Thanks a lot for providing this much support :)
[Sony Cross-Device General] ondrejvaroscak:
Yep, locked bootloader.
[Sony Cross-Device General] [NUT]:
Heh, go out, have fun ... the good weather will go away at some point, XZDR won't ;)

I will let A7 simmer a little and try to help people out of their testing predicaments :)
[Sony Cross-Device General] leso60:
Z3C D5803 LB Lollipop .690

http://www.mediafire.com/download/6pn7vnea4q60es4/XZDualRecovery.rar