yashsingh1/xdaforums huggingface dataset:
[Sony Cross-Device General] mje02:
On my Z2 D6503, .690 the latest version, 2.8.6 A7, works like a charm.

I started from Version 2.8.3 --> recovery not working / system read only

Install zxz0O0 Fix --> recovery ok / system read only

flash 2.8.6 A4 via recovery --> recovery not working / system r/w

flash 2.8.6 A7 via installer --> recovery ok / system r/w

Thank you for your great work!
[Sony Cross-Device General] bowli:
Attempt 7 don't work for me on D6503 23.1.A.0.690 with locked bootloader.

I try a fresh install after flashing stock lollipop prerooted rom and it don't work.

After that, i try installing byselinux and Z2-lockeddualrecovery2.8.3-RELEASE.installer, phone reboot to recovery then i flash XZDR-removaltool.zip and after reboot i use Z2-lockeddualrecovery2.8.6-RELEASE.installer attempt 7 but phone don't reboot to recovery.

I hope this will help you.

Thank you.
[Sony Cross-Device General] ondrejvaroscak:
Clean prerooted Lollipop .690 (no recovery) D6603 - FAILURE

OK, flashed clean KK .93 in flashtool

obvious root by giefroot

installing XZDR 2.8.3 to KK, success

created prerooted .690 customized DE, no recovery included,

WIPING (data, data/media, system, cache, dalvik)

flashing prerooted (no recovery) LP .690

booting (be aware initial boot of LP can take easily 6-8 minutes), initial setup

debugging on, unknown sources on

testing root access, adb shell su ok

remount rw denied

installing 2.8.3 Attempt 7 installer

cmd output:

First boot reboots to system instead of TWRP

R/W system remount failed

NDRUtils seems ok, reboot into TWRP results in booting system.

After reboot no dual vibration.

Confirm 2.8.6 A7 FAILED on clean prerooted .690

So my observation, 2.8.6 worked if 2.8.3 (or byeselinux or both) have been previously installed on LP.

Just from pure curiosity i installed byselinux over 2.8.6 A7, it makes dual vibration after reboot, but no recovery after Vol Up/Down.
[Sony Cross-Device General] mardrest:
I tried to install with the removal of xzdualrecovery and installed a7 on d5803 with .726 lp and not worked

here are the files
[Sony Cross-Device General] nhatzkie0051:
Attempt 7 does not work on 4.4.2/z2 d6503. Reverted back to 2.8.3 to install prerooted lollipop with 2.8.3. Will try installing byeselinux when done and then carry on with the instructions posted on attempt 7.
[Sony Cross-Device General] FcukBloat:
many thanks [MENTION=4904057][NUT][/MENTION] for your great work and all the time you are spending fixing this and to all people who is helping you as well ;)

I lost a little the progresses but for what I understood, 2.8.6 A7 is completely working is that right? so if I create a fw for my z3c (LB) with PRF creator and add 2.8.6 A7 (flashable) I will have recovery working immediately and system accessible r/w?

tia
[Sony Cross-Device General] FlyingCheese:
[MENTION=4904057][NUT][/MENTION]

I had 2.8.3 installed on my Z3 D6643 with .77 KitKat firmware.

Flashed XZDR_Removaltool.zip - OK

Installed 2.8.6A7 through the installer (modified it to install through Wireless ADB) - OK

TWRP 2.8.6.0 booted right after the reboot issued by the installer.

Tested NDRUtils to reboot to Phils and CWM - OK

Great job!

P.S.: I would also like to know if we should use the flashable 2.8.6A7 to build our new pre-rooted Lollipop versions now..
[Sony Cross-Device General] juanpirulo:
Z1 kk .157 . with 2.8.3

Flash xzdualremoval tool.

Install 2.8.6 a7 installer everything ok. twrp ok philz ok. cheers
[Sony Cross-Device General] E66666666:
Executing the sysrw script results in failure:

127|shell@D5803:/data/local/tmp $ ./sysrw.sh
./sysrw.sh
/system/bin/sh: ./sysrw.sh: No such file or directory

However, I opened it and it has its busybox path being /data/local/tmp/recovery/busybox. Before updating to 5.0.2 I already installed Busybox, apparently, so I changed the vars to point to there and the script worked. This is that script now:

#!/system/xbin/busybox sh
######
#
# Part of byeselinux, created originally by zxz0O0, modified for use in XZDualRecovery by [NUT]
#

BUSYBOX="/system/xbin/busybox"

$BUSYBOX mount -o remount,rw /system 2> /dev/null
if [ "$?" = "0" ]; then
echo "No system mount security"
exit 0
fi

if [ ! -f /data/local/tmp/wp_mod.ko ]; then
echo "Error patching kernel module. File not found."
exit 1
fi

if [ ! -f /data/local/tmp/modulecrcpatch ]; then
echo "Error: modulecrcpatch not found"
exit 1
fi

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

$BUSYBOX insmod /data/local/tmp/wp_mod.ko

$BUSYBOX mount -o remount,rw /system 2> /dev/null
if [ "$?" != "0" ]; then
echo "Remount R/W failed!"
exit 1
fi

exit 0

Applying AdAway was succesful, so system r/w was enabled.

As for executing the installer, it still reboots into Android :(

Did show a purple light though. I'll try rebooting into recovery with NDR Utils right after this post.

Small edit: Nope. No purple light this time too.
[Sony Cross-Device General] FcukBloat:
flashed flashable version 2.8.6 A7 in my z3c but seems I can't enter in recovery anymore... (no philz no twrp)

at boot I get double vibration and green light, pressing volume buttons after a while the led turns violet, but it doesn't enter in recovery. also rebooting to recovery from android or ndr utils doesn't seem to work here :(
[Sony Cross-Device General] amazingd:
Z3c d5833,original rom is kk

use PRFCreator created 726 +supersu +xzdr2.85 zip

flash zip ,then ftf without system

root ok,but no rw

run byeselinux,then xzdr a5-7,cant boot to recovery

run SGP621-RICDefeat,got rw,then xzdr a7,everything is ok!

hope this will help

RICDefeat link:

http://xdaforums.com/z3-tablet-compact/general/ftf-sgp621-lollipop-23-1-0-690-noba-ftf-t3058400
[Sony Cross-Device General] ravdo:
Z2 D6503 .690, LB

I had the same CMD and behaviour.

I did what NUT's asked (removing the 2.8.3 first with XZDR-removaltool.zip), and installed 2.8.6 A7 after that.

Still no luck :eek:

Maybe it's my fate to just use 2.8.3+byeselinux :laugh:
[Sony Cross-Device General] E66666666:
RICDefeat made things work!

^^

Z3 Compact

D5803

Prerooted 5.0.2

ByeSELinux: system r/w. ZXDR A7 fails.

SGP621-RICDefeat: system r/w, ZXDR A7 SUCCEEDS! :)
[Sony Cross-Device General] pr0jesse:
do you think this could work on Z2 D5603?
[Sony Cross-Device General] [NUT]:
Hmm, I found a silly bug thanks to all the testing you guys are doing. KEEP UP THE GOOD WORK! :good::highfive:

I said it before, going to say it again:

ASSUMPTION IS THE MOTHER OF ALL F*CK-UPS!

-- EDIT --

Uploading Attempt 8 now, will be online ASAP.
[Sony Cross-Device General] pr0jesse:
NUT, ATTEMPT 7 WORKS on my Z2 D5603:

1. i followed your 3 steps

2. i installed RICdefeat

3. i installed Attempt 7 via the installer

4. Working recovery!

YOU ARE THE BEST!!!! :victory::good:
[Sony Cross-Device General] FcukBloat:
really hope you can provide us a nice gift for a flashing-addicted weekend!! :D
[Sony Cross-Device General] Bird40:
I have SGP521 with 23.1.A.0.690-lashable (ZXDualRecovery 2.8.3) and byeselinux. R/W and DualRecovery work well.

1. Flash the XZDR-Removaltool.zip.

2. Reboot to system and intall TabZ2-lockeddualrecovery2.8.6-RELEASE.installer Attempt 7.

After executing the installer, it still reboots into Android.

R/W does not work.
[Sony Cross-Device General] ravdo:
Hmmm.... Looks like RICDefeat is the secret of success? :confused:

I'm gonna try that if Attempt 8 still fails for me :laugh:
[Sony Cross-Device General] pr0jesse:
Try to install RICdefeat, and then install Attempt 7. worked for my Z2 D5603
[Sony Cross-Device General] DiLeon:
NUT, I used byselinux and are on 2.83. with my SGP521. Can I also use the xzdrremovaltool and try 2.8.6 A8 or do I have to reverse the changes made by byeselinux 1st (if so, how?)
[Sony Cross-Device General] amazingd:
just try it ,I dont think it will mess anything ?
[Sony Cross-Device General] pr0jesse:
Works! Gonna install xposed right now :)
[Sony Cross-Device General] juanpirulo:
xperia z1 kk .157

-xzdualremoval

-install 2.8.6 a8 installer

everything ok
[Sony Cross-Device General] ravdo:
OK NUT. You nailed it :laugh:

Z2 D6503, .690 LB (2.8.3+byeselinux installed)

- Flashed XZDR-removaltool.zip at the Recovery

- Install 2.8.6 a8

- Profit

Everything works perfectly. Full root and no problem with Mount R/W (didn't have to install RICDefeat at all)
[Sony Cross-Device General] mardrest:
I installed with xzdualremoval and without applying the ricdefeat

installed a8

booted on recovery

everyting working ok

on d5806 on .690

Congrats to [MENTION=4904057][NUT][/MENTION] and all the testers
[Sony Cross-Device General] FcukBloat:
z3c, LB

I couldn't enter anymore to recovery after installing (with script) a previous attempt.

I tried now installing A8 with script, and I got back working recoveries again (both TWRP and philz)

seems you made it friend!? :o

ps. at last in twrp I see now smaller fonts, so I can better see what is happening! :victory:

pps. formatting cache/sytem still takes quite long, it was always faster in my previous phones.. is that normal?

will keep testing it btw many thanks for now!! :good::laugh:
[Sony Cross-Device General] linkazoid:
I can also confirm that the latest zip after the removal tool is working for me too.

Z2 5.0.2 LB

As it seems to be working now, can you explain how this is different to 2.8.3?

Thanks for your perseverance with solving this!
[Sony Cross-Device General] Bird40:
Z2 Tablet (SGP521) LB with 23.1.A.0.690-lashable (ZXDualRecovery 2.8.3) and byeselinux.

1. XZDR-Removaltool.zip.

2. TabZ2-lockeddualrecovery2.8.6-RELEASE.installer Attempt 8.

All ok!

TWRP works fine.

R/W wors fine.
[Sony Cross-Device General] FcukBloat:
installer A8 seems to work, but flashable A8 seems not working here, someone else tried the flashable one? tx
[Sony Cross-Device General] leso60:
Z3C LB .690

A8 installer After reboooooooooot > Recovryyyy :D

[MENTION=4904057][NUT][/MENTION] good job, Tahnks :good:

Next step, flashable .726 to see :)
[Sony Cross-Device General] juanpirulo:
mmmm something weird happend first time i run the flashable. At first doesnt boot up, i had to press volum + power and finally power on and with recovery ok. cheers

z1 .157 kk

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

now each time i enter twrp and try to flash somethin i ve got this message " e:/ sbin/postrecoveryboot.sh process ended with error=1 "
[Sony Cross-Device General] pr0jesse:
Tip dont install xposed yet! got bootloop......... :(
[Sony Cross-Device General] DiLeon:
tried it via the installer and saw that byeselinux was handled during install. So my question is answered by that.

Result: great job, it's working with Z2 Tablet (SGP521) and LP .690 !!!
[Sony Cross-Device General] amazingd:
bad news....
[Sony Cross-Device General] pr0jesse:
the most annoying thing is that i need to flash KK, then LP with root, Then Attempt 8 and then reinstall all my apps... For some reason my backup on my SD wont show up :( (luckily i always backup my phone numbers and email it to myself)
[Sony Cross-Device General] ondrejvaroscak:
I got 2.8.6 A7 working only when I installed in from PC while having previously installed 2.8.3. On clean prerooted fw it did not work
[Sony Cross-Device General] [NUT]:
I'll have a look at the flashable later tonight, maybe I can spot something out of the ordinary.

It's funny... The flashable was the first one to properly work, which lead me to the solution of the installer... Oh the joy of weird things happening while debugging...

Almost there folks! Once the flashable is 100% fixed, I will be releasing this version as 2.8.7 to mark the end of the trial/debug string of releases.
[Sony Cross-Device General] munkustrap:
Try wipe dalvik cache in recovery and see if it boots again. Not sure if it's needed every time rebooting yet.
[Sony Cross-Device General] mardrest:
This is a bug from the xposed tool, you must clear drm/art cache then you can boot normally every reboot
[Sony Cross-Device General] churchrickshaw:
I just flashed A8 via the installer. Everything went well and NDR tools now detects recovery. However, I cannot boot into recovery via the tools. How are you guys entering recovery?
[Sony Cross-Device General] pr0jesse:
I just REFLASHED KK and im rooting it right now.... :(
[Sony Cross-Device General] mardrest:
I installed a8 with the flashable zip and worked fine like the installer on D5803 on .690
[Sony Cross-Device General] myeepad:
Oh, no... the fun of testing-debugging-testing is over now?! I had a good few days with this fun...:p

Honestly, [MENTION=4904057][NUT][/MENTION], really really appreciate your effort in developing this for us...:good::good::good:
[Sony Cross-Device General] bowli:
Attempt 8 works for me on xperia Z2 lollipop with locked bootloader.

Thanks a lot
[Sony Cross-Device General] ravdo:
Pressing Up/Down when the phone vibrates, and from NDR tools. Both methods work for me.
[Sony Cross-Device General] munkustrap:
working recovery and r/w after RICDefeat，byeselinux， and A8, don't remember the detailed order though.

Now suffering the 340 apps upgrade after wiping dalvik/art cache for the 2ND time to fix xposed boot loop.

Question: Do i need to update to 2.8.7 later, or i am safe stay where i am? If update, do i have to flash the removal zip first, or ok to directly flash/install the new version?

UPDATE: seems it was A7 i was on, not sure if it's the reason of boot loop. trying A8 again.
[Sony Cross-Device General] churchrickshaw:
nvm. got it. like everyone else, seems like these are the steps, can't go straight to A8

2.8.3 + bye + RIC and then A8.

Thanks [MENTION=4904057][NUT][/MENTION]!!
[Sony Cross-Device General] leso60:
I create a flashable zip with A8 when wipe data i got error: "e:/ sbin/postrecoveryboot.sh process ended with error=1 " and "E:mount -o bind '/data/media/0' '/sdcard' process ended with ERROR=255

when system is up no R/W access

Update 1: R/W access got with SGP621-RICDefeat
[Sony Cross-Device General] munkustrap:
Why i get boot loop EVERY time after i install anything in xposed and have to wipe dalvik/art cache again?

340+ apps updating is killing me! :(
[Sony Cross-Device General] ffira04:
weird

dear [MENTION=4904057][NUT][/MENTION].. I can confirm that XZDR 2.8.6 attempt 8 flashable zip still need to do byeselinux and ric defeat in order to access to recovery..hope there is a solution for this

cheers mate:D:D:D:D:D:D
[Sony Cross-Device General] Dolphin Trainer:
Lollipop Encryption

TWRP 2.8.6.0 doesn't appear to support encryption on my Xperia Z3 Tablet Compact running Lollipop. Is this known about? I'm not sure why this is the case, because TWRP 2.8.6.x does support Lollipop encryption (works on the N5 for example).

Any workarounds?
[Sony Cross-Device General] :
23.2.A.0.278 fw

recovery 2.8.6-attempt 8 fully working on z3c 23.2.a.0.278!! Nice work! Good job! Thanks so much NUT! :):laugh: your master!:victory:
[Sony Cross-Device General] AussieCable:
Please for the respect of this thread, and it's contents, and it's participants, please, please, use the correct forum.

http://xdaforums.com/xposed

Again this thread is

NOT

for xposed discussion.

This thread is for XZDR development discussion!

Now I have that out of my system, lets continue..............................................................................................
[Sony Cross-Device General] ondrejvaroscak:
A8

Just installed A8 over non-functional A7, worked, however gives some mount errors for /data/media when wiping. Will try clean install and let you know..
[Sony Cross-Device General] mardrest:
Yes it's frustrating, you must do it every boot, until they fix it on the xposed module
[Sony Cross-Device General] munkustrap:
Wondering why it is NOT needed on LP htc M8 and oneplus one Oxygen OS?
[Sony Cross-Device General] FcukBloat:
problem with bootloops is not due to recovery so it is OT here. and btw to fix bootloops you need to debloat fw. see here http://xdaforums.com/showthread.php?t=3076161

after debloating I have no bootloops at all with xposed and several modules up and running but again this is OT here so if you need more info write there....
[Sony Cross-Device General] TheV:
attempt 8

I tried attempt 8 over this previous attempt 4.

Recovery seems to be working (both first boot and successive NDR).

I think I have RW (ES File Explorer shows /system as drwxr-xr-x after enabling Root Explorer).

What is the best way to confirm that everything is in working order now? (bit of a noob, sorry)
[Sony Cross-Device General] FcukBloat:
great! can't wait to make my own pre-rooted debloated fw with included flashable recovery and xposed :)

ps. small donation is coming when i get home that's the minimum i can do you deserve it thanks for all your efforts!!

pps. i confirm the postrecoveryboot.sh error someone already reported, i see it in log as well but still all operations seems to be working fine for me ;)
[Sony Cross-Device General] ondrejvaroscak:
try wipe /data/media in TWRP..
[Sony Cross-Device General] munkustrap:
If I'm not misunderstanding, it's some of the bloatware that cause the boot loop？So weird. Do we have a way to know which specific one(s) then? :confused:
[Sony Cross-Device General] ondrejvaroscak:
It may be one app, more apps or some combination... I think unless developers of Xposed can help to determine, it would be too complicated and lengthy to find out...
[Sony Cross-Device General] FcukBloat:
yes weird but that has been confirmed already ;)

exactly very time consuming ;(
[Sony Cross-Device General] munkustrap:
---------- Post added at 03:45 AM ---------- Previous post was at 03:42 AM ----------

Sad. But according to this thread， installing Gmail and sync after debloating caused new boot loop. So my wild guess is the real reason might be more complicated than it looks, and hope the solution will be simpler than we have now.
[Sony Cross-Device General] FcukBloat:
please stop OT now in respect to OP ;)

ps. as promised sent my donation [MENTION=4904057][NUT][/MENTION], that's not so much but hope it'll be enough for a couple of beers in the weekend you really deserve them thanks again for all your efforts! cheers :good: :p
[Sony Cross-Device General] ondrejvaroscak:
Possible workaround for mount problems in A8 2.8.6

IMHO is the problem in TWRP itself. In XZDualRecovery 2.8.6 is TWRP v2.8.6.0, whereas in XZDualRecovery 2.8.5 is TWRP v2.8.5.0.

I tried to replace recovery.twrp.cpio.lzma file in installer of 2.8.6 with version from 2.8.3, installed it over.

TWRP is back to version 2.8.5.0 and so far works well...
[Sony Cross-Device General] MaSsAcRe1992:
havent had much time to google it and wanted a shoprt answer, much thanks my friend. :)
[Sony Cross-Device General] [NUT]:
XZDualRecovery 2.8.7 Released!

RELEASE Change log:

Version 2.8.7:

Fully debugged for use with Sony's Lollipop and restored functionality on KitKat on all supported models. Both for locked bootloader installations and the XZDualRecovery Advanced Stock Kernel builder.

Included the byeselinux patch by [MENTION=3975929]zxz0O0[/MENTION], heavily modified. It will unload the module when booting to the ROM to restore SELinux functionality.

Converted XZDR from using my own solution to the more elegant 'wp_mod' method by [MENTION=2011359]MohammadAG[/MENTION]. It now uses my own solution as a backup.

Made sure the modules will only be installed when required either by device or ROM version.

Updated the flashable package to do the same.

Updated the included NDR Utils to the latest version.

Updated the (installer) included adb binaries to the current latest version (Required when using TWRP 2.8.6.0 and newer).

The installer and the chargemon hijack script will now make a copy of the init 'rc' files to /system/.XZDualRecovery to be used during updates using the flashable zip, this way the (long!) list of firmwares in the installdisableric.sh script can be discarded in the future, which was only used in the flashable package because these init rc files are unavailable while in recovery.

My immense gratitude goes to all the people involved in debugging this release, your input, tinkering, patience and test results where invaluable.
[Sony Cross-Device General] E66666666:
Have a beer on me :victory:
[Sony Cross-Device General] FcukBloat:
wow 8 thanks per day is not enough with people like you working so hard :laugh:

trying shortly pre-rooted fw with included new flashable! :victory: :good::fingers-crossed:
[Sony Cross-Device General] jerflash:
Ha nice dude glad you figured it out! I will include it in my ROM maybe tonight and give it a try.
[Sony Cross-Device General] akkufix:
Ok, 2.8.7 (think it is A8 now?) works for me on D6503 XZ2, LB and LP.

I "updated" working 2.8.3 recovery with installer 2.8.7 and can access Philz, TWRP and CWM.

Sure, also R/W works fine. Could create a directory in /

:good: A big thanks to you [MENTION=4904057][NUT][/MENTION]
[Sony Cross-Device General] [NUT]:
Not for 100%, the flashable zip contained a small bug, which has now been fixed. The NDR Utils and adb binary updates are new to 2.8.7 too.
[Sony Cross-Device General] akkufix:
My mistake...

I meant install.sh and not zip-installer.

But no matter - it works. :D
[Sony Cross-Device General] MrCatalyst:
Finally a working recovery on Lollipop! Can't thank you enough, dude!
[Sony Cross-Device General] adolfovm:
I'm not so sure the issue comes from bloatware, I think it's more some odex files, from a similar thread I downloaded the specific file only for deodexing the Z2 rom without any debloating and I have no bootloop issues afterwards, didn't faced any FCs either. After applying the deodex zip all was working smoothly with Xposed!

This is the thread that talks about the issue:

http://xdaforums.com/xperia-z2/development/fix-xposed-bootloop-23-1-0-690-d6503-t3073129

And if it helps anyone here's the Z2's zip for deodexing only and making xposed work after reboots:

http://xdaforums.com/showpost.php?p=59909535&postcount=39
[Sony Cross-Device General] pepzin:
Updated to 2.8.7 from TWRP :victory: :highfive:

Seriously [NUT], thank you for being so awesome! I can't remember the last time I saw a developer being so helpful and a complete opposite of elitist. It really shows that you are very passionate for this project, and because I did som investigation on my own, I now know much more about the boot process of an Android device.

And thats why I will donate what I can afford to you now :)
[Sony Cross-Device General] ondrejvaroscak:
Installed 2.8.7, TWRP still shows error on postrecoveryboot.sh ended with ERROR=1

Wiping data also error E:mount -o bind ´/data/media/0 .....etc.

Modifying your recovery 2.8.7 with TWRP 2.8.5.0 because 2.8.6.0 causes errors in wiping...

Philz works normally..

---------- Post added at 01:16 ---------- Previous post was at 01:06 ----------

I know it will sound horrible, but try install fresh Lollipop, prerooted. Or even better clean stock KK, so you can prove your Bluetooth thing is not HW related. As for recovery, try SGP621-RICDefeat.zip (no flash, install from PC) to regain system r/w and see if you can get 2.8.7 work, if not, just start from scratch with clean KK/LP.
[Sony Cross-Device General] Meannekes:
FW: 23.2.A.0.278

Created prerootet firmware with your dualrecovery in it (2.8.7)(added version to disableric)

Works fine here, thanks
[Sony Cross-Device General] fabfor:
horrible indeed!!! :eek::eek::eek:

... I thought the same at the beginning, but not after reading lines like this in logcat

E/bt_upio (27738): set_bluetooth_power : write(/sys/class/rfkill/rfkill0/state) failed: Operation not permitted (1)

well, I don't really know how to debug it, but it doesn't make me think of something HW related

Regained root, system r/w and recovery reinstalling xzx0O0 and 2.8.3.

I stop here atm, goodnight everybody
[Sony Cross-Device General] sharonliu:
z1 compact resolution should be 720 x 1280 pixels, but your XZDualRecovery source codes still an issue

<resolution width="1080" height="1920" />
<author>TeamWin</author>

thanks for your hard working for XZDualRecovery
[Sony Cross-Device General] FabianLaRose:
http://xdaforums.com/xperia-z2/development/fix-xposed-bootloop-23-1-0-690-d6503-t3073129